10121 lines
564 KiB
SQL
10121 lines
564 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 5.2.0
|
|
-- https://www.phpmyadmin.net/
|
|
--
|
|
-- Host: localhost:3306
|
|
-- Generation Time: Jan 26, 2026 at 06:14 PM
|
|
-- Server version: 8.0.30
|
|
-- PHP Version: 8.3.21
|
|
|
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
START TRANSACTION;
|
|
SET time_zone = "+00:00";
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
/*!40101 SET NAMES utf8mb4 */;
|
|
|
|
--
|
|
-- Database: `codenichebd_restaurant`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `about_us`
|
|
--
|
|
|
|
CREATE TABLE `about_us` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` longtext COLLATE utf8mb4_unicode_ci,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `about_us`
|
|
--
|
|
|
|
INSERT INTO `about_us` (`id`, `restaurant_id`, `title`, `description`, `image`, `status`, `created_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Welcome to Fudevs School', 'We provide a nurturing environment, a challenging curriculum, and a dedicated faculty to ensure customer success.', 'https://i.ibb.co.com/jkr9s80Q/image.png', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `academic_images`
|
|
--
|
|
|
|
CREATE TABLE `academic_images` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`heading` text COLLATE utf8mb4_unicode_ci,
|
|
`description` longtext COLLATE utf8mb4_unicode_ci,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `accounts`
|
|
--
|
|
|
|
CREATE TABLE `accounts` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`type` enum('asset','liability','equity','income','expense') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'asset',
|
|
`opening_balance` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`current_balance` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `accounts`
|
|
--
|
|
|
|
INSERT INTO `accounts` (`id`, `restaurant_id`, `name`, `code`, `type`, `opening_balance`, `current_balance`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Cash', 'AC-001', 'asset', '0.00', '0.00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 'Bank', 'AC-002', 'asset', '0.00', '0.00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 'Loan Receivable', 'AC-003', 'asset', '0.00', '0.00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(4, 1, 'Sales', 'AC-101', 'income', '0.00', '0.00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(5, 1, 'Purchase', 'AC-201', 'expense', '0.00', '0.00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(6, 1, 'Operating Expense', 'AC-202', 'expense', '0.00', '0.00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(7, 1, 'Loan Payable', 'AC-301', 'liability', '0.00', '0.00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(8, 1, 'Tips Received', 'AC-302', 'liability', '0.00', '0.00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `addons`
|
|
--
|
|
|
|
CREATE TABLE `addons` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`price` decimal(12,2) NOT NULL,
|
|
`vat` decimal(5,2) NOT NULL DEFAULT '0.00',
|
|
`pst` decimal(5,2) NOT NULL DEFAULT '0.00',
|
|
`status` tinyint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `addons`
|
|
--
|
|
|
|
INSERT INTO `addons` (`id`, `restaurant_id`, `name`, `price`, `vat`, `pst`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Cookie', '2.50', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 'Chilli Sauce', '1.20', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 'Sour Plum Powder', '0.99', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 'Extra Meat', '3.99', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 'BBQ Sauce', '1.50', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 'Fresh Milk', '2.00', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 'Enoki Mushrooms', '2.99', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 'Chilli Padi', '0.80', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 'Cheese', '2.50', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 'Soup of the Day', '3.99', '5.00', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `addon_food`
|
|
--
|
|
|
|
CREATE TABLE `addon_food` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`food_item_id` bigint UNSIGNED NOT NULL,
|
|
`addon_id` bigint UNSIGNED NOT NULL,
|
|
`status` tinyint NOT NULL DEFAULT '1',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `addon_food`
|
|
--
|
|
|
|
INSERT INTO `addon_food` (`id`, `restaurant_id`, `food_item_id`, `addon_id`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 5, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 2, 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 3, 5, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 4, 9, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 4, 10, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 5, 6, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 6, 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 6, 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 6, 4, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 7, 5, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 7, 6, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 8, 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 1, 8, 3, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 1, 8, 9, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `attendances`
|
|
--
|
|
|
|
CREATE TABLE `attendances` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`date` date NOT NULL,
|
|
`first_clock_in` time DEFAULT NULL,
|
|
`last_clock_out` time DEFAULT NULL,
|
|
`hours_worked` decimal(5,2) DEFAULT NULL COMMENT 'Total hours worked',
|
|
`status` enum('present','absent','leave','holiday') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'present',
|
|
`breaks` json DEFAULT NULL COMMENT 'Optional JSON array to store break periods',
|
|
`notes` json DEFAULT NULL COMMENT 'Any admin notes or special remarks',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `attendances`
|
|
--
|
|
|
|
INSERT INTO `attendances` (`id`, `restaurant_id`, `employee_id`, `date`, `first_clock_in`, `last_clock_out`, `hours_worked`, `status`, `breaks`, `notes`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 3, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 5, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 7, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 9, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, 10, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(6, 1, 11, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(7, 1, 12, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(8, 1, 13, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(9, 1, 19, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(10, 1, 20, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(11, 1, 23, '2026-01-26', '09:00:00', '18:00:00', '9.00', 'present', NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `attendance_logs`
|
|
--
|
|
|
|
CREATE TABLE `attendance_logs` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`attendance_id` bigint UNSIGNED NOT NULL,
|
|
`type` enum('in','out') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`punch_time` timestamp NOT NULL,
|
|
`device_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Optional device ID',
|
|
`latitude` decimal(10,7) DEFAULT NULL,
|
|
`longitude` decimal(10,7) DEFAULT NULL,
|
|
`ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'IP from which punch was made',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `attendance_logs`
|
|
--
|
|
|
|
INSERT INTO `attendance_logs` (`id`, `restaurant_id`, `employee_id`, `attendance_id`, `type`, `punch_time`, `device_id`, `latitude`, `longitude`, `ip_address`, `created_at`, `updated_at`) VALUES
|
|
(1, 1, 3, 1, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(2, 1, 3, 1, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(3, 1, 5, 2, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(4, 1, 5, 2, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(5, 1, 7, 3, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(6, 1, 7, 3, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(7, 1, 9, 4, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(8, 1, 9, 4, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(9, 1, 10, 5, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(10, 1, 10, 5, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(11, 1, 11, 6, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(12, 1, 11, 6, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(13, 1, 12, 7, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(14, 1, 12, 7, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(15, 1, 13, 8, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(16, 1, 13, 8, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(17, 1, 19, 9, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(18, 1, 19, 9, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(19, 1, 20, 10, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(20, 1, 20, 10, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(21, 1, 23, 11, 'in', '2026-01-26 03:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
(22, 1, 23, 11, 'out', '2026-01-26 12:00:00', 'DEVICE-1', NULL, NULL, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `awards`
|
|
--
|
|
|
|
CREATE TABLE `awards` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`date_awarded` date NOT NULL,
|
|
`amount` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Cash award amount',
|
|
`award_type` enum('cash','recognition','certificate','other') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `banners`
|
|
--
|
|
|
|
CREATE TABLE `banners` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`button_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`button_link` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`button_two_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`button_two_link` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `banners`
|
|
--
|
|
|
|
INSERT INTO `banners` (`id`, `restaurant_id`, `title`, `description`, `button_name`, `button_link`, `button_two_name`, `button_two_link`, `image`, `status`, `created_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Fuedevs School - Excellence in Education, Brighter Futures Ahead!', 'A place where customers learn, grow, and succeed.', 'Enroll Now', '#', NULL, NULL, 'https://i.ibb.co.com/Hf5zNcmQ/image-1.png', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `bookings`
|
|
--
|
|
|
|
CREATE TABLE `bookings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`hotel_id` bigint UNSIGNED NOT NULL,
|
|
`customer_id` bigint UNSIGNED NOT NULL,
|
|
`check_in` date NOT NULL,
|
|
`check_out` date NOT NULL,
|
|
`check_in_time` time DEFAULT NULL,
|
|
`check_out_time` time DEFAULT NULL,
|
|
`total_adults` int NOT NULL DEFAULT '1',
|
|
`total_children` int NOT NULL DEFAULT '0',
|
|
`subtotal_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`tax_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`discount_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`total_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`payment_status` enum('pending','paid','refunded') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`payment_method` enum('cash','card','online','bank') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`channel` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` enum('pending','confirmed','checked_in','checked_out','canceled') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`canceled_at` timestamp NULL DEFAULT NULL,
|
|
`canceled_by` bigint UNSIGNED DEFAULT NULL,
|
|
`remarks` text COLLATE utf8mb4_unicode_ci,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `bookings`
|
|
--
|
|
|
|
INSERT INTO `bookings` (`id`, `restaurant_id`, `hotel_id`, `customer_id`, `check_in`, `check_out`, `check_in_time`, `check_out_time`, `total_adults`, `total_children`, `subtotal_amount`, `tax_amount`, `discount_amount`, `total_amount`, `payment_status`, `payment_method`, `channel`, `status`, `canceled_at`, `canceled_by`, `remarks`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 2, '2026-01-28', '2026-01-31', '14:00:00', '12:00:00', 2, 1, '360.00', '36.00', '20.00', '376.00', 'pending', 'cash', 'website', 'confirmed', NULL, NULL, 'VIP customer', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 1, 3, '2026-01-29', '2026-01-30', '15:00:00', '11:00:00', 1, 0, '120.00', '12.00', '0.00', '132.00', 'pending', 'card', 'walkin', 'pending', NULL, NULL, 'First-time guest', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `booking_items`
|
|
--
|
|
|
|
CREATE TABLE `booking_items` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`booking_id` bigint UNSIGNED NOT NULL,
|
|
`room_id` bigint UNSIGNED NOT NULL,
|
|
`adults` int NOT NULL DEFAULT '1',
|
|
`children` int NOT NULL DEFAULT '0',
|
|
`room_price` decimal(10,2) NOT NULL,
|
|
`nights` int NOT NULL DEFAULT '1',
|
|
`tax_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`total_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`status` enum('reserved','occupied','cleaning','completed','canceled') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'reserved',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `booking_items`
|
|
--
|
|
|
|
INSERT INTO `booking_items` (`id`, `restaurant_id`, `booking_id`, `room_id`, `adults`, `children`, `room_price`, `nights`, `tax_amount`, `total_amount`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, 2, 1, '360.00', 3, '36.00', '156.00', 'reserved', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 1, 2, 0, 0, '0.00', 0, '0.00', '0.00', 'reserved', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 2, 1, 2, 1, '360.00', 3, '36.00', '156.00', 'reserved', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 2, 2, 0, 0, '0.00', 0, '0.00', '0.00', 'reserved', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `cache`
|
|
--
|
|
|
|
CREATE TABLE `cache` (
|
|
`key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`expiration` int NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `cache_locks`
|
|
--
|
|
|
|
CREATE TABLE `cache_locks` (
|
|
`key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`owner` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`expiration` int NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `candidates`
|
|
--
|
|
|
|
CREATE TABLE `candidates` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`recruitment_id` bigint UNSIGNED NOT NULL,
|
|
`first_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`last_name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`email` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`phone` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`resume` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'File path for uploaded resume',
|
|
`cover_letter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Optional cover letter file path',
|
|
`status` enum('applied','shortlisted','interviewed','selected','rejected') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'applied',
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `coupons`
|
|
--
|
|
|
|
CREATE TABLE `coupons` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL COMMENT 'Optional restaurant id',
|
|
`user_id` bigint UNSIGNED DEFAULT NULL COMMENT 'User who created this coupon',
|
|
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Coupon name',
|
|
`added_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Added by admin/system',
|
|
`discount_type` enum('fixed','percentage','free_delivery') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fixed' COMMENT 'Discount type',
|
|
`coupon_type` enum('restaurant','hotel','both') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'restaurant' COMMENT 'Where this coupon can be used',
|
|
`amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Discount amount or percentage',
|
|
`valid_from` datetime DEFAULT NULL COMMENT 'Start date/time',
|
|
`valid_to` datetime DEFAULT NULL COMMENT 'End date/time',
|
|
`usage_limit` int UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Total usage limit',
|
|
`max_uses_per_customer` int UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Max usage per customer',
|
|
`min_order_amount` decimal(10,2) DEFAULT NULL COMMENT 'Minimum order amount to apply coupon',
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Coupon image/banner',
|
|
`source` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'local' COMMENT 'Local or external',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `coupons`
|
|
--
|
|
|
|
INSERT INTO `coupons` (`id`, `restaurant_id`, `user_id`, `name`, `added_by`, `discount_type`, `coupon_type`, `amount`, `valid_from`, `valid_to`, `usage_limit`, `max_uses_per_customer`, `min_order_amount`, `image`, `source`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, NULL, '10% OFF', NULL, 'percentage', 'restaurant', '10.00', '2026-01-26 18:11:11', '2026-02-26 18:11:11', 100, 1, '500.00', NULL, 'local', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, NULL, '50 BDT OFF', NULL, 'fixed', 'restaurant', '50.00', '2026-01-26 18:11:11', '2026-02-26 18:11:11', 100, 1, '200.00', NULL, 'local', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, NULL, 'Special Both Coupon', NULL, 'fixed', 'both', '100.00', '2026-01-26 18:11:11', '2026-02-26 18:11:11', 50, 1, '500.00', NULL, 'local', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `coupon_usages`
|
|
--
|
|
|
|
CREATE TABLE `coupon_usages` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL COMMENT 'Optional restaurant id',
|
|
`coupon_id` bigint UNSIGNED NOT NULL,
|
|
`customer_id` bigint UNSIGNED DEFAULT NULL,
|
|
`order_id` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `customers`
|
|
--
|
|
|
|
CREATE TABLE `customers` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`customer_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Walk-in',
|
|
`username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`phone` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`otp_code` int DEFAULT NULL,
|
|
`isVerified` tinyint(1) NOT NULL DEFAULT '0',
|
|
`email_verified_at` timestamp NULL DEFAULT NULL,
|
|
`avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`role_id` tinyint NOT NULL DEFAULT '9' COMMENT '9=Customer',
|
|
`gender` enum('male','female','other') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`date_of_birth` date DEFAULT NULL,
|
|
`nid` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`platform` enum('APP','WEB') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'APP',
|
|
`device_info` longtext COLLATE utf8mb4_unicode_ci,
|
|
`last_active_time` timestamp NULL DEFAULT NULL,
|
|
`meta` json DEFAULT NULL,
|
|
`status` tinyint NOT NULL DEFAULT '1' COMMENT '1 = Active, 2 = Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `customers`
|
|
--
|
|
|
|
INSERT INTO `customers` (`id`, `restaurant_id`, `customer_code`, `name`, `username`, `email`, `phone`, `password`, `otp_code`, `isVerified`, `email_verified_at`, `avatar`, `address`, `role_id`, `gender`, `date_of_birth`, `nid`, `platform`, `device_info`, `last_active_time`, `meta`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'CUST-WALKIN', 'Walk-in', NULL, NULL, '00123456789', NULL, NULL, 0, NULL, NULL, 'Counter', 9, NULL, NULL, NULL, 'APP', NULL, NULL, NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 'CUST-79JK0A', 'Customer 1', NULL, 'customer1@example.com', '0130000001', '$2y$12$UO1JRTxUV.ulpXHdSt7.0ei2.EnPCK9SQ.GI2BssVqj1HRD82nJ4C', NULL, 0, '2026-01-26 12:11:09', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 'CUST-KRSVEZ', 'Customer 2', NULL, 'customer2@example.com', '0130000002', '$2y$12$zi/2gnV2RUfp7L7Jah14FO97rPBBycZMPxcdpSJ4JC1vrlCRonWIy', NULL, 0, '2026-01-26 12:11:09', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(4, 1, 'CUST-RHTGGU', 'Customer 3', NULL, 'customer3@example.com', '0130000003', '$2y$12$pkU.52nLVhGJ3ihuj7Ugwu7nCVY/9ITTkdYsbPII5MROqc7SmMSje', NULL, 0, '2026-01-26 12:11:09', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:10', '2026-01-26 12:11:10', NULL),
|
|
(5, 1, 'CUST-RYXDTC', 'Customer 4', NULL, 'customer4@example.com', '0130000004', '$2y$12$p.nI7ktpb.Nv7f5vLoneKuKP7mzX4yKkCHW17eyEWL6j6NIA.CxMO', NULL, 0, '2026-01-26 12:11:10', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:10', '2026-01-26 12:11:10', NULL),
|
|
(6, 1, 'CUST-ZOTZNE', 'Customer 5', NULL, 'customer5@example.com', '0130000005', '$2y$12$Fa9NJ7XWE4c88HpN25CeHeFU3TFJJ3MOD85NebJ2QLe5lRvrlyN1.', NULL, 0, '2026-01-26 12:11:10', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:10', '2026-01-26 12:11:10', NULL),
|
|
(7, 1, 'CUST-8TPWFK', 'Customer 6', NULL, 'customer6@example.com', '0130000006', '$2y$12$d9dXPM1G6CrjoZiIvaSG6u5dHHyQoFNNFZTSc0nXvtgIwwkrj/IiG', NULL, 0, '2026-01-26 12:11:10', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:10', '2026-01-26 12:11:10', NULL),
|
|
(8, 1, 'CUST-UBDOZC', 'Customer 7', NULL, 'customer7@example.com', '0130000007', '$2y$12$lS0wFNdlgUuSMnpaSUs6OeD9MB/iiCOyaORqu6dk37vH2SA1g4Uzm', NULL, 0, '2026-01-26 12:11:10', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:10', '2026-01-26 12:11:10', NULL),
|
|
(9, 1, 'CUST-KBMHRM', 'Customer 8', NULL, 'customer8@example.com', '0130000008', '$2y$12$rZWJFMKXmkodPyTd5VCluOS.EIasalHqNlWfwtbitqx1KrNQJp16G', NULL, 0, '2026-01-26 12:11:10', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:10', '2026-01-26 12:11:10', NULL),
|
|
(10, 1, 'CUST-6LDJVC', 'Customer 9', NULL, 'customer9@example.com', '0130000009', '$2y$12$mbiODxHDVUxYXNzmhGKlHOVcRmtC3WUSgO3AXC0H20pqEk/jsVaIq', NULL, 0, '2026-01-26 12:11:11', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(11, 1, 'CUST-QGDYLR', 'Customer 10', NULL, 'customer10@example.com', '01300000010', '$2y$12$4gltqg3SS3E0qy1aJssiQeaVdYQiyFOLSMpCot9RBlzoWbZ1chIo.', NULL, 0, '2026-01-26 12:11:11', NULL, 'Dhaka, Bangladesh', 9, NULL, NULL, NULL, 'WEB', NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `customer_addresses`
|
|
--
|
|
|
|
CREATE TABLE `customer_addresses` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`label` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Home',
|
|
`address_line_1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`address_line_2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`city` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`postal_code` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`latitude` decimal(10,7) DEFAULT NULL,
|
|
`longitude` decimal(10,7) DEFAULT NULL,
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `c_m_s_sections`
|
|
--
|
|
|
|
CREATE TABLE `c_m_s_sections` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`serial` int NOT NULL DEFAULT '0',
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `c_m_s_sections`
|
|
--
|
|
|
|
INSERT INTO `c_m_s_sections` (`id`, `restaurant_id`, `name`, `serial`, `title`, `description`, `image`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'banner', 1, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'about_us', 2, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'why_choose_us', 3, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 'signature_creation', 4, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, 'main_menu', 5, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(6, 1, 'chef', 6, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(7, 1, 'table_reservation', 7, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(8, 1, 'testimonial', 8, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(9, 1, 'visit_us', 9, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(10, 1, 'newsletter', 10, NULL, NULL, NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `delivery_charges`
|
|
--
|
|
|
|
CREATE TABLE `delivery_charges` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`zone_id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`type` enum('flat','distance_based') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'flat',
|
|
`base_charge` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`per_km_charge` decimal(10,2) DEFAULT NULL,
|
|
`min_order_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`free_delivery_above` decimal(10,2) DEFAULT NULL,
|
|
`is_active` tinyint(1) NOT NULL DEFAULT '1',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `departments`
|
|
--
|
|
|
|
CREATE TABLE `departments` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`parent_id` bigint UNSIGNED DEFAULT NULL COMMENT 'For department hierarchy',
|
|
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`meta` json DEFAULT NULL COMMENT 'Optional JSON for additional info',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `departments`
|
|
--
|
|
|
|
INSERT INTO `departments` (`id`, `restaurant_id`, `parent_id`, `name`, `description`, `status`, `meta`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, NULL, 'Human Resources', 'Manage users and HR processes', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, NULL, 'Finance', 'Handle accounting and payroll', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, NULL, 'Operations', 'Manage daily restaurant operations', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, NULL, 'Kitchen', 'Manage cooking and kitchen staff', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, NULL, 'Service', 'Waiters and customer service', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `deposits`
|
|
--
|
|
|
|
CREATE TABLE `deposits` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`fund_id` bigint UNSIGNED NOT NULL,
|
|
`account_id` bigint UNSIGNED NOT NULL,
|
|
`deposit_category_id` bigint UNSIGNED DEFAULT NULL,
|
|
`amount` decimal(15,2) NOT NULL,
|
|
`transaction_date` date NOT NULL,
|
|
`voucher_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`received_from` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`note` text COLLATE utf8mb4_unicode_ci,
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `deposits`
|
|
--
|
|
|
|
INSERT INTO `deposits` (`id`, `restaurant_id`, `fund_id`, `account_id`, `deposit_category_id`, `amount`, `transaction_date`, `voucher_no`, `received_from`, `note`, `created_by`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 4, 1, '500.00', '2026-01-24', 'DEP-001', 'Customer A', 'Cash sale deposit', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 2, 4, 1, '1000.00', '2026-01-25', 'DEP-002', 'Customer B', 'Bank deposit from sales', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `deposit_categories`
|
|
--
|
|
|
|
CREATE TABLE `deposit_categories` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `deposit_categories`
|
|
--
|
|
|
|
INSERT INTO `deposit_categories` (`id`, `restaurant_id`, `name`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Customer Payment', 1, NULL, NULL, NULL),
|
|
(2, 1, 'Fund Transfer In', 1, NULL, NULL, NULL),
|
|
(3, 1, 'Sales Revenue', 1, NULL, NULL, NULL),
|
|
(4, 1, 'Donations', 1, NULL, NULL, NULL),
|
|
(5, 1, 'Loan Received', 1, NULL, NULL, NULL),
|
|
(6, 1, 'Service Charge', 1, NULL, NULL, NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `designations`
|
|
--
|
|
|
|
CREATE TABLE `designations` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`department_id` bigint UNSIGNED DEFAULT NULL,
|
|
`title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`meta` json DEFAULT NULL COMMENT 'Optional JSON for additional info like level, grade, or code',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `designations`
|
|
--
|
|
|
|
INSERT INTO `designations` (`id`, `restaurant_id`, `department_id`, `title`, `description`, `status`, `meta`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, NULL, 'Manager', NULL, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, NULL, 'Chef', NULL, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, NULL, 'Waiter', NULL, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, NULL, 'Accountant', NULL, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, NULL, 'HR Executive', NULL, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `employee_salaries`
|
|
--
|
|
|
|
CREATE TABLE `employee_salaries` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`salary_month` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Format: YYYY-MM',
|
|
`basic_salary` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`allowances` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`deductions` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`overtime_hours` decimal(8,2) NOT NULL DEFAULT '0.00',
|
|
`overtime_rate` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`bonus` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`net_salary` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`payment_date` date DEFAULT NULL,
|
|
`remarks` text COLLATE utf8mb4_unicode_ci,
|
|
`status` enum('pending','approved','paid') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`salary_breakdown` json DEFAULT NULL COMMENT 'Detailed breakdown of earnings/deductions',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `employee_salaries`
|
|
--
|
|
|
|
INSERT INTO `employee_salaries` (`id`, `restaurant_id`, `employee_id`, `salary_month`, `basic_salary`, `allowances`, `deductions`, `overtime_hours`, `overtime_rate`, `bonus`, `net_salary`, `payment_date`, `remarks`, `status`, `salary_breakdown`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, NULL, 1, '2026-01', '27630.00', '4902.00', '583.00', '7.00', '287.00', '3525.00', '37483.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, NULL, 2, '2026-01', '41155.00', '1700.00', '1923.00', '18.00', '331.00', '2901.00', '49791.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 3, '2026-01', '45564.00', '2578.00', '834.00', '18.00', '293.00', '3971.00', '56553.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 2, 4, '2026-01', '39514.00', '2724.00', '1357.00', '4.00', '223.00', '4773.00', '46546.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, 5, '2026-01', '25335.00', '1169.00', '1801.00', '5.00', '287.00', '4332.00', '30470.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(6, 2, 6, '2026-01', '34611.00', '3761.00', '1491.00', '5.00', '379.00', '273.00', '39049.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(7, 1, 7, '2026-01', '25658.00', '4144.00', '934.00', '19.00', '369.00', '3493.00', '39372.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(8, 2, 8, '2026-01', '26887.00', '2470.00', '1761.00', '7.00', '320.00', '115.00', '29951.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(9, 1, 9, '2026-01', '48413.00', '1821.00', '529.00', '6.00', '296.00', '1816.00', '53297.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(10, 1, 10, '2026-01', '36009.00', '2706.00', '1309.00', '19.00', '484.00', '4863.00', '51465.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(11, 1, 11, '2026-01', '31539.00', '2882.00', '1067.00', '15.00', '483.00', '1051.00', '41650.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(12, 1, 12, '2026-01', '32597.00', '1649.00', '1988.00', '9.00', '483.00', '961.00', '37566.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(13, 1, 13, '2026-01', '33978.00', '2544.00', '1464.00', '3.00', '305.00', '830.00', '36803.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(14, 2, 14, '2026-01', '47531.00', '4975.00', '1870.00', '9.00', '217.00', '4722.00', '57311.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(15, 2, 15, '2026-01', '21881.00', '2841.00', '1764.00', '15.00', '446.00', '2197.00', '31845.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(16, 2, 16, '2026-01', '29251.00', '3708.00', '1289.00', '20.00', '322.00', '2129.00', '40239.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(17, 2, 17, '2026-01', '32592.00', '3434.00', '908.00', '4.00', '363.00', '3918.00', '40488.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(18, 2, 18, '2026-01', '26397.00', '2851.00', '994.00', '4.00', '398.00', '662.00', '30508.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(19, 1, 19, '2026-01', '25325.00', '2449.00', '1480.00', '11.00', '228.00', '4709.00', '33511.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(20, 1, 20, '2026-01', '32319.00', '3245.00', '612.00', '3.00', '223.00', '4622.00', '40243.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(21, 2, 21, '2026-01', '24691.00', '1123.00', '1946.00', '1.00', '433.00', '358.00', '24659.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(22, 2, 22, '2026-01', '29307.00', '3154.00', '1768.00', '2.00', '276.00', '4383.00', '35628.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(23, 1, 23, '2026-01', '47956.00', '1178.00', '1271.00', '12.00', '415.00', '705.00', '53548.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(24, 2, 24, '2026-01', '47762.00', '1527.00', '1457.00', '7.00', '331.00', '612.00', '50761.00', '2026-01-26', 'Auto-generated seeder', 'paid', NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `employee_shift_assignments`
|
|
--
|
|
|
|
CREATE TABLE `employee_shift_assignments` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`shift_id` bigint UNSIGNED NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `employee_shift_assignments`
|
|
--
|
|
|
|
INSERT INTO `employee_shift_assignments` (`id`, `restaurant_id`, `employee_id`, `shift_id`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 2, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 3, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 4, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, 5, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(6, 1, 6, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(7, 1, 7, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(8, 1, 8, 3, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(9, 1, 9, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(10, 1, 10, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(11, 1, 11, 3, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(12, 1, 12, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(13, 1, 13, 3, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(14, 1, 14, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(15, 1, 15, 3, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(16, 1, 16, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(17, 1, 17, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(18, 1, 18, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(19, 1, 19, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(20, 1, 20, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(21, 1, 21, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(22, 1, 22, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(23, 1, 23, 2, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(24, 1, 24, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `expenses`
|
|
--
|
|
|
|
CREATE TABLE `expenses` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`fund_id` bigint UNSIGNED NOT NULL,
|
|
`account_id` bigint UNSIGNED NOT NULL,
|
|
`expense_category_id` bigint UNSIGNED DEFAULT NULL,
|
|
`amount` decimal(15,2) NOT NULL,
|
|
`transaction_date` date NOT NULL,
|
|
`voucher_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`received_from` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`note` text COLLATE utf8mb4_unicode_ci,
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `expenses`
|
|
--
|
|
|
|
INSERT INTO `expenses` (`id`, `restaurant_id`, `fund_id`, `account_id`, `expense_category_id`, `amount`, `transaction_date`, `voucher_no`, `received_from`, `note`, `created_by`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 4, 1, '500.00', '2026-01-24', 'DEP-001', 'Customer A', 'Cash sale expense', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 2, 4, 1, '1000.00', '2026-01-25', 'DEP-002', 'Customer B', 'Bank expense from sales', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `expense_categories`
|
|
--
|
|
|
|
CREATE TABLE `expense_categories` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `expense_categories`
|
|
--
|
|
|
|
INSERT INTO `expense_categories` (`id`, `restaurant_id`, `name`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Food Purchase', 1, NULL, NULL, NULL),
|
|
(2, 1, 'Operating Expense', 1, NULL, NULL, NULL),
|
|
(3, 1, 'Salaries', 1, NULL, NULL, NULL),
|
|
(4, 1, 'Marketing', 1, NULL, NULL, NULL),
|
|
(5, 1, 'Electricity Bill', 1, NULL, NULL, NULL),
|
|
(6, 1, 'Loan Repayment', 1, NULL, NULL, NULL),
|
|
(7, 1, 'Fund Transfer Out', 1, NULL, NULL, NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `failed_jobs`
|
|
--
|
|
|
|
CREATE TABLE `failed_jobs` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `faq_questions`
|
|
--
|
|
|
|
CREATE TABLE `faq_questions` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`question` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`answer` longtext COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `faq_questions`
|
|
--
|
|
|
|
INSERT INTO `faq_questions` (`id`, `restaurant_id`, `question`, `answer`, `status`, `created_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'What is an academic program?', 'The academic program is a one stop solution for customers. Where every customer has the opportunity to ensure A+ preparation for board exams through interactive live classes, homework, live tests and progress analysis by the best mentors in each subject throughout the year. Once a customer starts this program, he will not have to go to any coaching or private tutor after school/college.', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'What is an academic program?', 'The academic program is a one stop solution for customers. Where every customer has the opportunity to ensure A+ preparation for board exams through interactive live classes, homework, live tests and progress analysis by the best mentors in each subject throughout the year. Once a customer starts this program, he will not have to go to any coaching or private tutor after school/college.', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'What is an academic program?', 'The academic program is a one stop solution for customers. Where every customer has the opportunity to ensure A+ preparation for board exams through interactive live classes, homework, live tests and progress analysis by the best mentors in each subject throughout the year. Once a customer starts this program, he will not have to go to any coaching or private tutor after school/college.', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `feedback`
|
|
--
|
|
|
|
CREATE TABLE `feedback` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`deleted_at` timestamp NULL DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `feedback`
|
|
--
|
|
|
|
INSERT INTO `feedback` (`id`, `user_id`, `description`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES
|
|
(1, 1, 'I love learning here! The teachers are supportive, and the activities are fun.', 1, NULL, '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(2, 2, 'A great place to teach! The school values both students and educators.', 1, NULL, '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(3, 3, 'The best decision for my child! Excellent education and communication.', 1, NULL, '2026-01-26 12:11:09', '2026-01-26 12:11:09');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `floors`
|
|
--
|
|
|
|
CREATE TABLE `floors` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`hotel_id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`level` int DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `floors`
|
|
--
|
|
|
|
INSERT INTO `floors` (`id`, `restaurant_id`, `hotel_id`, `name`, `level`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 'Lobby', 0, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 1, '1st Floor', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 1, '2nd Floor', 2, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(4, 1, 2, 'Lobby', 0, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(5, 1, 2, '1st Floor', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(6, 1, 3, 'Lobby', 0, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(7, 1, 3, '1st Floor', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_availabilities`
|
|
--
|
|
|
|
CREATE TABLE `food_availabilities` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`food_item_id` bigint UNSIGNED NOT NULL,
|
|
`day` enum('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`is_available` tinyint(1) NOT NULL DEFAULT '1',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `food_availabilities`
|
|
--
|
|
|
|
INSERT INTO `food_availabilities` (`id`, `restaurant_id`, `food_item_id`, `day`, `is_available`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 'Sunday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 'Monday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 1, 'Tuesday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 1, 'Wednesday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 1, 'Thursday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 1, 'Friday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 1, 'Saturday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_availability_times`
|
|
--
|
|
|
|
CREATE TABLE `food_availability_times` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`food_availability_id` bigint UNSIGNED NOT NULL,
|
|
`open_time` time NOT NULL,
|
|
`close_time` time NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `food_availability_times`
|
|
--
|
|
|
|
INSERT INTO `food_availability_times` (`id`, `food_availability_id`, `open_time`, `close_time`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, '09:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, '18:00:00', '22:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 2, '09:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 2, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 2, '18:00:00', '22:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 3, '09:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 3, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 3, '18:00:00', '22:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 4, '09:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 4, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 4, '18:00:00', '22:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 5, '09:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 5, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 5, '18:00:00', '22:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 6, '09:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 6, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 6, '18:00:00', '22:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(19, 7, '09:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(20, 7, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(21, 7, '18:00:00', '22:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_categories`
|
|
--
|
|
|
|
CREATE TABLE `food_categories` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`parent_id` bigint UNSIGNED DEFAULT NULL,
|
|
`is_offer` tinyint(1) NOT NULL DEFAULT '0',
|
|
`start_date` date DEFAULT NULL,
|
|
`end_date` date DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `food_categories`
|
|
--
|
|
|
|
INSERT INTO `food_categories` (`id`, `restaurant_id`, `name`, `slug`, `image`, `parent_id`, `is_offer`, `start_date`, `end_date`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Biryani & Rice', NULL, 'biryani_rice.jpg', NULL, 0, '2023-01-01', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'Tandoori Specials', NULL, 'tandoori_specials.jpg', NULL, 1, '2023-11-01', '2023-12-31', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'Naan & Breads', NULL, 'naan_breads.jpg', NULL, 0, '2022-10-10', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 'South Indian', NULL, 'south_indian.jpg', NULL, 0, '2023-02-01', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, 'Chinese Cuisine', NULL, 'chinese.jpg', NULL, 1, '2024-05-01', '2024-07-01', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(6, 1, 'Snacks & Starters', NULL, 'starters.jpg', NULL, 0, '2023-03-01', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(7, 1, 'Desserts', NULL, 'desserts.jpg', NULL, 1, '2024-12-01', '2025-01-10', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(8, 1, 'Beverages', NULL, 'beverages.jpg', NULL, 0, '2022-10-10', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_items`
|
|
--
|
|
|
|
CREATE TABLE `food_items` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`category_id` bigint UNSIGNED NOT NULL,
|
|
`menu_category_id` bigint UNSIGNED DEFAULT NULL,
|
|
`menu_section_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`food_type` enum('Veg','Non-Veg') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`points` int NOT NULL DEFAULT '0',
|
|
`is_featured` tinyint NOT NULL DEFAULT '0',
|
|
`is_party` tinyint NOT NULL DEFAULT '0',
|
|
`is_dinner` tinyint NOT NULL DEFAULT '0',
|
|
`is_lunch` tinyint NOT NULL DEFAULT '0',
|
|
`is_popular_item` tinyint NOT NULL DEFAULT '0',
|
|
`is_chef_special` tinyint NOT NULL DEFAULT '0',
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`prep_time` time DEFAULT NULL,
|
|
`cooking_time` time DEFAULT NULL,
|
|
`vat` decimal(5,2) NOT NULL DEFAULT '0.00',
|
|
`pst` decimal(5,2) NOT NULL DEFAULT '0.00',
|
|
`ingredients_cost` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`allergens` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`status` tinyint NOT NULL DEFAULT '1',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `food_items`
|
|
--
|
|
|
|
INSERT INTO `food_items` (`id`, `restaurant_id`, `category_id`, `menu_category_id`, `menu_section_id`, `name`, `slug`, `description`, `food_type`, `points`, `is_featured`, `is_party`, `is_dinner`, `is_lunch`, `is_popular_item`, `is_chef_special`, `image`, `prep_time`, `cooking_time`, `vat`, `pst`, `ingredients_cost`, `allergens`, `notes`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 2, 1, 1, 'Butter Chicken', NULL, 'Rich and creamy tomato-based chicken curry', 'Non-Veg', 0, 0, 1, 1, 1, 1, 1, 'butter_chicken.jpg', NULL, '00:25:00', '5.00', '2.00', '0.00', NULL, 'Pairs well with naan or rice', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 1, 1, 'Vegetable Biryani', NULL, 'Fragrant basmati rice with mixed vegetables and spices', 'Veg', 0, 0, 1, 1, 1, 1, 1, 'veg_biryani.jpg', NULL, '00:30:00', '5.00', '0.00', '0.00', NULL, 'Best served with raita', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 4, 1, 1, 'Masala Dosa', NULL, 'Crispy rice pancake filled with spiced potato masala', 'Veg', 0, 0, 0, 0, 1, 1, 0, 'masala_dosa.jpg', NULL, '00:20:00', '5.00', '0.00', '0.00', NULL, 'Serve with coconut chutney and sambar', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 5, 1, 1, 'Spring Rolls', NULL, 'Crispy fried rolls stuffed with mixed vegetables', 'Veg', 0, 0, 1, 0, 0, 0, 1, 'spring_rolls.jpg', NULL, '00:15:00', '5.00', '1.00', '0.00', NULL, 'Good as a starter', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 5, 1, 1, 'Chicken Manchurian', NULL, 'Fried chicken balls tossed in spicy tangy sauce', 'Non-Veg', 0, 0, 1, 1, 1, 0, 1, 'chicken_manchurian.jpg', NULL, '00:25:00', '5.00', '2.00', '0.00', NULL, 'Serve with fried rice or noodles', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 2, 1, 1, 'Paneer Tikka', NULL, 'Grilled cottage cheese cubes marinated in Indian spices', 'Veg', 0, 0, 1, 1, 0, 1, 0, 'paneer_tikka.jpg', NULL, '00:20:00', '5.00', '1.00', '0.00', NULL, 'Serve with mint chutney', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 7, 1, 1, 'Gulab Jamun', NULL, 'Soft deep-fried dumplings soaked in sugar syrup', 'Veg', 0, 0, 1, 0, 0, 1, 0, 'gulab_jamun.jpg', NULL, '00:10:00', '5.00', '0.00', '0.00', NULL, 'Serve warm', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 8, 1, 1, 'Lassi', NULL, 'Refreshing yogurt-based drink', 'Veg', 0, 0, 0, 0, 1, 0, 1, 'lassi.jpg', NULL, '00:05:00', '5.00', '0.00', '0.00', NULL, 'Serve chilled', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_reviews`
|
|
--
|
|
|
|
CREATE TABLE `food_reviews` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`food_item_id` bigint UNSIGNED NOT NULL,
|
|
`customer_id` bigint UNSIGNED DEFAULT NULL,
|
|
`rating` tinyint NOT NULL COMMENT '1-5',
|
|
`review` text COLLATE utf8mb4_unicode_ci,
|
|
`images` json DEFAULT NULL,
|
|
`video_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`video_file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` enum('pending','approved','rejected') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`is_featured` tinyint(1) NOT NULL DEFAULT '0',
|
|
`position` int NOT NULL DEFAULT '0',
|
|
`helpful_count` int NOT NULL DEFAULT '0',
|
|
`reject_reason` text COLLATE utf8mb4_unicode_ci,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_review_replies`
|
|
--
|
|
|
|
CREATE TABLE `food_review_replies` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`review_id` bigint UNSIGNED NOT NULL,
|
|
`user_id` bigint UNSIGNED DEFAULT NULL,
|
|
`customer_id` bigint UNSIGNED DEFAULT NULL,
|
|
`user_type` enum('admin','customer') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`message` text COLLATE utf8mb4_unicode_ci,
|
|
`attachments` json DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 0=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_variants`
|
|
--
|
|
|
|
CREATE TABLE `food_variants` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`food_item_id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`sku` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`barcode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`price` decimal(12,2) NOT NULL,
|
|
`offer_price` decimal(12,2) DEFAULT NULL,
|
|
`discount` int NOT NULL DEFAULT '0',
|
|
`unit_id` bigint UNSIGNED NOT NULL,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`is_default` tinyint NOT NULL DEFAULT '0',
|
|
`stock_tracking` tinyint NOT NULL DEFAULT '0',
|
|
`ingredients_cost` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`profit_margin` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`alert_stock_quantity` decimal(10,2) DEFAULT NULL,
|
|
`combo_type` enum('single','combo','add-on') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'single',
|
|
`is_active_offer` tinyint NOT NULL DEFAULT '0',
|
|
`offer_start_at` timestamp NULL DEFAULT NULL,
|
|
`offer_end_at` timestamp NULL DEFAULT NULL,
|
|
`status` tinyint NOT NULL DEFAULT '1',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `food_variants`
|
|
--
|
|
|
|
INSERT INTO `food_variants` (`id`, `restaurant_id`, `food_item_id`, `name`, `sku`, `barcode`, `price`, `offer_price`, `discount`, `unit_id`, `image`, `description`, `is_default`, `stock_tracking`, `ingredients_cost`, `profit_margin`, `alert_stock_quantity`, `combo_type`, `is_active_offer`, `offer_start_at`, `offer_end_at`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 'Single Piece', 'FV-7DCUJTNA', NULL, '1.99', '1.79', 10, 1, NULL, 'Single Piece variant for food ID 1', 1, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-19 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 'Double Piece', 'FV-MCVXTVRS', NULL, '3.49', '2.99', 14, 1, NULL, 'Double Piece variant for food ID 1', 0, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-10 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 2, 'Half Plate', 'FV-EI1PR8YZ', NULL, '6.99', '6.49', 7, 1, NULL, 'Half Plate variant for food ID 2', 1, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-25 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 2, 'Full Plate', 'FV-3PJAX4QH', NULL, '11.99', '10.99', 8, 1, NULL, 'Full Plate variant for food ID 2', 0, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-01-31 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 3, 'Regular', 'FV-S7FRMFZL', NULL, '5.49', '4.99', 9, 1, NULL, 'Regular variant for food ID 3', 1, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-22 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 3, 'Family Pack', 'FV-JJCGSAAG', NULL, '9.99', '8.99', 10, 1, NULL, 'Family Pack variant for food ID 3', 0, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-07 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 4, 'Classic', 'FV-FEXDZHH1', NULL, '4.99', '4.49', 10, 1, NULL, 'Classic variant for food ID 4', 1, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-02 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 4, 'Cheese Masala Dosa', 'FV-DRHVFFEA', NULL, '6.49', '5.99', 8, 1, NULL, 'Cheese Masala Dosa variant for food ID 4', 0, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-22 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 5, '4 pcs', 'FV-IQY3BOWR', NULL, '3.99', '3.49', 12, 1, NULL, '4 pcs variant for food ID 5', 1, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-22 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 5, '8 pcs', 'FV-XV2WOJLU', NULL, '6.99', '6.49', 7, 1, NULL, '8 pcs variant for food ID 5', 0, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-23 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 6, '6 pcs', 'FV-8CG8RDTV', NULL, '5.49', '4.99', 9, 1, NULL, '6 pcs variant for food ID 6', 1, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-04 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 6, '10 pcs', 'FV-DOUYJDMV', NULL, '8.99', '7.99', 11, 1, NULL, '10 pcs variant for food ID 6', 0, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-10 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 7, '2 pcs', 'FV-XS2MOS9F', NULL, '2.49', '2.29', 8, 1, NULL, '2 pcs variant for food ID 7', 1, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-12 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 1, 7, '5 pcs', 'FV-Y90JSL29', NULL, '5.49', '4.99', 9, 1, NULL, '5 pcs variant for food ID 7', 0, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-02 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 1, 8, 'Regular Glass', 'FV-3PCSKFO1', NULL, '2.99', '2.49', 17, 1, NULL, 'Regular Glass variant for food ID 8', 1, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-08 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 1, 8, 'Large Glass', 'FV-HJ0BRMFI', NULL, '3.99', '3.49', 12, 1, NULL, 'Large Glass variant for food ID 8', 0, 0, '0.00', '0.00', NULL, 'single', 0, '2026-01-26 12:11:12', '2026-02-03 12:11:12', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_variant_ingredients`
|
|
--
|
|
|
|
CREATE TABLE `food_variant_ingredients` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`food_variant_id` bigint UNSIGNED NOT NULL,
|
|
`ingredient_id` bigint UNSIGNED NOT NULL,
|
|
`quantity` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`wastage_percentage` decimal(5,2) NOT NULL DEFAULT '0.00',
|
|
`unit_conversion_factor` decimal(10,2) NOT NULL DEFAULT '1.00',
|
|
`optional` varchar(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'N',
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `food_variant_ingredients`
|
|
--
|
|
|
|
INSERT INTO `food_variant_ingredients` (`id`, `restaurant_id`, `food_variant_id`, `ingredient_id`, `quantity`, `wastage_percentage`, `unit_conversion_factor`, `optional`, `notes`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, '1.00', '2.00', '1.00', 'N', '150g patty', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 2, '1.00', '1.00', '1.00', 'N', 'Fresh baked bun', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 1, 3, '1.00', '0.00', '1.00', 'Y', 'Optional cheese topping', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 1, 4, '0.05', '5.00', '1.00', 'N', 'Fresh tomato slices', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 1, 5, '0.03', '5.00', '1.00', 'N', 'Crisp lettuce leaves', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 2, 6, '0.25', '8.00', '1.00', 'N', 'Peeled & sliced', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 2, 7, '0.01', '0.00', '1.00', 'N', 'Seasoning', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 2, 8, '0.05', '10.00', '1.00', 'N', 'For deep frying', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 3, 9, '0.25', '3.00', '1.00', 'N', 'Prepared dough base', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 3, 10, '0.10', '2.00', '1.00', 'N', 'Base sauce', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 3, 11, '0.15', '2.00', '1.00', 'N', 'Fresh mozzarella', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 3, 12, '0.01', '5.00', '1.00', 'N', 'Fresh basil leaves', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 3, 13, '0.02', '0.00', '1.00', 'N', 'Drizzle after baking', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `food_wastes`
|
|
--
|
|
|
|
CREATE TABLE `food_wastes` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`food_item_id` bigint UNSIGNED NOT NULL,
|
|
`food_variant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`quantity` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`unit_cost` decimal(16,2) DEFAULT NULL,
|
|
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`wasted_by` bigint UNSIGNED DEFAULT NULL,
|
|
`approved_by` bigint UNSIGNED DEFAULT NULL,
|
|
`wasted_at` datetime DEFAULT NULL,
|
|
`status` enum('pending','approved','rejected') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `frontend_contacts`
|
|
--
|
|
|
|
CREATE TABLE `frontend_contacts` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`message` text COLLATE utf8mb4_unicode_ci,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `funds`
|
|
--
|
|
|
|
CREATE TABLE `funds` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`type` enum('asset','liability','equity','income','expense') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'asset',
|
|
`code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`opening_balance` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`current_balance` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `funds`
|
|
--
|
|
|
|
INSERT INTO `funds` (`id`, `restaurant_id`, `name`, `type`, `code`, `opening_balance`, `current_balance`, `is_default`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Cash', 'asset', 'FD-001', '0.00', '1000.00', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 'Bank', 'asset', 'FD-002', '0.00', '2000.00', 0, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 'Wallet', 'asset', 'FD-003', '0.00', '0.00', 0, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `fund_transfers`
|
|
--
|
|
|
|
CREATE TABLE `fund_transfers` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`from_fund_id` bigint UNSIGNED NOT NULL,
|
|
`to_fund_id` bigint UNSIGNED NOT NULL,
|
|
`amount` decimal(15,2) NOT NULL,
|
|
`note` text COLLATE utf8mb4_unicode_ci,
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`transfer_date` date NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `galleries`
|
|
--
|
|
|
|
CREATE TABLE `galleries` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `hotels`
|
|
--
|
|
|
|
CREATE TABLE `hotels` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`latitude` decimal(10,7) DEFAULT NULL,
|
|
`longitude` decimal(10,7) DEFAULT NULL,
|
|
`check_in_time` time NOT NULL DEFAULT '14:00:00' COMMENT 'Standard hotel check-in time',
|
|
`check_out_time` time NOT NULL DEFAULT '12:00:00' COMMENT 'Standard hotel check-out time',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `hotels`
|
|
--
|
|
|
|
INSERT INTO `hotels` (`id`, `restaurant_id`, `name`, `location`, `email`, `phone`, `description`, `latitude`, `longitude`, `check_in_time`, `check_out_time`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Sunrise Hotel', 'Dhaka, Bangladesh', 'info@sunrisehotel.com', '+880123456789', 'A luxurious hotel with stunning sunrise views.', '23.8103000', '90.4125000', '14:00:00', '12:00:00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 'Moonlight Inn', 'Chittagong, Bangladesh', 'contact@moonlightinn.com', '+880987654321', 'Comfortable stays under the moonlight.', '22.3569000', '91.7832000', '14:00:00', '12:00:00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 'Seaside Resort', 'Cox\'s Bazar, Bangladesh', 'info@seasideresort.com', '+880192837465', 'Relax by the beach with scenic views.', '21.4272000', '92.0058000', '14:00:00', '12:00:00', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `ingredients`
|
|
--
|
|
|
|
CREATE TABLE `ingredients` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`unit_id` bigint UNSIGNED NOT NULL,
|
|
`unit_sale_id` bigint UNSIGNED DEFAULT NULL,
|
|
`unit_purchase_id` bigint UNSIGNED DEFAULT NULL,
|
|
`stock_quantity` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`cost_per_unit` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`low_stock_alert` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`supplier_id` bigint UNSIGNED DEFAULT NULL COMMENT 'Link to main supplier',
|
|
`last_purchase_price` decimal(10,2) DEFAULT NULL,
|
|
`last_purchase_date` date DEFAULT NULL,
|
|
`conversion_factor` decimal(10,2) NOT NULL DEFAULT '1.00' COMMENT 'For unit conversions if needed',
|
|
`reserved_quantity` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Quantity reserved for pending orders/recipes',
|
|
`wastage_quantity` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Total wastage recorded',
|
|
`category` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'e.g. Vegetable, Meat, Dairy, Beverage',
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `ingredients`
|
|
--
|
|
|
|
INSERT INTO `ingredients` (`id`, `restaurant_id`, `name`, `unit_id`, `unit_sale_id`, `unit_purchase_id`, `stock_quantity`, `cost_per_unit`, `low_stock_alert`, `image`, `supplier_id`, `last_purchase_price`, `last_purchase_date`, `conversion_factor`, `reserved_quantity`, `wastage_quantity`, `category`, `notes`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'In', 2, NULL, NULL, '69.51', '83.11', '5.28', NULL, 24, NULL, '2020-04-24', '1.85', '19.88', '1.08', 'Others', 'Velit pariatur labore vero qui iure molestiae voluptatem sit non.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 'Reiciendis', 4, NULL, NULL, '132.31', '313.04', '7.15', NULL, 40, '412.82', NULL, '0.93', '0.73', '8.53', 'Spices', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 'Possimus', 3, NULL, NULL, '428.16', '78.05', '7.21', NULL, 36, '221.41', NULL, '1.21', '8.99', '2.98', 'Grains', 'Quae voluptas accusantium facilis nam voluptas ut quam nesciunt et.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 'Et', 1, NULL, NULL, '300.12', '267.04', '7.83', NULL, 36, '201.90', NULL, '1.97', '1.07', '6.51', 'Fruits', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 'Recusandae', 2, NULL, NULL, '358.73', '351.81', '1.42', NULL, 2, '143.67', NULL, '0.67', '18.02', '6.43', 'Vegetable', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 'Excepturi', 1, NULL, NULL, '101.63', '139.35', '6.09', NULL, 39, '288.20', '1999-04-15', '0.56', '1.89', '8.84', 'Fruits', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 'Voluptates', 3, NULL, NULL, '338.88', '298.41', '3.18', NULL, 47, NULL, '2019-09-28', '0.75', '15.36', '7.58', 'Meat', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 'Harum', 2, NULL, NULL, '249.19', '155.37', '5.50', NULL, 38, '267.85', '1985-11-24', '1.25', '4.53', '2.00', 'Fruits', 'Perspiciatis odit quis quisquam voluptatem aliquam aut.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 'Suscipit', 1, NULL, NULL, '361.46', '288.14', '1.64', NULL, 17, '314.42', '2025-06-10', '1.31', '10.09', '5.01', 'Bakery', 'Cumque dolorem dolorem sint harum sunt facilis error.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 'Sint', 1, NULL, NULL, '426.72', '104.48', '2.63', NULL, 21, '444.90', NULL, '1.71', '8.27', '1.04', 'Others', 'Quia et qui expedita autem doloremque veritatis quidem blanditiis cumque voluptatem id consequatur eveniet.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 'Hic', 4, NULL, NULL, '374.83', '45.97', '6.48', NULL, 37, '135.84', NULL, '1.40', '4.91', '3.78', 'Fruits', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 'Facere', 2, NULL, NULL, '440.74', '436.84', '6.65', NULL, 1, '298.99', NULL, '1.13', '2.13', '9.00', 'Seafood', 'Sequi dicta odit dignissimos in enim explicabo.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 'Explicabo', 5, NULL, NULL, '315.33', '143.00', '5.73', NULL, 49, NULL, NULL, '1.64', '5.57', '6.96', 'Vegetable', 'Dolor ex saepe molestiae impedit ut iusto repellat vel vero omnis rem qui.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 1, 'Sunt', 3, NULL, NULL, '244.09', '374.38', '9.94', NULL, 34, NULL, NULL, '1.05', '5.14', '2.68', 'Meat', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 1, 'Voluptatem', 5, NULL, NULL, '453.05', '77.56', '7.91', NULL, 42, NULL, '2020-02-12', '0.58', '10.82', '3.63', 'Fruits', 'Autem ipsum omnis ut maiores aut possimus iusto animi exercitationem voluptates debitis ut.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 1, 'Et', 3, NULL, NULL, '405.91', '41.89', '5.42', NULL, 36, NULL, NULL, '1.39', '8.49', '8.69', 'Vegetable', 'Unde incidunt accusamus dolor labore similique enim repellat architecto.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 1, 'Eius', 4, NULL, NULL, '408.84', '274.23', '4.31', NULL, 11, '388.59', NULL, '0.83', '9.39', '0.48', 'Seafood', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 1, 'Delectus', 1, NULL, NULL, '240.57', '60.20', '1.37', NULL, 21, '74.26', NULL, '1.73', '10.67', '0.48', 'Beverage', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(19, 1, 'Qui', 3, NULL, NULL, '366.38', '187.81', '8.82', NULL, 3, NULL, '1984-10-04', '1.44', '5.24', '0.61', 'Bakery', 'Omnis corporis error corporis necessitatibus repellat neque corporis id doloremque.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(20, 1, 'Explicabo', 2, NULL, NULL, '366.40', '280.71', '7.31', NULL, 24, NULL, '2000-06-01', '1.47', '17.08', '8.77', 'Meat', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(21, 1, 'Et', 4, NULL, NULL, '422.13', '460.77', '9.35', NULL, 27, NULL, '2007-10-27', '1.04', '2.13', '6.72', 'Others', 'Corrupti dolor enim tenetur amet aut porro eaque iure.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(22, 1, 'Eligendi', 5, NULL, NULL, '10.19', '70.72', '2.38', NULL, 8, NULL, '1977-08-08', '0.91', '18.98', '1.23', 'Grains', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(23, 1, 'Blanditiis', 4, NULL, NULL, '100.53', '208.50', '5.64', NULL, 50, '158.20', '1983-08-28', '0.81', '9.05', '7.75', 'Meat', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(24, 1, 'Voluptas', 1, NULL, NULL, '15.61', '275.80', '8.20', NULL, 42, '142.69', '1988-03-23', '1.81', '11.53', '6.01', 'Others', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(25, 1, 'Aut', 3, NULL, NULL, '182.95', '425.93', '8.78', NULL, 26, '17.10', NULL, '0.55', '11.93', '7.33', 'Others', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(26, 1, 'Ipsam', 4, NULL, NULL, '323.13', '474.41', '4.29', NULL, 41, '243.18', '1986-01-23', '1.44', '18.16', '5.69', 'Fruits', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(27, 1, 'Laudantium', 5, NULL, NULL, '364.01', '254.04', '5.41', NULL, 19, '276.66', '2015-06-15', '0.52', '16.44', '2.39', 'Beverage', 'Totam aut et quasi accusamus at consequatur maiores officiis rerum voluptatem consequatur.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(28, 1, 'Eaque', 5, NULL, NULL, '81.89', '290.56', '6.37', NULL, 45, '205.15', '1992-02-02', '1.74', '3.00', '1.00', 'Others', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(29, 1, 'Magni', 4, NULL, NULL, '120.25', '433.56', '2.19', NULL, 33, NULL, NULL, '1.44', '3.63', '2.42', 'Dairy', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(30, 1, 'At', 1, NULL, NULL, '285.22', '111.02', '5.80', NULL, 31, '361.12', '2010-11-07', '1.57', '0.31', '4.47', 'Bakery', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(31, 1, 'Delectus', 3, NULL, NULL, '324.42', '221.22', '4.23', NULL, 29, NULL, NULL, '0.85', '10.02', '7.55', 'Bakery', 'Praesentium distinctio dolorum tempore consectetur omnis sequi expedita assumenda voluptas dolor.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(32, 1, 'Dolore', 3, NULL, NULL, '377.77', '406.41', '1.85', NULL, 25, '110.22', '1975-10-12', '1.72', '15.59', '0.20', 'Vegetable', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(33, 1, 'Error', 2, NULL, NULL, '119.18', '275.07', '4.21', NULL, 9, '92.29', '2009-12-26', '1.32', '6.90', '4.10', 'Fruits', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(34, 1, 'Sequi', 2, NULL, NULL, '354.67', '62.04', '1.09', NULL, 34, '247.47', '1978-06-16', '1.55', '18.78', '4.57', 'Others', 'Cupiditate tempore perspiciatis soluta ut quo inventore.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(35, 1, 'Impedit', 3, NULL, NULL, '53.88', '264.59', '6.19', NULL, 26, NULL, '1970-06-19', '0.77', '8.67', '1.46', 'Seafood', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(36, 1, 'Laudantium', 2, NULL, NULL, '123.53', '403.58', '2.24', NULL, 43, NULL, '1999-03-17', '1.43', '18.00', '2.52', 'Others', 'Illo esse mollitia enim ad fugiat quo at enim qui.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(37, 1, 'Ea', 5, NULL, NULL, '419.94', '246.92', '6.27', NULL, 17, NULL, '1994-02-07', '1.79', '16.23', '2.42', 'Spices', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(38, 1, 'Esse', 5, NULL, NULL, '340.91', '399.67', '9.09', NULL, 30, '269.08', '2003-06-28', '1.92', '11.87', '4.21', 'Seafood', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(39, 1, 'Ipsa', 3, NULL, NULL, '261.05', '187.07', '7.95', NULL, 23, NULL, '2012-05-16', '1.63', '18.15', '0.40', 'Grains', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(40, 1, 'Hic', 2, NULL, NULL, '462.19', '342.61', '6.00', NULL, 26, NULL, NULL, '1.97', '4.01', '9.98', 'Meat', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(41, 1, 'Sint', 5, NULL, NULL, '82.63', '273.90', '9.32', NULL, 1, NULL, '1990-08-13', '0.76', '19.60', '8.28', 'Vegetable', 'Quam laborum deserunt et quidem expedita blanditiis totam qui porro minus autem eum qui.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(42, 1, 'Voluptatem', 1, NULL, NULL, '333.98', '70.58', '2.34', NULL, 41, NULL, NULL, '1.96', '18.33', '6.21', 'Vegetable', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(43, 1, 'Illo', 1, NULL, NULL, '222.77', '25.34', '5.63', NULL, 28, '265.46', NULL, '0.70', '10.98', '9.16', 'Meat', 'Fugit est non natus quo optio eaque vel omnis omnis.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(44, 1, 'Soluta', 1, NULL, NULL, '295.09', '128.14', '5.77', NULL, 7, NULL, '2020-05-05', '0.96', '15.87', '3.87', 'Meat', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(45, 1, 'Natus', 1, NULL, NULL, '379.02', '241.31', '8.03', NULL, 18, NULL, NULL, '1.24', '6.74', '5.80', 'Fruits', 'Asperiores eius veniam provident at soluta dolore veritatis.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(46, 1, 'Voluptas', 2, NULL, NULL, '128.91', '146.72', '6.25', NULL, 34, '366.61', '1998-02-11', '0.66', '17.84', '2.71', 'Meat', 'Dolorum molestias est et iure recusandae aut impedit nam.', 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(47, 1, 'Dolor', 4, NULL, NULL, '326.89', '292.39', '3.83', NULL, 9, '352.91', NULL, '0.80', '19.81', '3.53', 'Bakery', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(48, 1, 'Et', 5, NULL, NULL, '419.53', '368.95', '9.77', NULL, 39, '450.29', '1982-05-12', '1.80', '14.45', '2.97', 'Grains', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(49, 1, 'Est', 5, NULL, NULL, '364.51', '427.68', '5.59', NULL, 32, NULL, '2013-09-10', '0.62', '15.31', '3.37', 'Dairy', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(50, 1, 'Hic', 2, NULL, NULL, '429.85', '185.69', '6.38', NULL, 6, NULL, NULL, '1.18', '1.97', '0.71', 'Vegetable', NULL, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `ingredient_damages`
|
|
--
|
|
|
|
CREATE TABLE `ingredient_damages` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`ingredient_id` bigint UNSIGNED NOT NULL,
|
|
`batch_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`quantity` decimal(10,2) NOT NULL,
|
|
`unit_cost` decimal(12,2) DEFAULT NULL COMMENT 'Cost per unit at time of damage',
|
|
`total_cost` decimal(12,2) DEFAULT NULL COMMENT 'quantity * unit_cost',
|
|
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Reason for damage: spoilage, breakage, etc.',
|
|
`damage_date` date NOT NULL DEFAULT '2026-01-26',
|
|
`reported_by` bigint UNSIGNED DEFAULT NULL COMMENT 'User ID who reported the damage',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `ingredient_damages`
|
|
--
|
|
|
|
INSERT INTO `ingredient_damages` (`id`, `restaurant_id`, `ingredient_id`, `batch_no`, `quantity`, `unit_cost`, `total_cost`, `reason`, `damage_date`, `reported_by`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 'BATCH-700', '13.00', '469.00', '5317.00', 'Spoilage', '2026-01-01', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 2, 'BATCH-372', '8.00', '129.00', '640.00', 'Spoilage', '2026-01-17', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 3, 'BATCH-899', '4.00', '203.00', '168.00', 'Breakage', '2026-01-13', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 4, 'BATCH-484', '14.00', '221.00', '1468.00', 'Spoilage', '2026-01-23', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 5, 'BATCH-866', '10.00', '236.00', '1666.00', 'Spoilage', '2026-01-03', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `interviews`
|
|
--
|
|
|
|
CREATE TABLE `interviews` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`candidate_id` bigint UNSIGNED NOT NULL,
|
|
`department_id` bigint UNSIGNED DEFAULT NULL,
|
|
`interview_date` datetime DEFAULT NULL,
|
|
`interviewer_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`feedback` text COLLATE utf8mb4_unicode_ci,
|
|
`status` enum('pending','shortlisted','rejected','hired') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`rating` tinyint DEFAULT NULL COMMENT 'Rating out of 5',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `jobs`
|
|
--
|
|
|
|
CREATE TABLE `jobs` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`attempts` tinyint UNSIGNED NOT NULL,
|
|
`reserved_at` int UNSIGNED DEFAULT NULL,
|
|
`available_at` int UNSIGNED NOT NULL,
|
|
`created_at` int UNSIGNED NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `job_batches`
|
|
--
|
|
|
|
CREATE TABLE `job_batches` (
|
|
`id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`total_jobs` int NOT NULL,
|
|
`pending_jobs` int NOT NULL,
|
|
`failed_jobs` int NOT NULL,
|
|
`failed_job_ids` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`options` mediumtext COLLATE utf8mb4_unicode_ci,
|
|
`cancelled_at` int DEFAULT NULL,
|
|
`created_at` int NOT NULL,
|
|
`finished_at` int DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `kitchens`
|
|
--
|
|
|
|
CREATE TABLE `kitchens` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`serial` int NOT NULL DEFAULT '0',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `kitchen_assigns`
|
|
--
|
|
|
|
CREATE TABLE `kitchen_assigns` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`kitchen_id` bigint UNSIGNED NOT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `languages`
|
|
--
|
|
|
|
CREATE TABLE `languages` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`flag` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`file_path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `leave_applications`
|
|
--
|
|
|
|
CREATE TABLE `leave_applications` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`leave_type_id` bigint UNSIGNED NOT NULL,
|
|
`start_date` date NOT NULL,
|
|
`end_date` date NOT NULL,
|
|
`reason` text COLLATE utf8mb4_unicode_ci,
|
|
`admin_note` text COLLATE utf8mb4_unicode_ci COMMENT 'Optional note by admin/manager',
|
|
`status` enum('pending','approved','rejected') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`approved_by` bigint UNSIGNED DEFAULT NULL,
|
|
`leave_duration_type` enum('full_day','half_day','custom') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'full_day',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `leave_types`
|
|
--
|
|
|
|
CREATE TABLE `leave_types` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`max_days` int NOT NULL DEFAULT '0' COMMENT 'Maximum days allowed per year',
|
|
`carry_forward` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Whether unused days can carry over to next year',
|
|
`is_paid` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'Determines if the leave is paid',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`description` text COLLATE utf8mb4_unicode_ci COMMENT 'Optional leave policy or notes',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `leave_types`
|
|
--
|
|
|
|
INSERT INTO `leave_types` (`id`, `restaurant_id`, `name`, `max_days`, `carry_forward`, `is_paid`, `status`, `description`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Casual Leave', 0, 0, 1, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'Sick Leave', 0, 0, 1, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'Maternity Leave', 0, 0, 1, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 'Paternity Leave', 0, 0, 1, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, 'Earned Leave', 0, 0, 1, 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `loans`
|
|
--
|
|
|
|
CREATE TABLE `loans` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`amount` decimal(15,2) NOT NULL COMMENT 'Total loan amount',
|
|
`paid_amount` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`remaining_amount` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Remaining amount',
|
|
`schedule_type` enum('daily','weekly','monthly','yearly') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'monthly',
|
|
`installments` int NOT NULL DEFAULT '1' COMMENT 'Total number of installments',
|
|
`fine_rate` decimal(8,4) NOT NULL DEFAULT '0.0000' COMMENT 'per day percentage e.g. 0.01 = 1%',
|
|
`status` enum('active','closed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active' COMMENT 'Loan status',
|
|
`loan_type` enum('personal','business','emergency','other') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'personal' COMMENT 'Type of loan',
|
|
`remarks` text COLLATE utf8mb4_unicode_ci COMMENT 'Notes about the loan',
|
|
`start_date` date DEFAULT NULL,
|
|
`end_date` date DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `loan_installments`
|
|
--
|
|
|
|
CREATE TABLE `loan_installments` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`loan_id` bigint UNSIGNED NOT NULL,
|
|
`amount` decimal(15,2) NOT NULL COMMENT 'Installment amount',
|
|
`due_date` date NOT NULL COMMENT 'Scheduled due date',
|
|
`paid_date` date DEFAULT NULL COMMENT 'Actual paid date',
|
|
`is_paid` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Payment status',
|
|
`is_overdue` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Marks overdue installment',
|
|
`fine_amount` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Fine for overdue payment',
|
|
`total_due` decimal(15,2) GENERATED ALWAYS AS ((`amount` + `fine_amount`)) VIRTUAL COMMENT 'Total due including fine',
|
|
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
|
|
`remarks` text COLLATE utf8mb4_unicode_ci COMMENT 'Optional notes',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `loyalty_points`
|
|
--
|
|
|
|
CREATE TABLE `loyalty_points` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`order_id` bigint UNSIGNED DEFAULT NULL,
|
|
`food_item_id` bigint UNSIGNED DEFAULT NULL,
|
|
`points` int NOT NULL DEFAULT '0',
|
|
`type` enum('earned','redeemed','manual') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'earned',
|
|
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `loyalty_point_settings`
|
|
--
|
|
|
|
CREATE TABLE `loyalty_point_settings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`from_amount` decimal(12,2) DEFAULT NULL,
|
|
`to_amount` decimal(12,2) DEFAULT NULL,
|
|
`amount` decimal(12,2) DEFAULT NULL,
|
|
`earn_point` int NOT NULL DEFAULT '0',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `loyalty_redemptions`
|
|
--
|
|
|
|
CREATE TABLE `loyalty_redemptions` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`food_item_id` bigint UNSIGNED DEFAULT NULL,
|
|
`points_used` int NOT NULL DEFAULT '0',
|
|
`price` decimal(16,2) DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `menu_categories`
|
|
--
|
|
|
|
CREATE TABLE `menu_categories` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`priority` int NOT NULL DEFAULT '0' COMMENT 'Display order',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `menu_categories`
|
|
--
|
|
|
|
INSERT INTO `menu_categories` (`id`, `restaurant_id`, `name`, `slug`, `icon`, `description`, `priority`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Coffee', 'coffee', 'coffee.png', 'Hot and cold coffee beverages made from premium beans.', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 'Fast Food', 'fast-food', 'burger.png', 'Quick bites and delicious fast-food meals.', 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 'Pizza', 'pizza', 'pizza.png', 'Freshly baked pizzas with various toppings.', 3, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 'Desi Menu', 'desi-menu', 'desi.png', 'Authentic local dishes with a traditional touch.', 4, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 'Desserts', 'desserts', 'dessert.png', 'Sweet treats to complete your meal.', 5, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `menu_sections`
|
|
--
|
|
|
|
CREATE TABLE `menu_sections` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`menu_category_id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`priority` int NOT NULL DEFAULT '0' COMMENT 'Display order',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `menu_sections`
|
|
--
|
|
|
|
INSERT INTO `menu_sections` (`id`, `restaurant_id`, `menu_category_id`, `name`, `slug`, `description`, `priority`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 'Hot Coffee', 'hot-coffee', 'Classic and premium hot coffee menu.', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 'Cold Coffee', 'cold-coffee', 'Iced and refreshing cold coffee menu.', 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 2, 'Burgers', 'burgers', 'Delicious burgers made fresh to order.', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 2, 'Wraps', 'wraps', 'Tasty wraps filled with fresh ingredients.', 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 3, 'Regular Pizzas', 'regular-pizzas', 'Classic pizzas with standard toppings.', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 3, 'Special Pizzas', 'special-pizzas', 'Signature pizzas with unique flavors.', 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 4, 'Rice Items', 'rice-items', 'Traditional rice dishes served with curry.', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 4, 'Curry Items', 'curry-items', 'Spicy and flavorful local curries.', 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 5, 'Cakes', 'cakes', 'Freshly baked cakes for every occasion.', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 5, 'Ice Creams', 'ice-creams', 'Cool and creamy ice cream delights.', 2, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `menu_types`
|
|
--
|
|
|
|
CREATE TABLE `menu_types` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'e.g., Lunch, Dinner, Breakfast, Happy Hour',
|
|
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Unique slug for URLs and API',
|
|
`icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Optional icon or image for menu type',
|
|
`description` text COLLATE utf8mb4_unicode_ci COMMENT 'Optional description of this menu type',
|
|
`display_order` int NOT NULL DEFAULT '0' COMMENT 'Ordering in menu display',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Default menu type for new items',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `menu_types`
|
|
--
|
|
|
|
INSERT INTO `menu_types` (`id`, `restaurant_id`, `name`, `slug`, `icon`, `description`, `display_order`, `status`, `is_default`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Party', NULL, 'uploads/menu/party.jpg', NULL, 0, 1, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 'Coffee', NULL, 'uploads/menu/coffee.jpg', NULL, 0, 1, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 'Dinner', NULL, 'uploads/menu/dinner.jpg', NULL, 0, 1, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 'Launch', NULL, 'uploads/menu/launch.jpg', NULL, 0, 1, 0, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `migrations`
|
|
--
|
|
|
|
CREATE TABLE `migrations` (
|
|
`id` int UNSIGNED NOT NULL,
|
|
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`batch` int NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `migrations`
|
|
--
|
|
|
|
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
|
|
(1, '0001_01_01_000000_create_users_table', 1),
|
|
(2, '0001_01_01_000001_create_cache_table', 1),
|
|
(3, '0001_01_01_000002_create_jobs_table', 1),
|
|
(4, '0001_01_01_000003_create_zones_table', 1),
|
|
(5, '0001_01_01_000004_create_restaurants_table', 1),
|
|
(6, '2024_11_01_174246_create_user_logs_table', 1),
|
|
(7, '2025_01_11_051030_create_settings_table', 1),
|
|
(8, '2025_01_11_051038_create_faq_questions_table', 1),
|
|
(9, '2025_01_11_051040_create_policies_table', 1),
|
|
(10, '2025_01_12_051009_create_academic_images_table', 1),
|
|
(11, '2025_01_12_093405_create_about_us_table', 1),
|
|
(12, '2025_01_19_224905_create_packages_table', 1),
|
|
(13, '2025_01_19_225151_create_subscriptions_table', 1),
|
|
(14, '2025_01_19_225307_create_subscription_items_table', 1),
|
|
(15, '2025_02_11_041343_create_our_histories_table', 1),
|
|
(16, '2025_02_13_044120_create_banners_table', 1),
|
|
(17, '2025_02_16_053917_create_permission_tables', 1),
|
|
(18, '2025_02_23_101529_create_testimonials_table', 1),
|
|
(19, '2025_03_02_090616_create_contacts_table', 1),
|
|
(20, '2025_03_03_050829_create_pages_table', 1),
|
|
(21, '2025_03_16_035921_create_onboardings_table', 1),
|
|
(22, '2025_03_18_150112_create_otp_verifications_table', 1),
|
|
(23, '2025_03_21_195239_create_why_choose_us_table', 1),
|
|
(24, '2025_03_21_213247_create_ready_to_join_us_table', 1),
|
|
(25, '2025_03_23_034819_create_payment_requests_table', 1),
|
|
(26, '2025_03_25_160046_create_mobile_app_sections_table', 1),
|
|
(27, '2025_04_10_010718_create_feedback_table', 1),
|
|
(28, '2025_04_10_010805_create_s_a_a_s_faqs_table', 1),
|
|
(29, '2025_04_10_033705_create_subscription_upgrade_requests_table', 1),
|
|
(30, '2025_04_29_055845_create_s_a_a_s_settings_table', 1),
|
|
(31, '2025_04_30_040523_create_s_a_a_s_subscriptions_table', 1),
|
|
(32, '2025_05_13_042246_create_galleries_table', 1),
|
|
(33, '2025_05_24_090100_create_zoom_meetings_table', 1),
|
|
(34, '2025_06_19_085111_create_oauth_auth_codes_table', 1),
|
|
(35, '2025_06_19_085112_create_oauth_access_tokens_table', 1),
|
|
(36, '2025_06_19_085113_create_oauth_refresh_tokens_table', 1),
|
|
(37, '2025_06_19_085114_create_oauth_clients_table', 1),
|
|
(38, '2025_06_19_085115_create_oauth_device_codes_table', 1),
|
|
(39, '2025_06_19_085116_create_oauth_personal_access_clients_table', 1),
|
|
(40, '2025_06_25_070227_create_languages_table', 1),
|
|
(41, '2025_07_18_165100_create_food_categories_table', 1),
|
|
(42, '2025_07_18_165101_create_menu_types_table', 1),
|
|
(43, '2025_07_18_165102_create_addons_table', 1),
|
|
(44, '2025_07_18_165108_create_menu_categories_table', 1),
|
|
(45, '2025_07_18_165109_create_menu_sections_table', 1),
|
|
(46, '2025_07_18_165110_create_food_items_table', 1),
|
|
(47, '2025_07_18_165116_create_addon_food_table', 1),
|
|
(48, '2025_07_18_165117_create_units_table', 1),
|
|
(49, '2025_07_18_165118_create_food_variants_table', 1),
|
|
(50, '2025_07_18_165123_create_food_availabilities_table', 1),
|
|
(51, '2025_07_18_165124_create_food_availability_times_table', 1),
|
|
(52, '2025_07_25_044738_create_tables_table', 1),
|
|
(53, '2025_07_25_044740_create_payment_methods_table', 1),
|
|
(54, '2025_07_25_044742_create_customers_table', 1),
|
|
(55, '2025_07_25_044758_create_orders_table', 1),
|
|
(56, '2025_07_25_044759_create_order_items_table', 1),
|
|
(57, '2025_10_01_091211_create_themes_table', 1),
|
|
(58, '2025_10_07_163514_create_suppliers_table', 1),
|
|
(59, '2025_10_07_163515_create_ingredients_table', 1),
|
|
(60, '2025_10_07_163516_create_food_variant_ingredients_table', 1),
|
|
(61, '2025_10_07_163517_create_purchases_table', 1),
|
|
(62, '2025_10_07_163518_create_purchase_items_table', 1),
|
|
(63, '2025_10_07_163526_create_stocks_table', 1),
|
|
(64, '2025_10_07_163528_create_ingredient_damages_table', 1),
|
|
(65, '2025_10_07_163532_create_food_wastes_table', 1),
|
|
(66, '2025_10_07_163538_create_purchase_returns_table', 1),
|
|
(67, '2025_10_10_144446_create_reservations_table', 1),
|
|
(68, '2025_10_10_144447_create_reservation_unavailables_table', 1),
|
|
(69, '2025_10_13_040017_create_telescope_entries_table', 1),
|
|
(70, '2025_11_06_124335_create_delivery_charges_table', 1),
|
|
(71, '2025_11_06_124336_create_customer_addresses_table', 1),
|
|
(72, '2025_11_06_124336_create_order_trackings_table', 1),
|
|
(73, '2025_11_06_124652_create_restaurant_schedules_table', 1),
|
|
(74, '2025_11_06_124653_create_restaurant_schedule_times_table', 1),
|
|
(75, '2025_11_06_141828_create_departments_table', 1),
|
|
(76, '2025_11_06_141830_create_designations_table', 1),
|
|
(77, '2025_11_06_141838_create_salary_types_table', 1),
|
|
(78, '2025_11_06_141842_create_employee_salaries_table', 1),
|
|
(79, '2025_11_06_141844_create_salary_setups_table', 1),
|
|
(80, '2025_11_06_141846_create_salary_generates_table', 1),
|
|
(81, '2025_11_06_141848_create_attendances_table', 1),
|
|
(82, '2025_11_06_141850_create_attendance_logs_table', 1),
|
|
(83, '2025_11_06_141856_create_leave_types_table', 1),
|
|
(84, '2025_11_06_141860_create_leave_applications_table', 1),
|
|
(85, '2025_11_06_141868_create_weekly_holidays_table', 1),
|
|
(86, '2025_11_06_141870_create_loans_table', 1),
|
|
(87, '2025_11_06_141872_create_loan_installments_table', 1),
|
|
(88, '2025_11_06_141888_create_awards_table', 1),
|
|
(89, '2025_11_06_141902_create_recruitments_table', 1),
|
|
(90, '2025_11_06_141906_create_candidates_table', 1),
|
|
(91, '2025_11_06_153722_create_interviews_table', 1),
|
|
(92, '2025_11_18_060244_create_shifts_table', 1),
|
|
(93, '2025_11_18_062046_create_employee_shift_assignments_table', 1),
|
|
(94, '2025_11_19_092406_create_accounts_table', 1),
|
|
(95, '2025_11_19_092406_create_funds_table', 1),
|
|
(96, '2025_11_19_092407_create_transactions_table', 1),
|
|
(97, '2025_11_19_092408_create_transaction_details_table', 1),
|
|
(98, '2025_11_19_092509_create_expense_categories_table', 1),
|
|
(99, '2025_11_19_092509_create_expenses_table', 1),
|
|
(100, '2025_11_19_092510_create_deposit_categories_table', 1),
|
|
(101, '2025_11_19_092510_create_deposits_table', 1),
|
|
(102, '2025_11_19_092511_create_fund_transfers_table', 1),
|
|
(103, '2025_11_19_092511_create_tips_table', 1),
|
|
(104, '2025_11_19_092512_create_tip_distributions_table', 1),
|
|
(105, '2025_11_20_083943_create_loyalty_points_table', 1),
|
|
(106, '2025_11_20_084349_create_loyalty_redemptions_table', 1),
|
|
(107, '2025_11_26_004358_create_reservation_settings_table', 1),
|
|
(108, '2025_11_26_005955_create_restaurant_image_settings_table', 1),
|
|
(109, '2025_11_26_005956_create_restaurant_image_s_a_a_s_settings_table', 1),
|
|
(110, '2025_11_26_012548_create_c_m_s_sections_table', 1),
|
|
(111, '2025_11_26_102025_create_loyalty_point_settings_table', 1),
|
|
(112, '2025_11_26_102057_create_tax_settings_table', 1),
|
|
(113, '2025_11_26_104953_create_q_r_menu_settings_table', 1),
|
|
(114, '2025_11_26_142921_create_kitchens_table', 1),
|
|
(115, '2025_11_26_142922_create_kitchen_assigns_table', 1),
|
|
(116, '2025_11_27_102611_create_support_ticket_f_a_q_s_table', 1),
|
|
(117, '2025_11_27_102711_create_support_ticket_ip_infos_table', 1),
|
|
(118, '2025_11_27_102811_create_support_ticket_categories_table', 1),
|
|
(119, '2025_11_27_102812_create_support_tickets_table', 1),
|
|
(120, '2025_11_27_102813_create_support_ticket_conversations_table', 1),
|
|
(121, '2025_11_27_102813_create_support_ticket_last_conversations_table', 1),
|
|
(122, '2025_11_27_102814_create_support_ticket_licenses_table', 1),
|
|
(123, '2025_12_06_054815_create_coupons_table', 1),
|
|
(124, '2025_12_06_054818_create_coupon_usages_table', 1),
|
|
(125, '2025_12_06_064012_create_hotels_table', 1),
|
|
(126, '2025_12_06_064014_create_floors_table', 1),
|
|
(127, '2025_12_06_065016_create_room_types_table', 1),
|
|
(128, '2025_12_06_065018_create_rooms_table', 1),
|
|
(129, '2025_12_06_065022_create_room_prices_table', 1),
|
|
(130, '2025_12_06_073642_create_bookings_table', 1),
|
|
(131, '2025_12_06_073644_create_booking_items_table', 1),
|
|
(132, '2025_12_06_073646_create_room_availabilities_table', 1),
|
|
(133, '2025_12_06_073648_create_room_blocks_table', 1),
|
|
(134, '2025_12_20_032809_create_reviews_table', 1),
|
|
(135, '2025_12_20_032820_create_review_images_table', 1),
|
|
(136, '2025_12_25_073652_create_restaurant_delivery_zones_table', 1),
|
|
(137, '2025_12_25_073654_create_restaurant_zone_pricing_rules_table', 1),
|
|
(138, '2025_12_25_073656_create_restaurant_riders_table', 1),
|
|
(139, '2025_12_25_073658_create_restaurant_deliveries_table', 1),
|
|
(140, '2025_12_25_073660_create_restaurant_delivery_ratings_table', 1),
|
|
(141, '2025_12_25_073662_create_restaurant_delivery_tips_table', 1),
|
|
(142, '2025_12_25_073664_create_restaurant_rider_earnings_table', 1),
|
|
(143, '2025_12_25_073666_create_restaurant_rider_payouts_table', 1),
|
|
(144, '2025_12_25_073668_create_restaurant_rider_bonuses_table', 1),
|
|
(145, '2025_12_25_073670_create_restaurant_delivery_assignments_table', 1),
|
|
(146, '2025_12_25_073672_create_restaurant_rider_location_logs_table', 1),
|
|
(147, '2025_12_25_073674_create_restaurant_delivery_status_history_table', 1),
|
|
(148, '2026_01_04_052116_create_food_reviews_table', 1),
|
|
(149, '2026_01_04_052444_create_food_review_replies_table', 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `mobile_app_sections`
|
|
--
|
|
|
|
CREATE TABLE `mobile_app_sections` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`heading` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`feature_one` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`feature_two` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`feature_three` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`play_store_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`app_store_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `mobile_app_sections`
|
|
--
|
|
|
|
INSERT INTO `mobile_app_sections` (`id`, `restaurant_id`, `title`, `heading`, `description`, `image`, `feature_one`, `feature_two`, `feature_three`, `play_store_link`, `app_store_link`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Stay Connected Anywhere, Anytime!', 'Mobile App', 'With our official Fudevs School Mobile App, parents and customers can:', 'mobile_app.png', 'Check schedules & notifications', 'Receive instant updates', 'Track customer progress', 'https://play.google.com/store/apps/details?id=com.example.app', 'https://apps.apple.com/us/app/example-app/id123456789', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `model_has_permissions`
|
|
--
|
|
|
|
CREATE TABLE `model_has_permissions` (
|
|
`permission_id` bigint UNSIGNED NOT NULL,
|
|
`model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`model_id` bigint UNSIGNED NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `model_has_roles`
|
|
--
|
|
|
|
CREATE TABLE `model_has_roles` (
|
|
`role_id` bigint UNSIGNED NOT NULL,
|
|
`model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`model_id` bigint UNSIGNED NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `model_has_roles`
|
|
--
|
|
|
|
INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
|
|
(1, 'Modules\\Authentication\\Models\\User', 1),
|
|
(2, 'Modules\\Authentication\\Models\\User', 2),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 2),
|
|
(3, 'Modules\\Authentication\\Models\\User', 3),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 3),
|
|
(3, 'Modules\\Authentication\\Models\\User', 4),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 4),
|
|
(4, 'Modules\\Authentication\\Models\\User', 5),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 5),
|
|
(4, 'Modules\\Authentication\\Models\\User', 6),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 6),
|
|
(5, 'Modules\\Authentication\\Models\\User', 7),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 7),
|
|
(5, 'Modules\\Authentication\\Models\\User', 8),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 8),
|
|
(6, 'Modules\\Authentication\\Models\\User', 9),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 9),
|
|
(6, 'Modules\\Authentication\\Models\\User', 10),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 10),
|
|
(6, 'Modules\\Authentication\\Models\\User', 11),
|
|
(9, 'Modules\\Restaurant\\Models\\Customer', 11),
|
|
(6, 'Modules\\Authentication\\Models\\User', 12),
|
|
(6, 'Modules\\Authentication\\Models\\User', 13),
|
|
(6, 'Modules\\Authentication\\Models\\User', 14),
|
|
(6, 'Modules\\Authentication\\Models\\User', 15),
|
|
(6, 'Modules\\Authentication\\Models\\User', 16),
|
|
(6, 'Modules\\Authentication\\Models\\User', 17),
|
|
(6, 'Modules\\Authentication\\Models\\User', 18),
|
|
(7, 'Modules\\Authentication\\Models\\User', 19),
|
|
(7, 'Modules\\Authentication\\Models\\User', 20),
|
|
(7, 'Modules\\Authentication\\Models\\User', 21),
|
|
(7, 'Modules\\Authentication\\Models\\User', 22),
|
|
(8, 'Modules\\Authentication\\Models\\User', 23),
|
|
(8, 'Modules\\Authentication\\Models\\User', 24);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `oauth_access_tokens`
|
|
--
|
|
|
|
CREATE TABLE `oauth_access_tokens` (
|
|
`id` char(80) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`user_id` bigint UNSIGNED DEFAULT NULL,
|
|
`client_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`scopes` text COLLATE utf8mb4_unicode_ci,
|
|
`revoked` tinyint(1) NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`expires_at` datetime DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `oauth_auth_codes`
|
|
--
|
|
|
|
CREATE TABLE `oauth_auth_codes` (
|
|
`id` char(80) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`client_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`scopes` text COLLATE utf8mb4_unicode_ci,
|
|
`revoked` tinyint(1) NOT NULL,
|
|
`expires_at` datetime DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `oauth_clients`
|
|
--
|
|
|
|
CREATE TABLE `oauth_clients` (
|
|
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`owner_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`owner_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`secret` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`provider` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`redirect_uris` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`grant_types` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`revoked` tinyint(1) NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `oauth_clients`
|
|
--
|
|
|
|
INSERT INTO `oauth_clients` (`id`, `owner_type`, `owner_id`, `name`, `secret`, `provider`, `redirect_uris`, `grant_types`, `revoked`, `created_at`, `updated_at`) VALUES
|
|
('59cf1240-bc8a-4767-8396-46df50edeed3', NULL, NULL, 'User Personal Access Client', '$2y$12$PCA6LKNI0FTg644Oy/TmhuGJp5YW80veU2tcURSishtob4dhDZQhy', 'users', '[]', '[\"personal_access\"]', 0, '2026-01-26 12:11:11', '2026-01-26 12:11:11'),
|
|
('7f31ba07-81a5-45e7-b890-e0708808a52a', NULL, NULL, 'Customer Personal Access Client', '$2y$12$OeHfkRR1bFGgqQxei5ofUOE5WPotFv8xP4Bwc9iUfN8d.Svr63z8C', 'customers', '[]', '[\"personal_access\"]', 0, '2026-01-26 12:11:11', '2026-01-26 12:11:11');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `oauth_device_codes`
|
|
--
|
|
|
|
CREATE TABLE `oauth_device_codes` (
|
|
`id` char(80) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`user_id` bigint UNSIGNED DEFAULT NULL,
|
|
`client_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`user_code` char(8) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`scopes` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`revoked` tinyint(1) NOT NULL,
|
|
`user_approved_at` datetime DEFAULT NULL,
|
|
`last_polled_at` datetime DEFAULT NULL,
|
|
`expires_at` datetime DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `oauth_personal_access_clients`
|
|
--
|
|
|
|
CREATE TABLE `oauth_personal_access_clients` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`client_id` bigint UNSIGNED NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `oauth_refresh_tokens`
|
|
--
|
|
|
|
CREATE TABLE `oauth_refresh_tokens` (
|
|
`id` char(80) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`access_token_id` char(80) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`revoked` tinyint(1) NOT NULL,
|
|
`expires_at` datetime DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `onboardings`
|
|
--
|
|
|
|
CREATE TABLE `onboardings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`restaurant_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`restaurant_phone` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`restaurant_domain` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`restaurant_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`restaurant_address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`restaurant_logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`phone` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`status` enum('pending','in_progress','documents_submitted','approved','rejected','hold') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`approved_by` bigint UNSIGNED DEFAULT NULL,
|
|
`approved_at` timestamp NULL DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `orders`
|
|
--
|
|
|
|
CREATE TABLE `orders` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`table_id` bigint UNSIGNED DEFAULT NULL,
|
|
`waiter_id` bigint UNSIGNED DEFAULT NULL,
|
|
`driver_id` bigint UNSIGNED DEFAULT NULL,
|
|
`customer_id` bigint UNSIGNED DEFAULT NULL,
|
|
`payment_method_id` bigint UNSIGNED DEFAULT NULL,
|
|
`order_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Unique order number for search',
|
|
`reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`order_type` enum('dine_in','takeaway','delivery','drive_thru','curbside') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'dine_in',
|
|
`status` enum('pending','confirmed','preparing','ready','served','out_for_delivery','completed','cancelled','refunded','online','qr_order','today_order') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`subtotal` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT 'Sum of item totals before discount and tax',
|
|
`discount` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT 'Discount applied to order',
|
|
`tax` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT 'Tax applied on subtotal or after discount',
|
|
`service_charge` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`tip_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`grand_total` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT 'Total amount to be paid',
|
|
`payment_status` tinyint(1) NOT NULL DEFAULT '0',
|
|
`payment_reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`paid_at` timestamp NULL DEFAULT NULL,
|
|
`order_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`preparation_time` time DEFAULT NULL COMMENT 'Estimated preparation duration (HH:MM:SS)',
|
|
`ready_at` timestamp NULL DEFAULT NULL COMMENT 'Time when order ready',
|
|
`handed_over_at` timestamp NULL DEFAULT NULL COMMENT 'Time when handed over to customer',
|
|
`delivered_at` timestamp NULL DEFAULT NULL COMMENT 'Time delivered for delivery orders',
|
|
`estimated_ready_time` timestamp NULL DEFAULT NULL,
|
|
`delivery_address` text COLLATE utf8mb4_unicode_ci,
|
|
`order_source` enum('POS','Web','MobileApp','ThirdParty') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'POS',
|
|
`meta` json DEFAULT NULL COMMENT 'Flexible storage for extra info: loyalty, coupon, special instructions',
|
|
`cancelled_at` timestamp NULL DEFAULT NULL,
|
|
`cancel_reason` text COLLATE utf8mb4_unicode_ci,
|
|
`cancelled_by` bigint UNSIGNED DEFAULT NULL,
|
|
`added_by` bigint UNSIGNED DEFAULT NULL,
|
|
`updated_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `orders`
|
|
--
|
|
|
|
INSERT INTO `orders` (`id`, `restaurant_id`, `table_id`, `waiter_id`, `driver_id`, `customer_id`, `payment_method_id`, `order_number`, `reference`, `order_type`, `status`, `subtotal`, `discount`, `tax`, `service_charge`, `tip_amount`, `grand_total`, `payment_status`, `payment_reference`, `paid_at`, `order_date`, `preparation_time`, `ready_at`, `handed_over_at`, `delivered_at`, `estimated_ready_time`, `delivery_address`, `order_source`, `meta`, `cancelled_at`, `cancel_reason`, `cancelled_by`, `added_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 6, 1, NULL, 5, 3, 'ORD-20260101-64425', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2026-01-01 15:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 7, 1, NULL, 9, 3, 'ORD-20260106-53031', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-06 14:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 3, 1, NULL, 5, 3, 'ORD-20260112-76735', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 1, NULL, NULL, '2026-01-12 08:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 1, 1, NULL, 3, 1, 'ORD-20260118-87188', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-18 08:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 3, 1, NULL, 4, 3, 'ORD-20251228-88680', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2025-12-28 04:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 5, 1, NULL, 8, 3, 'ORD-20260102-77657', NULL, 'takeaway', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 0, NULL, NULL, '2026-01-02 15:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 5, 1, NULL, 4, 2, 'ORD-20260123-48900', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 0, NULL, NULL, '2026-01-23 16:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 3, 1, NULL, 6, 3, 'ORD-20260126-49960', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 0, NULL, NULL, '2026-01-26 16:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 1, 1, NULL, 6, 3, 'ORD-20260122-46400', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '600.00', 1, NULL, NULL, '2026-01-22 11:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 7, 1, NULL, 8, 2, 'ORD-20260117-25468', NULL, 'takeaway', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-17 07:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 5, 1, NULL, 9, 3, 'ORD-20260124-29675', NULL, 'takeaway', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-24 07:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 10, 1, NULL, 2, 1, 'ORD-20260113-2086', NULL, 'dine_in', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 0, NULL, NULL, '2026-01-13 05:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 8, 1, NULL, 3, 2, 'ORD-20260120-57775', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-20 07:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 1, 2, 1, NULL, 9, 3, 'ORD-20260108-37905', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 0, NULL, NULL, '2026-01-08 09:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 1, 6, 1, NULL, 6, 3, 'ORD-20260101-21101', NULL, 'dine_in', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2026-01-01 10:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 1, 3, 1, NULL, 5, 3, 'ORD-20260120-16171', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 1, NULL, NULL, '2026-01-20 10:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 1, 7, 1, NULL, 4, 3, 'ORD-20260121-15513', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2026-01-21 06:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 1, 7, 1, NULL, 11, 1, 'ORD-20260103-56253', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-03 08:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(19, 1, 9, 1, NULL, 1, 1, 'ORD-20260119-92990', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 0, NULL, NULL, '2026-01-19 15:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(20, 1, 9, 1, NULL, 7, 1, 'ORD-20260102-43669', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '600.00', 1, NULL, NULL, '2026-01-02 15:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(21, 1, 3, 1, NULL, 2, 2, 'ORD-20260102-67177', NULL, 'dine_in', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 0, NULL, NULL, '2026-01-02 08:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(22, 1, 8, 1, NULL, 3, 3, 'ORD-20260119-42361', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 0, NULL, NULL, '2026-01-19 15:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(23, 1, 2, 1, NULL, 11, 2, 'ORD-20251231-84114', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 0, NULL, NULL, '2025-12-31 14:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(24, 1, 6, 1, NULL, 1, 1, 'ORD-20260106-75749', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2026-01-06 08:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(25, 1, 3, 1, NULL, 8, 3, 'ORD-20260118-48299', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2026-01-18 07:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(26, 1, 8, 1, NULL, 2, 1, 'ORD-20260105-40221', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-05 09:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(27, 1, 3, 1, NULL, 9, 1, 'ORD-20260116-53925', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-16 11:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(28, 1, 4, 1, NULL, 6, 3, 'ORD-20260121-23822', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 1, NULL, NULL, '2026-01-21 06:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(29, 1, 1, 1, NULL, 11, 2, 'ORD-20260101-25929', NULL, 'delivery', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-01 14:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(30, 1, 3, 1, NULL, 5, 1, 'ORD-20260123-44457', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 0, NULL, NULL, '2026-01-23 06:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(31, 1, 7, 1, NULL, 2, 2, 'ORD-20260101-81446', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '600.00', 0, NULL, NULL, '2026-01-01 14:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(32, 1, 7, 1, NULL, 4, 1, 'ORD-20251230-21945', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2025-12-30 05:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(33, 1, 4, 1, NULL, 1, 3, 'ORD-20260106-38324', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-06 09:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(34, 1, 10, 1, NULL, 10, 1, 'ORD-20260114-86913', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-14 11:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(35, 1, 4, 1, NULL, 2, 2, 'ORD-20260112-33407', NULL, 'takeaway', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 1, NULL, NULL, '2026-01-12 06:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(36, 1, 6, 1, NULL, 3, 1, 'ORD-20260114-76832', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 0, NULL, NULL, '2026-01-14 08:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(37, 1, 4, 1, NULL, 4, 2, 'ORD-20260118-84495', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-18 13:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(38, 1, 9, 1, NULL, 6, 2, 'ORD-20260125-70198', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 1, NULL, NULL, '2026-01-25 14:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(39, 1, 3, 1, NULL, 9, 2, 'ORD-20260108-85799', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 1, NULL, NULL, '2026-01-08 08:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(40, 1, 1, 1, NULL, 2, 2, 'ORD-20260115-32659', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '600.00', 0, NULL, NULL, '2026-01-15 06:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(41, 1, 10, 1, NULL, 11, 3, 'ORD-20251229-59513', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2025-12-29 09:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(42, 1, 4, 1, NULL, 7, 2, 'ORD-20251231-59892', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2025-12-31 06:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(43, 1, 3, 1, NULL, 8, 2, 'ORD-20260106-60794', NULL, 'takeaway', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 0, NULL, NULL, '2026-01-06 10:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(44, 1, 8, 1, NULL, 4, 3, 'ORD-20260111-32603', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 1, NULL, NULL, '2026-01-11 04:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(45, 1, 4, 1, NULL, 3, 1, 'ORD-20260103-84507', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-03 06:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(46, 1, 3, 1, NULL, 1, 1, 'ORD-20260114-13311', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-14 04:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(47, 1, 5, 1, NULL, 2, 3, 'ORD-20260114-79710', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-14 14:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(48, 1, 6, 1, NULL, 10, 3, 'ORD-20260105-16793', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-05 09:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(49, 1, 7, 1, NULL, 4, 3, 'ORD-20260104-77546', NULL, 'takeaway', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 0, NULL, NULL, '2026-01-04 07:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(50, 1, 10, 1, NULL, 2, 1, 'ORD-20260117-95516', NULL, 'dine_in', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '600.00', 0, NULL, NULL, '2026-01-17 16:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(51, 1, 2, 1, NULL, 10, 2, 'ORD-20260104-97637', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 0, NULL, NULL, '2026-01-04 04:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(52, 1, 8, 1, NULL, 8, 3, 'ORD-20251228-49677', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2025-12-28 07:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(53, 1, 9, 1, NULL, 8, 3, 'ORD-20260115-59840', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '600.00', 1, NULL, NULL, '2026-01-15 08:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(54, 1, 2, 1, NULL, 6, 1, 'ORD-20260114-20020', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-14 15:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(55, 1, 8, 1, NULL, 11, 2, 'ORD-20260108-91744', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-08 05:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(56, 1, 10, 1, NULL, 10, 1, 'ORD-20251231-43276', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2025-12-31 04:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(57, 1, 2, 1, NULL, 5, 3, 'ORD-20260108-50478', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 0, NULL, NULL, '2026-01-08 06:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(58, 1, 1, 1, NULL, 7, 3, 'ORD-20260115-1102', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-15 08:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(59, 1, 9, 1, NULL, 2, 2, 'ORD-20260110-65452', NULL, 'dine_in', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2026-01-10 15:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(60, 1, 5, 1, NULL, 11, 2, 'ORD-20251229-29091', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2025-12-29 06:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(61, 1, 8, 1, NULL, 7, 3, 'ORD-20260107-74160', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-07 04:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(62, 1, 10, 1, NULL, 11, 3, 'ORD-20260109-97354', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '600.00', 1, NULL, NULL, '2026-01-09 09:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(63, 1, 6, 1, NULL, 1, 1, 'ORD-20260121-93170', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 1, NULL, NULL, '2026-01-21 06:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(64, 1, 10, 1, NULL, 1, 1, 'ORD-20260101-3290', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-01 14:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(65, 1, 5, 1, NULL, 9, 1, 'ORD-20260115-82019', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-15 07:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(66, 1, 1, 1, NULL, 8, 2, 'ORD-20260123-82903', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 0, NULL, NULL, '2026-01-23 04:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(67, 1, 1, 1, NULL, 3, 1, 'ORD-20260110-29416', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 0, NULL, NULL, '2026-01-10 04:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(68, 1, 7, 1, NULL, 11, 3, 'ORD-20260121-41316', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-21 13:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(69, 1, 5, 1, NULL, 10, 2, 'ORD-20260117-54278', NULL, 'takeaway', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-17 06:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(70, 1, 10, 1, NULL, 3, 3, 'ORD-20260125-79216', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-25 08:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(71, 1, 9, 1, NULL, 6, 1, 'ORD-20260125-54157', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2026-01-25 04:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(72, 1, 4, 1, NULL, 10, 3, 'ORD-20260114-82177', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-14 05:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(73, 1, 2, 1, NULL, 6, 3, 'ORD-20260123-93836', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-23 10:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(74, 1, 6, 1, NULL, 1, 3, 'ORD-20260107-90740', NULL, 'dine_in', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2026-01-07 11:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(75, 1, 3, 1, NULL, 11, 2, 'ORD-20260124-45640', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2026-01-24 06:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(76, 1, 10, 1, NULL, 4, 1, 'ORD-20251231-45719', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2025-12-31 14:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(77, 1, 8, 1, NULL, 2, 2, 'ORD-20260114-42554', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2026-01-14 05:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(78, 1, 6, 1, NULL, 11, 3, 'ORD-20260101-87764', NULL, 'delivery', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 1, NULL, NULL, '2026-01-01 12:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(79, 1, 9, 1, NULL, 5, 3, 'ORD-20260122-70443', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-22 12:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(80, 1, 6, 1, NULL, 9, 2, 'ORD-20260104-39581', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 1, NULL, NULL, '2026-01-04 10:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(81, 1, 2, 1, NULL, 11, 3, 'ORD-20260103-33198', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 1, NULL, NULL, '2026-01-03 10:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(82, 1, 2, 1, NULL, 3, 1, 'ORD-20251231-21136', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2025-12-31 11:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(83, 1, 7, 1, NULL, 9, 1, 'ORD-20260113-94302', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-13 09:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(84, 1, 7, 1, NULL, 8, 3, 'ORD-20260114-43517', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2026-01-14 16:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(85, 1, 2, 1, NULL, 3, 3, 'ORD-20260112-51892', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-12 04:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(86, 1, 3, 1, NULL, 6, 3, 'ORD-20260111-54601', NULL, 'delivery', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-11 04:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(87, 1, 5, 1, NULL, 6, 3, 'ORD-20260119-15426', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2026-01-19 10:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(88, 1, 4, 1, NULL, 2, 3, 'ORD-20260118-27686', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 1, NULL, NULL, '2026-01-18 04:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(89, 1, 10, 1, NULL, 6, 2, 'ORD-20260125-98553', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 0, NULL, NULL, '2026-01-25 16:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(90, 1, 3, 1, NULL, 7, 1, 'ORD-20260106-92225', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 0, NULL, NULL, '2026-01-06 09:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(91, 1, 1, 1, NULL, 1, 3, 'ORD-20260125-77451', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2026-01-25 14:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(92, 1, 8, 1, NULL, 4, 3, 'ORD-20260110-81802', NULL, 'delivery', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 1, NULL, NULL, '2026-01-10 05:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(93, 1, 10, 1, NULL, 7, 1, 'ORD-20251228-21706', NULL, 'delivery', 'completed', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2025-12-28 06:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(94, 1, 3, 1, NULL, 3, 2, 'ORD-20251229-61386', NULL, 'delivery', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '400.00', 0, NULL, NULL, '2025-12-29 10:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(95, 1, 6, 1, NULL, 1, 1, 'ORD-20260112-27253', NULL, 'dine_in', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-12 08:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(96, 1, 10, 1, NULL, 8, 2, 'ORD-20260109-57235', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 0, NULL, NULL, '2026-01-09 10:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(97, 1, 5, 1, NULL, 11, 2, 'ORD-20260123-41630', NULL, 'delivery', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '300.00', 0, NULL, NULL, '2026-01-23 14:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(98, 1, 3, 1, NULL, 4, 1, 'ORD-20260120-24492', NULL, 'takeaway', 'cancelled', '0.00', '0.00', '0.00', '0.00', '0.00', '500.00', 0, NULL, NULL, '2026-01-20 14:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(99, 1, 3, 1, NULL, 8, 1, 'ORD-20260115-58979', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '200.00', 1, NULL, NULL, '2026-01-15 10:00:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(100, 1, 5, 1, NULL, 5, 2, 'ORD-20260102-40107', NULL, 'dine_in', 'pending', '0.00', '0.00', '0.00', '0.00', '0.00', '100.00', 1, NULL, NULL, '2026-01-02 05:30:00', NULL, NULL, NULL, NULL, NULL, NULL, 'POS', NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `order_items`
|
|
--
|
|
|
|
CREATE TABLE `order_items` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`order_id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`food_item_id` bigint UNSIGNED NOT NULL,
|
|
`food_variant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`quantity` int NOT NULL DEFAULT '1',
|
|
`price` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT 'Unit price of item/variant',
|
|
`discount` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT 'Discount on this item',
|
|
`tax` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT 'Tax for this item',
|
|
`total` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT 'Total after quantity, discount, tax',
|
|
`addons` json DEFAULT NULL COMMENT 'List of addons with price, quantity',
|
|
`meta` json DEFAULT NULL COMMENT 'Extra info: special instructions, combo info, etc',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Cancelled',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `order_items`
|
|
--
|
|
|
|
INSERT INTO `order_items` (`id`, `order_id`, `restaurant_id`, `food_item_id`, `food_variant_id`, `quantity`, `price`, `discount`, `tax`, `total`, `addons`, `meta`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 2, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 2, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 3, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 3, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 3, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 4, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 5, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 5, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 6, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 6, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 7, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 7, 1, 6, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 8, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 8, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 9, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 9, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(19, 9, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(20, 10, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(21, 11, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(22, 11, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(23, 12, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(24, 12, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(25, 12, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(26, 13, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(27, 14, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(28, 14, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(29, 14, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(30, 15, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(31, 15, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(32, 15, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(33, 16, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(34, 16, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(35, 17, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(36, 17, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(37, 17, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(38, 18, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(39, 19, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(40, 19, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(41, 20, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(42, 20, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(43, 20, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(44, 21, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(45, 21, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(46, 21, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(47, 22, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(48, 23, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(49, 24, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(50, 24, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(51, 25, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(52, 25, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(53, 25, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(54, 26, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(55, 27, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(56, 28, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(57, 28, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(58, 28, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(59, 29, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(60, 30, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(61, 31, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(62, 31, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(63, 31, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(64, 32, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(65, 32, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(66, 32, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(67, 33, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(68, 34, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(69, 34, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(70, 35, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(71, 35, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(72, 36, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(73, 36, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(74, 36, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(75, 37, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(76, 38, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(77, 38, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(78, 39, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(79, 39, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(80, 39, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(81, 40, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(82, 40, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(83, 40, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(84, 41, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(85, 42, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(86, 43, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(87, 43, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(88, 43, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(89, 44, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(90, 44, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(91, 44, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(92, 45, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(93, 46, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(94, 47, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(95, 47, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(96, 48, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(97, 48, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(98, 49, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(99, 49, 1, 6, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(100, 49, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(101, 50, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(102, 50, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(103, 50, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(104, 51, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(105, 51, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(106, 51, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(107, 52, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(108, 52, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(109, 53, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(110, 53, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(111, 53, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(112, 54, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(113, 55, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(114, 56, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(115, 57, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(116, 58, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(117, 59, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(118, 59, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(119, 59, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(120, 60, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(121, 60, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(122, 60, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(123, 61, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(124, 62, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(125, 62, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(126, 62, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(127, 63, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(128, 63, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(129, 63, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(130, 64, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(131, 65, 1, 6, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(132, 66, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(133, 66, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(134, 66, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(135, 67, 1, 6, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(136, 68, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(137, 69, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(138, 70, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(139, 71, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(140, 71, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(141, 72, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(142, 73, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(143, 74, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(144, 74, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(145, 74, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(146, 75, 1, 1, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(147, 75, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(148, 75, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(149, 76, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(150, 77, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(151, 77, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(152, 77, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(153, 78, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(154, 78, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(155, 78, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(156, 79, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(157, 80, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(158, 80, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(159, 80, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(160, 81, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(161, 81, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(162, 82, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(163, 83, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(164, 84, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(165, 84, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(166, 85, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(167, 86, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(168, 87, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(169, 87, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(170, 87, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(171, 88, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(172, 88, 1, 8, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(173, 89, 1, 6, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(174, 89, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(175, 89, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(176, 90, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(177, 91, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(178, 91, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(179, 91, 1, 7, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(180, 92, 1, 3, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(181, 92, 1, 4, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(182, 93, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(183, 93, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(184, 93, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(185, 94, 1, 2, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(186, 94, 1, 3, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(187, 94, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(188, 95, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(189, 96, 1, 2, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(190, 96, 1, 5, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(191, 97, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(192, 97, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(193, 97, 1, 8, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(194, 98, 1, 1, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(195, 98, 1, 4, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(196, 98, 1, 6, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(197, 99, 1, 5, NULL, 2, '100.00', '0.00', '0.00', '200.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(198, 100, 1, 7, NULL, 1, '100.00', '0.00', '0.00', '100.00', NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `order_trackings`
|
|
--
|
|
|
|
CREATE TABLE `order_trackings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`order_id` bigint UNSIGNED NOT NULL,
|
|
`delivery_boy_id` bigint UNSIGNED DEFAULT NULL,
|
|
`status` enum('placed','accepted','preparing','dispatched','delivered','cancelled') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'placed',
|
|
`latitude` decimal(10,7) DEFAULT NULL,
|
|
`longitude` decimal(10,7) DEFAULT NULL,
|
|
`location_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`note` text COLLATE utf8mb4_unicode_ci,
|
|
`tracked_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `otp_verifications`
|
|
--
|
|
|
|
CREATE TABLE `otp_verifications` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`otp` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`expires_at` timestamp NULL DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `our_histories`
|
|
--
|
|
|
|
CREATE TABLE `our_histories` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`year` year NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`descriptions` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `our_histories`
|
|
--
|
|
|
|
INSERT INTO `our_histories` (`id`, `restaurant_id`, `year`, `title`, `descriptions`, `status`, `created_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1972, 'Mere tranquil existence', 'Possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart am alone', 1, NULL, NULL, NULL, NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `packages`
|
|
--
|
|
|
|
CREATE TABLE `packages` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`price` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`package_type` enum('recurring','one_time') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'recurring',
|
|
`audience_type` enum('custom','standard') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'custom',
|
|
`duration` int UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Duration in days',
|
|
`auto_renew` tinyint(1) NOT NULL DEFAULT '1',
|
|
`is_active` tinyint(1) NOT NULL DEFAULT '1',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`max_food_items` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`max_categories` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`max_food_item_attributes` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`employee_limit` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`order_limit` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`storage_limit` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`sms_management_enabled` tinyint(1) NOT NULL DEFAULT '0',
|
|
`chat_enable` tinyint(1) NOT NULL DEFAULT '0',
|
|
`landing_page_enable` tinyint(1) NOT NULL DEFAULT '0',
|
|
`blog_enable` tinyint(1) NOT NULL DEFAULT '0',
|
|
`extra_buffer_time` int NOT NULL DEFAULT '0',
|
|
`extra_features` json DEFAULT NULL COMMENT 'Store new features in JSON',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `packages`
|
|
--
|
|
|
|
INSERT INTO `packages` (`id`, `name`, `price`, `package_type`, `audience_type`, `duration`, `auto_renew`, `is_active`, `status`, `max_food_items`, `max_categories`, `max_food_item_attributes`, `employee_limit`, `order_limit`, `storage_limit`, `sms_management_enabled`, `chat_enable`, `landing_page_enable`, `blog_enable`, `extra_buffer_time`, `extra_features`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 'Silver', '29.99', 'recurring', 'standard', 30, 1, 1, 1, 50, 5, 100, 3, 500, 1024, 1, 0, 0, 0, 7, '{\"support_priority\": \"low\", \"analytics_dashboard\": true}', '2026-01-26 12:11:05', '2026-01-26 12:11:05', NULL),
|
|
(2, 'Gold', '79.99', 'recurring', 'standard', 30, 1, 1, 1, 200, 20, 500, 10, 2000, 5120, 1, 1, 1, 0, 7, '{\"custom_reports\": true, \"support_priority\": \"medium\", \"analytics_dashboard\": true}', '2026-01-26 12:11:05', '2026-01-26 12:11:05', NULL),
|
|
(3, 'Platinum', '149.99', 'recurring', 'custom', 30, 1, 1, 1, 1000, 50, 5000, 50, 10000, 20480, 1, 1, 1, 1, 7, '{\"api_access\": true, \"white_label\": true, \"custom_reports\": true, \"support_priority\": \"high\", \"analytics_dashboard\": true}', '2026-01-26 12:11:05', '2026-01-26 12:11:05', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `pages`
|
|
--
|
|
|
|
CREATE TABLE `pages` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`content` text COLLATE utf8mb4_unicode_ci,
|
|
`meta_data` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`seo_meta_keywords` text COLLATE utf8mb4_unicode_ci,
|
|
`seo_meta_description` text COLLATE utf8mb4_unicode_ci,
|
|
`page_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft',
|
|
`page_template` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default',
|
|
`author_id` bigint UNSIGNED NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `pages`
|
|
--
|
|
|
|
INSERT INTO `pages` (`id`, `restaurant_id`, `title`, `slug`, `type`, `content`, `meta_data`, `seo_meta_keywords`, `seo_meta_description`, `page_status`, `page_template`, `author_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Home', 'home', 'home', '<p>Home page content</p>', NULL, 'home, welcome', 'This is the home page', 'publish', 'default', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'About Us', 'about-us', 'about', '<p>About us content</p>', NULL, 'about, us', 'Learn more about us', 'publish', 'default', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'Mission', 'mission', 'mission', '<p>Demo College provides quality education to customers...</p>', NULL, 'mission, education, customers', 'Our mission is to provide quality education.', 'publish', 'default', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 'Vision', 'vision', 'vision', '<p>Demo College inspires customers to acquire genuine knowledge...</p>', NULL, 'vision, education, knowledge', 'Our vision is to inspire customers with knowledge.', 'publish', 'default', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `password_reset_tokens`
|
|
--
|
|
|
|
CREATE TABLE `password_reset_tokens` (
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `payment_methods`
|
|
--
|
|
|
|
CREATE TABLE `payment_methods` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'gateway, cash, card, wallet',
|
|
`credentials` json DEFAULT NULL COMMENT 'store API keys, tokens, or config as JSON',
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`status` tinyint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `payment_methods`
|
|
--
|
|
|
|
INSERT INTO `payment_methods` (`id`, `restaurant_id`, `name`, `type`, `credentials`, `is_default`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Cash', NULL, NULL, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 'Card', NULL, NULL, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 'Online', NULL, NULL, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `payment_requests`
|
|
--
|
|
|
|
CREATE TABLE `payment_requests` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`payer_id` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`receiver_id` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`payment_amount` decimal(24,2) NOT NULL DEFAULT '0.00',
|
|
`gateway_callback_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`success_hook` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`failure_hook` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`transaction_id` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`currency_code` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'USD',
|
|
`payment_method` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`payment_type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`phone` varchar(25) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`email` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`package_id` bigint UNSIGNED DEFAULT NULL,
|
|
`notes` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`additional_data` json DEFAULT NULL,
|
|
`is_paid` tinyint(1) NOT NULL DEFAULT '0',
|
|
`payer_information` json DEFAULT NULL,
|
|
`external_redirect_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`receiver_information` json DEFAULT NULL,
|
|
`attribute_id` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`attribute` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`payment_platform` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `permissions`
|
|
--
|
|
|
|
CREATE TABLE `permissions` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `permissions`
|
|
--
|
|
|
|
INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
|
|
(1, 'system_admin', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(2, 'system_settings', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(3, 'database_backup', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(4, 'super_admin', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(5, 'manager', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(6, 'waiter', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(7, 'employee', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(8, 'chef', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(9, 'delivery_man', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(10, 'dashboard', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(11, 'role_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(12, 'role_create', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(13, 'role_update', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(14, 'role_delete', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(15, 'user_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(16, 'user_create', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(17, 'user_update', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(18, 'user_delete', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(19, 'onboardings_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(20, 'onboardings_create', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(21, 'onboardings_edit', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(22, 'onboardings_delete', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(23, 'onboardings_show', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(24, 'packages_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(25, 'packages_create', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(26, 'packages_edit', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(27, 'packages_delete', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(28, 'packages_show', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(29, 'profile_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(30, 'profile_edit', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(31, 'settings_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(32, 'settings_create', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(33, 'settings_edit', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(34, 'customer_addresses_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(35, 'customer_addresses_create', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(36, 'customer_addresses_edit', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(37, 'customer_addresses_delete', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(38, 'customer_addresses_show', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(39, 'delivery_boys_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(40, 'delivery_boys_create', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(41, 'delivery_boys_edit', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(42, 'delivery_boys_delete', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(43, 'delivery_boys_show', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(44, 'delivery_charges_index', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(45, 'delivery_charges_create', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(46, 'delivery_charges_edit', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(47, 'delivery_charges_delete', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(48, 'delivery_charges_show', 'web', '2026-01-26 12:10:54', '2026-01-26 12:10:54'),
|
|
(49, 'order_trackings_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(50, 'order_trackings_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(51, 'order_trackings_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(52, 'order_trackings_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(53, 'order_trackings_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(54, 'restaurant_schedules_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(55, 'restaurant_schedules_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(56, 'restaurant_schedules_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(57, 'restaurant_schedules_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(58, 'restaurant_schedules_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(59, 'about_us_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(60, 'about_us_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(61, 'about_us_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(62, 'about_us_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(63, 'about_us_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(64, 'addons_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(65, 'addons_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(66, 'addons_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(67, 'addons_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(68, 'addons_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(69, 'attendances_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(70, 'attendances_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(71, 'attendances_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(72, 'attendances_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(73, 'attendances_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(74, 'awards_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(75, 'awards_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(76, 'awards_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(77, 'awards_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(78, 'awards_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(79, 'banners_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(80, 'banners_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(81, 'banners_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(82, 'banners_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(83, 'banners_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(84, 'candidates_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(85, 'candidates_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(86, 'candidates_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(87, 'candidates_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(88, 'candidates_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(89, 'chefs_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(90, 'chefs_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(91, 'chefs_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(92, 'chefs_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(93, 'chefs_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(94, 'contacts_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(95, 'contacts_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(96, 'customers_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(97, 'customers_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(98, 'customers_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(99, 'customers_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(100, 'customers_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(101, 'departments_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(102, 'departments_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(103, 'departments_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(104, 'departments_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(105, 'departments_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(106, 'designations_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(107, 'designations_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(108, 'designations_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(109, 'designations_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(110, 'designations_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(111, 'employee_salaries_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(112, 'employee_salaries_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(113, 'employee_salaries_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(114, 'employee_salaries_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(115, 'employee_salaries_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(116, 'employees_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(117, 'employees_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(118, 'employees_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(119, 'employees_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(120, 'employees_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(121, 'faqs_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(122, 'faqs_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(123, 'faqs_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(124, 'faqs_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(125, 'faqs_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(126, 'feedbacks_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(127, 'feedbacks_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(128, 'feedbacks_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(129, 'feedbacks_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(130, 'feedbacks_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(131, 'food_availabilities_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(132, 'food_availabilities_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(133, 'food_availabilities_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(134, 'food_availabilities_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(135, 'food_availabilities_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(136, 'food_categories_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(137, 'food_categories_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(138, 'food_categories_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(139, 'food_categories_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(140, 'food_categories_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(141, 'food_items_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(142, 'food_items_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(143, 'food_items_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(144, 'food_items_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(145, 'food_items_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(146, 'food_variant_ingredients_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(147, 'food_variant_ingredients_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(148, 'food_variant_ingredients_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(149, 'food_variant_ingredients_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(150, 'food_variant_ingredients_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(151, 'food_variants_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(152, 'food_variants_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(153, 'food_variants_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(154, 'food_variants_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(155, 'food_variants_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(156, 'galleries_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(157, 'galleries_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(158, 'galleries_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(159, 'galleries_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(160, 'galleries_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(161, 'ingredient_damages_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(162, 'ingredient_damages_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(163, 'ingredient_damages_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(164, 'ingredient_damages_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(165, 'ingredient_damages_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(166, 'ingredients_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(167, 'ingredients_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(168, 'ingredients_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(169, 'ingredients_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(170, 'ingredients_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(171, 'interviews_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(172, 'interviews_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(173, 'interviews_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(174, 'interviews_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(175, 'interviews_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(176, 'leave_applications_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(177, 'leave_applications_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(178, 'leave_applications_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(179, 'leave_applications_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(180, 'leave_applications_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(181, 'leave_types_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(182, 'leave_types_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(183, 'leave_types_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(184, 'leave_types_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(185, 'leave_types_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(186, 'loan_installments_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(187, 'loan_installments_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(188, 'loan_installments_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(189, 'loan_installments_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(190, 'loan_installments_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(191, 'loans_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(192, 'loans_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(193, 'loans_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(194, 'loans_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(195, 'loans_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(196, 'menu_categories_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(197, 'menu_categories_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(198, 'menu_categories_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(199, 'menu_categories_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(200, 'menu_categories_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(201, 'menu_sections_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(202, 'menu_sections_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(203, 'menu_sections_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(204, 'menu_sections_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(205, 'menu_sections_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(206, 'menu_types_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(207, 'menu_types_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(208, 'menu_types_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(209, 'menu_types_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(210, 'menu_types_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(211, 'mobile_app_sections_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(212, 'mobile_app_sections_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(213, 'mobile_app_sections_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(214, 'mobile_app_sections_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(215, 'mobile_app_sections_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(216, 'orders_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(217, 'orders_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(218, 'orders_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(219, 'orders_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(220, 'orders_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(221, 'payment_methods_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(222, 'payment_methods_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(223, 'payment_methods_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(224, 'payment_methods_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(225, 'payment_methods_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(226, 'policies_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(227, 'policies_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(228, 'policies_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(229, 'policies_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(230, 'policies_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(231, 'purchase_return_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(232, 'purchase_return_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(233, 'purchase_return_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(234, 'purchase_return_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(235, 'purchase_return_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(236, 'purchases_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(237, 'purchases_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(238, 'purchases_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(239, 'purchases_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(240, 'purchases_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(241, 'ready_to_join_us_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(242, 'ready_to_join_us_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(243, 'ready_to_join_us_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(244, 'ready_to_join_us_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(245, 'ready_to_join_us_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(246, 'recruitment_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(247, 'recruitment_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(248, 'recruitment_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(249, 'recruitment_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(250, 'recruitment_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(251, 'reservation_unavailability_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(252, 'reservation_unavailability_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(253, 'reservation_unavailability_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(254, 'reservation_unavailability_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(255, 'reservation_unavailability_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(256, 'reservations_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(257, 'reservations_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(258, 'reservations_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(259, 'reservations_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(260, 'reservations_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(261, 'restaurants_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(262, 'restaurants_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(263, 'restaurants_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(264, 'restaurants_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(265, 'restaurants_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(266, 'saas_faqs_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(267, 'saas_faqs_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(268, 'saas_faqs_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(269, 'saas_faqs_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(270, 'saas_faqs_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(271, 'salary_generates_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(272, 'salary_generates_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(273, 'salary_generates_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(274, 'salary_generates_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(275, 'salary_generates_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(276, 'salary_setups_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(277, 'salary_setups_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(278, 'salary_setups_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(279, 'salary_setups_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(280, 'salary_setups_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(281, 'salary_types_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(282, 'salary_types_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(283, 'salary_types_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(284, 'salary_types_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(285, 'salary_types_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(286, 'suppliers_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(287, 'suppliers_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(288, 'suppliers_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(289, 'suppliers_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(290, 'suppliers_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(291, 'tables_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(292, 'tables_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(293, 'tables_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(294, 'tables_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(295, 'tables_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(296, 'testimonials_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(297, 'testimonials_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(298, 'testimonials_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(299, 'testimonials_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(300, 'testimonials_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(301, 'weekly_holidays_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(302, 'weekly_holidays_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(303, 'weekly_holidays_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(304, 'weekly_holidays_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(305, 'weekly_holidays_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(306, 'why_choose_us_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(307, 'why_choose_us_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(308, 'why_choose_us_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(309, 'why_choose_us_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(310, 'why_choose_us_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(311, 'zones_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(312, 'zones_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(313, 'zones_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(314, 'zones_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(315, 'zones_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(316, 'shifts_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(317, 'shifts_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(318, 'shifts_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(319, 'shifts_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(320, 'shifts_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(321, 'employee_shift_assign_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(322, 'employee_shift_assign_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(323, 'employee_shift_assign_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(324, 'employee_shift_assign_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(325, 'employee_shift_assign_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(326, 'loyalty_points_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(327, 'loyalty_points_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(328, 'loyalty_points_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(329, 'loyalty_points_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(330, 'loyalty_points_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(331, 'loyalty_redemptions_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(332, 'loyalty_redemptions_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(333, 'loyalty_redemptions_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(334, 'loyalty_redemptions_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(335, 'loyalty_redemptions_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(336, 'loyalty_point_settings_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(337, 'loyalty_point_settings_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(338, 'loyalty_point_settings_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(339, 'loyalty_point_settings_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(340, 'loyalty_point_settings_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(341, 'kitchens_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(342, 'kitchens_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(343, 'kitchens_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(344, 'kitchens_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(345, 'kitchens_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(346, 'kitchen_assigns_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(347, 'kitchen_assigns_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(348, 'kitchen_assigns_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(349, 'kitchen_assigns_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(350, 'kitchen_assigns_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(351, 'reservation_settings_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(352, 'reservation_settings_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(353, 'reservation_settings_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(354, 'reservation_settings_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(355, 'reservation_settings_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(356, 'tax_settings_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(357, 'tax_settings_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(358, 'tax_settings_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(359, 'tax_settings_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(360, 'tax_settings_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(361, 'qr_menu_settings_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(362, 'qr_menu_settings_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(363, 'qr_menu_settings_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(364, 'qr_menu_settings_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(365, 'qr_menu_settings_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(366, 'food_wastes_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(367, 'food_wastes_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(368, 'food_wastes_edit', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(369, 'food_wastes_delete', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(370, 'food_wastes_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(371, 'reports_dashboard', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(372, 'reports_ingredients', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(373, 'reports_stocks', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(374, 'reports_purchases', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(375, 'reports_purchase_estimate', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(376, 'reports_opening_stock', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(377, 'delivery_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(378, 'delivery_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(379, 'delivery_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(380, 'delivery_update_status', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(381, 'delivery_assign_rider', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(382, 'delivery_cancel', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(383, 'delivery_mark_delivered', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(384, 'delivery_tracking', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(385, 'delivery_status_history', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(386, 'rider_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(387, 'rider_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(388, 'rider_create', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(389, 'rider_update', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(390, 'rider_verify', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(391, 'rider_suspend', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(392, 'rider_reactivate', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(393, 'rider_nearby', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(394, 'rider_update_location', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(395, 'rider_toggle_online', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(396, 'rider_update_fcm', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(397, 'rider_active_deliveries', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(398, 'rider_delivery_history', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(399, 'rider_earnings', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(400, 'rider_earnings_history', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(401, 'rider_payouts', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(402, 'rating_index', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(403, 'rating_respond', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(404, 'rating_mark_helpful', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(405, 'rating_mark_not_helpful', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(406, 'rating_approve', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(407, 'rating_reject', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(408, 'rating_feature', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(409, 'tip_calculate', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(410, 'tip_show', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(411, 'tip_process_payment', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(412, 'tip_pre_delivery', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(413, 'tip_post_delivery', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(414, 'dashboard', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(415, 'customer', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(416, 'profile_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(417, 'profile_edit', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(418, 'menu_types_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(419, 'menu_sections_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(420, 'menu_categories_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(421, 'food_categories_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(422, 'food_items_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(423, 'food_variants_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(424, 'food_variant_ingredients_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(425, 'tables_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(426, 'reservations_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(427, 'reservations_create', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(428, 'reservation_unavailability_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(429, 'my_orders_index', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(430, 'my_orders_create', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(431, 'my_orders_edit', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(432, 'my_orders_delete', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09'),
|
|
(433, 'my_orders_show', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `policies`
|
|
--
|
|
|
|
CREATE TABLE `policies` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '1=privacy, 2=cookie, 3=terms & conditions',
|
|
`description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `policies`
|
|
--
|
|
|
|
INSERT INTO `policies` (`id`, `restaurant_id`, `type`, `description`, `status`, `created_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'privacy', 'This Privacy Policy explains how we collect, use, and protect your personal data when you use our Learning Management System (LMS). We prioritize your privacy and comply with data protection laws.', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'cookie', 'Our Cookie Policy explains how we use cookies to improve your experience on our LMS platform. By using our site, you agree to our use of cookies for analytics, personalization, and security.', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'terms', 'These Terms & Conditions outline the rules and regulations for using our LMS. By accessing our platform, you agree to abide by our terms, including content usage, user conduct, and dispute resolution.', 1, NULL, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `purchases`
|
|
--
|
|
|
|
CREATE TABLE `purchases` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`supplier_id` bigint UNSIGNED DEFAULT NULL,
|
|
`invoice_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`purchase_date` date NOT NULL DEFAULT '2026-01-26',
|
|
`sub_total` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`discount_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`tax_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`total_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`payment_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'unpaid' COMMENT 'paid, unpaid, partial',
|
|
`payment_method` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cash, bank, credit',
|
|
`purchase_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'ingredient' COMMENT 'ingredient, equipment, others',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL COMMENT 'User ID who created the purchase',
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `purchases`
|
|
--
|
|
|
|
INSERT INTO `purchases` (`id`, `restaurant_id`, `supplier_id`, `invoice_no`, `purchase_date`, `sub_total`, `discount_amount`, `tax_amount`, `total_amount`, `payment_status`, `payment_method`, `purchase_type`, `created_by`, `notes`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 23, 'ZML9COJW', '2025-11-15', '8580.40', '15.27', '36.25', '8601.38', 'paid', 'cash', 'equipment', 12, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 30, 'K0YMOZQ5', '2025-12-24', '3424.29', '3.65', '3.66', '3424.30', 'unpaid', 'credit', 'equipment', 14, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 42, 'AGDKKNWR', '2025-11-20', '2923.46', '6.37', '24.02', '2941.11', 'paid', 'cash', 'equipment', 21, 'Sequi quis soluta eum provident qui perferendis consectetur totam.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 23, 'L4T46ZRL', '2025-12-09', '2070.35', '7.03', '5.28', '2068.60', 'paid', 'bank', 'equipment', 17, 'Ab sed ipsa cupiditate laboriosam provident quod mollitia autem officiis.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 1, '2MNMPQYB', '2026-01-13', '5841.45', '16.58', '18.69', '5843.56', 'unpaid', 'bank', 'ingredient', 13, 'Eos ut soluta quam rem nihil eum nihil animi pariatur voluptatem debitis eligendi numquam.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 48, 'WKVVC0FF', '2026-01-11', '14621.24', '8.57', '27.88', '14640.55', 'paid', 'credit', 'others', 16, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 35, 'IPNHZVNH', '2025-12-29', '23764.44', '7.34', '23.93', '23781.03', 'partial', 'credit', 'equipment', 17, 'Voluptatem quia deleniti et quasi sit possimus incidunt.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 46, 'OKERQEWT', '2025-12-10', '18733.85', '16.01', '31.43', '18749.27', 'partial', 'credit', 'others', 18, 'Dolore quia sed molestiae distinctio voluptas quisquam dolores nesciunt.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 2, '07V4QPIZ', '2025-12-15', '18950.14', '17.05', '26.51', '18959.60', 'unpaid', 'credit', 'others', 3, 'Voluptatibus quo dolorem nihil sapiente recusandae officiis et voluptatem in.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 17, 'PC1SULEV', '2025-12-29', '21571.74', '10.51', '15.40', '21576.63', 'unpaid', 'bank', 'equipment', 18, 'Eius consectetur iusto reprehenderit quia provident placeat optio eveniet inventore repellendus recusandae pariatur perspiciatis.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 46, 'YJ3THB7W', '2025-11-03', '1897.52', '2.97', '12.66', '1907.21', 'partial', 'bank', 'others', 23, 'Deleniti porro a eos consequatur consequatur repudiandae ullam quia iusto aut ullam magnam quas.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 45, 'PWI1C8V8', '2025-12-01', '1491.01', '8.61', '10.46', '1492.86', 'paid', 'credit', 'ingredient', 8, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 8, 'OPDJMI0H', '2025-10-30', '14572.68', '7.21', '29.72', '14595.19', 'unpaid', 'credit', 'equipment', 17, 'Molestiae eaque dolorem qui at aut praesentium ipsa alias sequi incidunt quo id.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 1, 3, 'UGH2G6WH', '2026-01-02', '11260.50', '3.75', '12.46', '11269.21', 'partial', 'credit', 'others', 15, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 1, 41, 'ACF7TYL3', '2025-11-12', '11686.71', '15.46', '23.09', '11694.34', 'unpaid', 'bank', 'equipment', 22, 'Sit nemo consequuntur ipsam quisquam magnam tenetur inventore.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 1, 15, 'A2Q93X5U', '2025-11-04', '8128.81', '13.17', '21.69', '8137.33', 'unpaid', 'credit', 'equipment', 3, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 1, 28, 'HLZQHR8O', '2026-01-02', '2078.67', '6.64', '10.24', '2082.27', 'paid', 'bank', 'equipment', 17, 'Odit est qui magnam quas voluptas cumque velit aperiam velit quidem omnis.', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 1, 45, '64QGFXKR', '2026-01-19', '10536.38', '6.51', '17.88', '10547.75', 'partial', 'bank', 'ingredient', 3, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `purchase_items`
|
|
--
|
|
|
|
CREATE TABLE `purchase_items` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`purchase_id` bigint UNSIGNED NOT NULL,
|
|
`ingredient_id` bigint UNSIGNED NOT NULL,
|
|
`food_variant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`quantity` decimal(10,2) NOT NULL,
|
|
`unit_price` decimal(12,2) NOT NULL,
|
|
`total_cost` decimal(12,2) NOT NULL,
|
|
`tax_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`discount_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`batch_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`expiry_date` date DEFAULT NULL,
|
|
`received_quantity` decimal(10,2) DEFAULT NULL,
|
|
`wastage_quantity` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`returned_quantity` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `purchase_items`
|
|
--
|
|
|
|
INSERT INTO `purchase_items` (`id`, `restaurant_id`, `purchase_id`, `ingredient_id`, `food_variant_id`, `quantity`, `unit_price`, `total_cost`, `tax_amount`, `discount_amount`, `batch_no`, `expiry_date`, `received_quantity`, `wastage_quantity`, `returned_quantity`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 28, NULL, '10.27', '394.96', '4063.01', '8.50', '1.73', 'ZNJIBY', NULL, '10.27', '0.13', '0.81', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 4, NULL, '1.90', '79.87', '154.98', '5.18', '1.95', 'IKTR39', NULL, '1.90', '0.17', '0.42', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 1, 33, NULL, '3.75', '39.46', '154.01', '7.90', '1.87', 'GGGVVW', '2026-03-01', '3.75', '0.77', '0.26', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 1, 9, NULL, '16.51', '183.59', '3029.83', '2.80', '4.04', 'BTRTUR', NULL, '16.51', '0.20', '0.53', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 1, 45, NULL, '5.10', '180.50', '923.53', '6.29', '3.31', '2F4NTL', '2026-12-07', '5.10', '0.06', '0.98', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 1, 12, NULL, '10.80', '25.26', '276.02', '5.58', '2.37', 'YCS6AA', '2026-08-27', '10.80', '0.65', '0.91', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 2, 2, NULL, '14.81', '210.83', '3121.83', '2.52', '3.08', 'AIY2VQ', NULL, '14.81', '0.62', '0.58', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 2, 34, NULL, '1.97', '153.25', '302.47', '1.14', '0.57', 'LPRH6I', NULL, '1.97', '0.79', '0.28', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 3, 22, NULL, '6.79', '280.62', '1908.80', '5.52', '2.13', 'DU93H6', '2026-07-11', '6.79', '0.78', '0.19', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 3, 47, NULL, '6.11', '15.40', '99.53', '6.73', '1.29', 'SAVQIA', '2026-03-31', '6.11', '0.65', '0.96', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 3, 50, NULL, '1.20', '137.77', '165.59', '2.33', '2.06', 'G6D2GV', NULL, '1.20', '0.65', '0.38', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 3, 19, NULL, '13.93', '54.46', '767.18', '9.44', '0.89', '7ZXGHI', '2026-09-02', '13.93', '0.37', '0.32', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 4, 50, NULL, '5.10', '316.01', '1612.22', '3.75', '3.18', '1KPRQ1', NULL, '5.10', '0.66', '0.55', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 1, 4, 40, NULL, '1.88', '243.99', '456.38', '1.53', '3.85', '9BPK7M', '2027-01-17', '1.88', '0.24', '0.81', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 1, 5, 10, NULL, '12.35', '284.09', '3506.48', '1.80', '3.83', '12OL7T', NULL, '12.35', '0.87', '0.82', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 1, 5, 8, NULL, '16.88', '19.13', '323.96', '5.85', '4.80', 'EGPDZ7', '2026-02-05', '16.88', '0.58', '0.70', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 1, 5, 2, NULL, '2.44', '362.37', '883.08', '2.95', '4.05', 'AXFRBN', NULL, '2.44', '0.18', '0.20', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 1, 5, 32, NULL, '3.33', '338.09', '1130.03', '8.09', '3.90', 'H1PQVP', NULL, '3.33', '0.32', '0.76', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(19, 1, 6, 32, NULL, '16.20', '235.33', '3815.08', '7.53', '4.80', 'AVHO7R', '2027-01-10', '16.20', '0.11', '0.39', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(20, 1, 6, 15, NULL, '8.28', '359.13', '2973.00', '0.97', '1.57', 'LITZNM', NULL, '8.28', '0.50', '0.58', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(21, 1, 6, 33, NULL, '18.09', '369.38', '6686.07', '4.21', '0.22', 'W00VHD', '2026-11-02', '18.09', '0.69', '0.81', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(22, 1, 6, 31, NULL, '4.25', '236.62', '1014.17', '8.98', '0.45', 'AO5Z3N', '2027-01-17', '4.25', '0.84', '0.16', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(23, 1, 6, 12, NULL, '8.62', '17.12', '152.23', '6.19', '1.53', 'VPBYQT', '2026-11-29', '8.62', '0.60', '0.47', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(24, 1, 7, 16, NULL, '19.64', '431.76', '8487.60', '8.27', '0.44', 'MKFEJC', '2026-10-02', '19.64', '0.76', '0.75', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(25, 1, 7, 20, NULL, '18.86', '442.19', '8343.44', '7.04', '3.30', 'S51FLN', NULL, '18.86', '0.15', '0.75', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(26, 1, 7, 5, NULL, '16.86', '411.92', '6949.99', '8.62', '3.60', '9XND2H', NULL, '16.86', '0.23', '0.83', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(27, 1, 8, 3, NULL, '8.56', '488.02', '4181.84', '5.53', '1.14', 'UM01X7', '2027-01-18', '8.56', '0.07', '0.00', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(28, 1, 8, 45, NULL, '5.32', '357.16', '1906.32', '8.16', '1.93', 'UY7BUS', '2026-12-12', '5.32', '0.21', '0.68', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(29, 1, 8, 22, NULL, '17.70', '59.86', '1064.03', '8.69', '4.18', 'GVPEBD', NULL, '17.70', '0.23', '0.66', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(30, 1, 8, 27, NULL, '2.21', '491.73', '1089.80', '6.49', '3.41', 'IJ84SW', '2026-03-31', '2.21', '0.17', '0.46', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(31, 1, 8, 7, NULL, '6.51', '261.25', '1699.39', '2.47', '3.82', 'ILMWKN', NULL, '6.51', '0.02', '0.45', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(32, 1, 8, 4, NULL, '19.79', '445.14', '8807.88', '0.09', '1.53', 'G3VVRL', NULL, '19.79', '0.41', '0.99', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(33, 1, 9, 27, NULL, '1.36', '453.33', '621.57', '9.92', '4.88', 'SH0TYE', NULL, '1.36', '0.21', '0.46', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(34, 1, 9, 5, NULL, '1.66', '458.96', '761.21', '0.91', '1.57', 'OTI5LF', NULL, '1.66', '0.30', '0.68', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(35, 1, 9, 23, NULL, '6.05', '458.66', '2775.70', '3.00', '2.19', 'DT1HD0', '2026-10-04', '6.05', '0.62', '0.13', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(36, 1, 9, 26, NULL, '19.59', '480.56', '9418.43', '5.51', '1.25', '90RSNT', NULL, '19.59', '0.31', '0.23', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(37, 1, 9, 11, NULL, '16.60', '192.07', '3187.52', '2.44', '3.28', 'TPUNNG', '2026-09-22', '16.60', '0.37', '0.22', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(38, 1, 9, 40, NULL, '7.32', '299.77', '2195.17', '4.73', '3.88', 'CVAFNA', NULL, '7.32', '0.31', '0.31', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(39, 1, 10, 50, NULL, '13.77', '51.03', '703.56', '4.54', '3.66', 'LEMA92', '2026-05-23', '13.77', '0.59', '0.39', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(40, 1, 10, 43, NULL, '18.57', '436.32', '8103.03', '3.32', '2.75', 'ILMHRA', '2026-02-19', '18.57', '0.54', '0.65', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(41, 1, 10, 37, NULL, '12.68', '487.12', '6181.02', '4.89', '0.55', 'RVGKP7', NULL, '12.68', '0.09', '0.13', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(42, 1, 10, 2, NULL, '18.62', '122.10', '2272.29', '0.68', '1.89', 'SXYUNH', '2026-01-29', '18.62', '0.45', '0.63', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(43, 1, 10, 6, NULL, '18.14', '237.95', '4316.72', '1.97', '1.66', 'ZG6X8Y', NULL, '18.14', '0.44', '0.48', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(44, 1, 11, 22, NULL, '1.54', '224.30', '346.49', '3.92', '2.85', 'B1WXVW', NULL, '1.54', '0.79', '0.50', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(45, 1, 11, 37, NULL, '4.73', '328.14', '1560.72', '8.74', '0.12', 'NRMKGV', NULL, '4.73', '0.50', '0.34', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(46, 1, 12, 36, NULL, '3.66', '53.51', '194.40', '1.52', '2.97', 'ODINYL', '2026-10-14', '3.66', '0.07', '0.24', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(47, 1, 12, 4, NULL, '10.24', '82.34', '842.62', '2.00', '2.54', '69NQDB', NULL, '10.24', '0.73', '0.20', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(48, 1, 12, 14, NULL, '3.84', '117.71', '455.85', '6.94', '3.10', '6VP6S8', '2026-08-05', '3.84', '0.91', '0.87', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(49, 1, 13, 20, NULL, '10.27', '285.73', '2940.67', '9.99', '3.77', 'NGCQU3', '2026-09-11', '10.27', '0.39', '0.91', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(50, 1, 13, 30, NULL, '8.97', '461.26', '4146.14', '9.60', '0.96', 'LZWRWH', NULL, '8.97', '0.17', '0.48', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(51, 1, 13, 42, NULL, '15.68', '324.95', '5098.72', '4.61', '1.11', 'ZYURYO', '2026-08-14', '15.68', '0.27', '0.06', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(52, 1, 13, 30, NULL, '11.83', '203.34', '2409.66', '5.52', '1.37', '5CVLA8', '2026-02-10', '11.83', '0.14', '0.34', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(53, 1, 14, 21, NULL, '7.94', '205.02', '1628.31', '0.62', '0.17', 'XOHJCW', '2026-11-25', '7.94', '0.95', '0.15', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(54, 1, 14, 23, NULL, '18.90', '464.37', '8781.78', '8.07', '2.88', 'CEE6W0', NULL, '18.90', '0.82', '0.52', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(55, 1, 14, 42, NULL, '4.27', '200.48', '859.12', '3.77', '0.70', 'ULSVHB', '2026-08-14', '4.27', '0.68', '0.99', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(56, 1, 15, 15, NULL, '16.51', '385.69', '6373.23', '9.48', '3.99', 'VZRNJY', '2026-08-15', '16.51', '0.16', '0.38', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(57, 1, 15, 24, NULL, '5.44', '221.80', '1204.13', '1.55', '4.01', 'BHSZYG', '2026-11-07', '5.44', '0.95', '0.54', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(58, 1, 15, 38, NULL, '8.02', '149.48', '1199.65', '2.06', '1.24', 'AGBYLD', '2026-08-10', '8.02', '0.73', '0.31', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(59, 1, 15, 16, NULL, '9.89', '236.42', '2343.39', '8.65', '3.45', 'GPUBL3', NULL, '9.89', '0.93', '0.34', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(60, 1, 15, 26, NULL, '5.84', '98.52', '573.94', '1.35', '2.77', 'Z6EVQD', NULL, '5.84', '0.26', '0.50', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(61, 1, 16, 24, NULL, '3.92', '271.68', '1067.02', '6.72', '4.69', 'JLIXJ7', '2026-06-22', '3.92', '0.58', '0.55', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(62, 1, 16, 13, NULL, '1.79', '59.69', '107.86', '3.86', '2.85', 'ZCW02J', NULL, '1.79', '0.66', '0.33', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(63, 1, 16, 19, NULL, '2.07', '50.75', '106.54', '5.67', '4.18', 'EWNN49', '2026-04-21', '2.07', '0.78', '0.07', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(64, 1, 16, 7, NULL, '15.52', '441.49', '6855.91', '5.44', '1.45', 'DG3OLU', NULL, '15.52', '0.22', '0.22', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(65, 1, 17, 30, NULL, '4.22', '360.54', '1519.19', '0.90', '3.19', 'N1EC45', NULL, '4.22', '0.70', '0.87', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(66, 1, 17, 41, NULL, '7.47', '74.59', '563.08', '9.34', '3.45', 'GJLOZF', NULL, '7.47', '0.80', '0.91', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(67, 1, 18, 26, NULL, '17.41', '268.12', '4665.78', '0.09', '2.28', 'USIJYX', NULL, '17.41', '0.30', '0.60', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(68, 1, 18, 39, NULL, '10.46', '449.93', '4709.10', '3.49', '0.66', 'N5JWDD', '2026-12-25', '10.46', '0.15', '0.96', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(69, 1, 18, 1, NULL, '3.53', '126.07', '449.97', '6.25', '1.31', 'YOZ4BU', NULL, '3.53', '0.55', '0.40', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(70, 1, 18, 26, NULL, '11.60', '61.82', '722.90', '8.05', '2.26', 'RNQURE', '2026-09-06', '11.60', '0.97', '0.27', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `purchase_returns`
|
|
--
|
|
|
|
CREATE TABLE `purchase_returns` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`purchase_id` bigint UNSIGNED NOT NULL,
|
|
`purchase_item_id` bigint UNSIGNED NOT NULL,
|
|
`ingredient_id` bigint UNSIGNED NOT NULL,
|
|
`batch_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`quantity` decimal(10,2) NOT NULL,
|
|
`unit_cost` decimal(12,2) DEFAULT NULL COMMENT 'Unit cost at time of purchase',
|
|
`total_cost` decimal(12,2) DEFAULT NULL COMMENT 'quantity * unit_cost',
|
|
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Reason for return: damaged, expired, supplier return, etc.',
|
|
`return_date` date NOT NULL DEFAULT '2026-01-26',
|
|
`processed_by` bigint UNSIGNED DEFAULT NULL COMMENT 'User ID who processed the return',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `purchase_returns`
|
|
--
|
|
|
|
INSERT INTO `purchase_returns` (`id`, `restaurant_id`, `purchase_id`, `purchase_item_id`, `ingredient_id`, `batch_no`, `quantity`, `unit_cost`, `total_cost`, `reason`, `return_date`, `processed_by`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, 28, 'ZNJIBY', '8.00', '394.96', '3159.68', 'Supplier Return', '2026-01-21', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 1, 2, 4, 'IKTR39', '1.00', '79.87', '79.87', 'Expired', '2026-01-19', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 1, 3, 33, 'GGGVVW', '3.00', '39.46', '118.38', 'Expired', '2026-01-25', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 1, 4, 9, 'BTRTUR', '14.00', '183.59', '2570.26', 'Damaged', '2026-01-21', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 1, 5, 45, '2F4NTL', '2.00', '180.50', '361.00', 'Supplier Return', '2026-01-18', 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `q_r_menu_settings`
|
|
--
|
|
|
|
CREATE TABLE `q_r_menu_settings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`menu_title` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`menu_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`primary_color` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`secondary_color` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`bg_color` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`template` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default',
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`qr_code_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`wifi_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`wifi_ssid` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`wifi_password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `q_r_menu_settings`
|
|
--
|
|
|
|
INSERT INTO `q_r_menu_settings` (`id`, `restaurant_id`, `name`, `menu_title`, `logo`, `menu_url`, `primary_color`, `secondary_color`, `bg_color`, `template`, `description`, `qr_code_url`, `wifi_name`, `wifi_ssid`, `wifi_password`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Default QR Menu', 'Our Menu', NULL, NULL, '#FF5722', '#FFC107', '#FFFFFF', 'template_1', 'Welcome to our digital menu!', NULL, 'Restaurant-WiFi', 'RESTO1234', '12345678', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `ready_to_join_us`
|
|
--
|
|
|
|
CREATE TABLE `ready_to_join_us` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`button_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`button_link` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `ready_to_join_us`
|
|
--
|
|
|
|
INSERT INTO `ready_to_join_us` (`id`, `restaurant_id`, `title`, `description`, `icon`, `button_name`, `button_link`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Inquiry & Campus Visit', 'Get in touch or schedule a campus tour to see our facilities and learn more about what we offer.', 'https://i.ibb.co.com/PZrX6pDQ/Group-2.png', 'Contact Us', '#', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'Submit Your Application', 'Complete the online application form to start the admission process.', 'https://i.ibb.co.com/35nLXwLR/Group-1.png', 'Apply Now', '#', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'Admission Confirmation', 'Once accepted, complete your enrollment and confirm your place for the upcoming academic year.', 'https://i.ibb.co.com/yns7RVZN/Group.png', 'Download Admission Form', '#', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `recruitments`
|
|
--
|
|
|
|
CREATE TABLE `recruitments` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`title` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`requirements` text COLLATE utf8mb4_unicode_ci,
|
|
`vacancy_count` int NOT NULL DEFAULT '1',
|
|
`department_id` bigint UNSIGNED DEFAULT NULL,
|
|
`designation_id` bigint UNSIGNED DEFAULT NULL,
|
|
`start_date` date NOT NULL,
|
|
`end_date` date DEFAULT NULL,
|
|
`job_type` enum('full_time','part_time','internship','contract') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'full_time',
|
|
`recruiter_id` bigint UNSIGNED DEFAULT NULL,
|
|
`status` enum('open','closed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `reservations`
|
|
--
|
|
|
|
CREATE TABLE `reservations` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`table_id` bigint UNSIGNED DEFAULT NULL,
|
|
`customer_id` bigint UNSIGNED DEFAULT NULL,
|
|
`reservation_date` date NOT NULL,
|
|
`start_time` time NOT NULL,
|
|
`end_time` time DEFAULT NULL,
|
|
`people_count` int NOT NULL DEFAULT '1',
|
|
`status` enum('booked','free','upcoming','cancelled') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'upcoming',
|
|
`note` text COLLATE utf8mb4_unicode_ci,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `reservations`
|
|
--
|
|
|
|
INSERT INTO `reservations` (`id`, `restaurant_id`, `table_id`, `customer_id`, `reservation_date`, `start_time`, `end_time`, `people_count`, `status`, `note`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 2, 18, '2026-01-26', '16:30:00', '18:30:00', 5, 'upcoming', 'Ab consequatur sunt aspernatur.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 2, 6, '2026-01-29', '12:00:00', '14:00:00', 6, 'cancelled', 'Eligendi expedita facere sit exercitationem expedita animi eos.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 4, 9, '2026-01-28', '10:30:00', '12:30:00', 2, 'free', 'Repellat consequatur accusantium reiciendis accusamus et quos tenetur voluptate.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 5, 10, '2026-01-31', '12:30:00', '14:30:00', 4, 'cancelled', 'Et qui non veritatis corrupti aspernatur.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 4, 8, '2026-01-30', '11:30:00', '13:30:00', 4, 'cancelled', 'Molestiae id in corrupti non atque.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 4, 16, '2026-01-28', '20:30:00', '22:30:00', 5, 'upcoming', 'Quam ullam corporis ut nam ex odit ab laboriosam.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 5, 1, '2026-01-26', '20:30:00', '22:30:00', 4, 'upcoming', 'Architecto sit fuga et ratione sequi laudantium.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 3, 8, '2026-01-27', '13:00:00', '15:00:00', 7, 'free', 'Hic omnis doloribus eveniet est ipsam dolor accusamus.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 1, 18, '2026-01-26', '18:00:00', '20:00:00', 3, 'free', 'Magni odit dolor ipsum libero qui.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 3, 1, '2026-01-30', '14:00:00', '16:00:00', 3, 'booked', 'Voluptas quasi totam quia qui.', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `reservation_settings`
|
|
--
|
|
|
|
CREATE TABLE `reservation_settings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`start_time` time NOT NULL,
|
|
`end_time` time NOT NULL,
|
|
`max_reservation` int NOT NULL DEFAULT '0',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `reservation_unavailables`
|
|
--
|
|
|
|
CREATE TABLE `reservation_unavailables` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`table_id` bigint UNSIGNED DEFAULT NULL,
|
|
`date` date NOT NULL,
|
|
`start_time` time NOT NULL,
|
|
`end_time` time NOT NULL,
|
|
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `reservation_unavailables`
|
|
--
|
|
|
|
INSERT INTO `reservation_unavailables` (`id`, `restaurant_id`, `table_id`, `date`, `start_time`, `end_time`, `reason`, `created_at`, `updated_at`) VALUES
|
|
(1, 1, 1, '2026-01-27', '20:00:00', '21:00:00', 'Tempore optio placeat ullam sit.', '2026-01-26 12:11:12', '2026-01-26 12:11:12'),
|
|
(2, 1, 5, '2026-01-27', '20:00:00', '23:00:00', 'Natus totam quisquam quod et ipsum.', '2026-01-26 12:11:12', '2026-01-26 12:11:12'),
|
|
(3, 1, 2, '2026-01-31', '19:30:00', '20:30:00', 'Maxime corporis magnam voluptate odio.', '2026-01-26 12:11:12', '2026-01-26 12:11:12'),
|
|
(4, 1, 2, '2026-01-27', '22:00:00', '01:00:00', 'Suscipit ducimus aut recusandae deserunt doloribus.', '2026-01-26 12:11:12', '2026-01-26 12:11:12'),
|
|
(5, 1, 2, '2026-01-28', '10:30:00', '13:30:00', 'Voluptas voluptatem impedit non voluptas voluptates quam.', '2026-01-26 12:11:12', '2026-01-26 12:11:12');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurants`
|
|
--
|
|
|
|
CREATE TABLE `restaurants` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`owner_id` bigint UNSIGNED DEFAULT NULL,
|
|
`assigned_to` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`restaurant_type` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`phone` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`domain` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`zone_id` bigint UNSIGNED DEFAULT NULL,
|
|
`latitude` decimal(10,7) DEFAULT NULL,
|
|
`longitude` decimal(10,7) DEFAULT NULL,
|
|
`delivery_radius_km` decimal(8,2) NOT NULL DEFAULT '5.00',
|
|
`is_verified` tinyint(1) NOT NULL DEFAULT '0',
|
|
`is_open` tinyint(1) NOT NULL DEFAULT '1',
|
|
`platform` enum('WEB','APP') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'APP',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`theme_id` bigint UNSIGNED DEFAULT NULL,
|
|
`last_active_time` timestamp NULL DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurants`
|
|
--
|
|
|
|
INSERT INTO `restaurants` (`id`, `owner_id`, `assigned_to`, `name`, `email`, `address`, `restaurant_type`, `phone`, `domain`, `logo`, `zone_id`, `latitude`, `longitude`, `delivery_radius_km`, `is_verified`, `is_open`, `platform`, `status`, `created_by`, `theme_id`, `last_active_time`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 2, 1, 'Star Kabab & Restaurant', NULL, 'House 1, Road 2, Dhanmondi, Dhaka 1205', 'Restaurant', '01712345678', 'starkabab.com', NULL, NULL, NULL, NULL, '5.00', 0, 1, 'WEB', 1, NULL, 1, '2026-01-26 12:11:05', '2026-01-26 12:11:05', '2026-01-26 12:11:05', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_deliveries`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_deliveries` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`tracking_code` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`rider_id` bigint UNSIGNED DEFAULT NULL,
|
|
`zone_id` bigint UNSIGNED DEFAULT NULL,
|
|
`orderable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`orderable_id` bigint UNSIGNED NOT NULL,
|
|
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`previous_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status_changed_at` timestamp NULL DEFAULT NULL,
|
|
`restaurant_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`pickup_address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`pickup_latitude` decimal(10,7) NOT NULL,
|
|
`pickup_longitude` decimal(10,7) NOT NULL,
|
|
`pickup_contact_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`pickup_contact_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`pickup_instructions` text COLLATE utf8mb4_unicode_ci,
|
|
`customer_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`drop_address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`drop_latitude` decimal(10,7) NOT NULL,
|
|
`drop_longitude` decimal(10,7) NOT NULL,
|
|
`drop_contact_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`drop_contact_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`drop_instructions` text COLLATE utf8mb4_unicode_ci,
|
|
`drop_floor` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`drop_apartment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`distance` decimal(8,2) DEFAULT NULL,
|
|
`distance_unit` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'km',
|
|
`estimated_duration` int DEFAULT NULL,
|
|
`estimated_pickup_time` timestamp NULL DEFAULT NULL,
|
|
`estimated_delivery_time` timestamp NULL DEFAULT NULL,
|
|
`food_ready_at` timestamp NULL DEFAULT NULL,
|
|
`rider_assigned_at` timestamp NULL DEFAULT NULL,
|
|
`rider_accepted_at` timestamp NULL DEFAULT NULL,
|
|
`rider_at_restaurant_at` timestamp NULL DEFAULT NULL,
|
|
`picked_up_at` timestamp NULL DEFAULT NULL,
|
|
`on_the_way_at` timestamp NULL DEFAULT NULL,
|
|
`arrived_at` timestamp NULL DEFAULT NULL,
|
|
`delivered_at` timestamp NULL DEFAULT NULL,
|
|
`cancelled_at` timestamp NULL DEFAULT NULL,
|
|
`failed_at` timestamp NULL DEFAULT NULL,
|
|
`base_fare` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`distance_charge` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`surge_charge` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`surge_multiplier` decimal(4,2) NOT NULL DEFAULT '1.00',
|
|
`peak_hour_charge` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`late_night_charge` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`small_order_fee` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`total_delivery_charge` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`charge_breakdown` json DEFAULT NULL,
|
|
`tip_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`tip_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`tip_paid_at` timestamp NULL DEFAULT NULL,
|
|
`order_value` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`cancellation_reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`cancelled_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`cancellation_notes` text COLLATE utf8mb4_unicode_ci,
|
|
`failure_reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`failure_notes` text COLLATE utf8mb4_unicode_ci,
|
|
`route_polyline` text COLLATE utf8mb4_unicode_ci,
|
|
`route_data` json DEFAULT NULL,
|
|
`assignment_attempts` tinyint UNSIGNED NOT NULL DEFAULT '0',
|
|
`reassignment_count` tinyint UNSIGNED NOT NULL DEFAULT '0',
|
|
`assignment_history` json DEFAULT NULL,
|
|
`delivery_photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`signature` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`recipient_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`customer_notified` tinyint(1) NOT NULL DEFAULT '0',
|
|
`notification_log` json DEFAULT NULL,
|
|
`is_priority` tinyint(1) NOT NULL DEFAULT '0',
|
|
`is_scheduled` tinyint(1) NOT NULL DEFAULT '0',
|
|
`scheduled_for` timestamp NULL DEFAULT NULL,
|
|
`meta` json DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurant_deliveries`
|
|
--
|
|
|
|
INSERT INTO `restaurant_deliveries` (`id`, `uuid`, `tracking_code`, `restaurant_id`, `rider_id`, `zone_id`, `orderable_type`, `orderable_id`, `status`, `previous_status`, `status_changed_at`, `restaurant_name`, `pickup_address`, `pickup_latitude`, `pickup_longitude`, `pickup_contact_name`, `pickup_contact_phone`, `pickup_instructions`, `customer_name`, `drop_address`, `drop_latitude`, `drop_longitude`, `drop_contact_name`, `drop_contact_phone`, `drop_instructions`, `drop_floor`, `drop_apartment`, `distance`, `distance_unit`, `estimated_duration`, `estimated_pickup_time`, `estimated_delivery_time`, `food_ready_at`, `rider_assigned_at`, `rider_accepted_at`, `rider_at_restaurant_at`, `picked_up_at`, `on_the_way_at`, `arrived_at`, `delivered_at`, `cancelled_at`, `failed_at`, `base_fare`, `distance_charge`, `surge_charge`, `surge_multiplier`, `peak_hour_charge`, `late_night_charge`, `small_order_fee`, `total_delivery_charge`, `charge_breakdown`, `tip_amount`, `tip_type`, `tip_paid_at`, `order_value`, `cancellation_reason`, `cancelled_by`, `cancellation_notes`, `failure_reason`, `failure_notes`, `route_polyline`, `route_data`, `assignment_attempts`, `reassignment_count`, `assignment_history`, `delivery_photo`, `signature`, `recipient_name`, `customer_notified`, `notification_log`, `is_priority`, `is_scheduled`, `scheduled_for`, `meta`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, '5a206665-12e5-4e8e-aae2-2dc517b87a5c', 'TRKBD10001', 1, 1, 1, 'Modules\\Restaurant\\Models\\Order', 10, 'on_the_way', 'picked_up', '2026-01-26 12:06:13', 'Kacchi Bhai Dhanmondi', 'Dhanmondi 32, Dhaka', '23.7461000', '90.3742000', 'Restaurant Manager', '01711000000', NULL, 'Rahim Uddin', 'Gulshan 1, Dhaka', '23.7930000', '90.4043000', 'Rahim', '01819000000', NULL, '5th', 'A5', '5.80', 'km', 28, NULL, NULL, NULL, '2026-01-26 11:46:13', NULL, NULL, '2026-01-26 12:01:13', '2026-01-26 12:06:13', NULL, NULL, NULL, NULL, '30.00', '46.40', '0.00', '1.00', '0.00', '0.00', '0.00', '76.40', '{\"base\": 30, \"distance\": 46.4}', '0.00', NULL, NULL, '850.00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, NULL, '{\"payment_mode\": \"cod\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(2, '38458cd7-6812-4a21-b500-1a6431703736', 'TRKBD10002', 1, 2, 2, 'Modules\\Restaurant\\Models\\Order', 11, 'delivered', 'arrived', '2026-01-26 12:09:13', 'Pizza Roma Gulshan', 'Gulshan 2 Circle, Dhaka', '23.7937000', '90.4066000', NULL, NULL, NULL, 'Karim Ahmed', 'Banani DOHS, Dhaka', '23.8103000', '90.4125000', NULL, '01715000000', NULL, NULL, NULL, '4.20', 'km', 22, NULL, NULL, NULL, '2026-01-26 11:31:13', NULL, NULL, '2026-01-26 11:46:13', NULL, NULL, '2026-01-26 12:09:13', NULL, NULL, '40.00', '50.40', '15.00', '1.30', '0.00', '0.00', '0.00', '105.40', NULL, '50.00', 'post_delivery', '2026-01-26 12:11:13', '1200.00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 'deliveries/proof_10002.jpg', NULL, 'Karim Ahmed', 1, NULL, 0, 0, NULL, NULL, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(3, '6d03ca8f-2943-430a-bae1-8f97ff0243c2', 'TRKBD10003', 1, NULL, 3, 'Modules\\Restaurant\\Models\\Order', 12, 'cancelled', 'pending', '2026-01-26 11:56:13', 'Burger Express Mirpur', 'Mirpur 10, Dhaka', '23.8223000', '90.3654000', NULL, NULL, NULL, 'Sabbir Khan', 'Mirpur 11, Dhaka', '23.8300000', '90.3600000', NULL, NULL, NULL, NULL, NULL, NULL, 'km', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-01-26 11:56:13', NULL, '0.00', '0.00', '0.00', '1.00', '0.00', '0.00', '0.00', '0.00', NULL, '0.00', NULL, NULL, '420.00', 'Customer requested cancellation', 'customer', NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, NULL, NULL, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_delivery_assignments`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_delivery_assignments` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`delivery_id` bigint UNSIGNED NOT NULL,
|
|
`rider_id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`attempt_number` tinyint UNSIGNED NOT NULL DEFAULT '1',
|
|
`assignment_type` enum('auto','manual','broadcast') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'auto',
|
|
`assigned_by` bigint UNSIGNED DEFAULT NULL,
|
|
`score` decimal(8,2) DEFAULT NULL,
|
|
`score_breakdown` json DEFAULT NULL,
|
|
`distance_to_restaurant` decimal(8,2) DEFAULT NULL,
|
|
`estimated_arrival_time` int DEFAULT NULL,
|
|
`notified_at` timestamp NULL DEFAULT NULL,
|
|
`responded_at` timestamp NULL DEFAULT NULL,
|
|
`expires_at` timestamp NULL DEFAULT NULL,
|
|
`rejection_reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`rejection_notes` text COLLATE utf8mb4_unicode_ci,
|
|
`rider_latitude` decimal(10,7) DEFAULT NULL,
|
|
`rider_longitude` decimal(10,7) DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_delivery_ratings`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_delivery_ratings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`delivery_id` bigint UNSIGNED NOT NULL,
|
|
`rider_id` bigint UNSIGNED NOT NULL,
|
|
`customer_id` bigint UNSIGNED DEFAULT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`overall_rating` tinyint UNSIGNED NOT NULL,
|
|
`speed_rating` tinyint UNSIGNED DEFAULT NULL,
|
|
`communication_rating` tinyint UNSIGNED DEFAULT NULL,
|
|
`food_condition_rating` tinyint UNSIGNED DEFAULT NULL,
|
|
`professionalism_rating` tinyint UNSIGNED DEFAULT NULL,
|
|
`review` text COLLATE utf8mb4_unicode_ci,
|
|
`is_anonymous` tinyint(1) NOT NULL DEFAULT '0',
|
|
`tags` json DEFAULT NULL,
|
|
`is_restaurant_rating` tinyint(1) NOT NULL DEFAULT '0',
|
|
`is_approved` tinyint(1) NOT NULL DEFAULT '1',
|
|
`is_featured` tinyint(1) NOT NULL DEFAULT '0',
|
|
`moderation_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'approved',
|
|
`moderation_notes` text COLLATE utf8mb4_unicode_ci,
|
|
`rider_response` text COLLATE utf8mb4_unicode_ci,
|
|
`rider_responded_at` timestamp NULL DEFAULT NULL,
|
|
`helpful_count` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`not_helpful_count` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_delivery_status_history`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_delivery_status_history` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`delivery_id` bigint UNSIGNED NOT NULL,
|
|
`rider_id` bigint UNSIGNED DEFAULT NULL,
|
|
`from_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`to_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`changed_by_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`changed_by_id` bigint UNSIGNED DEFAULT NULL,
|
|
`latitude` decimal(10,7) DEFAULT NULL,
|
|
`longitude` decimal(10,7) DEFAULT NULL,
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`meta` json DEFAULT NULL,
|
|
`duration_from_previous` int DEFAULT NULL,
|
|
`duration_from_start` int DEFAULT NULL,
|
|
`changed_at` timestamp NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_delivery_tips`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_delivery_tips` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`delivery_id` bigint UNSIGNED NOT NULL,
|
|
`rider_id` bigint UNSIGNED NOT NULL,
|
|
`customer_id` bigint UNSIGNED DEFAULT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`amount` decimal(10,2) NOT NULL,
|
|
`currency` varchar(3) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'BDT',
|
|
`type` enum('pre_delivery','post_delivery') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pre_delivery',
|
|
`calculation_type` enum('fixed','percentage') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fixed',
|
|
`percentage_value` decimal(5,2) DEFAULT NULL,
|
|
`order_value` decimal(10,2) DEFAULT NULL,
|
|
`payment_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`payment_method` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`payment_reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`paid_at` timestamp NULL DEFAULT NULL,
|
|
`rider_amount` decimal(10,2) NOT NULL,
|
|
`platform_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`rider_share_percentage` decimal(5,2) NOT NULL DEFAULT '100.00',
|
|
`is_transferred` tinyint(1) NOT NULL DEFAULT '0',
|
|
`transferred_at` timestamp NULL DEFAULT NULL,
|
|
`payout_id` bigint UNSIGNED DEFAULT NULL,
|
|
`message` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_delivery_zones`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_delivery_zones` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`color` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#3B82F6',
|
|
`coordinates` json NOT NULL,
|
|
`min_lat` decimal(10,7) DEFAULT NULL,
|
|
`max_lat` decimal(10,7) DEFAULT NULL,
|
|
`min_lng` decimal(10,7) DEFAULT NULL,
|
|
`max_lng` decimal(10,7) DEFAULT NULL,
|
|
`priority` int NOT NULL DEFAULT '0',
|
|
`is_active` tinyint(1) NOT NULL DEFAULT '1',
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`max_delivery_distance` decimal(8,2) DEFAULT NULL,
|
|
`operating_hours` json DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurant_delivery_zones`
|
|
--
|
|
|
|
INSERT INTO `restaurant_delivery_zones` (`id`, `uuid`, `restaurant_id`, `name`, `slug`, `description`, `color`, `coordinates`, `min_lat`, `max_lat`, `min_lng`, `max_lng`, `priority`, `is_active`, `is_default`, `max_delivery_distance`, `operating_hours`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, '6a44bba7-d991-42b9-adb8-b128cd773dfb', 1, 'Dhanmondi Zone', 'dhanmondi-zone', 'Delivery zone covering Dhanmondi area', '#3B82F6', '[[23.7461, 90.3742], [23.7485, 90.381], [23.7428, 90.3852], [23.7395, 90.377], [23.7461, 90.3742]]', '23.7395000', '23.7485000', '90.3742000', '90.3852000', 1, 1, 1, '5.00', '{\"open\": \"10:00\", \"close\": \"23:00\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(2, 'c3b6cc69-4097-42b3-b756-b532ef80f03f', 1, 'Gulshan Zone', 'gulshan-zone', 'Delivery zone covering Gulshan area', '#22C55E', '[[23.793, 90.4043], [23.7965, 90.4108], [23.7892, 90.4151], [23.785, 90.4082], [23.793, 90.4043]]', '23.7850000', '23.7965000', '90.4043000', '90.4151000', 2, 1, 0, '6.00', '{\"open\": \"09:00\", \"close\": \"22:30\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(3, 'b714a0fd-cabd-4c30-92f3-438474b0f9ec', 1, 'Mirpur Zone', 'mirpur-zone', 'Delivery zone covering Mirpur area', '#F97316', '[[23.8223, 90.3654], [23.828, 90.3725], [23.819, 90.378], [23.8135, 90.3698], [23.8223, 90.3654]]', '23.8135000', '23.8280000', '90.3654000', '90.3780000', 3, 1, 0, '7.00', '{\"open\": \"10:00\", \"close\": \"22:00\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(4, 'e626d401-6f4c-405f-bf09-147f2d77eb67', 1, 'Uttara Zone', 'uttara-zone', 'Delivery zone covering Uttara area', '#A855F7', '[[23.8759, 90.3795], [23.8812, 90.3878], [23.872, 90.3932], [23.8671, 90.3841], [23.8759, 90.3795]]', '23.8671000', '23.8812000', '90.3795000', '90.3932000', 4, 1, 0, '8.00', '{\"open\": \"09:30\", \"close\": \"23:30\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_image_settings`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_image_settings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`header_logo_light_theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`header_logo_dark_theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`footer_logo_light_theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`footer_logo_dark_theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`banner_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurant_image_settings`
|
|
--
|
|
|
|
INSERT INTO `restaurant_image_settings` (`id`, `restaurant_id`, `header_logo_light_theme`, `header_logo_dark_theme`, `footer_logo_light_theme`, `footer_logo_dark_theme`, `banner_image`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'demo.png', 'demo.png', 'demo.png', 'demo.png', 'demo.png', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_image_s_a_a_s_settings`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_image_s_a_a_s_settings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`header_logo_light_theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`header_logo_dark_theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`footer_logo_light_theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`footer_logo_dark_theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`banner_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurant_image_s_a_a_s_settings`
|
|
--
|
|
|
|
INSERT INTO `restaurant_image_s_a_a_s_settings` (`id`, `header_logo_light_theme`, `header_logo_dark_theme`, `footer_logo_light_theme`, `footer_logo_dark_theme`, `banner_image`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 'demo.png', 'demo.png', 'demo.png', 'demo.png', 'demo.png', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_riders`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_riders` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`user_id` bigint UNSIGNED DEFAULT NULL,
|
|
`first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`date_of_birth` date DEFAULT NULL,
|
|
`national_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`emergency_contact` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`type` enum('internal','freelance','third_party') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'freelance',
|
|
`status` enum('pending','active','suspended','inactive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`vehicle_type` enum('bicycle','motorcycle','car','van') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'motorcycle',
|
|
`vehicle_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`vehicle_model` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`vehicle_color` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`license_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`license_expiry` date DEFAULT NULL,
|
|
`is_verified` tinyint(1) NOT NULL DEFAULT '0',
|
|
`verified_at` timestamp NULL DEFAULT NULL,
|
|
`verified_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`verification_documents` json DEFAULT NULL,
|
|
`commission_type` enum('fixed','percentage','per_km','hybrid') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'percentage',
|
|
`commission_rate` decimal(8,2) NOT NULL DEFAULT '70.00',
|
|
`base_commission` decimal(8,2) DEFAULT NULL,
|
|
`per_km_rate` decimal(8,2) DEFAULT NULL,
|
|
`current_latitude` decimal(10,7) DEFAULT NULL,
|
|
`current_longitude` decimal(10,7) DEFAULT NULL,
|
|
`last_location_update` timestamp NULL DEFAULT NULL,
|
|
`rating` decimal(3,2) NOT NULL DEFAULT '5.00',
|
|
`rating_count` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`total_deliveries` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`successful_deliveries` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`cancelled_deliveries` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`failed_deliveries` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`acceptance_rate` decimal(5,2) NOT NULL DEFAULT '100.00',
|
|
`completion_rate` decimal(5,2) NOT NULL DEFAULT '100.00',
|
|
`is_online` tinyint(1) NOT NULL DEFAULT '0',
|
|
`last_online_at` timestamp NULL DEFAULT NULL,
|
|
`went_offline_at` timestamp NULL DEFAULT NULL,
|
|
`fcm_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`device_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`bank_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`bank_account_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`bank_account_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`mobile_wallet_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`mobile_wallet_provider` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`assigned_zones` json DEFAULT NULL,
|
|
`meta` json DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurant_riders`
|
|
--
|
|
|
|
INSERT INTO `restaurant_riders` (`id`, `uuid`, `restaurant_id`, `user_id`, `first_name`, `last_name`, `phone`, `email`, `photo`, `date_of_birth`, `national_id`, `emergency_contact`, `type`, `status`, `vehicle_type`, `vehicle_number`, `vehicle_model`, `vehicle_color`, `license_number`, `license_expiry`, `is_verified`, `verified_at`, `verified_by`, `verification_documents`, `commission_type`, `commission_rate`, `base_commission`, `per_km_rate`, `current_latitude`, `current_longitude`, `last_location_update`, `rating`, `rating_count`, `total_deliveries`, `successful_deliveries`, `cancelled_deliveries`, `failed_deliveries`, `acceptance_rate`, `completion_rate`, `is_online`, `last_online_at`, `went_offline_at`, `fcm_token`, `device_id`, `bank_name`, `bank_account_number`, `bank_account_name`, `mobile_wallet_number`, `mobile_wallet_provider`, `assigned_zones`, `meta`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, '5ef4e227-fb36-4011-8869-5a34d5147033', 1, 23, 'Rakib', 'Hossain', '01710000001', 'rakib.rider@gmail.com', NULL, '1998-04-15', '19982654789012345', '01790000001', 'freelance', 'active', 'motorcycle', 'DHAKA-METRO-LA-123456', 'Bajaj Discover 125', 'Black', 'DL-45879632', '2027-06-30', 1, '2026-01-26 12:11:13', 'admin', '{\"nid\": \"nid_rakib.jpg\", \"license\": \"license_rakib.jpg\"}', 'percentage', '70.00', NULL, NULL, '23.7461000', '90.3742000', '2026-01-26 12:11:13', '4.85', 124, 320, 305, 10, 5, '95.00', '96.50', 1, '2026-01-26 12:11:13', NULL, NULL, NULL, 'bKash', NULL, NULL, '01710000001', 'bKash', '[1, 2]', '{\"shift\": \"day\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(2, '51d85fd9-f99c-4fc0-b673-61cc7a7e5840', 1, 24, 'Sajid', 'Ahmed', '01820000002', NULL, NULL, NULL, NULL, NULL, 'freelance', 'active', 'bicycle', NULL, NULL, NULL, NULL, NULL, 1, '2026-01-26 12:11:13', 'admin', NULL, 'fixed', '50.00', NULL, NULL, '23.8223000', '90.3654000', '2026-01-26 12:11:13', '4.60', 52, 140, 135, 3, 2, '100.00', '100.00', 1, '2026-01-26 12:11:13', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '[3]', '{\"shift\": \"morning\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(3, '772a4e0a-b4ab-4e85-8736-dd11c624c025', 1, NULL, 'Mahmud', 'Khan', '01930000003', 'mahmud.khan@gmail.com', NULL, NULL, NULL, NULL, 'internal', 'active', 'car', 'DHAKA-METRO-GA-987654', 'Toyota Axio', 'White', NULL, NULL, 1, '2026-01-26 12:11:13', 'super_admin', NULL, 'hybrid', '60.00', '40.00', '6.00', '23.7930000', '90.4043000', '2026-01-26 12:11:13', '4.95', 210, 410, 405, 0, 0, '100.00', '100.00', 0, NULL, '2026-01-26 10:11:13', NULL, NULL, 'Dutch Bangla Bank', '1234567890', 'Mahmud Khan', NULL, NULL, '[2, 4]', '{\"vehicle_class\": \"premium\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(4, '4a80e987-312e-45aa-ad46-9b2a053f11a4', 1, NULL, 'Arif', 'Hasan', '01640000004', NULL, NULL, NULL, NULL, NULL, 'third_party', 'pending', 'motorcycle', NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 'percentage', '65.00', NULL, NULL, NULL, NULL, NULL, '5.00', 0, 0, 0, 0, 0, '100.00', '100.00', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '[1]', '{\"note\": \"Awaiting documents\"}', '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_rider_bonuses`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_rider_bonuses` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`type` enum('peak_hour','rain','consecutive','rating','weekly_target','monthly_target','referral','special','first_delivery','new_area') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`calculation_type` enum('fixed','percentage','per_delivery','per_km') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fixed',
|
|
`amount` decimal(10,2) NOT NULL,
|
|
`conditions` json DEFAULT NULL,
|
|
`is_active` tinyint(1) NOT NULL DEFAULT '1',
|
|
`valid_from` date DEFAULT NULL,
|
|
`valid_until` date DEFAULT NULL,
|
|
`valid_days` json DEFAULT NULL,
|
|
`max_uses_total` int UNSIGNED DEFAULT NULL,
|
|
`max_uses_per_rider` int UNSIGNED DEFAULT NULL,
|
|
`max_uses_per_day` int UNSIGNED DEFAULT NULL,
|
|
`current_uses` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`applicable_zones` json DEFAULT NULL,
|
|
`applicable_rider_types` json DEFAULT NULL,
|
|
`min_rider_rating` decimal(3,2) DEFAULT NULL,
|
|
`is_stackable` tinyint(1) NOT NULL DEFAULT '0',
|
|
`excluded_bonuses` json DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_rider_earnings`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_rider_earnings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`rider_id` bigint UNSIGNED NOT NULL,
|
|
`delivery_id` bigint UNSIGNED DEFAULT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`type` enum('delivery','tip','bonus','penalty','adjustment','incentive') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'delivery',
|
|
`sub_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`gross_amount` decimal(10,2) NOT NULL,
|
|
`platform_fee` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`tax` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`deductions` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`net_amount` decimal(10,2) NOT NULL,
|
|
`currency` varchar(3) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'BDT',
|
|
`calculation_breakdown` json DEFAULT NULL,
|
|
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`confirmed_at` timestamp NULL DEFAULT NULL,
|
|
`payout_id` bigint UNSIGNED DEFAULT NULL,
|
|
`is_paid` tinyint(1) NOT NULL DEFAULT '0',
|
|
`paid_at` timestamp NULL DEFAULT NULL,
|
|
`earning_date` date NOT NULL,
|
|
`earning_week` tinyint UNSIGNED DEFAULT NULL,
|
|
`earning_month` tinyint UNSIGNED DEFAULT NULL,
|
|
`earning_year` smallint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_rider_location_logs`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_rider_location_logs` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`rider_id` bigint UNSIGNED NOT NULL,
|
|
`delivery_id` bigint UNSIGNED DEFAULT NULL,
|
|
`latitude` decimal(10,7) NOT NULL,
|
|
`longitude` decimal(10,7) NOT NULL,
|
|
`speed` double DEFAULT NULL,
|
|
`bearing` double DEFAULT NULL,
|
|
`accuracy` double DEFAULT NULL,
|
|
`altitude` double DEFAULT NULL,
|
|
`battery_level` tinyint UNSIGNED DEFAULT NULL,
|
|
`is_charging` tinyint(1) DEFAULT NULL,
|
|
`network_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`source` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'app',
|
|
`recorded_at` timestamp NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_rider_payouts`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_rider_payouts` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`payout_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`rider_id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`period_start` date NOT NULL,
|
|
`period_end` date NOT NULL,
|
|
`period_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'weekly',
|
|
`total_deliveries_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`total_tips_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`total_bonuses_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`total_penalties_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`total_adjustments_amount` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`gross_amount` decimal(12,2) NOT NULL,
|
|
`platform_fees` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`tax_deductions` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`other_deductions` decimal(12,2) NOT NULL DEFAULT '0.00',
|
|
`net_amount` decimal(12,2) NOT NULL,
|
|
`currency` varchar(3) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'BDT',
|
|
`total_deliveries` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`total_tips_count` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`total_bonuses_count` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`total_penalties_count` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`payment_method` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`payment_reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`payment_details` json DEFAULT NULL,
|
|
`processed_at` timestamp NULL DEFAULT NULL,
|
|
`paid_at` timestamp NULL DEFAULT NULL,
|
|
`failed_at` timestamp NULL DEFAULT NULL,
|
|
`failure_reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`retry_count` tinyint UNSIGNED NOT NULL DEFAULT '0',
|
|
`approved_by` bigint UNSIGNED DEFAULT NULL,
|
|
`approved_at` timestamp NULL DEFAULT NULL,
|
|
`processed_by` bigint UNSIGNED DEFAULT NULL,
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`meta` json DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_schedules`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_schedules` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`day` enum('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`is_open` tinyint(1) NOT NULL DEFAULT '1',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurant_schedules`
|
|
--
|
|
|
|
INSERT INTO `restaurant_schedules` (`id`, `restaurant_id`, `day`, `is_open`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Sunday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 'Monday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 'Tuesday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 'Wednesday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 'Thursday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 'Friday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 'Saturday', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_schedule_times`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_schedule_times` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_schedule_id` bigint UNSIGNED NOT NULL,
|
|
`open_time` time NOT NULL,
|
|
`close_time` time NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurant_schedule_times`
|
|
--
|
|
|
|
INSERT INTO `restaurant_schedule_times` (`id`, `restaurant_schedule_id`, `open_time`, `close_time`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, '08:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, '18:00:00', '23:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 2, '08:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 2, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 2, '18:00:00', '23:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 3, '08:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 3, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 3, '18:00:00', '23:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 4, '08:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 4, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 4, '18:00:00', '23:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 5, '08:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 5, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 5, '18:00:00', '23:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 6, '08:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 6, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 6, '18:00:00', '23:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(19, 7, '08:00:00', '12:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(20, 7, '13:00:00', '17:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(21, 7, '18:00:00', '23:00:00', '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `restaurant_zone_pricing_rules`
|
|
--
|
|
|
|
CREATE TABLE `restaurant_zone_pricing_rules` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`zone_id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`priority` int NOT NULL DEFAULT '1',
|
|
`is_active` tinyint(1) NOT NULL DEFAULT '1',
|
|
`base_fare` decimal(10,2) NOT NULL DEFAULT '30.00',
|
|
`minimum_fare` decimal(10,2) NOT NULL DEFAULT '30.00',
|
|
`per_km_charge` decimal(10,2) NOT NULL DEFAULT '8.00',
|
|
`free_distance` decimal(8,2) NOT NULL DEFAULT '0.00',
|
|
`max_distance` decimal(8,2) DEFAULT NULL,
|
|
`surge_enabled` tinyint(1) NOT NULL DEFAULT '0',
|
|
`surge_multiplier` decimal(4,2) NOT NULL DEFAULT '1.00',
|
|
`conditions` json DEFAULT NULL,
|
|
`valid_from` time DEFAULT NULL,
|
|
`valid_until` time DEFAULT NULL,
|
|
`valid_days` int DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `restaurant_zone_pricing_rules`
|
|
--
|
|
|
|
INSERT INTO `restaurant_zone_pricing_rules` (`id`, `uuid`, `restaurant_id`, `zone_id`, `name`, `priority`, `is_active`, `base_fare`, `minimum_fare`, `per_km_charge`, `free_distance`, `max_distance`, `surge_enabled`, `surge_multiplier`, `conditions`, `valid_from`, `valid_until`, `valid_days`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 'd2155d52-bbfc-4953-8983-6214026f3111', 1, 1, 'Dhanmondi Standard Pricing', 1, 1, '30.00', '30.00', '8.00', '1.00', '8.00', 0, '1.00', NULL, NULL, NULL, NULL, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(2, '1fdfacd7-910e-488a-86b9-bc52360b4dc2', 1, 1, 'Dhanmondi Peak Hour Surge', 2, 1, '35.00', '40.00', '9.00', '0.00', NULL, 1, '1.30', '{\"note\": \"Evening rush\", \"type\": \"peak_hour\"}', '18:00:00', '22:00:00', 62, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(3, 'caf27eed-79a2-4f7d-af9e-f11c157366d0', 1, 2, 'Gulshan Standard Pricing', 1, 1, '40.00', '50.00', '12.00', '0.00', '10.00', 0, '1.00', NULL, NULL, NULL, NULL, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(4, '0a53fd03-917f-4dea-a73c-08762965d252', 1, 2, 'Gulshan Weekend Surge', 2, 1, '45.00', '60.00', '14.00', '0.00', NULL, 1, '1.50', '{\"note\": \"Friday & Saturday\", \"type\": \"weekend\"}', '12:00:00', '23:59:59', 96, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(5, 'c3a402c4-02c4-437d-a2c2-77a0cef44f2e', 1, 3, 'Mirpur Budget Pricing', 1, 1, '25.00', '30.00', '7.00', '1.50', '7.00', 0, '1.00', NULL, NULL, NULL, NULL, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(6, '2ee72cdc-8811-4e0d-b427-95c415df74c2', 1, 4, 'Uttara Long Distance Pricing', 1, 1, '35.00', '40.00', '9.00', '1.00', '12.00', 0, '1.00', NULL, NULL, NULL, NULL, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `reviews`
|
|
--
|
|
|
|
CREATE TABLE `reviews` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`customer_id` bigint UNSIGNED NOT NULL,
|
|
`food_item_id` bigint UNSIGNED NOT NULL,
|
|
`rating` tinyint UNSIGNED NOT NULL DEFAULT '5',
|
|
`comment` text COLLATE utf8mb4_unicode_ci,
|
|
`is_approved` tinyint(1) NOT NULL DEFAULT '0',
|
|
`is_active` tinyint(1) NOT NULL DEFAULT '1',
|
|
`likes_count` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`reported_count` int UNSIGNED NOT NULL DEFAULT '0',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `review_images`
|
|
--
|
|
|
|
CREATE TABLE `review_images` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`review_id` bigint UNSIGNED NOT NULL,
|
|
`image_path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`position` tinyint NOT NULL DEFAULT '1',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `roles`
|
|
--
|
|
|
|
CREATE TABLE `roles` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `roles`
|
|
--
|
|
|
|
INSERT INTO `roles` (`id`, `restaurant_id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
|
|
(1, NULL, 'SAAS Admin', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(2, NULL, 'Super Admin', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(3, NULL, 'Owner', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(4, NULL, 'Manager', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(5, NULL, 'Employee', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(6, NULL, 'Waiter', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(7, NULL, 'Chef', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(8, NULL, 'Delivery Man', 'web', '2026-01-26 12:10:55', '2026-01-26 12:10:55'),
|
|
(9, NULL, 'Customer', 'customer', '2026-01-26 12:11:09', '2026-01-26 12:11:09');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `role_has_permissions`
|
|
--
|
|
|
|
CREATE TABLE `role_has_permissions` (
|
|
`permission_id` bigint UNSIGNED NOT NULL,
|
|
`role_id` bigint UNSIGNED NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `role_has_permissions`
|
|
--
|
|
|
|
INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
|
|
(1, 1),
|
|
(2, 1),
|
|
(3, 1),
|
|
(10, 1),
|
|
(11, 1),
|
|
(12, 1),
|
|
(13, 1),
|
|
(14, 1),
|
|
(15, 1),
|
|
(16, 1),
|
|
(17, 1),
|
|
(18, 1),
|
|
(261, 1),
|
|
(262, 1),
|
|
(263, 1),
|
|
(264, 1),
|
|
(265, 1),
|
|
(4, 2),
|
|
(10, 2),
|
|
(11, 2),
|
|
(12, 2),
|
|
(13, 2),
|
|
(14, 2),
|
|
(15, 2),
|
|
(16, 2),
|
|
(17, 2),
|
|
(18, 2),
|
|
(19, 2),
|
|
(20, 2),
|
|
(21, 2),
|
|
(22, 2),
|
|
(23, 2),
|
|
(24, 2),
|
|
(25, 2),
|
|
(26, 2),
|
|
(27, 2),
|
|
(28, 2),
|
|
(29, 2),
|
|
(30, 2),
|
|
(31, 2),
|
|
(32, 2),
|
|
(33, 2),
|
|
(34, 2),
|
|
(35, 2),
|
|
(36, 2),
|
|
(37, 2),
|
|
(38, 2),
|
|
(39, 2),
|
|
(40, 2),
|
|
(41, 2),
|
|
(42, 2),
|
|
(43, 2),
|
|
(44, 2),
|
|
(45, 2),
|
|
(46, 2),
|
|
(47, 2),
|
|
(48, 2),
|
|
(49, 2),
|
|
(50, 2),
|
|
(51, 2),
|
|
(52, 2),
|
|
(53, 2),
|
|
(54, 2),
|
|
(55, 2),
|
|
(56, 2),
|
|
(57, 2),
|
|
(58, 2),
|
|
(59, 2),
|
|
(60, 2),
|
|
(61, 2),
|
|
(62, 2),
|
|
(63, 2),
|
|
(64, 2),
|
|
(65, 2),
|
|
(66, 2),
|
|
(67, 2),
|
|
(68, 2),
|
|
(69, 2),
|
|
(70, 2),
|
|
(71, 2),
|
|
(72, 2),
|
|
(73, 2),
|
|
(74, 2),
|
|
(75, 2),
|
|
(76, 2),
|
|
(77, 2),
|
|
(78, 2),
|
|
(79, 2),
|
|
(80, 2),
|
|
(81, 2),
|
|
(82, 2),
|
|
(83, 2),
|
|
(84, 2),
|
|
(85, 2),
|
|
(86, 2),
|
|
(87, 2),
|
|
(88, 2),
|
|
(89, 2),
|
|
(90, 2),
|
|
(91, 2),
|
|
(92, 2),
|
|
(93, 2),
|
|
(94, 2),
|
|
(95, 2),
|
|
(96, 2),
|
|
(97, 2),
|
|
(98, 2),
|
|
(99, 2),
|
|
(100, 2),
|
|
(101, 2),
|
|
(102, 2),
|
|
(103, 2),
|
|
(104, 2),
|
|
(105, 2),
|
|
(106, 2),
|
|
(107, 2),
|
|
(108, 2),
|
|
(109, 2),
|
|
(110, 2),
|
|
(111, 2),
|
|
(112, 2),
|
|
(113, 2),
|
|
(114, 2),
|
|
(115, 2),
|
|
(116, 2),
|
|
(117, 2),
|
|
(118, 2),
|
|
(119, 2),
|
|
(120, 2),
|
|
(121, 2),
|
|
(122, 2),
|
|
(123, 2),
|
|
(124, 2),
|
|
(125, 2),
|
|
(126, 2),
|
|
(127, 2),
|
|
(128, 2),
|
|
(129, 2),
|
|
(130, 2),
|
|
(131, 2),
|
|
(132, 2),
|
|
(133, 2),
|
|
(134, 2),
|
|
(135, 2),
|
|
(136, 2),
|
|
(137, 2),
|
|
(138, 2),
|
|
(139, 2),
|
|
(140, 2),
|
|
(141, 2),
|
|
(142, 2),
|
|
(143, 2),
|
|
(144, 2),
|
|
(145, 2),
|
|
(146, 2),
|
|
(147, 2),
|
|
(148, 2),
|
|
(149, 2),
|
|
(150, 2),
|
|
(151, 2),
|
|
(152, 2),
|
|
(153, 2),
|
|
(154, 2),
|
|
(155, 2),
|
|
(156, 2),
|
|
(157, 2),
|
|
(158, 2),
|
|
(159, 2),
|
|
(160, 2),
|
|
(161, 2),
|
|
(162, 2),
|
|
(163, 2),
|
|
(164, 2),
|
|
(165, 2),
|
|
(166, 2),
|
|
(167, 2),
|
|
(168, 2),
|
|
(169, 2),
|
|
(170, 2),
|
|
(171, 2),
|
|
(172, 2),
|
|
(173, 2),
|
|
(174, 2),
|
|
(175, 2),
|
|
(176, 2),
|
|
(177, 2),
|
|
(178, 2),
|
|
(179, 2),
|
|
(180, 2),
|
|
(181, 2),
|
|
(182, 2),
|
|
(183, 2),
|
|
(184, 2),
|
|
(185, 2),
|
|
(186, 2),
|
|
(187, 2),
|
|
(188, 2),
|
|
(189, 2),
|
|
(190, 2),
|
|
(191, 2),
|
|
(192, 2),
|
|
(193, 2),
|
|
(194, 2),
|
|
(195, 2),
|
|
(196, 2),
|
|
(197, 2),
|
|
(198, 2),
|
|
(199, 2),
|
|
(200, 2),
|
|
(201, 2),
|
|
(202, 2),
|
|
(203, 2),
|
|
(204, 2),
|
|
(205, 2),
|
|
(206, 2),
|
|
(207, 2),
|
|
(208, 2),
|
|
(209, 2),
|
|
(210, 2),
|
|
(211, 2),
|
|
(212, 2),
|
|
(213, 2),
|
|
(214, 2),
|
|
(215, 2),
|
|
(216, 2),
|
|
(217, 2),
|
|
(218, 2),
|
|
(219, 2),
|
|
(220, 2),
|
|
(221, 2),
|
|
(222, 2),
|
|
(223, 2),
|
|
(224, 2),
|
|
(225, 2),
|
|
(226, 2),
|
|
(227, 2),
|
|
(228, 2),
|
|
(229, 2),
|
|
(230, 2),
|
|
(231, 2),
|
|
(232, 2),
|
|
(233, 2),
|
|
(234, 2),
|
|
(235, 2),
|
|
(236, 2),
|
|
(237, 2),
|
|
(238, 2),
|
|
(239, 2),
|
|
(240, 2),
|
|
(241, 2),
|
|
(242, 2),
|
|
(243, 2),
|
|
(244, 2),
|
|
(245, 2),
|
|
(246, 2),
|
|
(247, 2),
|
|
(248, 2),
|
|
(249, 2),
|
|
(250, 2),
|
|
(251, 2),
|
|
(252, 2),
|
|
(253, 2),
|
|
(254, 2),
|
|
(255, 2),
|
|
(256, 2),
|
|
(257, 2),
|
|
(258, 2),
|
|
(259, 2),
|
|
(260, 2),
|
|
(261, 2),
|
|
(262, 2),
|
|
(263, 2),
|
|
(264, 2),
|
|
(265, 2),
|
|
(266, 2),
|
|
(267, 2),
|
|
(268, 2),
|
|
(269, 2),
|
|
(270, 2),
|
|
(271, 2),
|
|
(272, 2),
|
|
(273, 2),
|
|
(274, 2),
|
|
(275, 2),
|
|
(276, 2),
|
|
(277, 2),
|
|
(278, 2),
|
|
(279, 2),
|
|
(280, 2),
|
|
(281, 2),
|
|
(282, 2),
|
|
(283, 2),
|
|
(284, 2),
|
|
(285, 2),
|
|
(286, 2),
|
|
(287, 2),
|
|
(288, 2),
|
|
(289, 2),
|
|
(290, 2),
|
|
(291, 2),
|
|
(292, 2),
|
|
(293, 2),
|
|
(294, 2),
|
|
(295, 2),
|
|
(296, 2),
|
|
(297, 2),
|
|
(298, 2),
|
|
(299, 2),
|
|
(300, 2),
|
|
(301, 2),
|
|
(302, 2),
|
|
(303, 2),
|
|
(304, 2),
|
|
(305, 2),
|
|
(306, 2),
|
|
(307, 2),
|
|
(308, 2),
|
|
(309, 2),
|
|
(310, 2),
|
|
(311, 2),
|
|
(312, 2),
|
|
(313, 2),
|
|
(314, 2),
|
|
(315, 2),
|
|
(316, 2),
|
|
(317, 2),
|
|
(318, 2),
|
|
(319, 2),
|
|
(320, 2),
|
|
(321, 2),
|
|
(322, 2),
|
|
(323, 2),
|
|
(324, 2),
|
|
(325, 2),
|
|
(326, 2),
|
|
(327, 2),
|
|
(328, 2),
|
|
(329, 2),
|
|
(330, 2),
|
|
(331, 2),
|
|
(332, 2),
|
|
(333, 2),
|
|
(334, 2),
|
|
(335, 2),
|
|
(336, 2),
|
|
(337, 2),
|
|
(338, 2),
|
|
(339, 2),
|
|
(340, 2),
|
|
(341, 2),
|
|
(342, 2),
|
|
(343, 2),
|
|
(344, 2),
|
|
(345, 2),
|
|
(346, 2),
|
|
(347, 2),
|
|
(348, 2),
|
|
(349, 2),
|
|
(350, 2),
|
|
(351, 2),
|
|
(352, 2),
|
|
(353, 2),
|
|
(354, 2),
|
|
(355, 2),
|
|
(356, 2),
|
|
(357, 2),
|
|
(358, 2),
|
|
(359, 2),
|
|
(360, 2),
|
|
(361, 2),
|
|
(362, 2),
|
|
(363, 2),
|
|
(364, 2),
|
|
(365, 2),
|
|
(366, 2),
|
|
(367, 2),
|
|
(368, 2),
|
|
(369, 2),
|
|
(370, 2),
|
|
(371, 2),
|
|
(372, 2),
|
|
(373, 2),
|
|
(374, 2),
|
|
(375, 2),
|
|
(376, 2),
|
|
(377, 2),
|
|
(378, 2),
|
|
(379, 2),
|
|
(380, 2),
|
|
(381, 2),
|
|
(382, 2),
|
|
(383, 2),
|
|
(384, 2),
|
|
(385, 2),
|
|
(386, 2),
|
|
(387, 2),
|
|
(388, 2),
|
|
(389, 2),
|
|
(390, 2),
|
|
(391, 2),
|
|
(392, 2),
|
|
(393, 2),
|
|
(394, 2),
|
|
(395, 2),
|
|
(396, 2),
|
|
(397, 2),
|
|
(398, 2),
|
|
(399, 2),
|
|
(400, 2),
|
|
(401, 2),
|
|
(402, 2),
|
|
(403, 2),
|
|
(404, 2),
|
|
(405, 2),
|
|
(406, 2),
|
|
(407, 2),
|
|
(408, 2),
|
|
(409, 2),
|
|
(410, 2),
|
|
(411, 2),
|
|
(412, 2),
|
|
(413, 2),
|
|
(4, 3),
|
|
(10, 3),
|
|
(11, 3),
|
|
(12, 3),
|
|
(13, 3),
|
|
(14, 3),
|
|
(15, 3),
|
|
(16, 3),
|
|
(17, 3),
|
|
(18, 3),
|
|
(19, 3),
|
|
(20, 3),
|
|
(21, 3),
|
|
(22, 3),
|
|
(23, 3),
|
|
(24, 3),
|
|
(25, 3),
|
|
(26, 3),
|
|
(27, 3),
|
|
(28, 3),
|
|
(29, 3),
|
|
(30, 3),
|
|
(31, 3),
|
|
(32, 3),
|
|
(33, 3),
|
|
(34, 3),
|
|
(35, 3),
|
|
(36, 3),
|
|
(37, 3),
|
|
(38, 3),
|
|
(39, 3),
|
|
(40, 3),
|
|
(41, 3),
|
|
(42, 3),
|
|
(43, 3),
|
|
(44, 3),
|
|
(45, 3),
|
|
(46, 3),
|
|
(47, 3),
|
|
(48, 3),
|
|
(49, 3),
|
|
(50, 3),
|
|
(51, 3),
|
|
(52, 3),
|
|
(53, 3),
|
|
(54, 3),
|
|
(55, 3),
|
|
(56, 3),
|
|
(57, 3),
|
|
(58, 3),
|
|
(59, 3),
|
|
(60, 3),
|
|
(61, 3),
|
|
(62, 3),
|
|
(63, 3),
|
|
(64, 3),
|
|
(65, 3),
|
|
(66, 3),
|
|
(67, 3),
|
|
(68, 3),
|
|
(69, 3),
|
|
(70, 3),
|
|
(71, 3),
|
|
(72, 3),
|
|
(73, 3),
|
|
(74, 3),
|
|
(75, 3),
|
|
(76, 3),
|
|
(77, 3),
|
|
(78, 3),
|
|
(79, 3),
|
|
(80, 3),
|
|
(81, 3),
|
|
(82, 3),
|
|
(83, 3),
|
|
(84, 3),
|
|
(85, 3),
|
|
(86, 3),
|
|
(87, 3),
|
|
(88, 3),
|
|
(89, 3),
|
|
(90, 3),
|
|
(91, 3),
|
|
(92, 3),
|
|
(93, 3),
|
|
(94, 3),
|
|
(95, 3),
|
|
(96, 3),
|
|
(97, 3),
|
|
(98, 3),
|
|
(99, 3),
|
|
(100, 3),
|
|
(101, 3),
|
|
(102, 3),
|
|
(103, 3),
|
|
(104, 3),
|
|
(105, 3),
|
|
(106, 3),
|
|
(107, 3),
|
|
(108, 3),
|
|
(109, 3),
|
|
(110, 3),
|
|
(111, 3),
|
|
(112, 3),
|
|
(113, 3),
|
|
(114, 3),
|
|
(115, 3),
|
|
(116, 3),
|
|
(117, 3),
|
|
(118, 3),
|
|
(119, 3),
|
|
(120, 3),
|
|
(121, 3),
|
|
(122, 3),
|
|
(123, 3),
|
|
(124, 3),
|
|
(125, 3),
|
|
(126, 3),
|
|
(127, 3),
|
|
(128, 3),
|
|
(129, 3),
|
|
(130, 3),
|
|
(131, 3),
|
|
(132, 3),
|
|
(133, 3),
|
|
(134, 3),
|
|
(135, 3),
|
|
(136, 3),
|
|
(137, 3),
|
|
(138, 3),
|
|
(139, 3),
|
|
(140, 3),
|
|
(141, 3),
|
|
(142, 3),
|
|
(143, 3),
|
|
(144, 3),
|
|
(145, 3),
|
|
(146, 3),
|
|
(147, 3),
|
|
(148, 3),
|
|
(149, 3),
|
|
(150, 3),
|
|
(151, 3),
|
|
(152, 3),
|
|
(153, 3),
|
|
(154, 3),
|
|
(155, 3),
|
|
(156, 3),
|
|
(157, 3),
|
|
(158, 3),
|
|
(159, 3),
|
|
(160, 3),
|
|
(161, 3),
|
|
(162, 3),
|
|
(163, 3),
|
|
(164, 3),
|
|
(165, 3),
|
|
(166, 3),
|
|
(167, 3),
|
|
(168, 3),
|
|
(169, 3),
|
|
(170, 3),
|
|
(171, 3),
|
|
(172, 3),
|
|
(173, 3),
|
|
(174, 3),
|
|
(175, 3),
|
|
(176, 3),
|
|
(177, 3),
|
|
(178, 3),
|
|
(179, 3),
|
|
(180, 3),
|
|
(181, 3),
|
|
(182, 3),
|
|
(183, 3),
|
|
(184, 3),
|
|
(185, 3),
|
|
(186, 3),
|
|
(187, 3),
|
|
(188, 3),
|
|
(189, 3),
|
|
(190, 3),
|
|
(191, 3),
|
|
(192, 3),
|
|
(193, 3),
|
|
(194, 3),
|
|
(195, 3),
|
|
(196, 3),
|
|
(197, 3),
|
|
(198, 3),
|
|
(199, 3),
|
|
(200, 3),
|
|
(201, 3),
|
|
(202, 3),
|
|
(203, 3),
|
|
(204, 3),
|
|
(205, 3),
|
|
(206, 3),
|
|
(207, 3),
|
|
(208, 3),
|
|
(209, 3),
|
|
(210, 3),
|
|
(211, 3),
|
|
(212, 3),
|
|
(213, 3),
|
|
(214, 3),
|
|
(215, 3),
|
|
(216, 3),
|
|
(217, 3),
|
|
(218, 3),
|
|
(219, 3),
|
|
(220, 3),
|
|
(221, 3),
|
|
(222, 3),
|
|
(223, 3),
|
|
(224, 3),
|
|
(225, 3),
|
|
(226, 3),
|
|
(227, 3),
|
|
(228, 3),
|
|
(229, 3),
|
|
(230, 3),
|
|
(231, 3),
|
|
(232, 3),
|
|
(233, 3),
|
|
(234, 3),
|
|
(235, 3),
|
|
(236, 3),
|
|
(237, 3),
|
|
(238, 3),
|
|
(239, 3),
|
|
(240, 3),
|
|
(241, 3),
|
|
(242, 3),
|
|
(243, 3),
|
|
(244, 3),
|
|
(245, 3),
|
|
(246, 3),
|
|
(247, 3),
|
|
(248, 3),
|
|
(249, 3),
|
|
(250, 3),
|
|
(251, 3),
|
|
(252, 3),
|
|
(253, 3),
|
|
(254, 3),
|
|
(255, 3),
|
|
(256, 3),
|
|
(257, 3),
|
|
(258, 3),
|
|
(259, 3),
|
|
(260, 3),
|
|
(261, 3),
|
|
(262, 3),
|
|
(263, 3),
|
|
(264, 3),
|
|
(265, 3),
|
|
(266, 3),
|
|
(267, 3),
|
|
(268, 3),
|
|
(269, 3),
|
|
(270, 3),
|
|
(271, 3),
|
|
(272, 3),
|
|
(273, 3),
|
|
(274, 3),
|
|
(275, 3),
|
|
(276, 3),
|
|
(277, 3),
|
|
(278, 3),
|
|
(279, 3),
|
|
(280, 3),
|
|
(281, 3),
|
|
(282, 3),
|
|
(283, 3),
|
|
(284, 3),
|
|
(285, 3),
|
|
(286, 3),
|
|
(287, 3),
|
|
(288, 3),
|
|
(289, 3),
|
|
(290, 3),
|
|
(291, 3),
|
|
(292, 3),
|
|
(293, 3),
|
|
(294, 3),
|
|
(295, 3),
|
|
(296, 3),
|
|
(297, 3),
|
|
(298, 3),
|
|
(299, 3),
|
|
(300, 3),
|
|
(301, 3),
|
|
(302, 3),
|
|
(303, 3),
|
|
(304, 3),
|
|
(305, 3),
|
|
(306, 3),
|
|
(307, 3),
|
|
(308, 3),
|
|
(309, 3),
|
|
(310, 3),
|
|
(311, 3),
|
|
(312, 3),
|
|
(313, 3),
|
|
(314, 3),
|
|
(315, 3),
|
|
(316, 3),
|
|
(317, 3),
|
|
(318, 3),
|
|
(319, 3),
|
|
(320, 3),
|
|
(321, 3),
|
|
(322, 3),
|
|
(323, 3),
|
|
(324, 3),
|
|
(325, 3),
|
|
(326, 3),
|
|
(327, 3),
|
|
(328, 3),
|
|
(329, 3),
|
|
(330, 3),
|
|
(331, 3),
|
|
(332, 3),
|
|
(333, 3),
|
|
(334, 3),
|
|
(335, 3),
|
|
(336, 3),
|
|
(337, 3),
|
|
(338, 3),
|
|
(339, 3),
|
|
(340, 3),
|
|
(341, 3),
|
|
(342, 3),
|
|
(343, 3),
|
|
(344, 3),
|
|
(345, 3),
|
|
(346, 3),
|
|
(347, 3),
|
|
(348, 3),
|
|
(349, 3),
|
|
(350, 3),
|
|
(351, 3),
|
|
(352, 3),
|
|
(353, 3),
|
|
(354, 3),
|
|
(355, 3),
|
|
(356, 3),
|
|
(357, 3),
|
|
(358, 3),
|
|
(359, 3),
|
|
(360, 3),
|
|
(361, 3),
|
|
(362, 3),
|
|
(363, 3),
|
|
(364, 3),
|
|
(365, 3),
|
|
(366, 3),
|
|
(367, 3),
|
|
(368, 3),
|
|
(369, 3),
|
|
(370, 3),
|
|
(371, 3),
|
|
(372, 3),
|
|
(373, 3),
|
|
(374, 3),
|
|
(375, 3),
|
|
(376, 3),
|
|
(377, 3),
|
|
(378, 3),
|
|
(379, 3),
|
|
(380, 3),
|
|
(381, 3),
|
|
(382, 3),
|
|
(383, 3),
|
|
(384, 3),
|
|
(385, 3),
|
|
(386, 3),
|
|
(387, 3),
|
|
(388, 3),
|
|
(389, 3),
|
|
(390, 3),
|
|
(391, 3),
|
|
(392, 3),
|
|
(393, 3),
|
|
(394, 3),
|
|
(395, 3),
|
|
(396, 3),
|
|
(397, 3),
|
|
(398, 3),
|
|
(399, 3),
|
|
(400, 3),
|
|
(401, 3),
|
|
(402, 3),
|
|
(403, 3),
|
|
(404, 3),
|
|
(405, 3),
|
|
(406, 3),
|
|
(407, 3),
|
|
(408, 3),
|
|
(409, 3),
|
|
(410, 3),
|
|
(411, 3),
|
|
(412, 3),
|
|
(413, 3),
|
|
(5, 4),
|
|
(10, 4),
|
|
(29, 4),
|
|
(30, 4),
|
|
(39, 4),
|
|
(40, 4),
|
|
(41, 4),
|
|
(42, 4),
|
|
(43, 4),
|
|
(44, 4),
|
|
(45, 4),
|
|
(46, 4),
|
|
(47, 4),
|
|
(48, 4),
|
|
(49, 4),
|
|
(50, 4),
|
|
(51, 4),
|
|
(52, 4),
|
|
(53, 4),
|
|
(54, 4),
|
|
(55, 4),
|
|
(56, 4),
|
|
(57, 4),
|
|
(58, 4),
|
|
(69, 4),
|
|
(70, 4),
|
|
(71, 4),
|
|
(72, 4),
|
|
(73, 4),
|
|
(79, 4),
|
|
(80, 4),
|
|
(81, 4),
|
|
(82, 4),
|
|
(83, 4),
|
|
(96, 4),
|
|
(97, 4),
|
|
(98, 4),
|
|
(99, 4),
|
|
(100, 4),
|
|
(101, 4),
|
|
(102, 4),
|
|
(103, 4),
|
|
(104, 4),
|
|
(105, 4),
|
|
(106, 4),
|
|
(107, 4),
|
|
(108, 4),
|
|
(109, 4),
|
|
(110, 4),
|
|
(116, 4),
|
|
(117, 4),
|
|
(118, 4),
|
|
(119, 4),
|
|
(120, 4),
|
|
(121, 4),
|
|
(122, 4),
|
|
(123, 4),
|
|
(124, 4),
|
|
(125, 4),
|
|
(126, 4),
|
|
(127, 4),
|
|
(128, 4),
|
|
(129, 4),
|
|
(130, 4),
|
|
(136, 4),
|
|
(137, 4),
|
|
(138, 4),
|
|
(139, 4),
|
|
(140, 4),
|
|
(141, 4),
|
|
(142, 4),
|
|
(143, 4),
|
|
(144, 4),
|
|
(145, 4),
|
|
(146, 4),
|
|
(147, 4),
|
|
(148, 4),
|
|
(149, 4),
|
|
(150, 4),
|
|
(151, 4),
|
|
(152, 4),
|
|
(153, 4),
|
|
(154, 4),
|
|
(155, 4),
|
|
(156, 4),
|
|
(157, 4),
|
|
(158, 4),
|
|
(159, 4),
|
|
(160, 4),
|
|
(161, 4),
|
|
(162, 4),
|
|
(163, 4),
|
|
(164, 4),
|
|
(165, 4),
|
|
(166, 4),
|
|
(167, 4),
|
|
(168, 4),
|
|
(169, 4),
|
|
(170, 4),
|
|
(176, 4),
|
|
(177, 4),
|
|
(178, 4),
|
|
(179, 4),
|
|
(180, 4),
|
|
(181, 4),
|
|
(182, 4),
|
|
(183, 4),
|
|
(184, 4),
|
|
(185, 4),
|
|
(196, 4),
|
|
(197, 4),
|
|
(198, 4),
|
|
(199, 4),
|
|
(200, 4),
|
|
(201, 4),
|
|
(202, 4),
|
|
(203, 4),
|
|
(204, 4),
|
|
(205, 4),
|
|
(206, 4),
|
|
(207, 4),
|
|
(208, 4),
|
|
(209, 4),
|
|
(210, 4),
|
|
(216, 4),
|
|
(217, 4),
|
|
(218, 4),
|
|
(219, 4),
|
|
(220, 4),
|
|
(226, 4),
|
|
(227, 4),
|
|
(228, 4),
|
|
(229, 4),
|
|
(230, 4),
|
|
(231, 4),
|
|
(232, 4),
|
|
(233, 4),
|
|
(234, 4),
|
|
(235, 4),
|
|
(236, 4),
|
|
(237, 4),
|
|
(238, 4),
|
|
(239, 4),
|
|
(240, 4),
|
|
(251, 4),
|
|
(252, 4),
|
|
(253, 4),
|
|
(254, 4),
|
|
(255, 4),
|
|
(256, 4),
|
|
(257, 4),
|
|
(258, 4),
|
|
(259, 4),
|
|
(260, 4),
|
|
(266, 4),
|
|
(267, 4),
|
|
(268, 4),
|
|
(269, 4),
|
|
(270, 4),
|
|
(286, 4),
|
|
(287, 4),
|
|
(288, 4),
|
|
(289, 4),
|
|
(290, 4),
|
|
(291, 4),
|
|
(292, 4),
|
|
(293, 4),
|
|
(294, 4),
|
|
(295, 4),
|
|
(296, 4),
|
|
(297, 4),
|
|
(298, 4),
|
|
(299, 4),
|
|
(300, 4),
|
|
(7, 5),
|
|
(10, 5),
|
|
(29, 5),
|
|
(30, 5),
|
|
(69, 5),
|
|
(70, 5),
|
|
(73, 5),
|
|
(111, 5),
|
|
(115, 5),
|
|
(176, 5),
|
|
(177, 5),
|
|
(178, 5),
|
|
(180, 5),
|
|
(271, 5),
|
|
(275, 5),
|
|
(276, 5),
|
|
(280, 5),
|
|
(281, 5),
|
|
(285, 5),
|
|
(6, 6),
|
|
(10, 6),
|
|
(29, 6),
|
|
(30, 6),
|
|
(136, 6),
|
|
(140, 6),
|
|
(141, 6),
|
|
(145, 6),
|
|
(151, 6),
|
|
(155, 6),
|
|
(196, 6),
|
|
(200, 6),
|
|
(201, 6),
|
|
(205, 6),
|
|
(206, 6),
|
|
(210, 6),
|
|
(216, 6),
|
|
(217, 6),
|
|
(218, 6),
|
|
(220, 6),
|
|
(291, 6),
|
|
(295, 6),
|
|
(8, 7),
|
|
(10, 7),
|
|
(29, 7),
|
|
(30, 7),
|
|
(161, 7),
|
|
(162, 7),
|
|
(165, 7),
|
|
(166, 7),
|
|
(170, 7),
|
|
(216, 7),
|
|
(218, 7),
|
|
(220, 7),
|
|
(9, 8),
|
|
(10, 8),
|
|
(29, 8),
|
|
(30, 8),
|
|
(39, 8),
|
|
(43, 8),
|
|
(49, 8),
|
|
(50, 8),
|
|
(51, 8),
|
|
(53, 8),
|
|
(216, 8),
|
|
(218, 8),
|
|
(220, 8),
|
|
(414, 9),
|
|
(415, 9),
|
|
(416, 9),
|
|
(417, 9),
|
|
(418, 9),
|
|
(419, 9),
|
|
(420, 9),
|
|
(421, 9),
|
|
(422, 9),
|
|
(423, 9),
|
|
(424, 9),
|
|
(425, 9),
|
|
(426, 9),
|
|
(427, 9),
|
|
(428, 9),
|
|
(429, 9),
|
|
(430, 9),
|
|
(431, 9),
|
|
(432, 9),
|
|
(433, 9);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `rooms`
|
|
--
|
|
|
|
CREATE TABLE `rooms` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`hotel_id` bigint UNSIGNED NOT NULL,
|
|
`floor_id` bigint UNSIGNED NOT NULL,
|
|
`room_type_id` bigint UNSIGNED NOT NULL,
|
|
`room_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`room_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`max_adults` int NOT NULL DEFAULT '2',
|
|
`max_children` int NOT NULL DEFAULT '0',
|
|
`has_balcony` tinyint(1) NOT NULL DEFAULT '0',
|
|
`has_bathtub` tinyint(1) NOT NULL DEFAULT '0',
|
|
`view_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`banner_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`gallery_images` json DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`regular_price` decimal(10,2) DEFAULT NULL COMMENT 'Base room price',
|
|
`offer_price` decimal(10,2) DEFAULT NULL COMMENT 'Discounted price if any',
|
|
`is_clean` tinyint(1) NOT NULL DEFAULT '1',
|
|
`is_available` tinyint(1) NOT NULL DEFAULT '1',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `rooms`
|
|
--
|
|
|
|
INSERT INTO `rooms` (`id`, `restaurant_id`, `hotel_id`, `floor_id`, `room_type_id`, `room_number`, `room_code`, `max_adults`, `max_children`, `has_balcony`, `has_bathtub`, `view_type`, `slug`, `image`, `banner_image`, `gallery_images`, `description`, `regular_price`, `offer_price`, `is_clean`, `is_available`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 4, 1, '101', 'DEL101', 3, 1, 1, 0, 'Pool View', '101-deluxe-room', '14.jpg', '41.jpg', '[\"24.jpg\", \"29.jpg\", \"11.jpg\", \"2.jpg\", \"42.jpg\", \"17.jpg\"]', 'Deluxe Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '167.00', '144.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 1, 3, 5, '102', 'FAM102', 2, 1, 1, 0, 'Skyline View', '102-family-room', '15.jpg', '15.jpg', '[\"20.jpg\", \"11.jpg\", \"43.jpg\", \"33.jpg\", \"9.jpg\", \"36.jpg\", \"46.jpg\"]', 'Family Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '213.00', '189.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 1, 5, 6, '103', 'SUI103', 2, 0, 1, 0, 'Skyline View', '103-suite', '17.jpg', '15.jpg', '[\"30.jpg\", \"46.jpg\", \"20.jpg\", \"28.jpg\", \"3.jpg\", \"29.jpg\", \"25.jpg\", \"14.jpg\"]', 'Suite with modern amenities, designed for comfort and a premium Singapore hotel experience.', '370.00', '354.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(4, 1, 1, 6, 1, '104', 'DEL104', 4, 1, 1, 0, 'Marina View', '104-deluxe-room', '44.jpg', '9.jpg', '[\"38.jpg\", \"35.jpg\", \"18.jpg\", \"39.jpg\", \"9.jpg\", \"37.jpg\"]', 'Deluxe Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '174.00', '159.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(5, 1, 1, 3, 4, '105', 'EXE105', 2, 1, 1, 0, 'Marina View', '105-executive-room', '37.jpg', '23.jpg', '[\"14.jpg\", \"8.jpg\", \"4.jpg\", \"5.jpg\", \"46.jpg\", \"38.jpg\"]', 'Executive Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '277.00', '252.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(6, 1, 1, 6, 6, '106', 'SUI106', 3, 0, 0, 1, 'City View', '106-suite', '10.jpg', '37.jpg', '[\"36.jpg\", \"23.jpg\", \"6.jpg\", \"11.jpg\", \"39.jpg\", \"16.jpg\", \"43.jpg\", \"3.jpg\"]', 'Suite with modern amenities, designed for comfort and a premium Singapore hotel experience.', '458.00', '446.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(7, 1, 1, 1, 3, '107', 'PRE107', 3, 0, 1, 1, 'City View', '107-premier-room', '23.jpg', '2.jpg', '[\"22.jpg\", \"29.jpg\", \"3.jpg\", \"45.jpg\", \"18.jpg\", \"37.jpg\", \"35.jpg\"]', 'Premier Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '253.00', '225.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(8, 1, 1, 5, 1, '108', 'DEL108', 2, 2, 0, 1, 'Pool View', '108-deluxe-room', '37.jpg', '35.jpg', '[\"5.jpg\", \"19.jpg\", \"20.jpg\", \"11.jpg\", \"45.jpg\", \"33.jpg\"]', 'Deluxe Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '197.00', '170.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(9, 1, 1, 1, 1, '109', 'DEL109', 4, 2, 0, 1, 'Pool View', '109-deluxe-room', '43.jpg', '17.jpg', '[\"5.jpg\", \"27.jpg\", \"38.jpg\", \"44.jpg\", \"4.jpg\", \"9.jpg\", \"1.jpg\", \"35.jpg\"]', 'Deluxe Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '204.00', '178.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(10, 1, 1, 1, 4, '110', 'EXE110', 2, 1, 0, 0, 'City View', '110-executive-room', '14.jpg', '36.jpg', '[\"15.jpg\", \"43.jpg\", \"42.jpg\", \"5.jpg\", \"22.jpg\", \"7.jpg\", \"13.jpg\", \"25.jpg\"]', 'Executive Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '280.00', '251.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(11, 1, 1, 1, 5, '111', 'FAM111', 4, 0, 1, 0, 'City View', '111-family-room', '24.jpg', '40.jpg', '[\"12.jpg\", \"45.jpg\", \"28.jpg\", \"22.jpg\", \"24.jpg\", \"33.jpg\", \"10.jpg\", \"42.jpg\"]', 'Family Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '189.00', '161.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(12, 1, 1, 2, 6, '112', 'SUI112', 4, 1, 1, 1, 'Garden View', '112-suite', '2.jpg', '41.jpg', '[\"7.jpg\", \"38.jpg\", \"19.jpg\", \"9.jpg\", \"27.jpg\", \"33.jpg\"]', 'Suite with modern amenities, designed for comfort and a premium Singapore hotel experience.', '384.00', '362.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(13, 1, 1, 3, 4, '113', 'EXE113', 3, 1, 1, 1, 'Garden View', '113-executive-room', '42.jpg', '20.jpg', '[\"33.jpg\", \"12.jpg\", \"24.jpg\", \"38.jpg\", \"9.jpg\", \"41.jpg\"]', 'Executive Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '304.00', '286.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(14, 1, 1, 2, 3, '114', 'PRE114', 2, 0, 1, 1, 'Marina View', '114-premier-room', '31.jpg', '33.jpg', '[\"12.jpg\", \"1.jpg\", \"24.jpg\", \"42.jpg\", \"20.jpg\", \"41.jpg\", \"23.jpg\"]', 'Premier Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '203.00', '185.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(15, 1, 1, 4, 1, '115', 'DEL115', 2, 2, 0, 1, 'Pool View', '115-deluxe-room', '42.jpg', '21.jpg', '[\"19.jpg\", \"38.jpg\", \"34.jpg\", \"17.jpg\", \"31.jpg\", \"30.jpg\", \"29.jpg\"]', 'Deluxe Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '150.00', '127.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(16, 1, 1, 2, 3, '116', 'PRE116', 3, 0, 1, 1, 'City View', '116-premier-room', '20.jpg', '22.jpg', '[\"16.jpg\", \"4.jpg\", \"39.jpg\", \"35.jpg\", \"24.jpg\", \"36.jpg\", \"12.jpg\", \"40.jpg\"]', 'Premier Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '235.00', '212.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(17, 1, 1, 1, 1, '117', 'DEL117', 3, 2, 0, 0, 'Marina View', '117-deluxe-room', '43.jpg', '27.jpg', '[\"22.jpg\", \"12.jpg\", \"33.jpg\", \"2.jpg\", \"13.jpg\", \"18.jpg\", \"45.jpg\"]', 'Deluxe Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '212.00', '184.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(18, 1, 1, 1, 3, '118', 'PRE118', 4, 1, 1, 0, 'Skyline View', '118-premier-room', '14.jpg', '9.jpg', '[\"3.jpg\", \"35.jpg\", \"43.jpg\", \"30.jpg\", \"14.jpg\", \"37.jpg\", \"28.jpg\", \"7.jpg\"]', 'Premier Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '228.00', '209.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(19, 1, 1, 6, 6, '119', 'SUI119', 3, 0, 0, 1, 'Skyline View', '119-suite', '28.jpg', '1.jpg', '[\"13.jpg\", \"34.jpg\", \"16.jpg\", \"27.jpg\", \"9.jpg\", \"12.jpg\"]', 'Suite with modern amenities, designed for comfort and a premium Singapore hotel experience.', '427.00', '402.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(20, 1, 1, 6, 5, '120', 'FAM120', 3, 0, 0, 1, 'Skyline View', '120-family-room', '2.jpg', '33.jpg', '[\"31.jpg\", \"24.jpg\", \"35.jpg\", \"45.jpg\", \"28.jpg\", \"4.jpg\", \"30.jpg\", \"10.jpg\"]', 'Family Room with modern amenities, designed for comfort and a premium Singapore hotel experience.', '193.00', '183.00', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `room_availabilities`
|
|
--
|
|
|
|
CREATE TABLE `room_availabilities` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`hotel_id` bigint UNSIGNED NOT NULL,
|
|
`room_id` bigint UNSIGNED NOT NULL,
|
|
`total_inventory` int NOT NULL DEFAULT '1',
|
|
`available_inventory` int NOT NULL DEFAULT '1',
|
|
`date` date NOT NULL,
|
|
`is_available` tinyint(1) NOT NULL DEFAULT '1',
|
|
`is_closed_to_arrival` tinyint(1) NOT NULL DEFAULT '0',
|
|
`is_closed_to_departure` tinyint(1) NOT NULL DEFAULT '0',
|
|
`base_price` decimal(10,2) DEFAULT NULL,
|
|
`extra_adult_price` decimal(10,2) DEFAULT NULL,
|
|
`extra_child_price` decimal(10,2) DEFAULT NULL,
|
|
`min_stay` int NOT NULL DEFAULT '1',
|
|
`max_stay` int DEFAULT NULL,
|
|
`blocked_by_booking_id` bigint UNSIGNED DEFAULT NULL,
|
|
`block_type` enum('none','booking','maintenance','manual') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'none',
|
|
`note` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `room_availabilities`
|
|
--
|
|
|
|
INSERT INTO `room_availabilities` (`id`, `restaurant_id`, `hotel_id`, `room_id`, `total_inventory`, `available_inventory`, `date`, `is_available`, `is_closed_to_arrival`, `is_closed_to_departure`, `base_price`, `extra_adult_price`, `extra_child_price`, `min_stay`, `max_stay`, `blocked_by_booking_id`, `block_type`, `note`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, 5, 3, '2026-01-26', 1, 0, 0, '129.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 1, 2, 5, 5, '2026-01-26', 1, 0, 0, '100.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 1, 1, 5, 1, '2026-01-27', 1, 0, 0, '96.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(4, 1, 1, 2, 5, 5, '2026-01-27', 1, 0, 0, '100.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(5, 1, 1, 1, 5, 4, '2026-01-28', 1, 0, 0, '145.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(6, 1, 1, 2, 5, 3, '2026-01-28', 1, 0, 0, '84.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(7, 1, 1, 1, 5, 4, '2026-01-29', 1, 0, 0, '145.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(8, 1, 1, 2, 5, 5, '2026-01-29', 1, 0, 0, '83.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(9, 1, 1, 1, 5, 2, '2026-01-30', 1, 0, 0, '127.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(10, 1, 1, 2, 5, 1, '2026-01-30', 1, 0, 0, '119.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(11, 1, 1, 1, 5, 2, '2026-01-31', 1, 0, 0, '101.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(12, 1, 1, 2, 5, 4, '2026-01-31', 1, 0, 0, '116.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(13, 1, 1, 1, 5, 5, '2026-02-01', 1, 0, 0, '148.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(14, 1, 1, 2, 5, 5, '2026-02-01', 1, 0, 0, '90.00', '20.00', '10.00', 1, 10, NULL, 'none', NULL, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `room_blocks`
|
|
--
|
|
|
|
CREATE TABLE `room_blocks` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`hotel_id` bigint UNSIGNED DEFAULT NULL,
|
|
`room_id` bigint UNSIGNED NOT NULL,
|
|
`start_date` date NOT NULL,
|
|
`end_date` date NOT NULL,
|
|
`start_time` time DEFAULT NULL,
|
|
`end_time` time DEFAULT NULL,
|
|
`block_type` enum('maintenance','deep_clean','renovation','owner_stay','event','other') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'maintenance',
|
|
`blocked_inventory` int NOT NULL DEFAULT '1',
|
|
`priority` int NOT NULL DEFAULT '1',
|
|
`reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`auto_release` tinyint(1) NOT NULL DEFAULT '1',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `room_blocks`
|
|
--
|
|
|
|
INSERT INTO `room_blocks` (`id`, `restaurant_id`, `hotel_id`, `room_id`, `start_date`, `end_date`, `start_time`, `end_time`, `block_type`, `blocked_inventory`, `priority`, `reason`, `auto_release`, `created_by`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, '2026-01-28', '2026-01-29', NULL, NULL, 'maintenance', 2, 1, 'AC maintenance', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 1, 2, '2026-01-27', '2026-01-27', '12:00:00', '18:00:00', 'deep_clean', 1, 2, 'Daily deep cleaning', 1, 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `room_prices`
|
|
--
|
|
|
|
CREATE TABLE `room_prices` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`room_id` bigint UNSIGNED NOT NULL,
|
|
`start_date` date NOT NULL,
|
|
`end_date` date NOT NULL,
|
|
`day_type` enum('normal','weekend','holiday','event','peak') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal',
|
|
`price` decimal(10,2) NOT NULL,
|
|
`priority` int NOT NULL DEFAULT '1',
|
|
`is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'true = Active, false = Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `room_types`
|
|
--
|
|
|
|
CREATE TABLE `room_types` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`hotel_id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`capacity` int NOT NULL DEFAULT '1',
|
|
`beds` int NOT NULL DEFAULT '1',
|
|
`bed_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`has_ac` tinyint(1) NOT NULL DEFAULT '1',
|
|
`has_wifi` tinyint(1) NOT NULL DEFAULT '1',
|
|
`has_breakfast` tinyint(1) NOT NULL DEFAULT '0',
|
|
`is_refundable` tinyint(1) NOT NULL DEFAULT '1',
|
|
`base_price` decimal(10,2) NOT NULL,
|
|
`weekend_price` decimal(10,2) DEFAULT NULL,
|
|
`extra_guest_price` decimal(10,2) DEFAULT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `room_types`
|
|
--
|
|
|
|
INSERT INTO `room_types` (`id`, `restaurant_id`, `hotel_id`, `name`, `capacity`, `beds`, `bed_type`, `has_ac`, `has_wifi`, `has_breakfast`, `is_refundable`, `base_price`, `weekend_price`, `extra_guest_price`, `description`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 'Deluxe Room', 2, 1, 'Queen', 1, 1, 1, 1, '120.00', '150.00', '30.00', 'Spacious deluxe room with modern amenities.', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 1, 'Standard Room', 2, 1, 'Twin', 1, 1, 0, 1, '80.00', '100.00', '20.00', 'Cozy standard room for a comfortable stay.', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 2, 'Suite Room', 4, 2, 'King', 1, 1, 1, 1, '200.00', '250.00', '50.00', 'Luxury suite with separate living area.', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(4, 1, 2, 'Standard Room', 2, 1, 'Queen', 1, 1, 0, 1, '90.00', '120.00', '25.00', 'Comfortable room suitable for short stays.', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(5, 1, 3, 'Seaside Deluxe', 3, 2, 'Queen', 1, 1, 1, 1, '150.00', '180.00', '35.00', 'Deluxe room with sea view.', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(6, 1, 3, 'Seaside Standard', 2, 1, 'Twin', 1, 1, 0, 1, '100.00', '130.00', '25.00', 'Affordable standard room with a partial sea view.', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `salary_generates`
|
|
--
|
|
|
|
CREATE TABLE `salary_generates` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`month` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Format: YYYY-MM',
|
|
`basic_salary` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`total_earnings` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`total_deductions` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`overtime_hours` decimal(8,2) NOT NULL DEFAULT '0.00',
|
|
`overtime_amount` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`net_salary` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`generated_date` date DEFAULT NULL,
|
|
`generated_by` bigint UNSIGNED DEFAULT NULL,
|
|
`salary_breakdown` json DEFAULT NULL COMMENT 'Detailed JSON of salary components',
|
|
`status` enum('pending','approved','paid') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `salary_setups`
|
|
--
|
|
|
|
CREATE TABLE `salary_setups` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`employee_id` bigint UNSIGNED NOT NULL,
|
|
`salary_type_id` bigint UNSIGNED NOT NULL,
|
|
`amount` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Amount for this salary component',
|
|
`calculation_type` enum('fixed','percentage') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fixed' COMMENT 'Fixed amount or percentage of basic salary',
|
|
`notes` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Optional notes or description',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `salary_setups`
|
|
--
|
|
|
|
INSERT INTO `salary_setups` (`id`, `restaurant_id`, `employee_id`, `salary_type_id`, `amount`, `calculation_type`, `notes`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 3, 1, '2001.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 3, 2, '2995.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 3, 3, '4845.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 5, 1, '3941.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 1, 5, 2, '3541.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(6, 1, 5, 3, '3414.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(7, 1, 7, 1, '4890.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(8, 1, 7, 2, '2758.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(9, 1, 7, 3, '1326.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(10, 1, 9, 1, '2265.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(11, 1, 9, 2, '3872.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(12, 1, 9, 3, '1621.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(13, 1, 10, 1, '1162.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(14, 1, 10, 2, '3440.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(15, 1, 10, 3, '2251.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(16, 1, 11, 1, '1918.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(17, 1, 11, 2, '1541.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(18, 1, 11, 3, '3624.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(19, 1, 12, 1, '1410.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(20, 1, 12, 2, '1859.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(21, 1, 12, 3, '1644.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(22, 1, 13, 1, '2105.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(23, 1, 13, 2, '3939.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(24, 1, 13, 3, '2309.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(25, 1, 19, 1, '1058.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(26, 1, 19, 2, '2066.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(27, 1, 19, 3, '1837.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(28, 1, 20, 1, '4221.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(29, 1, 20, 2, '3395.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(30, 1, 20, 3, '3092.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(31, 1, 23, 1, '1966.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(32, 1, 23, 2, '3719.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(33, 1, 23, 3, '1363.00', 'fixed', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `salary_types`
|
|
--
|
|
|
|
CREATE TABLE `salary_types` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Name of the salary component, e.g., Basic, Bonus, Tax',
|
|
`type` enum('earning','deduction') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'earning',
|
|
`default_amount` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Default amount for this salary type',
|
|
`calculation_method` enum('fixed','percentage') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fixed' COMMENT 'Fixed amount or percentage of basic salary',
|
|
`is_taxable` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Whether this earning is taxable',
|
|
`is_visible_in_payslip` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'Show in employee payslip',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `salary_types`
|
|
--
|
|
|
|
INSERT INTO `salary_types` (`id`, `restaurant_id`, `name`, `type`, `default_amount`, `calculation_method`, `is_taxable`, `is_visible_in_payslip`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Monthly', 'earning', '0.00', 'fixed', 0, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'Weekly', 'earning', '0.00', 'fixed', 0, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'Daily', 'earning', '0.00', 'fixed', 0, 1, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `sessions`
|
|
--
|
|
|
|
CREATE TABLE `sessions` (
|
|
`id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`user_id` bigint UNSIGNED DEFAULT NULL,
|
|
`ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`user_agent` text COLLATE utf8mb4_unicode_ci,
|
|
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`last_activity` int NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `settings`
|
|
--
|
|
|
|
CREATE TABLE `settings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`setting_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'Admin' COMMENT 'Admin , Restaurant',
|
|
`type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`option_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`option_value` mediumtext COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `settings`
|
|
--
|
|
|
|
INSERT INTO `settings` (`id`, `restaurant_id`, `setting_type`, `type`, `option_key`, `option_value`, `status`, `created_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Restaurant', 'general', 'restaurant_name', 'Restaurant', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(2, 1, 'Restaurant', 'general', 'site_title', 'restaurant', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(3, 1, 'Restaurant', 'general', 'phone', '01XXXXXXXXX', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(4, 1, 'Restaurant', 'general', 'email', 'restaurant@gmail.com', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(5, 1, 'Restaurant', 'general', 'language', 'en', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(6, 1, 'Restaurant', 'general', 'google_map', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(7, 1, 'Restaurant', 'general', 'address', 'Asia,Dhaka-1219', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(8, 1, 'Restaurant', 'general', 'on_google_map', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(9, 1, 'Restaurant', 'general', 'restaurant_code', '987654', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(10, 1, 'Restaurant', 'general', 'currency_symbol', '$', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(11, 1, 'Restaurant', 'general', 'logo', 'logo.png', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(12, 1, 'Restaurant', 'general', 'mail_type', 'mail', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(13, 1, 'Restaurant', 'general', 'disabled_website', 'no', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(14, 1, 'Restaurant', 'general', 'copyright_text', '© Copyright 2025. All Rights Reserved by FueDevs LTD', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(15, 1, 'Restaurant', 'general', 'facebook_link', 'https://www.facebook.com/', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(16, 1, 'Restaurant', 'general', 'google_plus_link', 'https://www.google.com/', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(17, 1, 'Restaurant', 'general', 'youtube_link', 'https://www.youtube.com/', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(18, 1, 'Restaurant', 'general', 'whats_app_link', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(19, 1, 'Restaurant', 'general', 'twitter_link', 'https://www.twitter.com', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(20, 1, 'Restaurant', 'general', 'eiin_code', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(21, 1, 'Restaurant', 'general', 'sms_gateway', 'twilio', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(22, 1, 'Restaurant', 'general', 'bulk_sms_api_key', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(23, 1, 'Restaurant', 'general', 'bulk_sms_sender_id', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(24, 1, 'Restaurant', 'general', 'twilio_sid', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(25, 1, 'Restaurant', 'general', 'twilio_token', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(26, 1, 'Restaurant', 'general', 'twilio_from_number', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(27, 1, 'Restaurant', 'general', 'header_notice', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(28, 1, 'Restaurant', 'general', 'app_version', '1.0.0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(29, 1, 'Restaurant', 'general', 'app_url', 'drive-link', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(30, 1, 'Restaurant', 'general', 'tagline', 'Delicious Food, Fresh Taste', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(31, 1, 'Restaurant', 'general', 'favicon', 'favicon.png', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(32, 1, 'Restaurant', 'general', 'theme_color', '#ff6b00', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(33, 1, 'Restaurant', 'general', 'background_image', 'bg.jpg', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(34, 1, 'Restaurant', 'pos', 'tax_type', 'exclusive', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(35, 1, 'Restaurant', 'pos', 'tax_percentage', '10', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(36, 1, 'Restaurant', 'pos', 'service_charge', '5', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(37, 1, 'Restaurant', 'pos', 'default_currency', 'USD', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(38, 1, 'Restaurant', 'pos', 'billing_prefix', 'INV-', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(39, 1, 'Restaurant', 'pos', 'invoice_footer', 'Thank you! Visit again.', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(40, 1, 'Restaurant', 'pos', 'enable_kitchen_print', 'yes', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(41, 1, 'Restaurant', 'pos', 'enable_customer_copy', 'yes', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(42, 1, 'Restaurant', 'order', 'enable_online_order', 'yes', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(43, 1, 'Restaurant', 'order', 'delivery_charge', '50', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(44, 1, 'Restaurant', 'order', 'minimum_order_amount', '100', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(45, 1, 'Restaurant', 'order', 'auto_accept_order', 'no', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(46, 1, 'Restaurant', 'order', 'estimated_preparation_time', '30', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(47, 1, 'Restaurant', 'integration', 'slack_webhook_url', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(48, 1, 'Restaurant', 'integration', 'telegram_bot_token', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(49, 1, 'Restaurant', 'integration', 'telegram_chat_id', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(50, 1, 'Restaurant', 'integration', 'twilio_sms_enabled', 'yes', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(51, 1, 'Restaurant', 'integration', 'email_notifications', 'yes', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(52, 1, 'Restaurant', 'integration', 'whatsapp_notifications', 'no', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(53, 1, 'Restaurant', 'system', 'auto_backup', 'daily', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(54, 1, 'Restaurant', 'system', 'report_timezone', 'Asia/Dhaka', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(55, 1, 'Restaurant', 'system', 'data_retention_days', '365', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(56, 1, 'Restaurant', 'ui', 'sidebar_collapsed', 'no', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(57, 1, 'Restaurant', 'ui', 'dark_mode', 'no', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(58, 1, 'Restaurant', 'ui', 'default_dashboard', 'sales', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(59, 1, 'Restaurant', 'payment', 'razorpay_key', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(60, 1, 'Restaurant', 'payment', 'razorpay_secret', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(61, 1, 'Restaurant', 'payment', 'stripe_key', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(62, 1, 'Restaurant', 'payment', 'stripe_secret', '', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(63, 1, 'Restaurant', 'payment', 'cash_on_delivery', 'yes', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(64, 1, 'Restaurant', 'staff', 'max_table_capacity', '10', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(65, 1, 'Restaurant', 'staff', 'default_shift_start', '09:00', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(66, 1, 'Restaurant', 'staff', 'default_shift_end', '23:00', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(67, 1, 'Restaurant', 'staff', 'auto_logout_idle_minutes', '60', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(68, 1, 'Restaurant', 'system_color', 'primary_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(69, 1, 'Restaurant', 'system_color', 'secondary_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(70, 1, 'Restaurant', 'system_color', 'primary_container_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(71, 1, 'Restaurant', 'system_color', 'dark_primary_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(72, 1, 'Restaurant', 'system_color', 'dark_secondary_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(73, 1, 'Restaurant', 'system_color', 'dark_container_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(74, 1, 'Restaurant', 'system_color', 'text_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(75, 1, 'Restaurant', 'system_color', 'dark_text_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(76, 1, 'Restaurant', 'system_color', 'sidebar_selected_bg_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(77, 1, 'Restaurant', 'system_color', 'sidebar_selected_text_color', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(78, 1, 'Restaurant', 'delivery', 'is_online', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(79, 1, 'Restaurant', 'delivery', 'latitude', '23.8103', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(80, 1, 'Restaurant', 'delivery', 'longitude', '90.4125', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(81, 1, 'Restaurant', 'delivery', 'delivery_radius_km', '5', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(82, 1, 'Restaurant', 'delivery', 'delivery_fee', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(83, 1, 'Restaurant', 'delivery', 'delivery_partner_count', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(84, 1, 'Restaurant', 'delivery', 'delivery_time_avg', '30', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(85, 1, 'Restaurant', 'delivery', 'pickup_enabled', '1', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(86, 1, 'Restaurant', 'operational', 'opening_time', '09:00:00', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(87, 1, 'Restaurant', 'operational', 'closing_time', '22:00:00', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(88, 1, 'Restaurant', 'operational', 'auto_accept_orders', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(89, 1, 'Restaurant', 'operational', 'pre_order_enabled', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(90, 1, 'Restaurant', 'operational', 'max_order_capacity', '50', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(91, 1, 'Restaurant', 'analytics', 'avg_rating', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(92, 1, 'Restaurant', 'analytics', 'review_count', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(93, 1, 'Restaurant', 'analytics', 'total_orders', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(94, 1, 'Restaurant', 'analytics', 'last_order_time', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(95, 1, 'Restaurant', 'analytics', 'last_active_time', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(96, 1, 'Restaurant', 'marketing', 'loyalty_points_enabled', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(97, 1, 'Restaurant', 'marketing', 'offers_enabled', '0', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(98, 1, 'Restaurant', 'marketing', 'social_media_links', '{\"facebook\":\"\",\"instagram\":\"\",\"twitter\":\"\",\"linkedin\":\"\"}', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(99, 1, 'Restaurant', 'system', 'settings', '[]', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(100, 1, 'Restaurant', 'system', 'uuid', 'rest_6977ae2ee22c5', 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(101, 1, 'Restaurant', 'email_config', 'email_smtp_host', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(102, 1, 'Restaurant', 'email_config', 'email_smtp_port', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(103, 1, 'Restaurant', 'email_config', 'email_smtp_username', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(104, 1, 'Restaurant', 'email_config', 'email_smtp_password', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(105, 1, 'Restaurant', 'email_config', 'email_smtp_encryption', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(106, 1, 'Restaurant', 'sms_config', 'twilio_api_key', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(107, 1, 'Restaurant', 'sms_config', 'twilio_api_secret', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(108, 1, 'Restaurant', 'sms_config', 'twilio_sender_id', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(109, 1, 'Restaurant', 'sms_config', 'twilio_api_url', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(110, 1, 'Restaurant', 'sms_config', 'twilio_is_default', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(111, 1, 'Restaurant', 'sms_config', 'nexmo_api_key', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(112, 1, 'Restaurant', 'sms_config', 'nexmo_api_secret', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(113, 1, 'Restaurant', 'sms_config', 'nexmo_sender_id', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(114, 1, 'Restaurant', 'sms_config', 'nexmo_api_url', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(115, 1, 'Restaurant', 'sms_config', 'nexmo_is_default', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(116, 1, 'Restaurant', 'sms_config', 'muthofun_api_key', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(117, 1, 'Restaurant', 'sms_config', 'smsglobal_api_key', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(118, 1, 'Restaurant', 'sms_config', 'smsglobal_api_secret', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(119, 1, 'Restaurant', 'sms_config', 'smsglobal_sender_id', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(120, 1, 'Restaurant', 'sms_config', 'smsglobal_api_url', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(121, 1, 'Restaurant', 'sms_config', 'smsglobal_extra_key', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL),
|
|
(122, 1, 'Restaurant', 'sms_config', 'smsglobal_is_default', NULL, 1, NULL, '2026-01-26 12:10:54', '2026-01-26 12:10:54', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `shifts`
|
|
--
|
|
|
|
CREATE TABLE `shifts` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`start_time` time NOT NULL,
|
|
`end_time` time NOT NULL,
|
|
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `shifts`
|
|
--
|
|
|
|
INSERT INTO `shifts` (`id`, `restaurant_id`, `name`, `start_time`, `end_time`, `description`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Morning', '08:00:00', '16:00:00', 'Morning shift from 8 AM to 4 PM', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'Evening', '16:00:00', '00:00:00', 'Evening shift from 4 PM to 12 AM', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'Night', '00:00:00', '08:00:00', 'Night shift from 12 AM to 8 AM', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `stocks`
|
|
--
|
|
|
|
CREATE TABLE `stocks` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`ingredient_id` bigint UNSIGNED NOT NULL,
|
|
`type` enum('purchase','usage','return','damage','transfer_in','transfer_out') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`quantity` decimal(10,2) NOT NULL,
|
|
`unit_cost` decimal(12,2) DEFAULT NULL COMMENT 'Cost per unit at time of stock movement',
|
|
`total_cost` decimal(12,2) DEFAULT NULL COMMENT 'quantity * unit_cost',
|
|
`reference_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'e.g., Purchase, FoodVariant, Transfer',
|
|
`purchase_id` bigint UNSIGNED DEFAULT NULL,
|
|
`batch_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`expiry_date` date DEFAULT NULL,
|
|
`added_by` bigint UNSIGNED DEFAULT NULL COMMENT 'User ID who added/modified stock',
|
|
`remarks` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `stocks`
|
|
--
|
|
|
|
INSERT INTO `stocks` (`id`, `restaurant_id`, `ingredient_id`, `type`, `quantity`, `unit_cost`, `total_cost`, `reference_type`, `purchase_id`, `batch_no`, `expiry_date`, `added_by`, `remarks`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 28, 'purchase', '10.27', '394.96', '4063.01', 'Purchase', 1, 'ZNJIBY', NULL, 12, 'Auto stock-in from purchase #ZML9COJW', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 4, 'purchase', '1.90', '79.87', '154.98', 'Purchase', 1, 'IKTR39', NULL, 12, 'Auto stock-in from purchase #ZML9COJW', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 33, 'purchase', '3.75', '39.46', '154.01', 'Purchase', 1, 'GGGVVW', '2026-03-01', 12, 'Auto stock-in from purchase #ZML9COJW', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 9, 'purchase', '16.51', '183.59', '3029.83', 'Purchase', 1, 'BTRTUR', NULL, 12, 'Auto stock-in from purchase #ZML9COJW', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 45, 'purchase', '5.10', '180.50', '923.53', 'Purchase', 1, '2F4NTL', '2026-12-07', 12, 'Auto stock-in from purchase #ZML9COJW', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 12, 'purchase', '10.80', '25.26', '276.02', 'Purchase', 1, 'YCS6AA', '2026-08-27', 12, 'Auto stock-in from purchase #ZML9COJW', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 2, 'purchase', '14.81', '210.83', '3121.83', 'Purchase', 2, 'AIY2VQ', NULL, 14, 'Auto stock-in from purchase #K0YMOZQ5', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 34, 'purchase', '1.97', '153.25', '302.47', 'Purchase', 2, 'LPRH6I', NULL, 14, 'Auto stock-in from purchase #K0YMOZQ5', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 22, 'purchase', '6.79', '280.62', '1908.80', 'Purchase', 3, 'DU93H6', '2026-07-11', 21, 'Auto stock-in from purchase #AGDKKNWR', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 47, 'purchase', '6.11', '15.40', '99.53', 'Purchase', 3, 'SAVQIA', '2026-03-31', 21, 'Auto stock-in from purchase #AGDKKNWR', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 50, 'purchase', '1.20', '137.77', '165.59', 'Purchase', 3, 'G6D2GV', NULL, 21, 'Auto stock-in from purchase #AGDKKNWR', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 19, 'purchase', '13.93', '54.46', '767.18', 'Purchase', 3, '7ZXGHI', '2026-09-02', 21, 'Auto stock-in from purchase #AGDKKNWR', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 50, 'purchase', '5.10', '316.01', '1612.22', 'Purchase', 4, '1KPRQ1', NULL, 17, 'Auto stock-in from purchase #L4T46ZRL', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 1, 40, 'purchase', '1.88', '243.99', '456.38', 'Purchase', 4, '9BPK7M', '2027-01-17', 17, 'Auto stock-in from purchase #L4T46ZRL', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 1, 10, 'purchase', '12.35', '284.09', '3506.48', 'Purchase', 5, '12OL7T', NULL, 13, 'Auto stock-in from purchase #2MNMPQYB', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 1, 8, 'purchase', '16.88', '19.13', '323.96', 'Purchase', 5, 'EGPDZ7', '2026-02-05', 13, 'Auto stock-in from purchase #2MNMPQYB', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 1, 2, 'purchase', '2.44', '362.37', '883.08', 'Purchase', 5, 'AXFRBN', NULL, 13, 'Auto stock-in from purchase #2MNMPQYB', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 1, 32, 'purchase', '3.33', '338.09', '1130.03', 'Purchase', 5, 'H1PQVP', NULL, 13, 'Auto stock-in from purchase #2MNMPQYB', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(19, 1, 32, 'purchase', '16.20', '235.33', '3815.08', 'Purchase', 6, 'AVHO7R', '2027-01-10', 16, 'Auto stock-in from purchase #WKVVC0FF', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(20, 1, 15, 'purchase', '8.28', '359.13', '2973.00', 'Purchase', 6, 'LITZNM', NULL, 16, 'Auto stock-in from purchase #WKVVC0FF', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(21, 1, 33, 'purchase', '18.09', '369.38', '6686.07', 'Purchase', 6, 'W00VHD', '2026-11-02', 16, 'Auto stock-in from purchase #WKVVC0FF', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(22, 1, 31, 'purchase', '4.25', '236.62', '1014.17', 'Purchase', 6, 'AO5Z3N', '2027-01-17', 16, 'Auto stock-in from purchase #WKVVC0FF', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(23, 1, 12, 'purchase', '8.62', '17.12', '152.23', 'Purchase', 6, 'VPBYQT', '2026-11-29', 16, 'Auto stock-in from purchase #WKVVC0FF', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(24, 1, 16, 'purchase', '19.64', '431.76', '8487.60', 'Purchase', 7, 'MKFEJC', '2026-10-02', 17, 'Auto stock-in from purchase #IPNHZVNH', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(25, 1, 20, 'purchase', '18.86', '442.19', '8343.44', 'Purchase', 7, 'S51FLN', NULL, 17, 'Auto stock-in from purchase #IPNHZVNH', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(26, 1, 5, 'purchase', '16.86', '411.92', '6949.99', 'Purchase', 7, '9XND2H', NULL, 17, 'Auto stock-in from purchase #IPNHZVNH', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(27, 1, 3, 'purchase', '8.56', '488.02', '4181.84', 'Purchase', 8, 'UM01X7', '2027-01-18', 18, 'Auto stock-in from purchase #OKERQEWT', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(28, 1, 45, 'purchase', '5.32', '357.16', '1906.32', 'Purchase', 8, 'UY7BUS', '2026-12-12', 18, 'Auto stock-in from purchase #OKERQEWT', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(29, 1, 22, 'purchase', '17.70', '59.86', '1064.03', 'Purchase', 8, 'GVPEBD', NULL, 18, 'Auto stock-in from purchase #OKERQEWT', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(30, 1, 27, 'purchase', '2.21', '491.73', '1089.80', 'Purchase', 8, 'IJ84SW', '2026-03-31', 18, 'Auto stock-in from purchase #OKERQEWT', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(31, 1, 7, 'purchase', '6.51', '261.25', '1699.39', 'Purchase', 8, 'ILMWKN', NULL, 18, 'Auto stock-in from purchase #OKERQEWT', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(32, 1, 4, 'purchase', '19.79', '445.14', '8807.88', 'Purchase', 8, 'G3VVRL', NULL, 18, 'Auto stock-in from purchase #OKERQEWT', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(33, 1, 27, 'purchase', '1.36', '453.33', '621.57', 'Purchase', 9, 'SH0TYE', NULL, 3, 'Auto stock-in from purchase #07V4QPIZ', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(34, 1, 5, 'purchase', '1.66', '458.96', '761.21', 'Purchase', 9, 'OTI5LF', NULL, 3, 'Auto stock-in from purchase #07V4QPIZ', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(35, 1, 23, 'purchase', '6.05', '458.66', '2775.70', 'Purchase', 9, 'DT1HD0', '2026-10-04', 3, 'Auto stock-in from purchase #07V4QPIZ', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(36, 1, 26, 'purchase', '19.59', '480.56', '9418.43', 'Purchase', 9, '90RSNT', NULL, 3, 'Auto stock-in from purchase #07V4QPIZ', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(37, 1, 11, 'purchase', '16.60', '192.07', '3187.52', 'Purchase', 9, 'TPUNNG', '2026-09-22', 3, 'Auto stock-in from purchase #07V4QPIZ', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(38, 1, 40, 'purchase', '7.32', '299.77', '2195.17', 'Purchase', 9, 'CVAFNA', NULL, 3, 'Auto stock-in from purchase #07V4QPIZ', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(39, 1, 50, 'purchase', '13.77', '51.03', '703.56', 'Purchase', 10, 'LEMA92', '2026-05-23', 18, 'Auto stock-in from purchase #PC1SULEV', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(40, 1, 43, 'purchase', '18.57', '436.32', '8103.03', 'Purchase', 10, 'ILMHRA', '2026-02-19', 18, 'Auto stock-in from purchase #PC1SULEV', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(41, 1, 37, 'purchase', '12.68', '487.12', '6181.02', 'Purchase', 10, 'RVGKP7', NULL, 18, 'Auto stock-in from purchase #PC1SULEV', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(42, 1, 2, 'purchase', '18.62', '122.10', '2272.29', 'Purchase', 10, 'SXYUNH', '2026-01-29', 18, 'Auto stock-in from purchase #PC1SULEV', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(43, 1, 6, 'purchase', '18.14', '237.95', '4316.72', 'Purchase', 10, 'ZG6X8Y', NULL, 18, 'Auto stock-in from purchase #PC1SULEV', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(44, 1, 22, 'purchase', '1.54', '224.30', '346.49', 'Purchase', 11, 'B1WXVW', NULL, 23, 'Auto stock-in from purchase #YJ3THB7W', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(45, 1, 37, 'purchase', '4.73', '328.14', '1560.72', 'Purchase', 11, 'NRMKGV', NULL, 23, 'Auto stock-in from purchase #YJ3THB7W', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(46, 1, 36, 'purchase', '3.66', '53.51', '194.40', 'Purchase', 12, 'ODINYL', '2026-10-14', 8, 'Auto stock-in from purchase #PWI1C8V8', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(47, 1, 4, 'purchase', '10.24', '82.34', '842.62', 'Purchase', 12, '69NQDB', NULL, 8, 'Auto stock-in from purchase #PWI1C8V8', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(48, 1, 14, 'purchase', '3.84', '117.71', '455.85', 'Purchase', 12, '6VP6S8', '2026-08-05', 8, 'Auto stock-in from purchase #PWI1C8V8', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(49, 1, 20, 'purchase', '10.27', '285.73', '2940.67', 'Purchase', 13, 'NGCQU3', '2026-09-11', 17, 'Auto stock-in from purchase #OPDJMI0H', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(50, 1, 30, 'purchase', '8.97', '461.26', '4146.14', 'Purchase', 13, 'LZWRWH', NULL, 17, 'Auto stock-in from purchase #OPDJMI0H', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(51, 1, 42, 'purchase', '15.68', '324.95', '5098.72', 'Purchase', 13, 'ZYURYO', '2026-08-14', 17, 'Auto stock-in from purchase #OPDJMI0H', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(52, 1, 30, 'purchase', '11.83', '203.34', '2409.66', 'Purchase', 13, '5CVLA8', '2026-02-10', 17, 'Auto stock-in from purchase #OPDJMI0H', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(53, 1, 21, 'purchase', '7.94', '205.02', '1628.31', 'Purchase', 14, 'XOHJCW', '2026-11-25', 15, 'Auto stock-in from purchase #UGH2G6WH', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(54, 1, 23, 'purchase', '18.90', '464.37', '8781.78', 'Purchase', 14, 'CEE6W0', NULL, 15, 'Auto stock-in from purchase #UGH2G6WH', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(55, 1, 42, 'purchase', '4.27', '200.48', '859.12', 'Purchase', 14, 'ULSVHB', '2026-08-14', 15, 'Auto stock-in from purchase #UGH2G6WH', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(56, 1, 15, 'purchase', '16.51', '385.69', '6373.23', 'Purchase', 15, 'VZRNJY', '2026-08-15', 22, 'Auto stock-in from purchase #ACF7TYL3', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(57, 1, 24, 'purchase', '5.44', '221.80', '1204.13', 'Purchase', 15, 'BHSZYG', '2026-11-07', 22, 'Auto stock-in from purchase #ACF7TYL3', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(58, 1, 38, 'purchase', '8.02', '149.48', '1199.65', 'Purchase', 15, 'AGBYLD', '2026-08-10', 22, 'Auto stock-in from purchase #ACF7TYL3', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(59, 1, 16, 'purchase', '9.89', '236.42', '2343.39', 'Purchase', 15, 'GPUBL3', NULL, 22, 'Auto stock-in from purchase #ACF7TYL3', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(60, 1, 26, 'purchase', '5.84', '98.52', '573.94', 'Purchase', 15, 'Z6EVQD', NULL, 22, 'Auto stock-in from purchase #ACF7TYL3', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(61, 1, 24, 'purchase', '3.92', '271.68', '1067.02', 'Purchase', 16, 'JLIXJ7', '2026-06-22', 3, 'Auto stock-in from purchase #A2Q93X5U', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(62, 1, 13, 'purchase', '1.79', '59.69', '107.86', 'Purchase', 16, 'ZCW02J', NULL, 3, 'Auto stock-in from purchase #A2Q93X5U', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(63, 1, 19, 'purchase', '2.07', '50.75', '106.54', 'Purchase', 16, 'EWNN49', '2026-04-21', 3, 'Auto stock-in from purchase #A2Q93X5U', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(64, 1, 7, 'purchase', '15.52', '441.49', '6855.91', 'Purchase', 16, 'DG3OLU', NULL, 3, 'Auto stock-in from purchase #A2Q93X5U', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(65, 1, 30, 'purchase', '4.22', '360.54', '1519.19', 'Purchase', 17, 'N1EC45', NULL, 17, 'Auto stock-in from purchase #HLZQHR8O', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(66, 1, 41, 'purchase', '7.47', '74.59', '563.08', 'Purchase', 17, 'GJLOZF', NULL, 17, 'Auto stock-in from purchase #HLZQHR8O', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(67, 1, 26, 'purchase', '17.41', '268.12', '4665.78', 'Purchase', 18, 'USIJYX', NULL, 3, 'Auto stock-in from purchase #64QGFXKR', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(68, 1, 39, 'purchase', '10.46', '449.93', '4709.10', 'Purchase', 18, 'N5JWDD', '2026-12-25', 3, 'Auto stock-in from purchase #64QGFXKR', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(69, 1, 1, 'purchase', '3.53', '126.07', '449.97', 'Purchase', 18, 'YOZ4BU', NULL, 3, 'Auto stock-in from purchase #64QGFXKR', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(70, 1, 26, 'purchase', '11.60', '61.82', '722.90', 'Purchase', 18, 'RNQURE', '2026-09-06', 3, 'Auto stock-in from purchase #64QGFXKR', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `subscriptions`
|
|
--
|
|
|
|
CREATE TABLE `subscriptions` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`package_id` bigint UNSIGNED NOT NULL,
|
|
`start_date` datetime DEFAULT NULL,
|
|
`end_date` datetime DEFAULT NULL,
|
|
`transactions_details` text COLLATE utf8mb4_unicode_ci,
|
|
`click_count` int NOT NULL DEFAULT '0',
|
|
`max_clicks` int NOT NULL DEFAULT '100',
|
|
`extra_buffer_time` int DEFAULT NULL COMMENT 'Extra time in days for subscription extension/grace period',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`meta` json DEFAULT NULL COMMENT 'Additional data for future upgrades',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `subscription_items`
|
|
--
|
|
|
|
CREATE TABLE `subscription_items` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`subscription_id` bigint UNSIGNED NOT NULL,
|
|
`package_id` bigint UNSIGNED DEFAULT NULL,
|
|
`amount` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`start_date` datetime DEFAULT NULL,
|
|
`end_date` datetime DEFAULT NULL,
|
|
`transactions_details` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`meta` json DEFAULT NULL COMMENT 'Additional data for future upgrades',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `subscription_upgrade_requests`
|
|
--
|
|
|
|
CREATE TABLE `subscription_upgrade_requests` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`package_id` bigint UNSIGNED NOT NULL,
|
|
`extra_days` int NOT NULL DEFAULT '0',
|
|
`amount_paid` decimal(10,2) NOT NULL DEFAULT '0.00',
|
|
`payment_method` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`notes` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` enum('pending','approved','rejected') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
`approved_by` bigint UNSIGNED DEFAULT NULL,
|
|
`approved_at` timestamp NULL DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `suppliers`
|
|
--
|
|
|
|
CREATE TABLE `suppliers` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`contact_person` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`alternate_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`address` text COLLATE utf8mb4_unicode_ci,
|
|
`city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`postal_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`tax_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'VAT/GST/Tax ID',
|
|
`bank_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`bank_account_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`bank_account_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`ifsc_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'For local bank transactions',
|
|
`opening_balance` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`opening_balance_date` date DEFAULT NULL,
|
|
`due` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`balance` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`supply_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'e.g. Food, Beverage, Cleaning, Equipment',
|
|
`payment_terms` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'e.g. Net 7, Net 30, COD',
|
|
`credit_limit` decimal(15,2) DEFAULT NULL,
|
|
`rating` decimal(3,2) DEFAULT NULL COMMENT 'Average rating from 1-5',
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`contract_file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Stored contract document path',
|
|
`trade_license` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`nid_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `suppliers`
|
|
--
|
|
|
|
INSERT INTO `suppliers` (`id`, `restaurant_id`, `name`, `phone`, `company_name`, `contact_person`, `alternate_phone`, `email`, `website`, `image`, `address`, `city`, `state`, `country`, `postal_code`, `tax_number`, `bank_name`, `bank_account_name`, `bank_account_number`, `ifsc_code`, `opening_balance`, `opening_balance_date`, `due`, `balance`, `supply_type`, `payment_terms`, `credit_limit`, `rating`, `notes`, `contract_file`, `trade_license`, `nid_number`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Denis Walter', '+1 (417) 324-0359', 'O\'Kon-Considine', 'Dr. Bernita Windler V', '+1 (872) 624-7521', 'wyman82@example.com', NULL, NULL, '77244 Mackenzie Trace Apt. 254\nNew Lilian, SD 43792-8927', 'O\'Konfort', 'New Hampshire', 'Samoa', '39138-3565', NULL, NULL, NULL, '9653812142', 'BANK1840', '3775.37', NULL, '3876.64', '2403.99', 'Beverage', 'Net 30', NULL, '3.11', 'Aliquid sed quos accusamus quia velit quia veritatis ratione sunt.', NULL, 'TL-590426', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 'Ed Bailey', '+1 (559) 993-1917', 'Robel Ltd', 'Keara Turcotte DVM', NULL, 'ugleason@example.com', 'http://zboncak.com/sed-quia-eaque-iste-in-est-possimus', NULL, '6079 Parker Bridge Apt. 810\nEast Faye, MA 30863-3548', 'Pourosview', 'Michigan', 'Netherlands Antilles', '85655-4273', 'TAX9175523', NULL, NULL, NULL, 'BANK2455', '28239.29', NULL, '6417.18', '5455.85', 'Beverage', 'COD', '23413.31', '4.03', NULL, NULL, NULL, 'NID7575083332', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 'Prof. Elvera Jerde', '+1.949.696.9488', 'Wisozk-Mayer', 'Pierce Nitzsche', '(720) 969-7360', NULL, 'http://www.stark.net/enim-earum-perferendis-incidunt-facilis', NULL, '8216 Eugenia Vista\nNorth Felipe, NM 03613-2803', 'New Bettietown', 'North Carolina', 'Brazil', '75161-5877', NULL, NULL, 'Malinda Connelly', '1831165916', 'BANK8010', '25484.32', '1971-11-16', '5425.44', '427.07', 'Equipment', 'COD', '25250.89', '4.03', NULL, NULL, 'TL-274240', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 'Clementine Morar', '+1-978-599-6390', 'Gerlach, Larson and Kovacek', 'Megane Keebler', NULL, 'beatty.wilford@example.org', NULL, NULL, '15767 Larry Passage\nEast Houston, OR 15696-3177', 'Port Kaitlinmouth', 'Connecticut', 'Lao People\'s Democratic Republic', '78479-3181', 'TAX0960914', 'Durgan, Hermann and Cormier', 'Abigail Abbott', NULL, 'BANK0400', '41084.18', '1987-03-20', '8039.52', '7407.30', 'Food', 'Net 7', NULL, '3.75', 'Laudantium sed nemo eligendi distinctio beatae voluptatibus provident blanditiis ullam aliquid ratione corporis quaerat.', NULL, NULL, 'NID2441269133', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 'Dr. Bridget Rice', '+1-347-516-1810', 'Sanford, Dicki and Sporer', 'Alford Russel V', NULL, 'tatum53@example.org', NULL, NULL, '73790 Antwan Plaza Apt. 339\nMeganechester, ME 79964', 'Kulasberg', 'Georgia', 'Luxembourg', '24825', 'TAX3294488', NULL, NULL, NULL, NULL, '18702.67', '2024-03-24', '1742.24', '2293.32', 'Cleaning', 'Net 15', NULL, '3.63', NULL, NULL, 'TL-087087', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 'Ian Jenkins I', '+16018792386', 'Kshlerin-Crona', 'Cathrine Stanton II', NULL, 'cernser@example.net', NULL, NULL, '350 Mavis Drive\nViolettestad, TX 37705', 'Kellymouth', 'Montana', 'Sierra Leone', '49805-9364', NULL, NULL, 'Mr. Herminio Sanford', '7989722267', 'BANK1827', '17126.28', NULL, '9811.21', '4431.94', 'Equipment', 'Net 15', NULL, '3.74', 'Beatae eaque reiciendis dolorem quod expedita atque voluptas tempora quod.', NULL, 'TL-318531', 'NID6532107340', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 'Nya Wiegand', '+1-864-731-2427', 'Legros and Sons', 'Jalen Bashirian', NULL, 'haag.braeden@example.org', 'http://franecki.org/dolorem-et-dolores-in-facilis', NULL, '2807 Ari Ranch Suite 055\nEast Nikolasfurt, KY 25732-1971', 'Erdmanland', 'Michigan', 'Guadeloupe', '20135-0876', NULL, NULL, NULL, NULL, 'BANK7697', '47145.41', NULL, '2701.18', '4392.12', 'Equipment', 'Net 30', '45493.26', '3.64', 'Voluptatem vel inventore voluptatibus voluptatem magnam et aut magnam occaecati quis est harum fuga.', NULL, NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 'Jayne Lind DVM', '+12015214987', 'Greenfelder-Swaniawski', 'Dedric Hills', '906-347-6239', NULL, NULL, NULL, '36688 Florida Mission Apt. 836\nLuettgenside, KS 07168', 'Manuelaland', 'Hawaii', 'San Marino', '72681-3583', 'TAX1048520', NULL, NULL, NULL, 'BANK0106', '38206.30', '2006-08-08', '6977.70', '8834.99', 'Beverage', 'Net 30', NULL, '4.77', 'Debitis ducimus enim et quod eos quam necessitatibus ipsum ex sint quo alias consequatur.', NULL, 'TL-949700', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 'Julianne Hintz', '1-364-398-8421', 'Torphy-Daugherty', 'Erling Carroll', NULL, 'hobart19@example.com', NULL, NULL, '111 Miller Fords\nMadisenland, OK 48375-7571', 'South Darlene', 'Minnesota', 'Greenland', '32527-8113', 'TAX7892056', NULL, 'Sandy Yost V', '3023173715', 'BANK6370', '49997.50', '1990-02-18', '4277.09', '9154.21', 'Food', 'Net 30', '45029.70', '4.96', NULL, NULL, NULL, 'NID9563513433', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 'Dr. Stacy Paucek Jr.', '262-268-7758', 'Sporer PLC', 'Madge Wiza', '458.238.2810', 'cordelia.kertzmann@example.com', NULL, NULL, '169 Howell Manors\nMarianneside, VA 67751', 'Tobyburgh', 'South Carolina', 'Kenya', '25822-8335', NULL, 'Fahey PLC', 'Prof. Jaycee Dach', NULL, NULL, '30838.41', NULL, '2196.10', '7161.82', 'Beverage', 'COD', NULL, '3.36', 'Est quae fuga molestias qui et dolores soluta ducimus atque cumque consectetur.', NULL, 'TL-586773', 'NID2738352170', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, 'Leslie Reilly PhD', '(870) 468-3408', 'Botsford LLC', 'Mrs. Damaris O\'Conner DVM', '(650) 400-1987', 'ernser.arely@example.com', NULL, NULL, '578 Collier Courts\nGeraldineberg, NC 32401', 'DuBuqueborough', 'Missouri', 'Romania', '84289-2744', NULL, 'Zulauf Ltd', NULL, '2765963496', NULL, '28454.69', '1976-12-31', '880.47', '7135.67', 'Food', 'Net 15', NULL, '3.91', NULL, NULL, 'TL-805918', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, 'Mr. Adolfo Hickle DDS', '878-215-1557', 'Ondricka, Weimann and Fritsch', 'Ms. Gregoria Wisozk', '(351) 752-4409', 'rice.larue@example.com', 'http://quitzon.com/', NULL, '6464 Towne Courts\nStephonstad, UT 05474-0019', 'Lake Rexberg', 'New Jersey', 'Burundi', '12388-5968', 'TAX1617751', NULL, 'Martine Sawayn', NULL, 'BANK6617', '34041.32', NULL, '9422.91', '684.91', 'Food', 'Net 7', '42110.75', '3.15', NULL, NULL, 'TL-753480', 'NID5033889045', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, 'Wiley Hamill', '+1-541-277-9207', 'Gerhold Group', 'Jewell Pfeffer', '440-466-7891', 'leffler.joseph@example.com', 'http://durgan.com/rem-in-sit-numquam-mollitia-praesentium.html', NULL, '7589 Dejon Spur\nJaredburgh, MO 83116-8815', 'Alburgh', 'Montana', 'Azerbaijan', '43367', 'TAX7642517', NULL, 'Llewellyn Wiza', '9789634642', 'BANK2570', '13487.34', '1970-04-21', '9172.39', '5849.15', 'Beverage', 'Net 30', NULL, '4.21', 'Perferendis laborum dolorem cupiditate quidem earum nihil sunt amet dolor dolores blanditiis.', NULL, NULL, NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(14, 1, 'Darrion Runolfsdottir MD', '1-585-210-4970', 'Ondricka-Kihn', 'Cruz Smith DVM', '1-440-921-7922', NULL, 'http://shanahan.info/et-et-incidunt-illum-aperiam-iste', NULL, '8424 Hagenes Highway Suite 912\nKautzermouth, FL 62805-0010', 'Loisberg', 'Ohio', 'Saint Lucia', '88690-1201', NULL, 'Runte, Kuvalis and Wilkinson', NULL, NULL, NULL, '37851.74', NULL, '7166.87', '9558.70', 'Beverage', 'Net 15', '17138.18', '3.76', 'Adipisci voluptatibus maxime laborum qui asperiores sequi vero adipisci optio amet quam adipisci repellendus.', NULL, 'TL-745083', 'NID6297022135', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(15, 1, 'Prof. Rudy Batz', '+1-561-756-9923', 'Connelly-Gerlach', 'Richie Gaylord MD', '248.268.7324', NULL, NULL, NULL, '24655 Hoeger Pines Suite 999\nKiehntown, MI 08656-0722', 'South Halhaven', 'Idaho', 'Mauritania', '74718-2308', 'TAX8462862', 'Gulgowski LLC', NULL, NULL, 'BANK4372', '3461.71', NULL, '2070.74', '8838.38', 'Equipment', 'Net 15', NULL, '4.76', NULL, NULL, 'TL-938664', NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(16, 1, 'Miles Koss Jr.', '1-812-543-3916', 'Parisian, Schinner and Bosco', 'Mr. Barney Witting', '(603) 284-5688', NULL, 'http://reinger.com/et-repudiandae-modi-est-sit-accusantium-non-error', NULL, '89750 Schuster Meadow\nNorth Jarred, MI 00218-2992', 'North Zoeshire', 'North Dakota', 'Burkina Faso', '93619-7172', 'TAX9927352', 'Raynor, Turcotte and Hudson', NULL, '5363065519', NULL, '34617.26', NULL, '6502.51', '3320.41', 'Cleaning', 'Net 30', '16835.80', '3.76', 'Magnam enim inventore neque nostrum doloremque sed est aut amet.', NULL, NULL, 'NID8920248831', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(17, 1, 'Serenity Bernhard Sr.', '(228) 612-6022', 'Lueilwitz-Bradtke', 'Mr. Joshuah Rosenbaum', '458.455.4966', NULL, NULL, NULL, '3380 Beatty Viaduct Apt. 174\nLehnerview, SC 21810-8352', 'Swiftberg', 'New Mexico', 'Swaziland', '61012', 'TAX6513987', 'Shanahan-Nader', 'Augustus Willms', NULL, NULL, '5084.02', NULL, '2738.75', '3677.59', 'Equipment', 'COD', '45691.37', '4.43', 'Aliquid nesciunt omnis perspiciatis eveniet itaque molestias laborum illo dolor perspiciatis enim dolorem.', NULL, 'TL-244991', 'NID9060969931', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(18, 1, 'Prof. Bridget Jacobi MD', '+1 (732) 661-2888', 'Reichert, Bartell and Monahan', 'Edyth Jaskolski', '+1 (763) 807-5587', 'rborer@example.org', 'http://www.donnelly.com/qui-inventore-eos-nostrum-labore', NULL, '140 Dare Villages\nKaleighmouth, VA 79145', 'North Webster', 'Iowa', 'French Guiana', '79472', 'TAX0678635', NULL, 'Graciela Lockman', '5538754849', 'BANK0597', '36837.72', '2001-12-01', '3593.37', '8955.54', 'Food', 'Net 7', NULL, '3.02', 'Aut maiores enim vitae corrupti necessitatibus laudantium beatae iure qui.', NULL, NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(19, 1, 'Mr. Camren Legros', '757-451-3709', 'Rohan, Dickinson and Rogahn', 'Elyssa Schamberger', '+1-979-212-4566', NULL, 'http://jast.net/non-eum-accusamus-minus-voluptatem-consequatur-esse.html', NULL, '8292 Maggie Avenue\nPort Evan, MO 01323', 'Nicholausview', 'Colorado', 'Australia', '59886-5104', NULL, NULL, 'Dr. Esmeralda Collins', '9595568496', NULL, '39188.25', NULL, '7624.80', '4892.43', 'Beverage', 'COD', NULL, '4.06', NULL, NULL, NULL, 'NID8937253578', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(20, 1, 'Keshawn Huels', '1-351-443-6571', 'Kuvalis-Grimes', 'Emmie Franecki', NULL, 'clinton35@example.net', 'http://www.wiza.com/vel-ratione-in-inventore-quam.html', NULL, '633 Wendell Parkways Suite 201\nElysechester, AK 36468', 'Lake Lucile', 'Nevada', 'Fiji', '06750-9662', 'TAX9019378', 'Christiansen, Lueilwitz and McLaughlin', 'Clare Carroll', '5766962404', NULL, '27542.95', NULL, '1896.45', '7853.73', 'Equipment', 'Net 15', '46784.66', '4.60', NULL, NULL, 'TL-454060', 'NID3958099163', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(21, 1, 'Dr. Muhammad Olson DVM', '1-480-744-3456', 'Wunsch and Sons', 'Dr. Marques McClure', NULL, NULL, 'http://www.oreilly.com/', NULL, '438 Bernier Drives\nKrystelburgh, NC 07110-8024', 'Grahamhaven', 'Illinois', 'Cocos (Keeling) Islands', '67260', 'TAX5925697', 'Stroman, Ernser and Cartwright', NULL, NULL, 'BANK9394', '14924.55', NULL, '9878.31', '859.91', 'Cleaning', 'COD', '33917.33', '4.68', NULL, NULL, 'TL-193382', NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(22, 1, 'Lucy Kozey', '+1 (443) 596-6892', 'Zieme PLC', 'Keegan Runolfsson', '1-984-875-2539', 'johanna.greenholt@example.net', NULL, NULL, '76361 Borer Common Suite 516\nKaiaport, ID 20307-0570', 'New Carolyne', 'Mississippi', 'Turkmenistan', '75975-4407', NULL, NULL, NULL, '5194216402', NULL, '30312.73', NULL, '2570.34', '6293.88', 'Equipment', 'Net 30', '11078.43', '4.04', 'Praesentium odio nihil sed repellendus perferendis qui voluptatem.', NULL, 'TL-593019', 'NID8865409791', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(23, 1, 'Charles Buckridge', '213-647-6184', 'Schulist, Lind and Muller', 'Kristofer Lockman', '+14012835265', NULL, 'http://labadie.com/', NULL, '397 Elva Summit\nJuliaburgh, UT 12803-4619', 'Port Lottie', 'Washington', 'Burundi', '98470-5334', NULL, NULL, 'Leopoldo Nitzsche', NULL, NULL, '41495.17', '1993-01-20', '4858.05', '3116.04', 'Beverage', 'Net 7', '21514.25', '4.50', NULL, NULL, 'TL-799843', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(24, 1, 'Claudia Dicki', '1-828-881-3723', 'Fay, Thiel and Mills', 'Jordon Jacobi', '+1-872-472-4844', 'cleo.jerde@example.net', NULL, NULL, '8222 Stroman Way\nJosianneshire, NE 45502', 'Rahulshire', 'Vermont', 'Western Sahara', '94878', NULL, 'Funk-O\'Conner', 'Marcel Parker', NULL, 'BANK0113', '12056.96', '1989-12-26', '1032.31', '5491.23', 'Cleaning', 'Net 15', '45125.32', '4.83', NULL, NULL, NULL, 'NID9716748559', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(25, 1, 'Madyson Bashirian', '413-421-7408', 'Schultz Ltd', 'Georgianna Herman', '+1.385.645.6274', 'alivia.harvey@example.org', NULL, NULL, '72636 Olson Circle\nVonRuedenbury, UT 09893-0349', 'Aurelieport', 'New York', 'United States Virgin Islands', '80084', NULL, 'Veum-Nader', NULL, '9140543630', NULL, '31982.70', NULL, '3318.63', '3022.62', 'Beverage', 'Net 15', '5826.67', '3.92', 'Ratione minus ut pariatur ex eum quis velit est illo earum similique quis minus.', NULL, 'TL-584449', NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(26, 1, 'Liliane Kirlin', '(443) 209-2030', 'Armstrong, Jenkins and Beahan', 'Reggie Runte', '1-224-325-1362', NULL, 'http://little.com/eos-saepe-tempora-ad-distinctio', NULL, '3329 Rutherford Green Suite 970\nNew Emmanuel, TX 43804', 'Tyrahaven', 'Colorado', 'Cameroon', '20069', NULL, NULL, NULL, '2732583446', NULL, '10160.79', NULL, '4985.58', '9891.02', 'Cleaning', 'Net 15', NULL, '3.50', 'Facilis assumenda odio adipisci est reiciendis aliquam dolore.', NULL, 'TL-447056', NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(27, 1, 'Dr. Alf Cremin MD', '(848) 236-2736', 'Sporer, Skiles and Von', 'Rogers Mann', '+1-580-984-1875', 'julian96@example.org', 'http://klocko.com/', NULL, '8334 Carolyn Divide\nPort Maritzaville, MN 47938-4736', 'South Rebastad', 'Wyoming', 'United States of America', '63218-5638', 'TAX3905358', NULL, NULL, '0785461811', NULL, '13119.97', NULL, '3901.40', '9086.57', 'Cleaning', 'COD', NULL, '3.22', 'Sit quod laudantium qui occaecati mollitia debitis et ut harum fugiat.', NULL, 'TL-967230', 'NID2367077483', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(28, 1, 'Ms. Gloria Mayert', '+1-281-568-8835', 'Hand, Bashirian and Flatley', 'Zelma Cronin', '352-431-9582', 'bernadine54@example.org', 'http://www.ohara.com/', NULL, '6321 Trystan Road Suite 978\nSouth Orpha, MA 88700-1790', 'Hamillhaven', 'Pennsylvania', 'Eritrea', '37534', 'TAX0595284', 'Ferry, Cronin and Dooley', NULL, NULL, 'BANK7727', '31017.15', '1975-04-26', '2027.93', '7758.31', 'Beverage', 'COD', '28834.49', '4.90', NULL, NULL, NULL, 'NID9045262943', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(29, 1, 'Edgardo Reinger', '201.675.9080', 'Olson-Hills', 'Karli Johnston', '(520) 601-4752', NULL, 'http://www.graham.org/non-molestiae-dolores-dolores-quas-incidunt-sed.html', NULL, '74563 Harris Dam\nTrompmouth, WA 96802-1877', 'North Niko', 'Utah', 'Afghanistan', '74354', 'TAX9808621', NULL, 'Lucious Bechtelar', NULL, 'BANK4246', '48464.98', '1981-12-13', '4570.72', '4870.42', 'Food', 'COD', '29339.65', '3.06', NULL, NULL, 'TL-035709', 'NID8475094612', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(30, 1, 'Shanna Stark', '+19496085269', 'Senger, Koelpin and Ernser', 'Mrs. Alison Windler', '1-419-812-4920', NULL, NULL, NULL, '1851 Buckridge Prairie\nLake Neomaborough, NH 19558-2901', 'Joanaland', 'Colorado', 'Saint Pierre and Miquelon', '07669-1458', NULL, NULL, NULL, '6214949047', 'BANK2567', '25547.34', '1970-01-18', '4596.88', '4995.68', 'Equipment', 'Net 30', NULL, '4.53', 'Inventore odit earum commodi similique quia dolorem consequatur eaque ut.', NULL, NULL, 'NID7566425831', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(31, 1, 'Benedict Koelpin', '1-380-482-4237', 'Heaney-Hamill', 'Nova Lehner Jr.', NULL, 'lavern.morissette@example.com', NULL, NULL, '5460 Shanahan Plains Apt. 703\nNorth Elian, ID 60453-9549', 'Eladioville', 'Kentucky', 'Eritrea', '79562-3087', NULL, NULL, NULL, NULL, NULL, '43190.49', '1992-03-11', '2641.01', '3388.77', 'Beverage', 'COD', NULL, '4.28', NULL, NULL, 'TL-324984', 'NID0619035169', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(32, 1, 'Florencio Carter', '689.772.3742', 'Hagenes Ltd', 'Marisol Murazik DDS', '(320) 661-6259', NULL, NULL, NULL, '58674 Pearlie Freeway Apt. 615\nBartolettitown, CT 28457', 'Port Avisburgh', 'North Carolina', 'Tuvalu', '95387', NULL, NULL, 'Marley Wisoky', NULL, 'BANK7771', '31906.08', '1971-01-01', '2834.39', '6632.90', 'Cleaning', 'Net 30', NULL, '3.84', NULL, NULL, NULL, 'NID4457548394', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(33, 1, 'Sadye Bayer II', '+13526930959', 'Mertz-Dickinson', 'Kareem Tremblay I', '636.721.3413', NULL, NULL, NULL, '188 Greenfelder Ferry Apt. 840\nMarkston, NH 02913', 'Murphychester', 'Connecticut', 'Sri Lanka', '00565-1323', 'TAX5408688', NULL, 'Oral Hartmann', '8053152144', NULL, '49709.83', '1972-06-14', '1813.72', '4059.84', 'Beverage', 'Net 7', NULL, '4.74', NULL, NULL, NULL, 'NID5893889767', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(34, 1, 'Prof. Dylan Waelchi MD', '1-201-365-8147', 'Mraz Inc', 'Dr. Salma Quigley', '406.860.6629', NULL, NULL, NULL, '5782 Joey Mountain Suite 469\nMillieburgh, AL 30589', 'South Ned', 'Nebraska', 'Czech Republic', '56304-9451', 'TAX2004540', 'Hegmann, Kerluke and Green', 'Ena Hagenes', NULL, NULL, '11207.51', NULL, '8869.30', '8272.63', 'Beverage', 'COD', NULL, '4.06', NULL, NULL, 'TL-767602', 'NID8757643233', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(35, 1, 'Miss Alene Lebsack', '520-666-6674', 'Johnston Inc', 'Darrion Schaden', '385-618-9711', 'alyson12@example.com', NULL, NULL, '531 Citlalli Pass Suite 220\nEmmieside, WA 43506-9707', 'East Beatrice', 'Arkansas', 'Faroe Islands', '71348-0148', NULL, 'Russel PLC', NULL, '3707043334', NULL, '3112.55', '1977-06-05', '7425.54', '2771.23', 'Equipment', 'Net 7', NULL, '4.65', 'Optio assumenda odio et molestiae est expedita est ratione consequatur quod hic cumque.', NULL, NULL, NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(36, 1, 'Rossie Gulgowski', '216-451-3406', 'Borer, Hyatt and Vandervort', 'Tremayne Schroeder', '1-763-231-9376', NULL, NULL, NULL, '112 Lockman Terrace Apt. 490\nWalterhaven, AL 30857-2970', 'West Ryder', 'California', 'Guinea-Bissau', '48907-8556', 'TAX4365401', 'Waters, Feeney and DuBuque', 'Mrs. Guadalupe Torphy DVM', NULL, NULL, '46360.97', '1975-12-26', '7604.07', '7776.53', 'Food', 'Net 30', '26222.74', '4.09', 'Cupiditate deserunt molestiae qui occaecati itaque consequuntur ea et.', NULL, NULL, 'NID5278317034', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(37, 1, 'Dr. Mallory Greenfelder III', '1-220-828-3761', 'Bechtelar, Kirlin and Welch', 'Brian Reilly', NULL, 'ckrajcik@example.com', 'http://www.bednar.info/', NULL, '929 Brandi Rapid\nWest Mina, ID 50811-4427', 'Carrollville', 'New Hampshire', 'Palestinian Territories', '05821', 'TAX4818701', 'Hartmann, O\'Conner and Lesch', NULL, '9880828569', 'BANK2337', '25247.67', NULL, '1122.27', '2693.87', 'Equipment', 'Net 7', '19913.40', '3.90', NULL, NULL, NULL, NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(38, 1, 'Stacy Medhurst', '661.896.1684', 'Barton, Moore and Kuhlman', 'Dallas Feil', '248.298.9284', NULL, 'http://hauck.com/fugit-cum-consequatur-sed-dolores-modi-velit-dignissimos', NULL, '1858 Parker Junction Suite 471\nJewellport, ID 86760', 'Lake Elyssa', 'Connecticut', 'Nicaragua', '64660-4112', 'TAX5361853', NULL, NULL, NULL, NULL, '7851.46', '1999-03-31', '835.34', '3977.61', 'Beverage', 'COD', '3177.44', '4.29', NULL, NULL, NULL, 'NID9494327524', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(39, 1, 'Camila Weissnat', '+16283629842', 'Hammes Inc', 'Dr. Einar Blanda', NULL, NULL, NULL, NULL, '88191 Christ Junctions Apt. 729\nPort Marinaland, LA 39848', 'Lake Newton', 'Florida', 'Grenada', '55518', NULL, NULL, NULL, '4906320121', 'BANK7992', '30737.68', '2007-03-23', '7640.94', '5788.17', 'Food', 'Net 30', '45319.50', '4.37', 'Sit officia numquam odio sed harum temporibus culpa optio fugit unde.', NULL, 'TL-406452', NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(40, 1, 'Mr. Henri Marquardt', '743-654-6265', 'Vandervort LLC', 'Prof. Brielle Yundt IV', NULL, NULL, 'http://von.info/autem-quas-quia-itaque-voluptas-adipisci-culpa-sit-quam.html', NULL, '376 Wilderman Island Apt. 476\nPort Alanna, MA 08033', 'Borerview', 'Ohio', 'Bermuda', '86732', 'TAX3217615', NULL, NULL, NULL, 'BANK7071', '31791.38', NULL, '65.33', '3319.94', 'Cleaning', 'COD', NULL, '3.89', NULL, NULL, NULL, 'NID0441921738', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(41, 1, 'Dr. Lorenz Batz DDS', '678.489.0135', 'Kunze LLC', 'Carlotta Sipes', '+18317755087', NULL, 'http://www.bechtelar.org/asperiores-ex-explicabo-ipsum-et-maiores-modi', NULL, '307 Robel Roads Suite 737\nNikkomouth, GA 49098-1526', 'Zulauffort', 'Hawaii', 'Lesotho', '04319', 'TAX2702227', 'Hayes Ltd', NULL, '4900779487', 'BANK6704', '18762.64', NULL, '6711.21', '7347.57', 'Beverage', 'COD', '6560.03', '3.79', NULL, NULL, 'TL-414402', 'NID8223710397', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(42, 1, 'Bruce Ernser', '978-423-6082', 'Rosenbaum, Mayert and Halvorson', 'Demarco Jaskolski III', NULL, 'maya.white@example.net', NULL, NULL, '626 Kuphal Hollow\nPort Garretthaven, MT 59929', 'Greenview', 'Delaware', 'United States Virgin Islands', '45533-4716', 'TAX4832719', 'Fadel, Weber and Corwin', NULL, NULL, 'BANK4126', '25904.69', NULL, '9700.92', '916.45', 'Equipment', 'Net 7', '23203.14', '3.94', NULL, NULL, NULL, NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(43, 1, 'Dakota Steuber', '+1-979-886-4374', 'Glover Ltd', 'Abdiel West', NULL, 'okeefe.robbie@example.com', 'http://www.lueilwitz.org/et-quae-omnis-error-itaque-consequatur', NULL, '211 Jocelyn Lakes\nGrahamfurt, UT 75883', 'Heathcotefurt', 'Michigan', 'Saint Martin', '45437', 'TAX2353033', 'Mayert-Hermann', 'Estrella Krajcik DDS', NULL, 'BANK0813', '7422.15', '1997-11-12', '7754.11', '2509.78', 'Food', 'COD', '19972.97', '4.51', 'Culpa et in fugit ut magni eum tempore quos.', NULL, NULL, 'NID6018721632', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(44, 1, 'Miss Amely Zulauf', '747.280.7608', 'Gorczany-West', 'Laury Dooley', '743.930.2140', 'nstamm@example.net', NULL, NULL, '10783 Johns Rapid Apt. 008\nWest Karl, WV 58076-3281', 'New Rosaliachester', 'Maryland', 'Switzerland', '04512-8558', 'TAX4809495', 'Grady, O\'Conner and Osinski', NULL, '8982359551', NULL, '43957.67', '1982-08-06', '3102.44', '1304.02', 'Beverage', 'Net 30', '24582.20', '3.07', 'Dolorem magnam et officia et eos quae impedit et rerum officiis ullam natus dicta.', NULL, 'TL-842060', NULL, 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(45, 1, 'Sarina Gutmann', '+1-717-964-5027', 'Gulgowski Inc', 'Mr. Vincent Towne', '1-361-345-6925', 'daija.cormier@example.com', NULL, NULL, '462 Madonna Crossing Suite 647\nLittleburgh, NH 12560-6395', 'South Ernestine', 'Minnesota', 'Sudan', '78791-7707', 'TAX8127853', 'Thompson-Cummerata', NULL, NULL, NULL, '26464.72', NULL, '49.55', '9672.10', 'Beverage', 'Net 7', '47287.40', '3.75', NULL, NULL, 'TL-605537', 'NID4255680842', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(46, 1, 'Faustino Mosciski DVM', '+19707668951', 'Williamson, Osinski and Durgan', 'Quinton Dooley', NULL, NULL, 'http://denesik.org/aut-placeat-assumenda-corporis-officia-culpa-quibusdam-officiis', NULL, '209 Mraz Shoals Apt. 698\nBaumbachberg, OH 82084-2540', 'East Marvinside', 'Oregon', 'Malawi', '86495-7637', 'TAX5479625', 'Connelly PLC', NULL, NULL, 'BANK1052', '38016.64', '2009-02-02', '6406.70', '7640.33', 'Beverage', 'COD', NULL, '4.04', 'Quo qui inventore reiciendis minus voluptas quod explicabo sequi dolor.', NULL, NULL, NULL, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(47, 1, 'Ms. Dulce Conn DVM', '(831) 525-0000', 'Satterfield, Torphy and Stokes', 'Cary Quigley', '936-776-6817', 'efarrell@example.net', NULL, NULL, '99182 Lang Burg\nSonnyton, MA 82845', 'South Maggie', 'Alabama', 'Belize', '63819-8812', 'TAX0930712', 'Walker Ltd', 'Bernadine Ward', '0744388067', NULL, '41846.57', NULL, '1724.29', '4544.62', 'Food', 'Net 30', '29166.71', '3.44', 'Aut amet assumenda eveniet quos eius qui et distinctio ea maiores.', NULL, NULL, 'NID4494215653', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(48, 1, 'Ms. Rosalyn Hill', '680-830-5320', 'Franecki Ltd', 'Ms. Catherine Jacobi', '1-248-666-9660', 'cole.aubree@example.org', 'http://marvin.biz/mollitia-nobis-quisquam-rerum', NULL, '48213 Zena Expressway\nEast Nayeliburgh, CO 60092', 'Margeview', 'New Jersey', 'Reunion', '24914', 'TAX8275040', NULL, NULL, NULL, 'BANK1806', '41330.80', NULL, '6097.01', '2682.09', 'Food', 'Net 30', '16715.72', '4.53', 'Labore inventore consequuntur vitae est nihil dolores quisquam voluptas est iste sunt.', NULL, NULL, 'NID2241842110', 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(49, 1, 'Frank Mertz Sr.', '469-384-9385', 'Feest PLC', 'Trystan Harris', NULL, 'kshlerin.dominic@example.org', 'https://muller.org/nam-tempora-quasi-est-perspiciatis-adipisci-ut.html', NULL, '564 Trenton Flat Apt. 546\nHerzogport, RI 79980', 'Carlietown', 'Minnesota', 'Saint Barthelemy', '20303', 'TAX2626542', 'Schmitt-Berge', NULL, '6973357942', 'BANK5035', '18429.07', NULL, '4394.47', '7476.80', 'Cleaning', 'COD', NULL, '3.25', NULL, NULL, 'TL-257186', 'NID8459170169', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(50, 1, 'Columbus Stiedemann', '+12537931885', 'Schamberger-Okuneva', 'Maya Ritchie', NULL, NULL, 'http://www.hermann.com/aut-neque-laudantium-nesciunt-modi-ullam-omnis-assumenda.html', NULL, '68373 Maxwell Greens Suite 998\nMariettaberg, VA 35812', 'Coleland', 'Maryland', 'Cocos (Keeling) Islands', '30926-1044', 'TAX2472936', NULL, 'Prof. Marlene Grady V', '8866586712', 'BANK1948', '22055.73', '1988-07-15', '6875.21', '6413.05', 'Beverage', 'Net 30', '6756.69', '3.05', NULL, NULL, NULL, 'NID1642124936', 2, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `support_tickets`
|
|
--
|
|
|
|
CREATE TABLE `support_tickets` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`readable_ticket_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`category_id` bigint UNSIGNED DEFAULT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`purchase_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`read` tinyint(1) NOT NULL DEFAULT '0',
|
|
`related_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`support_plan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`attachments` json DEFAULT NULL,
|
|
`last_conversation_time` timestamp NULL DEFAULT NULL,
|
|
`last_respond_by_client_at` timestamp NULL DEFAULT NULL,
|
|
`status` enum('open','closed','pending','resolved') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `support_tickets`
|
|
--
|
|
|
|
INSERT INTO `support_tickets` (`id`, `restaurant_id`, `readable_ticket_id`, `user_id`, `category_id`, `title`, `description`, `purchase_code`, `read`, `related_url`, `support_plan`, `attachments`, `last_conversation_time`, `last_respond_by_client_at`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'dYkpgO', 1, 1, 'Sample Ticket 1', 'This is a detailed description of the first ticket.', 'PUR12345', 1, 'https://example.com', 'Premium', '[\"attachment1.png\", \"attachment2.pdf\"]', '2026-01-26 10:11:13', '2026-01-25 12:11:13', 'open', '2026-01-24 12:11:13', '2026-01-25 12:11:13', NULL),
|
|
(2, 1, '51BJVb', 2, 2, 'Sample Ticket 2', 'This is another detailed description for the second ticket.', 'PUR67890', 0, NULL, 'Standard', '[]', NULL, NULL, 'pending', '2026-01-21 12:11:13', '2026-01-22 12:11:13', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `support_ticket_categories`
|
|
--
|
|
|
|
CREATE TABLE `support_ticket_categories` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `support_ticket_categories`
|
|
--
|
|
|
|
INSERT INTO `support_ticket_categories` (`id`, `restaurant_id`, `name`, `description`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Support', 'Support-related queries', 1, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(2, 1, 'Tech', 'Technical assistance', 1, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `support_ticket_conversations`
|
|
--
|
|
|
|
CREATE TABLE `support_ticket_conversations` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`ticket_id` bigint UNSIGNED NOT NULL,
|
|
`user_id` bigint UNSIGNED DEFAULT NULL,
|
|
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`attachments` json DEFAULT NULL,
|
|
`user_type` enum('user','agent','admin') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `support_ticket_conversations`
|
|
--
|
|
|
|
INSERT INTO `support_ticket_conversations` (`id`, `restaurant_id`, `ticket_id`, `user_id`, `message`, `attachments`, `user_type`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, NULL, 'This is the last message in the conversation 1.', NULL, 'user', 1, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(2, 1, 1, NULL, 'Follow-up message from the agent 1.', NULL, 'agent', 1, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(3, 1, 1, NULL, 'This is the last message in the conversation 2.', NULL, 'user', 1, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(4, 1, 1, NULL, 'Follow-up message from the agent 2.', NULL, 'agent', 1, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(5, 1, 2, NULL, 'This is the last message in the conversation.', NULL, 'user', 1, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL),
|
|
(6, 1, 2, NULL, 'Follow-up message from the agent.', NULL, 'agent', 1, '2026-01-26 12:11:13', '2026-01-26 12:11:13', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `support_ticket_f_a_q_s`
|
|
--
|
|
|
|
CREATE TABLE `support_ticket_f_a_q_s` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`question` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`answer` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `support_ticket_f_a_q_s`
|
|
--
|
|
|
|
INSERT INTO `support_ticket_f_a_q_s` (`id`, `restaurant_id`, `question`, `answer`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'What is the return policy?', 'You can return the product within 30 days of purchase.', 1, '2025-01-01 06:00:00', '2025-01-05 08:30:00', NULL),
|
|
(2, 1, 'How can I track my order?', 'You can track your order using the tracking link sent to your email after the order is shipped.', 1, '2025-01-02 03:00:00', '2025-01-06 04:00:00', NULL),
|
|
(3, 1, 'Is customer support available 24/7?', 'Yes, our customer support is available 24/7 to assist you.', 1, '2025-01-03 09:45:00', '2025-01-07 10:00:00', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `support_ticket_ip_infos`
|
|
--
|
|
|
|
CREATE TABLE `support_ticket_ip_infos` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`ip_address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`division` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`zip_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`latitude` decimal(10,7) DEFAULT NULL,
|
|
`longitude` decimal(10,7) DEFAULT NULL,
|
|
`device_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`browser` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`operating_system` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`login_at` timestamp NULL DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `support_ticket_last_conversations`
|
|
--
|
|
|
|
CREATE TABLE `support_ticket_last_conversations` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`ticket_id` bigint UNSIGNED NOT NULL,
|
|
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`user_type` enum('user','agent','admin') COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `support_ticket_licenses`
|
|
--
|
|
|
|
CREATE TABLE `support_ticket_licenses` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`ticket_id` bigint UNSIGNED NOT NULL,
|
|
`license_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`expires_date` date NOT NULL,
|
|
`transaction_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `s_a_a_s_faqs`
|
|
--
|
|
|
|
CREATE TABLE `s_a_a_s_faqs` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`question` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`answer` longtext COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `s_a_a_s_faqs`
|
|
--
|
|
|
|
INSERT INTO `s_a_a_s_faqs` (`id`, `question`, `answer`, `status`, `created_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 'What is an academic program?', 'The academic program is a one stop solution for students. Where every student has the opportunity to ensure A+ preparation for board exams through interactive live classes, homework, live tests and progress analysis by the best mentors in each subject throughout the year. Once a student starts this program, he will not have to go to any coaching or private tutor after school/college.', 1, NULL, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 'What is an academic program?', 'The academic program is a one stop solution for students. Where every student has the opportunity to ensure A+ preparation for board exams through interactive live classes, homework, live tests and progress analysis by the best mentors in each subject throughout the year. Once a student starts this program, he will not have to go to any coaching or private tutor after school/college.', 1, NULL, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 'What is an academic program?', 'The academic program is a one stop solution for students. Where every student has the opportunity to ensure A+ preparation for board exams through interactive live classes, homework, live tests and progress analysis by the best mentors in each subject throughout the year. Once a student starts this program, he will not have to go to any coaching or private tutor after school/college.', 1, NULL, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `s_a_a_s_settings`
|
|
--
|
|
|
|
CREATE TABLE `s_a_a_s_settings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`value` longtext COLLATE utf8mb4_unicode_ci,
|
|
`payment_info` longtext COLLATE utf8mb4_unicode_ci,
|
|
`sms_info` longtext COLLATE utf8mb4_unicode_ci,
|
|
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'general',
|
|
`mode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `s_a_a_s_settings`
|
|
--
|
|
|
|
INSERT INTO `s_a_a_s_settings` (`id`, `name`, `value`, `payment_info`, `sms_info`, `type`, `mode`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 'site_name', 'SAAS Site', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(2, 'site_title', 'SAAS Title', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(3, 'phone', '', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(4, 'office_phone', '', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(5, 'email', '', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(6, 'language', 'en', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(7, 'google_map', '', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(8, 'address', '', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(9, 'on_google_map', '', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(10, 'currency_symbol', '$', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(11, 'logo', 'logo.png', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(12, 'disabled_website', 'no', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(13, 'copyright_text', '© Copyright 2025. All Rights Reserved by FueDevs LTD', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(14, 'facebook_link', 'https://www.facebook.com/', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(15, 'google_plus_link', 'https://www.google.com/', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(16, 'youtube_link', 'https://www.youtube.com/', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(17, 'whats_app_link', '', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(18, 'twitter_link', 'https://www.twitter.com', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(19, 'header_notice', '', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(20, 'app_version', '1.0.0', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(21, 'app_url', 'drive-link', NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(22, 'primary_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(23, 'secondary_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(24, 'primary_container_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(25, 'dark_primary_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(26, 'dark_secondary_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(27, 'dark_container_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(28, 'text_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(29, 'dark_text_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(30, 'sidebar_selected_bg_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(31, 'sidebar_selected_text_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(32, 'sidebar_selected_text_color', NULL, NULL, NULL, 'general', NULL, NULL, NULL, NULL, NULL),
|
|
(33, 'vercel_project_id', 'prj_8PvmJHMdDZNsnjGEK3AarjW75uO4', NULL, NULL, 'vercel', NULL, NULL, NULL, NULL, NULL),
|
|
(34, 'vercel_token', '8dBrjwsJuTMq3okIbXCoVo8S', NULL, NULL, 'vercel', NULL, NULL, NULL, NULL, NULL),
|
|
(35, 'bkash', NULL, '{\"app_key\":\"4f6o0cjiki2rfm34kfdadl1eqq\",\"app_secret\":\"2is7hdktrekvrbljjh44ll3d9l1dtjo4pasmjvs5vl5qr3fug4b\",\"username\":\"sandboxTokenizedUser02\",\"password\":\"sandboxTokenizedUser02@12345\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(36, 'paystack', NULL, '{\"public_key\":\"pk_test_cdbf1367be2cde97517468c4752b0333525e88c2\",\"secret_key\":\"sk_test_78934e683acd8b3fe7ae970f1b2b04ace0464873\",\"merchant_email\":\"imdshariful171@gmail.com\",\"callback_url\":\"https:\\\\\\/\\\\\\/api.paystack.co\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(37, 'razor_pay', NULL, '{\"api_key\":\"rzp_test_jXtU63C342FF9B\",\"api_secret\":\"nrzllzn50ELsRHwFwYthIgBT\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(38, 'stripe', NULL, '{\"published_key\":\"pk_test_PYPVAZcZj6ismKW2kv2jACU900iAgMGCIb\",\"api_key\":\"sk_test_bldfFddQARLRVTAJQPLeLWOH00hip4UNZF\",\"mode\":\"test\",\"other_config_key\":\"test_value\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(39, 'ssl_commerz', NULL, '{\"store_id\":\"custo5cc042f7abf4c\",\"store_password\":\"custo5cc042f7abf4c@ssl\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(40, 'pvit', NULL, '{\"mc_tel_merchant\":\"060234587\",\"access_token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.SnhhS251OU1JV1BYenJ6aUMxb1EvZWIyeXVWWFNhK05kZWJiU2lMVUFsN2pwa2Y1K1JpejFZZ25KaUQ1U2hyNUVZcWJ5QzF6L0tmd1lHOVFzK3NqK25WdkpBQm5NZDhqcUlSWjZ2eTFTdnIycE9lOFRDRm82VXY5eldvbkw3cXdwY3F5TW1Dc2JkeTQrbGMwdjB1dWdLNWJKdEJKSjZDZ1Nwb2tNU3dTV1RtTk5oa0hhZnVKVEkyb01CeWFvNDRHVDRXS01EaTMzRFZxSW5wV05YNXcxc2Nad1ZsQVRyRU1HTEYwOHpCVVlObk8waUxmeEI5d2FlbDdhWEZrWVFidTo6YzJ4YVpHKzlEMStoeUpVWG9mcUlWQT09.9yZOaT\\/zjc2xdW6k37O6qqp+4EzpSKJEwNNK06WXl0c=\",\"mc_merchant_code\":\"RA5118\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(41, 'paypal', NULL, '{\"client_id\":\"AabIbRZ97J0GHt0xf_DJj3u1dp6MU9boJGwnRY7OZ6fqBJVsrxd7PaBqqi6OGTYe2e4N4dWkYOkFSNtM\",\"client_secret\":\"EIeb5GszxCqanj964p4HYBQ5HMx6TwUGedqY6zdfJqlV-TQMF-cgIP2kZP6d_ZgbS3qjiVJxQH1X6wPt\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(42, 'paymob_accept', NULL, '{\"api_key\":\"ZXlKaGJHY2lPaUpJVXpVeE1pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnVZVzFsSWpvaU1UWTNOelE0TmpZNU1pNDNNemd6TURZaUxDSndjbTltYVd4bFgzQnJJam94Tmpjd01EWXNJbU5zWVhOeklqb2lUV1Z5WTJoaGJuUWlmUS5NRzFqMGp1WXVDLWt3NjAyMlhHcXJWSTB5aWNCNERrVlQzZndWd21HNEtIT3duS0hhVFBJWTdsU3JlaWtvazItYUNyOHlVVDZFdG14SGw4M3Yzd0dHZw==\",\"integration_id\":\"1974622\",\"iframe_id\":\"368299\",\"hmac_secret\":\"3E031CEDBA789C96F50692CA8E7261BA\",\"supported_country\":\"EG\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(43, 'flutterwave', NULL, '{\"public_key\":\"LWPUBK_TEST-3f6a0b6c3d621c4ecbb9beeff516c92b-X\",\"secret_key\":\"FLWSECK_TEST-ec27426eb062491500a9eb95723b5436-X\",\"encryption_key\":\"FLWSECK_TEST951e36220f66\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(44, 'senang_pay', NULL, '{\"merchant_id\":\"test_merchant_001\",\"secret_key\":\"test_secret_key_001\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL),
|
|
(45, 'paytm', NULL, '{\"merchant_id\":\"test_mid_001\",\"merchant_key\":\"test_key_001\",\"merchant_website_link\":\"WEBSTAGING\",\"refund_url\":\"https:\\/\\/securegw-stage.paytm.in\\/refund\\/apply\"}', NULL, 'payment_config', 'test', '1', NULL, NULL, NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `s_a_a_s_subscriptions`
|
|
--
|
|
|
|
CREATE TABLE `s_a_a_s_subscriptions` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `tables`
|
|
--
|
|
|
|
CREATE TABLE `tables` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`section` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`serial` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`table_type` enum('regular','vip','outdoor','booth') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'regular',
|
|
`capacity` int NOT NULL DEFAULT '2',
|
|
`is_bookable` tinyint(1) NOT NULL DEFAULT '1',
|
|
`qr_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`position_x` double NOT NULL DEFAULT '0',
|
|
`position_y` double NOT NULL DEFAULT '0',
|
|
`rotation` double NOT NULL DEFAULT '0',
|
|
`z_index` int NOT NULL DEFAULT '1',
|
|
`status` tinyint NOT NULL DEFAULT '1' COMMENT '1 = Active, 2 = Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `tables`
|
|
--
|
|
|
|
INSERT INTO `tables` (`id`, `restaurant_id`, `name`, `location`, `section`, `serial`, `table_type`, `capacity`, `is_bookable`, `qr_code`, `image`, `position_x`, `position_y`, `rotation`, `z_index`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'T01', 'Floor 1', 'Outdoor', 'T01', 'outdoor', 3, 1, 'QR01', NULL, 240, 366, 16, 7, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, 'T02', 'Floor 1', 'Main Hall', 'T02', 'vip', 6, 1, 'QR02', NULL, 131, 306, 206, 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, 'T03', 'Floor 1', 'Outdoor', 'T03', 'booth', 4, 1, 'QR03', NULL, 68, 463, 247, 4, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, 'T04', 'Floor 1', 'Main Hall', 'T04', 'booth', 4, 1, 'QR04', NULL, 139, 432, 248, 7, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, 'T05', 'Floor 1', 'VIP Area', 'T05', 'regular', 3, 1, 'QR05', NULL, 169, 274, 108, 3, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, 'T06', 'Floor 1', 'Outdoor', 'T06', 'booth', 5, 1, 'QR06', NULL, 288, 244, 117, 3, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, 'T07', 'Floor 1', 'Main Hall', 'T07', 'vip', 6, 1, 'QR07', NULL, 281, 318, 282, 3, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, 'T08', 'Floor 1', 'Main Hall', 'T08', 'vip', 6, 1, 'QR08', NULL, 267, 378, 358, 7, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, 'T09', 'Floor 1', 'Main Hall', 'T09', 'booth', 4, 1, 'QR09', NULL, 491, 313, 91, 8, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, 'T10', 'Floor 1', 'VIP Area', 'T10', 'vip', 5, 1, 'QR10', NULL, 62, 474, 120, 10, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `tax_settings`
|
|
--
|
|
|
|
CREATE TABLE `tax_settings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`reg_no` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`type` enum('percentage','fixed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'percentage',
|
|
`value` decimal(12,2) DEFAULT NULL,
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `telescope_entries`
|
|
--
|
|
|
|
CREATE TABLE `telescope_entries` (
|
|
`sequence` bigint UNSIGNED NOT NULL,
|
|
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`batch_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`family_hash` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`should_display_on_index` tinyint(1) NOT NULL DEFAULT '1',
|
|
`type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` datetime DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `telescope_entries_tags`
|
|
--
|
|
|
|
CREATE TABLE `telescope_entries_tags` (
|
|
`entry_uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`tag` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `telescope_monitoring`
|
|
--
|
|
|
|
CREATE TABLE `telescope_monitoring` (
|
|
`tag` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `testimonials`
|
|
--
|
|
|
|
CREATE TABLE `testimonials` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`thumbnail_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`video_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`ratting` int NOT NULL DEFAULT '0',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `testimonials`
|
|
--
|
|
|
|
INSERT INTO `testimonials` (`id`, `restaurant_id`, `name`, `description`, `thumbnail_image`, `video_url`, `note`, `ratting`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Feedback-01', 'I love learning here! The teachers are supportive, and the activities are fun.', NULL, NULL, NULL, 5, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'Feedback-02', 'A great place to teach! The school values both customers and educators.', NULL, NULL, NULL, 5, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'Feedback-03', 'The best decision for my child! Excellent education and communication.', NULL, NULL, NULL, 5, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `themes`
|
|
--
|
|
|
|
CREATE TABLE `themes` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`category` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `themes`
|
|
--
|
|
|
|
INSERT INTO `themes` (`id`, `category`, `name`, `icon`, `description`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 'Casual Dining', 'Modern Bistro', '🍴', 'Contemporary design with cozy vibe', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 'Casual Dining', 'Family Restaurant', '👨👩👧👦', 'Warm, inviting layout for families', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 'Fast Food', 'Burger & Fries', '🍔', 'Bright, energetic theme for quick bites', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 'Fast Food', 'Pizza Corner', '🍕', 'Fun and appetizing design for pizza lovers', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(5, 'Healthy & Vegan', 'Green Delight', '🥗', 'Fresh, clean design with nature-inspired colors', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(6, 'Fine Dining', 'Elegant Cuisine', '🍷', 'Sophisticated theme with luxurious feel', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(7, 'Cafe & Dessert', 'Coffee House', '☕', 'Warm and cozy vibe for coffee lovers', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(8, 'Cafe & Dessert', 'Bakery & Sweets', '🍰', 'Bright, cheerful design for dessert restaurants', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(9, 'Ethnic & Specialty', 'Italian Trattoria', '🇮🇹', 'Authentic, rustic Italian design', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(10, 'Ethnic & Specialty', 'Sushi Bar', '🍣', 'Minimalist, modern Japanese design', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(11, 'Global Cuisine', 'World Flavors', '🌎', 'Dynamic theme for international dishes', 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `tips`
|
|
--
|
|
|
|
CREATE TABLE `tips` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`waiter_id` bigint UNSIGNED DEFAULT NULL,
|
|
`order_id` bigint UNSIGNED DEFAULT NULL,
|
|
`amount` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`collected_at` date DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `tip_distributions`
|
|
--
|
|
|
|
CREATE TABLE `tip_distributions` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`waiter_id` bigint UNSIGNED NOT NULL,
|
|
`account_id` bigint UNSIGNED NOT NULL,
|
|
`amount` decimal(15,2) NOT NULL,
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`distributed_at` date DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `transactions`
|
|
--
|
|
|
|
CREATE TABLE `transactions` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`fund_id` bigint UNSIGNED DEFAULT NULL,
|
|
`transaction_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`transaction_date` date NOT NULL,
|
|
`reference_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`notes` text COLLATE utf8mb4_unicode_ci,
|
|
`total_debit` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`total_credit` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `transactions`
|
|
--
|
|
|
|
INSERT INTO `transactions` (`id`, `restaurant_id`, `fund_id`, `transaction_type`, `transaction_date`, `reference_no`, `notes`, `total_debit`, `total_credit`, `created_by`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 'deposit', '2026-01-24', 'DEP-001', 'Cash sale deposit', '0.00', '500.00', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 2, 'deposit', '2026-01-25', 'DEP-002', 'Bank deposit from sales', '0.00', '1000.00', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 1, 'expense', '2026-01-24', 'DEP-001', 'Cash sale expense', '0.00', '500.00', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(4, 1, 2, 'expense', '2026-01-25', 'DEP-002', 'Bank expense from sales', '0.00', '1000.00', 1, 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `transaction_details`
|
|
--
|
|
|
|
CREATE TABLE `transaction_details` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`transaction_id` bigint UNSIGNED NOT NULL,
|
|
`account_id` bigint UNSIGNED NOT NULL,
|
|
`debit` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`credit` decimal(15,2) NOT NULL DEFAULT '0.00',
|
|
`note` text COLLATE utf8mb4_unicode_ci,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `transaction_details`
|
|
--
|
|
|
|
INSERT INTO `transaction_details` (`id`, `restaurant_id`, `transaction_id`, `account_id`, `debit`, `credit`, `note`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 1, 1, '500.00', '0.00', 'Cash sale deposit (Fund)', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(2, 1, 1, 4, '0.00', '500.00', 'Cash sale deposit (Source Account)', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(3, 1, 2, 2, '1000.00', '0.00', 'Bank deposit from sales (Fund)', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(4, 1, 2, 4, '0.00', '1000.00', 'Bank deposit from sales (Source Account)', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(5, 1, 3, 1, '500.00', '0.00', 'Cash sale expense (Fund)', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(6, 1, 3, 4, '0.00', '500.00', 'Cash sale expense (Source Account)', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(7, 1, 4, 2, '1000.00', '0.00', 'Bank expense from sales (Fund)', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL),
|
|
(8, 1, 4, 4, '0.00', '1000.00', 'Bank expense from sales (Source Account)', 1, '2026-01-26 12:11:09', '2026-01-26 12:11:09', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `units`
|
|
--
|
|
|
|
CREATE TABLE `units` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`user_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`short_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`base_unit_id` bigint UNSIGNED DEFAULT NULL,
|
|
`operator` enum('*','/') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '*',
|
|
`operator_value` double NOT NULL DEFAULT '1',
|
|
`priority` smallint NOT NULL DEFAULT '1',
|
|
`version` smallint NOT NULL DEFAULT '1',
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `units`
|
|
--
|
|
|
|
INSERT INTO `units` (`id`, `restaurant_id`, `user_id`, `name`, `short_name`, `type`, `base_unit_id`, `operator`, `operator_value`, `priority`, `version`, `is_default`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, NULL, 'Gram', 'g', 'weight', NULL, '*', 1, 1, 1, 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(2, 1, NULL, 'Kilogram', 'kg', 'weight', 1, '*', 1000, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(3, 1, NULL, 'Milligram', 'mg', 'weight', 1, '/', 1000, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(4, 1, NULL, 'Pound', 'lb', 'weight', 1, '*', 453.592, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(5, 1, NULL, 'Ounce', 'oz', 'weight', 1, '*', 28.3495, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(6, 1, NULL, 'Milliliter', 'ml', 'volume', NULL, '*', 1, 1, 1, 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(7, 1, NULL, 'Liter', 'l', 'volume', 6, '*', 1000, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(8, 1, NULL, 'Teaspoon', 'tsp', 'volume', 6, '*', 5, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(9, 1, NULL, 'Tablespoon', 'tbsp', 'volume', 6, '*', 15, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(10, 1, NULL, 'Piece', 'pcs', 'count', NULL, '*', 1, 1, 1, 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(11, 1, NULL, 'Meter', 'm', 'length', NULL, '*', 1, 1, 1, 1, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(12, 1, NULL, 'Centimeter', 'cm', 'length', 11, '/', 100, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL),
|
|
(13, 1, NULL, 'Millimeter', 'mm', 'length', 11, '/', 1000, 1, 1, 0, 1, '2026-01-26 12:11:12', '2026-01-26 12:11:12', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `users`
|
|
--
|
|
|
|
CREATE TABLE `users` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`last_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`phone` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`otp_code` int DEFAULT NULL,
|
|
`isVerified` int DEFAULT NULL,
|
|
`email_verified_at` timestamp NULL DEFAULT NULL,
|
|
`role_id` tinyint NOT NULL DEFAULT '1' COMMENT '1=super-admin, 2=admin, 3=owner, 4=waiter',
|
|
`user_type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'waiter',
|
|
`address` mediumtext COLLATE utf8mb4_unicode_ci,
|
|
`avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`facebook` varchar(192) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`twitter` varchar(192) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`linkedin` varchar(192) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`google_plus` varchar(192) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`nid` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`platform` enum('APP','WEB') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'APP',
|
|
`device_info` longtext COLLATE utf8mb4_unicode_ci,
|
|
`last_active_time` timestamp NULL DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`department_id` bigint UNSIGNED DEFAULT NULL,
|
|
`designation_id` bigint UNSIGNED DEFAULT NULL,
|
|
`salary_type_id` bigint UNSIGNED DEFAULT NULL,
|
|
`gender` enum('male','female','other') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`date_of_birth` date DEFAULT NULL,
|
|
`joining_date` date DEFAULT NULL,
|
|
`basic_salary` decimal(12,2) DEFAULT '0.00',
|
|
`bio` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`fcm_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`qr_code` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `users`
|
|
--
|
|
|
|
INSERT INTO `users` (`id`, `restaurant_id`, `first_name`, `last_name`, `username`, `email`, `phone`, `password`, `otp_code`, `isVerified`, `email_verified_at`, `role_id`, `user_type`, `address`, `avatar`, `facebook`, `twitter`, `linkedin`, `google_plus`, `nid`, `platform`, `device_info`, `last_active_time`, `status`, `created_by`, `department_id`, `designation_id`, `salary_type_id`, `gender`, `date_of_birth`, `joining_date`, `basic_salary`, `bio`, `fcm_token`, `qr_code`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, NULL, 'SAAS Admin', NULL, NULL, 'saasadmin@gmail.com', '000000000002', '$2y$12$HPoXO65kvvDa584d9wuwAeEXP.vBHKB5AkM8eeK1tC3Q6p1gmJi26', NULL, NULL, '2026-01-26 12:10:56', 1, 'SAAS Admin', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://stracke.info/reprehenderit-necessitatibus-est-sint-autem-eius-dolorem-repellendus', 'https://www.kuphal.com/rerum-aperiam-quia-consequuntur-voluptatem-laborum', 'http://vonrueden.org/natus-mollitia-sint-quibusdam-saepe-qui-ipsam', 'http://www.wiegand.info/rerum-et-et-sed-aut-porro', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '4844918555843231', 'mHYhkhFG2C', '2026-01-26 12:10:56', '2026-01-26 12:10:56', NULL),
|
|
(2, NULL, 'super-admin', NULL, NULL, 'admin@gmail.com', '00000000000', '$2y$12$yBbSRqkpCxfQQfwB.baKjOHtjL6yGvjt7wvpavCNri/3odCrluYCG', NULL, NULL, '2026-01-26 12:10:57', 2, 'Super Admin', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'https://kemmer.com/commodi-ad-sunt-quae.html', 'http://www.corwin.biz/', 'http://www.rodriguez.info/doloribus-nulla-aut-consequatur-reiciendis.html', 'http://www.franecki.com/', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '3318444823316281', 'Dnx3XjL0Tg', '2026-01-26 12:10:57', '2026-01-26 12:10:57', NULL),
|
|
(3, 1, 'Owner 1', NULL, NULL, 'restaurant1@gmail.com', '00000000001', '$2y$12$8qQrKL2b7leyZea0tJmX6eaQ3ax898vrgHO/2lu36xjnHDAQ8OD6C', NULL, NULL, '2026-01-26 12:10:57', 3, 'Owner', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://kerluke.com/voluptatem-magnam-ratione-facilis-sint-dolorem-iure-recusandae', 'http://www.konopelski.biz/facere-minima-sit-sed-ut-eos', 'http://mills.info/', 'http://www.okuneva.org/enim-dolorem-sequi-quo-et', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '9469268076364230', 'c1ygrsDjgK', '2026-01-26 12:10:57', '2026-01-26 12:10:57', NULL),
|
|
(4, 2, 'Owner 2', NULL, NULL, 'restaurant2@gmail.com', '00000000021', '$2y$12$HSFYW4vRf/5qWrJGZCioOusMINmX0W.ARa7dp0L6CD6JWNCa0bo/G', NULL, NULL, '2026-01-26 12:10:57', 3, 'Owner', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.dietrich.com/saepe-nihil-dicta-deserunt-quod-iste-occaecati', 'http://www.reichel.com/quae-numquam-saepe-quia-sed-minima-ad', 'https://www.lynch.com/ratione-qui-dolore-voluptatum', 'http://www.goldner.com/nobis-impedit-odit-nostrum-sit-magni', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '1123907258446700', 'rVGz0c2tbT', '2026-01-26 12:10:57', '2026-01-26 12:10:57', NULL),
|
|
(5, 1, 'Manager 1', NULL, NULL, 'manager1@gmail.com', '00000000002', '$2y$12$/HC8ToqhlONnfbwgkVywJuLhRSbzpH8sQW.gbZgjNbqmIZLqzmBc.', NULL, NULL, '2026-01-26 12:10:58', 4, 'Manager', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'https://renner.com/rerum-et-libero-dolores-accusamus-alias-eum-voluptas.html', 'http://www.schoen.info/debitis-perferendis-qui-iste-quia-doloribus-illum', 'http://www.cruickshank.net/harum-atque-eum-in-quae-repellat-sunt-dolores-eum', 'http://sipes.com/voluptate-et-eaque-facere-animi-ea-ducimus-sit', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '4490928680808799', 'ieoqkJGEKy', '2026-01-26 12:10:58', '2026-01-26 12:10:58', NULL),
|
|
(6, 2, 'Manager 2', NULL, NULL, 'manager2@gmail.com', '00000000022', '$2y$12$.Yz5LrQ5wkPkJMU/dFMrsONn3gmBy.fXleKcHsCpZdyajibaKeYEW', NULL, NULL, '2026-01-26 12:10:58', 4, 'Manager', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.donnelly.com/', 'http://www.krajcik.org/', 'http://www.ernser.net/', 'http://www.harris.com/assumenda-fugit-ut-iusto-error', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '6123733059424340', 'uJ1q7fpY6i', '2026-01-26 12:10:58', '2026-01-26 12:10:58', NULL),
|
|
(7, 1, 'Employee 1', NULL, NULL, 'employee1@gmail.com', '00000000003', '$2y$12$YmEDKqhMgwlDJnt6w/E/5e.cYAJGm6LQ6RU8neGJxV0VXc8MGoTAm', NULL, NULL, '2026-01-26 12:10:58', 5, 'Employee', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.gaylord.com/ratione-sunt-sequi-omnis-nihil-dolorem-similique', 'http://muller.org/aut-voluptatem-autem-soluta-explicabo-accusamus.html', 'https://ritchie.com/officia-expedita-aspernatur-facere-ea.html', 'http://cormier.net/est-laborum-assumenda-labore-non-est', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '9076244471330362', 'RbEwGs36xq', '2026-01-26 12:10:59', '2026-01-26 12:10:59', NULL),
|
|
(8, 2, 'Employee 2', NULL, NULL, 'employee2@gmail.com', '00000000023', '$2y$12$/qaq8unhEN9oaK1/9aX3X.RClQEDl8if9FCrEM27ckyRoIUwA/Gsu', NULL, NULL, '2026-01-26 12:10:59', 5, 'Employee', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.cummings.com/id-voluptas-ut-odit-est', 'http://collins.com/', 'http://www.gleason.info/', 'http://www.crooks.org/suscipit-voluptate-quisquam-sunt', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '1800602850274431', '0q1ChPqYLK', '2026-01-26 12:10:59', '2026-01-26 12:10:59', NULL),
|
|
(9, 1, 'Waiter 1', NULL, NULL, 'waiter1@gmail.com', '00000000011', '$2y$12$ncJG4LHKXJtjwYsxUslNl.CMYQjgHXIiuC/WWgIYUWfhI3ozEoEp.', NULL, NULL, '2026-01-26 12:10:59', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.muller.org/sed-quasi-perspiciatis-incidunt-autem-non-consequuntur.html', 'http://www.leuschke.com/sit-quo-explicabo-quae-ipsa-laborum-ea-omnis', 'http://wyman.com/neque-voluptates-deleniti-quia-et-voluptatem-tenetur-placeat', 'http://collins.com/necessitatibus-quisquam-iusto-non-eius-molestiae-iste', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '1942864092007226', 'v61sigoCOD', '2026-01-26 12:10:59', '2026-01-26 12:10:59', NULL),
|
|
(10, 1, 'Waiter 2', NULL, NULL, 'waiter2@gmail.com', '00000000012', '$2y$12$gOWPoTfD81mZ6sHCmanw8u4T6XLHJNa4.ah/AQV0d0DsgZ1dIZp0e', NULL, NULL, '2026-01-26 12:10:59', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://hermann.net/sunt-reprehenderit-eos-doloremque-illum', 'http://www.morissette.info/illum-natus-veritatis-quia-aliquam-quia', 'http://dietrich.com/sit-nisi-explicabo-consequatur-iusto-voluptas-non', 'http://lowe.org/iure-error-totam-sit-sit-perspiciatis-repellat', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '4821711385025680', 'FC9OsAHloW', '2026-01-26 12:11:00', '2026-01-26 12:11:00', NULL),
|
|
(11, 1, 'Waiter 3', NULL, NULL, 'waiter3@gmail.com', '00000000013', '$2y$12$TJwkFNrLtGoEF7gTamBzDOmarHBBdyC3nPOTbPwg6m8Px1hKQg502', NULL, NULL, '2026-01-26 12:11:00', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.mitchell.com/molestias-aut-exercitationem-et-doloremque-maxime-ea-porro', 'http://glover.com/inventore-rerum-animi-cum-voluptates-eos', 'https://beer.com/nihil-repellat-molestiae-aut-rerum.html', 'https://legros.com/dolorum-ex-corrupti-officia-totam-sed.html', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '3487822066363923', 'iiRqocV5Q4', '2026-01-26 12:11:00', '2026-01-26 12:11:00', NULL),
|
|
(12, 1, 'Waiter 4', NULL, NULL, 'waiter4@gmail.com', '00000000014', '$2y$12$J.3/eUhvUbkFGYrNVnaW/OAzBZy2f/xVbqOaT2vCpUPBzevXSDHFW', NULL, NULL, '2026-01-26 12:11:00', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://boyer.com/debitis-autem-dolore-voluptatum-libero', 'https://kohler.com/quibusdam-quos-qui-quis-provident-libero-illo.html', 'http://www.fahey.com/est-occaecati-necessitatibus-ipsum-commodi-et.html', 'http://bogisich.com/est-nobis-sint-aut-autem-tempore-et-accusamus-reprehenderit', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '7188649922523274', 'WEE7wostNZ', '2026-01-26 12:11:00', '2026-01-26 12:11:00', NULL),
|
|
(13, 1, 'Waiter 5', NULL, NULL, 'waiter5@gmail.com', '00000000015', '$2y$12$3zDXw5JAXk0ZT6KTm1ODv.jh0YsbpaBeWR/hpOVgyMFeDwSh5PYBq', NULL, NULL, '2026-01-26 12:11:01', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.kris.com/dolor-cupiditate-dolores-sint-quo-est-perferendis', 'http://www.goldner.com/consectetur-non-dolore-libero.html', 'http://nader.net/quos-ipsam-quis-est-enim-sit-est', 'http://www.keebler.com/et-ducimus-porro-quibusdam-ut-autem-qui-pariatur-maxime', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '7306191060443108', 'noMAdcE6Kh', '2026-01-26 12:11:01', '2026-01-26 12:11:01', NULL),
|
|
(14, 2, 'Waiter 6', NULL, NULL, 'waiter6@gmail.com', '00000000031', '$2y$12$E29VrUiNCYQS.n6M3kD4WeBedeHQE.Slhm7dlZXT5SexY3GcE3ACW', NULL, NULL, '2026-01-26 12:11:01', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://morar.com/', 'http://www.jacobson.com/placeat-ut-at-minus-nihil-dolor-ipsum-dignissimos', 'http://www.jones.info/', 'https://www.johnson.com/esse-voluptatibus-et-quia-at-reprehenderit-odit', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '5900816872595096', 'BrTd91yT2Z', '2026-01-26 12:11:01', '2026-01-26 12:11:01', NULL),
|
|
(15, 2, 'Waiter 7', NULL, NULL, 'waiter7@gmail.com', '00000000032', '$2y$12$LmUcfHPZurC8EMolyPKx5OuWNiIgct3WHqXHjlC0Yu8ks1Wc6PEo.', NULL, NULL, '2026-01-26 12:11:01', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'https://ullrich.org/unde-suscipit-hic-dolores-earum-nulla-voluptas-quo.html', 'http://www.franecki.com/sed-necessitatibus-consequatur-nesciunt-consequuntur-nostrum-aut', 'http://www.trantow.com/at-numquam-autem-repellendus-sequi-praesentium.html', 'http://zieme.net/cumque-eos-et-sapiente-eius-alias-non-molestias', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '9835828368379282', 'RM6Cfuc9c7', '2026-01-26 12:11:01', '2026-01-26 12:11:01', NULL),
|
|
(16, 2, 'Waiter 8', NULL, NULL, 'waiter8@gmail.com', '00000000033', '$2y$12$6DPdMnY1kzkcgouo8ZgEOeZ2dbSVChDxrF57if6GKeCgBGxz..iPW', NULL, NULL, '2026-01-26 12:11:02', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://schaden.com/et-accusamus-consequatur-animi-nostrum-cumque-officia.html', 'https://mohr.biz/deleniti-temporibus-ex-qui-placeat.html', 'http://www.effertz.com/blanditiis-velit-ut-delectus-libero-in-ratione', 'http://www.davis.com/quibusdam-a-id-dicta-qui-laborum', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '4859293368108475', 'lmX88Avlmh', '2026-01-26 12:11:02', '2026-01-26 12:11:02', NULL),
|
|
(17, 2, 'Waiter 9', NULL, NULL, 'waiter9@gmail.com', '00000000034', '$2y$12$l8qPqtdlOKTFtpCGvbWn2OudCTzIHmHvFCsa2QJVZLTXKTwkhDlqC', NULL, NULL, '2026-01-26 12:11:02', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'https://www.thiel.org/deleniti-architecto-ducimus-recusandae-sint-harum', 'http://larkin.info/natus-et-cumque-ut-dolorem-et-quasi-cum-aut', 'http://toy.com/', 'http://www.gulgowski.com/velit-praesentium-sint-quaerat-in', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '3075389827550438', 'k7yKA0Ua7S', '2026-01-26 12:11:02', '2026-01-26 12:11:02', NULL),
|
|
(18, 2, 'Waiter 10', NULL, NULL, 'waiter10@gmail.com', '00000000035', '$2y$12$EGsoOyziUBYlZQRRtQLcUucVyA0ZPEfD.HiX76bsByyzmv7gEIahC', NULL, NULL, '2026-01-26 12:11:02', 6, 'Waiter', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.bernhard.com/ea-ut-fugiat-totam-quos-eos.html', 'http://www.lowe.com/', 'http://www.torp.com/qui-ea-placeat-illum-quis', 'http://www.sporer.com/rem-qui-suscipit-repellat-vel.html', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '6570728423690071', 'DhkQMHbzHP', '2026-01-26 12:11:03', '2026-01-26 12:11:03', NULL),
|
|
(19, 1, 'Chef 1', NULL, NULL, 'chef1@gmail.com', '00000000034', '$2y$12$VyEZVKl0Bmbae6VVUsurmefiDYyeDjDnG8mDv0/ZvLX7ZgXTL53oG', NULL, NULL, '2026-01-26 12:11:03', 7, 'Chef', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://walker.com/rem-earum-odio-illo-et-tenetur', 'http://www.kuvalis.com/', 'https://www.schoen.com/nulla-quo-voluptatum-enim-aliquid-tempore-dicta', 'http://www.dare.com/', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '3609061598295137', 'Vzogv2tsUZ', '2026-01-26 12:11:03', '2026-01-26 12:11:03', NULL),
|
|
(20, 1, 'Chef 2', NULL, NULL, 'chef1@gmail.com', '00000000034', '$2y$12$u.aF8BKSdJ6iUNc/bqJiluGwcmXttkgUsIOPyWvmMlMZ84ahBVZ3q', NULL, NULL, '2026-01-26 12:11:03', 7, 'Chef', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://ankunding.com/culpa-eveniet-velit-ipsum-officia-sed-ab-recusandae-dolor', 'http://www.huels.net/', 'http://www.herzog.biz/corrupti-vel-commodi-eos-officia', 'http://spencer.org/tenetur-in-et-odio-qui', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '7304742483338949', 'XbmTity9eP', '2026-01-26 12:11:03', '2026-01-26 12:11:03', NULL),
|
|
(21, 2, 'Chef 1', NULL, NULL, 'chef2@gmail.com', '000000000044', '$2y$12$3Dbro5AXKf/iN5hgP9/OiOw6IAuW0ePw4JKBH81BZLI9c.IhuKFnG', NULL, NULL, '2026-01-26 12:11:03', 7, 'Chef', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.hane.com/enim-inventore-debitis-beatae-non-ullam', 'http://wuckert.info/', 'http://www.pacocha.com/consequatur-ut-dolores-similique-temporibus-officiis-quas-dolorem', 'http://dubuque.com/', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '3007539231893413', 'XlhvCzayvn', '2026-01-26 12:11:04', '2026-01-26 12:11:04', NULL),
|
|
(22, 2, 'Chef 2', NULL, NULL, 'chef2@gmail.com', '000000000044', '$2y$12$db7c3XNO6eukI0XiINgLkuGpjP4.Pkz6zSEyoOuROUgyiGxk93Hpu', NULL, NULL, '2026-01-26 12:11:04', 7, 'Chef', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://www.braun.com/architecto-assumenda-possimus-et-vel-perferendis-facilis-quis', 'https://hyatt.com/vel-et-mollitia-labore-necessitatibus.html', 'http://marks.org/dicta-voluptas-enim-cupiditate-sit-animi-et-amet-est', 'http://price.com/dolorem-nisi-dolores-earum-eos-eum-quia-magnam.html', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '6872714210602998', 'YadP1WQU2S', '2026-01-26 12:11:04', '2026-01-26 12:11:04', NULL),
|
|
(23, 1, 'DeliveryMan 1', NULL, NULL, 'deliveryman1@gmail.com', '00000000005', '$2y$12$AULf6pWI8/nzeUicLY5.4.PAll9tVoxMJUwHJ2S571rv2VziL1MVm', NULL, NULL, '2026-01-26 12:11:04', 8, 'Delivery Man', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'https://www.mohr.com/porro-est-ut-qui-blanditiis-veritatis-et-quo', 'http://schaefer.biz/maiores-velit-quam-ut-laborum-voluptatem-vitae-voluptatem', 'http://www.block.com/recusandae-eius-aspernatur-veritatis-incidunt', 'http://dicki.info/voluptatem-quaerat-atque-earum-ea', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '3689156041281121', 'mJM4WYJMlG', '2026-01-26 12:11:04', '2026-01-26 12:11:04', NULL),
|
|
(24, 2, 'DeliveryMan 2', NULL, NULL, 'deliveryman2@gmail.com', '000000000025', '$2y$12$J5li4x/3XxLfoY8pl1VDKevzaQhpUWzST9FvG4tZCnZE1JRTgSCSe', NULL, NULL, '2026-01-26 12:11:05', 8, 'Delivery Man', 'Dhaka, Bangladesh', 'http://127.0.0.1:8000/uploads/user/admin-avatar.png', 'http://pouros.biz/odit-aut-deleniti-qui-nostrum', 'https://halvorson.com/optio-voluptate-quo-animi-voluptatem.html', 'https://www.lowe.com/pariatur-molestias-quia-qui-quidem', 'http://www.west.com/corporis-provident-et-quidem-ut-provident-aliquam', NULL, 'WEB', NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', NULL, NULL, '5864319150620951', 'WZ5XEjwDy4', '2026-01-26 12:11:05', '2026-01-26 12:11:05', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `user_logs`
|
|
--
|
|
|
|
CREATE TABLE `user_logs` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`user_id` bigint UNSIGNED NOT NULL,
|
|
`ip_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`action` enum('create','update','view','delete','order_create','order_update','order_cancel','order_status_update','payment_success','payment_failed','refund_issued','kitchen_accept','kitchen_preparing','kitchen_ready','kitchen_served','print_receipt','report_generate','login','logout','status_change') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'create',
|
|
`detail` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`previous_detail` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`model` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`model_id` bigint UNSIGNED DEFAULT NULL,
|
|
`url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `weekly_holidays`
|
|
--
|
|
|
|
CREATE TABLE `weekly_holidays` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`day` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=Inactive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `weekly_holidays`
|
|
--
|
|
|
|
INSERT INTO `weekly_holidays` (`id`, `restaurant_id`, `day`, `description`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Friday', NULL, 1, '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `why_choose_us`
|
|
--
|
|
|
|
CREATE TABLE `why_choose_us` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`description` text COLLATE utf8mb4_unicode_ci,
|
|
`icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `why_choose_us`
|
|
--
|
|
|
|
INSERT INTO `why_choose_us` (`id`, `restaurant_id`, `title`, `description`, `icon`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
|
(1, 1, 'Personalized Education', 'We tailor the learning experience to suit each customer`s strengths and needs.', 'https://i.ibb.co.com/hx9JgrTq/fi-2097062.png', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(2, 1, 'Experienced Faculty', 'Our team of highly qualified teachers is dedicated to nurturing your child`s potential .', 'https://i.ibb.co.com/TqwD1x5h/fi-2097104.png', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(3, 1, 'State-of-the-Art Facilities', 'From smart classrooms to recreational areas, we offer the best resources for customers to thrive.', 'https://i.ibb.co.com/4RVcT1w1/fi-2097055.png', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL),
|
|
(4, 1, 'Holistic Development', 'Beyond academics, we focus on sports, arts, and personal growth to prepare customers for the future.', 'https://i.ibb.co.com/Pv8GhnbM/fi-2097052.png', '2026-01-26 12:11:11', '2026-01-26 12:11:11', NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `zones`
|
|
--
|
|
|
|
CREATE TABLE `zones` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` smallint NOT NULL DEFAULT '1' COMMENT '1=Active, 2=InActive',
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `zoom_meetings`
|
|
--
|
|
|
|
CREATE TABLE `zoom_meetings` (
|
|
`id` bigint UNSIGNED NOT NULL,
|
|
`restaurant_id` bigint UNSIGNED NOT NULL,
|
|
`meeting_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`topic` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`agenda` text COLLATE utf8mb4_unicode_ci,
|
|
`start_time` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`duration` int DEFAULT NULL,
|
|
`password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`join_url` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`start_url` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_by` bigint UNSIGNED DEFAULT NULL,
|
|
`created_at` timestamp NULL DEFAULT NULL,
|
|
`updated_at` timestamp NULL DEFAULT NULL,
|
|
`deleted_at` timestamp NULL DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Indexes for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Indexes for table `about_us`
|
|
--
|
|
ALTER TABLE `about_us`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `about_us_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `about_us_created_by_foreign` (`created_by`),
|
|
ADD KEY `about_us_title_index` (`title`);
|
|
|
|
--
|
|
-- Indexes for table `academic_images`
|
|
--
|
|
ALTER TABLE `academic_images`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `academic_images_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `academic_images_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- Indexes for table `accounts`
|
|
--
|
|
ALTER TABLE `accounts`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `addons`
|
|
--
|
|
ALTER TABLE `addons`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `addons_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `addons_name_index` (`name`);
|
|
|
|
--
|
|
-- Indexes for table `addon_food`
|
|
--
|
|
ALTER TABLE `addon_food`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `addon_food_food_item_id_addon_id_unique` (`food_item_id`,`addon_id`),
|
|
ADD KEY `addon_food_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `addon_food_food_item_id_index` (`food_item_id`),
|
|
ADD KEY `addon_food_addon_id_index` (`addon_id`);
|
|
|
|
--
|
|
-- Indexes for table `attendances`
|
|
--
|
|
ALTER TABLE `attendances`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `attendances_employee_id_date_unique` (`employee_id`,`date`),
|
|
ADD KEY `attendances_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `attendances_date_index` (`date`);
|
|
|
|
--
|
|
-- Indexes for table `attendance_logs`
|
|
--
|
|
ALTER TABLE `attendance_logs`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `attendance_logs_employee_id_foreign` (`employee_id`),
|
|
ADD KEY `attendance_logs_attendance_id_foreign` (`attendance_id`),
|
|
ADD KEY `attendance_logs_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `attendance_logs_punch_time_index` (`punch_time`);
|
|
|
|
--
|
|
-- Indexes for table `awards`
|
|
--
|
|
ALTER TABLE `awards`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `awards_employee_id_date_awarded_index` (`employee_id`,`date_awarded`),
|
|
ADD KEY `awards_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `banners`
|
|
--
|
|
ALTER TABLE `banners`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `banners_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `banners_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- Indexes for table `bookings`
|
|
--
|
|
ALTER TABLE `bookings`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `bookings_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `bookings_customer_id_foreign` (`customer_id`),
|
|
ADD KEY `bookings_canceled_by_foreign` (`canceled_by`),
|
|
ADD KEY `bookings_hotel_id_status_index` (`hotel_id`,`status`);
|
|
|
|
--
|
|
-- Indexes for table `booking_items`
|
|
--
|
|
ALTER TABLE `booking_items`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `booking_items_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `booking_items_booking_id_foreign` (`booking_id`),
|
|
ADD KEY `booking_items_room_id_foreign` (`room_id`);
|
|
|
|
--
|
|
-- Indexes for table `cache`
|
|
--
|
|
ALTER TABLE `cache`
|
|
ADD PRIMARY KEY (`key`);
|
|
|
|
--
|
|
-- Indexes for table `cache_locks`
|
|
--
|
|
ALTER TABLE `cache_locks`
|
|
ADD PRIMARY KEY (`key`);
|
|
|
|
--
|
|
-- Indexes for table `candidates`
|
|
--
|
|
ALTER TABLE `candidates`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `candidates_recruitment_id_status_index` (`recruitment_id`,`status`),
|
|
ADD KEY `candidates_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `candidates_email_index` (`email`),
|
|
ADD KEY `candidates_phone_index` (`phone`);
|
|
|
|
--
|
|
-- Indexes for table `coupons`
|
|
--
|
|
ALTER TABLE `coupons`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `coupons_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `coupons_user_id_index` (`user_id`),
|
|
ADD KEY `coupons_valid_from_valid_to_index` (`valid_from`,`valid_to`),
|
|
ADD KEY `coupons_status_index` (`status`);
|
|
|
|
--
|
|
-- Indexes for table `coupon_usages`
|
|
--
|
|
ALTER TABLE `coupon_usages`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `coupon_usages_coupon_id_foreign` (`coupon_id`);
|
|
|
|
--
|
|
-- Indexes for table `customers`
|
|
--
|
|
ALTER TABLE `customers`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `customers_restaurant_id_email_unique` (`restaurant_id`,`email`),
|
|
ADD UNIQUE KEY `customers_restaurant_id_phone_unique` (`restaurant_id`,`phone`),
|
|
ADD KEY `customers_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `customer_addresses`
|
|
--
|
|
ALTER TABLE `customer_addresses`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `customer_addresses_user_id_foreign` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `c_m_s_sections`
|
|
--
|
|
ALTER TABLE `c_m_s_sections`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `delivery_charges`
|
|
--
|
|
ALTER TABLE `delivery_charges`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `delivery_charges_zone_id_foreign` (`zone_id`),
|
|
ADD KEY `delivery_charges_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `departments`
|
|
--
|
|
ALTER TABLE `departments`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `departments_restaurant_id_name_unique` (`restaurant_id`,`name`),
|
|
ADD KEY `departments_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `departments_parent_id_index` (`parent_id`);
|
|
|
|
--
|
|
-- Indexes for table `deposits`
|
|
--
|
|
ALTER TABLE `deposits`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `deposits_fund_id_index` (`fund_id`),
|
|
ADD KEY `deposits_account_id_index` (`account_id`),
|
|
ADD KEY `deposits_deposit_category_id_index` (`deposit_category_id`),
|
|
ADD KEY `deposits_transaction_date_index` (`transaction_date`);
|
|
|
|
--
|
|
-- Indexes for table `deposit_categories`
|
|
--
|
|
ALTER TABLE `deposit_categories`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `designations`
|
|
--
|
|
ALTER TABLE `designations`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `designations_restaurant_id_department_id_title_unique` (`restaurant_id`,`department_id`,`title`),
|
|
ADD KEY `designations_department_id_foreign` (`department_id`),
|
|
ADD KEY `designations_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `employee_salaries`
|
|
--
|
|
ALTER TABLE `employee_salaries`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `employee_salaries_employee_id_salary_month_status_index` (`employee_id`,`salary_month`,`status`),
|
|
ADD KEY `employee_salaries_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `employee_salaries_salary_month_index` (`salary_month`);
|
|
|
|
--
|
|
-- Indexes for table `employee_shift_assignments`
|
|
--
|
|
ALTER TABLE `employee_shift_assignments`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `employee_shift_assignments_employee_id_unique` (`employee_id`),
|
|
ADD KEY `employee_shift_assignments_shift_id_foreign` (`shift_id`);
|
|
|
|
--
|
|
-- Indexes for table `expenses`
|
|
--
|
|
ALTER TABLE `expenses`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `expenses_fund_id_index` (`fund_id`),
|
|
ADD KEY `expenses_account_id_index` (`account_id`),
|
|
ADD KEY `expenses_expense_category_id_index` (`expense_category_id`),
|
|
ADD KEY `expenses_transaction_date_index` (`transaction_date`);
|
|
|
|
--
|
|
-- Indexes for table `expense_categories`
|
|
--
|
|
ALTER TABLE `expense_categories`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `failed_jobs`
|
|
--
|
|
ALTER TABLE `failed_jobs`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
|
|
|
|
--
|
|
-- Indexes for table `faq_questions`
|
|
--
|
|
ALTER TABLE `faq_questions`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `faq_questions_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `faq_questions_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- Indexes for table `feedback`
|
|
--
|
|
ALTER TABLE `feedback`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `feedback_user_id_foreign` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `floors`
|
|
--
|
|
ALTER TABLE `floors`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `food_availabilities`
|
|
--
|
|
ALTER TABLE `food_availabilities`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `food_availabilities_food_item_id_day_unique` (`food_item_id`,`day`),
|
|
ADD KEY `food_availabilities_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `food_availability_times`
|
|
--
|
|
ALTER TABLE `food_availability_times`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `unique_food_time_slot` (`food_availability_id`,`open_time`,`close_time`);
|
|
|
|
--
|
|
-- Indexes for table `food_categories`
|
|
--
|
|
ALTER TABLE `food_categories`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `food_categories_parent_id_foreign` (`parent_id`);
|
|
|
|
--
|
|
-- Indexes for table `food_items`
|
|
--
|
|
ALTER TABLE `food_items`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `food_items_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `food_items_category_id_index` (`category_id`),
|
|
ADD KEY `food_items_name_index` (`name`),
|
|
ADD KEY `food_items_is_popular_item_index` (`is_popular_item`),
|
|
ADD KEY `food_items_is_chef_special_index` (`is_chef_special`),
|
|
ADD KEY `food_items_status_index` (`status`);
|
|
|
|
--
|
|
-- Indexes for table `food_reviews`
|
|
--
|
|
ALTER TABLE `food_reviews`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `food_reviews_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `food_reviews_food_item_id_index` (`food_item_id`),
|
|
ADD KEY `food_reviews_customer_id_index` (`customer_id`);
|
|
|
|
--
|
|
-- Indexes for table `food_review_replies`
|
|
--
|
|
ALTER TABLE `food_review_replies`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `food_review_replies_review_id_index` (`review_id`);
|
|
|
|
--
|
|
-- Indexes for table `food_variants`
|
|
--
|
|
ALTER TABLE `food_variants`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `food_variants_sku_unique` (`sku`),
|
|
ADD KEY `food_variants_unit_id_foreign` (`unit_id`),
|
|
ADD KEY `food_variants_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `food_variants_food_item_id_index` (`food_item_id`);
|
|
|
|
--
|
|
-- Indexes for table `food_variant_ingredients`
|
|
--
|
|
ALTER TABLE `food_variant_ingredients`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `food_variant_ingredients_food_variant_id_index` (`food_variant_id`),
|
|
ADD KEY `food_variant_ingredients_ingredient_id_index` (`ingredient_id`);
|
|
|
|
--
|
|
-- Indexes for table `food_wastes`
|
|
--
|
|
ALTER TABLE `food_wastes`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `food_wastes_food_item_id_foreign` (`food_item_id`),
|
|
ADD KEY `food_wastes_food_variant_id_foreign` (`food_variant_id`);
|
|
|
|
--
|
|
-- Indexes for table `frontend_contacts`
|
|
--
|
|
ALTER TABLE `frontend_contacts`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_email_unique` (`restaurant_id`,`email`);
|
|
|
|
--
|
|
-- Indexes for table `funds`
|
|
--
|
|
ALTER TABLE `funds`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `fund_transfers`
|
|
--
|
|
ALTER TABLE `fund_transfers`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `fund_transfers_from_fund_id_index` (`from_fund_id`),
|
|
ADD KEY `fund_transfers_to_fund_id_index` (`to_fund_id`),
|
|
ADD KEY `fund_transfers_transfer_date_index` (`transfer_date`);
|
|
|
|
--
|
|
-- Indexes for table `galleries`
|
|
--
|
|
ALTER TABLE `galleries`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `hotels`
|
|
--
|
|
ALTER TABLE `hotels`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `hotels_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `ingredients`
|
|
--
|
|
ALTER TABLE `ingredients`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `ingredients_unit_id_foreign` (`unit_id`),
|
|
ADD KEY `ingredients_unit_sale_id_foreign` (`unit_sale_id`),
|
|
ADD KEY `ingredients_unit_purchase_id_foreign` (`unit_purchase_id`),
|
|
ADD KEY `ingredients_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `ingredients_name_index` (`name`);
|
|
|
|
--
|
|
-- Indexes for table `ingredient_damages`
|
|
--
|
|
ALTER TABLE `ingredient_damages`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `ingredient_damages_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `ingredient_damages_reported_by_foreign` (`reported_by`),
|
|
ADD KEY `ingredient_damages_ingredient_id_index` (`ingredient_id`);
|
|
|
|
--
|
|
-- Indexes for table `interviews`
|
|
--
|
|
ALTER TABLE `interviews`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `interviews_department_id_foreign` (`department_id`),
|
|
ADD KEY `interviews_candidate_id_status_interview_date_index` (`candidate_id`,`status`,`interview_date`),
|
|
ADD KEY `interviews_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `jobs`
|
|
--
|
|
ALTER TABLE `jobs`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `jobs_queue_index` (`queue`);
|
|
|
|
--
|
|
-- Indexes for table `job_batches`
|
|
--
|
|
ALTER TABLE `job_batches`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `kitchens`
|
|
--
|
|
ALTER TABLE `kitchens`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `kitchen_assigns`
|
|
--
|
|
ALTER TABLE `kitchen_assigns`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `kitchen_assigns_kitchen_id_foreign` (`kitchen_id`),
|
|
ADD KEY `kitchen_assigns_user_id_foreign` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `languages`
|
|
--
|
|
ALTER TABLE `languages`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `languages_code_unique` (`code`);
|
|
|
|
--
|
|
-- Indexes for table `leave_applications`
|
|
--
|
|
ALTER TABLE `leave_applications`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `leave_applications_leave_type_id_foreign` (`leave_type_id`),
|
|
ADD KEY `leave_applications_approved_by_foreign` (`approved_by`),
|
|
ADD KEY `leave_applications_employee_id_leave_type_id_status_index` (`employee_id`,`leave_type_id`,`status`),
|
|
ADD KEY `leave_applications_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `leave_types`
|
|
--
|
|
ALTER TABLE `leave_types`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `leave_types_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `loans`
|
|
--
|
|
ALTER TABLE `loans`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `loans_employee_id_status_loan_type_index` (`employee_id`,`status`,`loan_type`),
|
|
ADD KEY `loans_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `loan_installments`
|
|
--
|
|
ALTER TABLE `loan_installments`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `loan_installments_loan_id_is_paid_due_date_is_overdue_index` (`loan_id`,`is_paid`,`due_date`,`is_overdue`),
|
|
ADD KEY `loan_installments_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `loyalty_points`
|
|
--
|
|
ALTER TABLE `loyalty_points`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `loyalty_point_settings`
|
|
--
|
|
ALTER TABLE `loyalty_point_settings`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `loyalty_redemptions`
|
|
--
|
|
ALTER TABLE `loyalty_redemptions`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `menu_categories`
|
|
--
|
|
ALTER TABLE `menu_categories`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_name_unique` (`restaurant_id`,`name`);
|
|
|
|
--
|
|
-- Indexes for table `menu_sections`
|
|
--
|
|
ALTER TABLE `menu_sections`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_section_name_unique` (`restaurant_id`,`name`),
|
|
ADD KEY `menu_sections_menu_category_id_foreign` (`menu_category_id`);
|
|
|
|
--
|
|
-- Indexes for table `menu_types`
|
|
--
|
|
ALTER TABLE `menu_types`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `menu_types_slug_unique` (`slug`),
|
|
ADD KEY `menu_types_restaurant_id_status_index` (`restaurant_id`,`status`),
|
|
ADD KEY `menu_types_restaurant_id_name_index` (`restaurant_id`,`name`),
|
|
ADD KEY `menu_types_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `menu_types_name_index` (`name`);
|
|
|
|
--
|
|
-- Indexes for table `migrations`
|
|
--
|
|
ALTER TABLE `migrations`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `mobile_app_sections`
|
|
--
|
|
ALTER TABLE `mobile_app_sections`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `mobile_app_sections_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `model_has_permissions`
|
|
--
|
|
ALTER TABLE `model_has_permissions`
|
|
ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
|
|
ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);
|
|
|
|
--
|
|
-- Indexes for table `model_has_roles`
|
|
--
|
|
ALTER TABLE `model_has_roles`
|
|
ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
|
|
ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);
|
|
|
|
--
|
|
-- Indexes for table `oauth_access_tokens`
|
|
--
|
|
ALTER TABLE `oauth_access_tokens`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `oauth_access_tokens_user_id_index` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `oauth_auth_codes`
|
|
--
|
|
ALTER TABLE `oauth_auth_codes`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `oauth_auth_codes_user_id_index` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `oauth_clients`
|
|
--
|
|
ALTER TABLE `oauth_clients`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `oauth_clients_owner_type_owner_id_index` (`owner_type`,`owner_id`);
|
|
|
|
--
|
|
-- Indexes for table `oauth_device_codes`
|
|
--
|
|
ALTER TABLE `oauth_device_codes`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `oauth_device_codes_user_code_unique` (`user_code`),
|
|
ADD KEY `oauth_device_codes_user_id_index` (`user_id`),
|
|
ADD KEY `oauth_device_codes_client_id_index` (`client_id`);
|
|
|
|
--
|
|
-- Indexes for table `oauth_personal_access_clients`
|
|
--
|
|
ALTER TABLE `oauth_personal_access_clients`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `oauth_refresh_tokens`
|
|
--
|
|
ALTER TABLE `oauth_refresh_tokens`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`);
|
|
|
|
--
|
|
-- Indexes for table `onboardings`
|
|
--
|
|
ALTER TABLE `onboardings`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `onboardings_approved_by_foreign` (`approved_by`),
|
|
ADD KEY `onboardings_status_index` (`status`),
|
|
ADD KEY `onboardings_restaurant_name_index` (`restaurant_name`);
|
|
|
|
--
|
|
-- Indexes for table `orders`
|
|
--
|
|
ALTER TABLE `orders`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `orders_order_number_unique` (`order_number`),
|
|
ADD KEY `orders_table_id_foreign` (`table_id`),
|
|
ADD KEY `orders_driver_id_foreign` (`driver_id`),
|
|
ADD KEY `orders_payment_method_id_foreign` (`payment_method_id`),
|
|
ADD KEY `orders_added_by_foreign` (`added_by`),
|
|
ADD KEY `orders_updated_by_foreign` (`updated_by`),
|
|
ADD KEY `idx_restaurant_status_date` (`restaurant_id`,`status`,`order_date`),
|
|
ADD KEY `idx_restaurant_date` (`restaurant_id`,`order_date`),
|
|
ADD KEY `idx_customer_date` (`customer_id`,`order_date`),
|
|
ADD KEY `idx_waiter_date` (`waiter_id`,`order_date`),
|
|
ADD KEY `idx_order_type_date` (`order_type`,`order_date`),
|
|
ADD KEY `idx_payment_status_date` (`payment_status`,`order_date`),
|
|
ADD KEY `idx_order_source_date` (`order_source`,`order_date`),
|
|
ADD KEY `orders_order_type_index` (`order_type`),
|
|
ADD KEY `orders_status_index` (`status`),
|
|
ADD KEY `orders_payment_status_index` (`payment_status`),
|
|
ADD KEY `orders_order_date_index` (`order_date`),
|
|
ADD KEY `orders_order_source_index` (`order_source`);
|
|
|
|
--
|
|
-- Indexes for table `order_items`
|
|
--
|
|
ALTER TABLE `order_items`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `order_items_food_item_id_foreign` (`food_item_id`),
|
|
ADD KEY `order_items_food_variant_id_foreign` (`food_variant_id`),
|
|
ADD KEY `idx_order_food` (`order_id`,`food_item_id`),
|
|
ADD KEY `idx_restaurant_food` (`restaurant_id`,`food_item_id`);
|
|
|
|
--
|
|
-- Indexes for table `order_trackings`
|
|
--
|
|
ALTER TABLE `order_trackings`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `order_trackings_order_id_foreign` (`order_id`),
|
|
ADD KEY `order_trackings_delivery_boy_id_foreign` (`delivery_boy_id`);
|
|
|
|
--
|
|
-- Indexes for table `otp_verifications`
|
|
--
|
|
ALTER TABLE `otp_verifications`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `otp_verifications_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `our_histories`
|
|
--
|
|
ALTER TABLE `our_histories`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `our_histories_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `our_histories_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- Indexes for table `packages`
|
|
--
|
|
ALTER TABLE `packages`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `pages`
|
|
--
|
|
ALTER TABLE `pages`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `unique_combination` (`restaurant_id`,`slug`),
|
|
ADD KEY `pages_author_id_index` (`author_id`);
|
|
|
|
--
|
|
-- Indexes for table `password_reset_tokens`
|
|
--
|
|
ALTER TABLE `password_reset_tokens`
|
|
ADD PRIMARY KEY (`email`);
|
|
|
|
--
|
|
-- Indexes for table `payment_methods`
|
|
--
|
|
ALTER TABLE `payment_methods`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `payment_methods_restaurant_id_name_unique` (`restaurant_id`,`name`),
|
|
ADD KEY `payment_methods_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `payment_requests`
|
|
--
|
|
ALTER TABLE `payment_requests`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `payment_requests_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `permissions`
|
|
--
|
|
ALTER TABLE `permissions`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`);
|
|
|
|
--
|
|
-- Indexes for table `policies`
|
|
--
|
|
ALTER TABLE `policies`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `policies_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `policies_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- Indexes for table `purchases`
|
|
--
|
|
ALTER TABLE `purchases`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `purchases_invoice_no_unique` (`invoice_no`),
|
|
ADD KEY `purchases_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `purchases_created_by_foreign` (`created_by`),
|
|
ADD KEY `purchases_supplier_id_index` (`supplier_id`);
|
|
|
|
--
|
|
-- Indexes for table `purchase_items`
|
|
--
|
|
ALTER TABLE `purchase_items`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `purchase_items_food_variant_id_foreign` (`food_variant_id`),
|
|
ADD KEY `purchase_items_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `purchase_items_purchase_id_index` (`purchase_id`),
|
|
ADD KEY `purchase_items_ingredient_id_index` (`ingredient_id`);
|
|
|
|
--
|
|
-- Indexes for table `purchase_returns`
|
|
--
|
|
ALTER TABLE `purchase_returns`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `purchase_returns_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `purchase_returns_processed_by_foreign` (`processed_by`),
|
|
ADD KEY `purchase_returns_purchase_id_index` (`purchase_id`),
|
|
ADD KEY `purchase_returns_purchase_item_id_index` (`purchase_item_id`),
|
|
ADD KEY `purchase_returns_ingredient_id_index` (`ingredient_id`);
|
|
|
|
--
|
|
-- Indexes for table `q_r_menu_settings`
|
|
--
|
|
ALTER TABLE `q_r_menu_settings`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `ready_to_join_us`
|
|
--
|
|
ALTER TABLE `ready_to_join_us`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `ready_to_join_us_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `recruitments`
|
|
--
|
|
ALTER TABLE `recruitments`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `recruitments_department_id_foreign` (`department_id`),
|
|
ADD KEY `recruitments_designation_id_foreign` (`designation_id`),
|
|
ADD KEY `recruitments_recruiter_id_foreign` (`recruiter_id`),
|
|
ADD KEY `recruitments_restaurant_id_status_start_date_index` (`restaurant_id`,`status`,`start_date`),
|
|
ADD KEY `recruitments_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `reservations`
|
|
--
|
|
ALTER TABLE `reservations`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `reservations_table_id_foreign` (`table_id`);
|
|
|
|
--
|
|
-- Indexes for table `reservation_settings`
|
|
--
|
|
ALTER TABLE `reservation_settings`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `reservation_unavailables`
|
|
--
|
|
ALTER TABLE `reservation_unavailables`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurants`
|
|
--
|
|
ALTER TABLE `restaurants`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurants_email_unique` (`email`),
|
|
ADD UNIQUE KEY `restaurants_phone_unique` (`phone`),
|
|
ADD UNIQUE KEY `restaurants_domain_unique` (`domain`),
|
|
ADD KEY `restaurants_owner_id_foreign` (`owner_id`),
|
|
ADD KEY `restaurants_assigned_to_foreign` (`assigned_to`),
|
|
ADD KEY `restaurants_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_deliveries`
|
|
--
|
|
ALTER TABLE `restaurant_deliveries`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_deliveries_uuid_unique` (`uuid`),
|
|
ADD UNIQUE KEY `restaurant_deliveries_tracking_code_unique` (`tracking_code`),
|
|
ADD KEY `restaurant_deliveries_zone_id_foreign` (`zone_id`),
|
|
ADD KEY `restaurant_deliveries_orderable_type_orderable_id_index` (`orderable_type`,`orderable_id`),
|
|
ADD KEY `restaurant_deliveries_status_created_at_index` (`status`,`created_at`),
|
|
ADD KEY `restaurant_deliveries_rider_id_status_index` (`rider_id`,`status`),
|
|
ADD KEY `restaurant_deliveries_restaurant_id_status_index` (`restaurant_id`,`status`),
|
|
ADD KEY `restaurant_deliveries_tracking_code_index` (`tracking_code`),
|
|
ADD KEY `restaurant_deliveries_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_delivery_assignments`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_assignments`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_delivery_assignments_uuid_unique` (`uuid`),
|
|
ADD KEY `restaurant_delivery_assignments_delivery_id_status_index` (`delivery_id`,`status`),
|
|
ADD KEY `restaurant_delivery_assignments_rider_id_status_index` (`rider_id`,`status`),
|
|
ADD KEY `restaurant_delivery_assignments_status_expires_at_index` (`status`,`expires_at`),
|
|
ADD KEY `restaurant_delivery_assignments_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_delivery_ratings`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_ratings`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `deliv_rating_unique` (`delivery_id`,`is_restaurant_rating`),
|
|
ADD UNIQUE KEY `restaurant_delivery_ratings_uuid_unique` (`uuid`),
|
|
ADD KEY `restaurant_delivery_ratings_rider_id_created_at_index` (`rider_id`,`created_at`),
|
|
ADD KEY `restaurant_delivery_ratings_overall_rating_index` (`overall_rating`),
|
|
ADD KEY `restaurant_delivery_ratings_customer_id_index` (`customer_id`),
|
|
ADD KEY `restaurant_delivery_ratings_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_delivery_status_history`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_status_history`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `restaurant_delivery_status_history_rider_id_foreign` (`rider_id`),
|
|
ADD KEY `restaurant_delivery_status_history_delivery_id_changed_at_index` (`delivery_id`,`changed_at`),
|
|
ADD KEY `restaurant_delivery_status_history_to_status_index` (`to_status`),
|
|
ADD KEY `restaurant_delivery_status_history_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_delivery_tips`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_tips`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_delivery_tips_uuid_unique` (`uuid`),
|
|
ADD KEY `restaurant_delivery_tips_delivery_id_foreign` (`delivery_id`),
|
|
ADD KEY `restaurant_delivery_tips_rider_id_is_transferred_index` (`rider_id`,`is_transferred`),
|
|
ADD KEY `restaurant_delivery_tips_payment_status_index` (`payment_status`),
|
|
ADD KEY `restaurant_delivery_tips_customer_id_index` (`customer_id`),
|
|
ADD KEY `restaurant_delivery_tips_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_delivery_zones`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_zones`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_delivery_zones_uuid_unique` (`uuid`),
|
|
ADD UNIQUE KEY `restaurant_delivery_zones_slug_unique` (`slug`),
|
|
ADD KEY `restaurant_delivery_zones_is_active_priority_index` (`is_active`,`priority`),
|
|
ADD KEY `restaurant_delivery_zones_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_image_settings`
|
|
--
|
|
ALTER TABLE `restaurant_image_settings`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_image_s_a_a_s_settings`
|
|
--
|
|
ALTER TABLE `restaurant_image_s_a_a_s_settings`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_riders`
|
|
--
|
|
ALTER TABLE `restaurant_riders`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_riders_uuid_unique` (`uuid`),
|
|
ADD UNIQUE KEY `restaurant_riders_phone_unique` (`phone`),
|
|
ADD KEY `restaurant_riders_user_id_foreign` (`user_id`),
|
|
ADD KEY `restaurant_riders_is_online_status_index` (`is_online`,`status`),
|
|
ADD KEY `restaurant_riders_current_latitude_current_longitude_index` (`current_latitude`,`current_longitude`),
|
|
ADD KEY `restaurant_riders_rating_index` (`rating`),
|
|
ADD KEY `restaurant_riders_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_rider_bonuses`
|
|
--
|
|
ALTER TABLE `restaurant_rider_bonuses`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_rider_bonuses_uuid_unique` (`uuid`),
|
|
ADD UNIQUE KEY `restaurant_rider_bonuses_code_unique` (`code`),
|
|
ADD KEY `restaurant_rider_bonuses_type_is_active_index` (`type`,`is_active`),
|
|
ADD KEY `restaurant_rider_bonuses_valid_from_valid_until_index` (`valid_from`,`valid_until`),
|
|
ADD KEY `restaurant_rider_bonuses_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_rider_earnings`
|
|
--
|
|
ALTER TABLE `restaurant_rider_earnings`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_rider_earnings_uuid_unique` (`uuid`),
|
|
ADD KEY `restaurant_rider_earnings_delivery_id_foreign` (`delivery_id`),
|
|
ADD KEY `restaurant_rider_earnings_rider_id_status_earning_date_index` (`rider_id`,`status`,`earning_date`),
|
|
ADD KEY `restaurant_rider_earnings_rider_id_type_index` (`rider_id`,`type`),
|
|
ADD KEY `restaurant_rider_earnings_is_paid_status_index` (`is_paid`,`status`),
|
|
ADD KEY `restaurant_rider_earnings_earning_date_index` (`earning_date`),
|
|
ADD KEY `restaurant_rider_earnings_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_rider_location_logs`
|
|
--
|
|
ALTER TABLE `restaurant_rider_location_logs`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `restaurant_rider_location_logs_rider_id_recorded_at_index` (`rider_id`,`recorded_at`),
|
|
ADD KEY `restaurant_rider_location_logs_delivery_id_recorded_at_index` (`delivery_id`,`recorded_at`),
|
|
ADD KEY `restaurant_rider_location_logs_recorded_at_index` (`recorded_at`),
|
|
ADD KEY `restaurant_rider_location_logs_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_rider_payouts`
|
|
--
|
|
ALTER TABLE `restaurant_rider_payouts`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_rider_payouts_uuid_unique` (`uuid`),
|
|
ADD UNIQUE KEY `restaurant_rider_payouts_payout_number_unique` (`payout_number`),
|
|
ADD KEY `restaurant_rider_payouts_rider_id_status_index` (`rider_id`,`status`),
|
|
ADD KEY `restaurant_rider_payouts_status_created_at_index` (`status`,`created_at`),
|
|
ADD KEY `restaurant_rider_payouts_period_start_period_end_index` (`period_start`,`period_end`),
|
|
ADD KEY `restaurant_rider_payouts_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_schedules`
|
|
--
|
|
ALTER TABLE `restaurant_schedules`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_schedules_restaurant_id_day_unique` (`restaurant_id`,`day`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_schedule_times`
|
|
--
|
|
ALTER TABLE `restaurant_schedule_times`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `unique_restaurant_time_slot` (`restaurant_schedule_id`,`open_time`,`close_time`);
|
|
|
|
--
|
|
-- Indexes for table `restaurant_zone_pricing_rules`
|
|
--
|
|
ALTER TABLE `restaurant_zone_pricing_rules`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_zone_pricing_rules_uuid_unique` (`uuid`),
|
|
ADD KEY `restaurant_zone_pricing_rules_zone_id_is_active_priority_index` (`zone_id`,`is_active`,`priority`),
|
|
ADD KEY `restaurant_zone_pricing_rules_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `reviews`
|
|
--
|
|
ALTER TABLE `reviews`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `reviews_customer_id_foreign` (`customer_id`),
|
|
ADD KEY `reviews_food_item_id_foreign` (`food_item_id`);
|
|
|
|
--
|
|
-- Indexes for table `review_images`
|
|
--
|
|
ALTER TABLE `review_images`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `review_images_review_id_foreign` (`review_id`);
|
|
|
|
--
|
|
-- Indexes for table `roles`
|
|
--
|
|
ALTER TABLE `roles`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`);
|
|
|
|
--
|
|
-- Indexes for table `role_has_permissions`
|
|
--
|
|
ALTER TABLE `role_has_permissions`
|
|
ADD PRIMARY KEY (`permission_id`,`role_id`),
|
|
ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);
|
|
|
|
--
|
|
-- Indexes for table `rooms`
|
|
--
|
|
ALTER TABLE `rooms`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `hotel_room_number_unique` (`hotel_id`,`room_number`),
|
|
ADD KEY `rooms_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `rooms_floor_id_foreign` (`floor_id`),
|
|
ADD KEY `rooms_room_type_id_foreign` (`room_type_id`);
|
|
|
|
--
|
|
-- Indexes for table `room_availabilities`
|
|
--
|
|
ALTER TABLE `room_availabilities`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `room_date_unique` (`room_id`,`date`),
|
|
ADD KEY `room_availabilities_blocked_by_booking_id_foreign` (`blocked_by_booking_id`),
|
|
ADD KEY `room_availabilities_hotel_id_date_index` (`hotel_id`,`date`);
|
|
|
|
--
|
|
-- Indexes for table `room_blocks`
|
|
--
|
|
ALTER TABLE `room_blocks`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `room_blocks_created_by_foreign` (`created_by`),
|
|
ADD KEY `room_blocks_room_id_start_date_end_date_index` (`room_id`,`start_date`,`end_date`),
|
|
ADD KEY `room_blocks_hotel_id_block_type_index` (`hotel_id`,`block_type`);
|
|
|
|
--
|
|
-- Indexes for table `room_prices`
|
|
--
|
|
ALTER TABLE `room_prices`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `room_prices_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `room_prices_room_id_foreign` (`room_id`);
|
|
|
|
--
|
|
-- Indexes for table `room_types`
|
|
--
|
|
ALTER TABLE `room_types`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `room_types_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `room_types_hotel_id_foreign` (`hotel_id`);
|
|
|
|
--
|
|
-- Indexes for table `salary_generates`
|
|
--
|
|
ALTER TABLE `salary_generates`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `salary_generates_employee_id_month_status_index` (`employee_id`,`month`,`status`),
|
|
ADD KEY `salary_generates_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `salary_generates_month_index` (`month`),
|
|
ADD KEY `salary_generates_generated_by_index` (`generated_by`);
|
|
|
|
--
|
|
-- Indexes for table `salary_setups`
|
|
--
|
|
ALTER TABLE `salary_setups`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `salary_setups_salary_type_id_foreign` (`salary_type_id`),
|
|
ADD KEY `salary_setups_employee_id_salary_type_id_status_index` (`employee_id`,`salary_type_id`,`status`),
|
|
ADD KEY `salary_setups_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `salary_types`
|
|
--
|
|
ALTER TABLE `salary_types`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `salary_types_restaurant_id_type_status_index` (`restaurant_id`,`type`,`status`),
|
|
ADD KEY `salary_types_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `sessions`
|
|
--
|
|
ALTER TABLE `sessions`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `sessions_user_id_index` (`user_id`),
|
|
ADD KEY `sessions_last_activity_index` (`last_activity`);
|
|
|
|
--
|
|
-- Indexes for table `settings`
|
|
--
|
|
ALTER TABLE `settings`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `restaurant_option_unique` (`restaurant_id`,`option_key`),
|
|
ADD KEY `settings_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- Indexes for table `shifts`
|
|
--
|
|
ALTER TABLE `shifts`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `stocks`
|
|
--
|
|
ALTER TABLE `stocks`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `stocks_ingredient_id_foreign` (`ingredient_id`),
|
|
ADD KEY `stocks_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `stocks_added_by_foreign` (`added_by`),
|
|
ADD KEY `stocks_type_index` (`type`);
|
|
|
|
--
|
|
-- Indexes for table `subscriptions`
|
|
--
|
|
ALTER TABLE `subscriptions`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `subscriptions_user_id_foreign` (`user_id`),
|
|
ADD KEY `subscriptions_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `subscriptions_package_id_foreign` (`package_id`);
|
|
|
|
--
|
|
-- Indexes for table `subscription_items`
|
|
--
|
|
ALTER TABLE `subscription_items`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `subscription_items_user_id_foreign` (`user_id`),
|
|
ADD KEY `subscription_items_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `subscription_items_subscription_id_foreign` (`subscription_id`),
|
|
ADD KEY `subscription_items_package_id_foreign` (`package_id`);
|
|
|
|
--
|
|
-- Indexes for table `subscription_upgrade_requests`
|
|
--
|
|
ALTER TABLE `subscription_upgrade_requests`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `subscription_upgrade_requests_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `subscription_upgrade_requests_package_id_foreign` (`package_id`);
|
|
|
|
--
|
|
-- Indexes for table `suppliers`
|
|
--
|
|
ALTER TABLE `suppliers`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `suppliers_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `support_tickets`
|
|
--
|
|
ALTER TABLE `support_tickets`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `support_tickets_user_id_foreign` (`user_id`),
|
|
ADD KEY `support_tickets_category_id_foreign` (`category_id`);
|
|
|
|
--
|
|
-- Indexes for table `support_ticket_categories`
|
|
--
|
|
ALTER TABLE `support_ticket_categories`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `support_ticket_conversations`
|
|
--
|
|
ALTER TABLE `support_ticket_conversations`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `support_ticket_conversations_ticket_id_foreign` (`ticket_id`),
|
|
ADD KEY `support_ticket_conversations_user_id_foreign` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `support_ticket_f_a_q_s`
|
|
--
|
|
ALTER TABLE `support_ticket_f_a_q_s`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `support_ticket_ip_infos`
|
|
--
|
|
ALTER TABLE `support_ticket_ip_infos`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `support_ticket_last_conversations`
|
|
--
|
|
ALTER TABLE `support_ticket_last_conversations`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `support_ticket_last_conversations_ticket_id_foreign` (`ticket_id`);
|
|
|
|
--
|
|
-- Indexes for table `support_ticket_licenses`
|
|
--
|
|
ALTER TABLE `support_ticket_licenses`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `support_ticket_licenses_license_code_unique` (`license_code`),
|
|
ADD KEY `support_ticket_licenses_ticket_id_foreign` (`ticket_id`),
|
|
ADD KEY `support_ticket_licenses_user_id_foreign` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `s_a_a_s_faqs`
|
|
--
|
|
ALTER TABLE `s_a_a_s_faqs`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `s_a_a_s_faqs_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- Indexes for table `s_a_a_s_settings`
|
|
--
|
|
ALTER TABLE `s_a_a_s_settings`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `s_a_a_s_subscriptions`
|
|
--
|
|
ALTER TABLE `s_a_a_s_subscriptions`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `s_a_a_s_subscriptions_email_unique` (`email`);
|
|
|
|
--
|
|
-- Indexes for table `tables`
|
|
--
|
|
ALTER TABLE `tables`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `tables_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `tax_settings`
|
|
--
|
|
ALTER TABLE `tax_settings`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `telescope_entries`
|
|
--
|
|
ALTER TABLE `telescope_entries`
|
|
ADD PRIMARY KEY (`sequence`),
|
|
ADD UNIQUE KEY `telescope_entries_uuid_unique` (`uuid`),
|
|
ADD KEY `telescope_entries_batch_id_index` (`batch_id`),
|
|
ADD KEY `telescope_entries_family_hash_index` (`family_hash`),
|
|
ADD KEY `telescope_entries_created_at_index` (`created_at`),
|
|
ADD KEY `telescope_entries_type_should_display_on_index_index` (`type`,`should_display_on_index`);
|
|
|
|
--
|
|
-- Indexes for table `telescope_entries_tags`
|
|
--
|
|
ALTER TABLE `telescope_entries_tags`
|
|
ADD PRIMARY KEY (`entry_uuid`,`tag`),
|
|
ADD KEY `telescope_entries_tags_tag_index` (`tag`);
|
|
|
|
--
|
|
-- Indexes for table `telescope_monitoring`
|
|
--
|
|
ALTER TABLE `telescope_monitoring`
|
|
ADD PRIMARY KEY (`tag`);
|
|
|
|
--
|
|
-- Indexes for table `testimonials`
|
|
--
|
|
ALTER TABLE `testimonials`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `testimonials_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `themes`
|
|
--
|
|
ALTER TABLE `themes`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `tips`
|
|
--
|
|
ALTER TABLE `tips`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `tips_waiter_id_index` (`waiter_id`),
|
|
ADD KEY `tips_order_id_index` (`order_id`);
|
|
|
|
--
|
|
-- Indexes for table `tip_distributions`
|
|
--
|
|
ALTER TABLE `tip_distributions`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `tip_distributions_waiter_id_index` (`waiter_id`),
|
|
ADD KEY `tip_distributions_account_id_index` (`account_id`);
|
|
|
|
--
|
|
-- Indexes for table `transactions`
|
|
--
|
|
ALTER TABLE `transactions`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `transactions_fund_id_index` (`fund_id`),
|
|
ADD KEY `transactions_transaction_date_index` (`transaction_date`),
|
|
ADD KEY `transactions_reference_no_index` (`reference_no`);
|
|
|
|
--
|
|
-- Indexes for table `transaction_details`
|
|
--
|
|
ALTER TABLE `transaction_details`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `transaction_details_transaction_id_index` (`transaction_id`),
|
|
ADD KEY `transaction_details_account_id_index` (`account_id`);
|
|
|
|
--
|
|
-- Indexes for table `units`
|
|
--
|
|
ALTER TABLE `units`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `units_base_unit_id_foreign` (`base_unit_id`),
|
|
ADD KEY `units_type_index` (`type`),
|
|
ADD KEY `units_name_index` (`name`);
|
|
|
|
--
|
|
-- Indexes for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `users_created_by_foreign` (`created_by`),
|
|
ADD KEY `users_restaurant_id_index` (`restaurant_id`),
|
|
ADD KEY `users_status_index` (`status`),
|
|
ADD KEY `users_user_type_index` (`user_type`),
|
|
ADD KEY `users_phone_index` (`phone`),
|
|
ADD KEY `users_first_name_index` (`first_name`),
|
|
ADD KEY `users_restaurant_id_status_index` (`restaurant_id`,`status`),
|
|
ADD KEY `users_restaurant_id_user_type_index` (`restaurant_id`,`user_type`),
|
|
ADD KEY `users_qr_code_index` (`qr_code`);
|
|
|
|
--
|
|
-- Indexes for table `user_logs`
|
|
--
|
|
ALTER TABLE `user_logs`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `user_logs_restaurant_id_foreign` (`restaurant_id`),
|
|
ADD KEY `user_logs_user_id_index` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `weekly_holidays`
|
|
--
|
|
ALTER TABLE `weekly_holidays`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `weekly_holidays_restaurant_id_day_unique` (`restaurant_id`,`day`),
|
|
ADD KEY `weekly_holidays_restaurant_id_index` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `why_choose_us`
|
|
--
|
|
ALTER TABLE `why_choose_us`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `why_choose_us_restaurant_id_foreign` (`restaurant_id`);
|
|
|
|
--
|
|
-- Indexes for table `zones`
|
|
--
|
|
ALTER TABLE `zones`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `zoom_meetings`
|
|
--
|
|
ALTER TABLE `zoom_meetings`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `unique_combination` (`restaurant_id`,`meeting_id`),
|
|
ADD KEY `zoom_meetings_created_by_foreign` (`created_by`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT for dumped tables
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `about_us`
|
|
--
|
|
ALTER TABLE `about_us`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `academic_images`
|
|
--
|
|
ALTER TABLE `academic_images`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `accounts`
|
|
--
|
|
ALTER TABLE `accounts`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `addons`
|
|
--
|
|
ALTER TABLE `addons`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `addon_food`
|
|
--
|
|
ALTER TABLE `addon_food`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `attendances`
|
|
--
|
|
ALTER TABLE `attendances`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `attendance_logs`
|
|
--
|
|
ALTER TABLE `attendance_logs`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `awards`
|
|
--
|
|
ALTER TABLE `awards`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `banners`
|
|
--
|
|
ALTER TABLE `banners`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `bookings`
|
|
--
|
|
ALTER TABLE `bookings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `booking_items`
|
|
--
|
|
ALTER TABLE `booking_items`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `candidates`
|
|
--
|
|
ALTER TABLE `candidates`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `coupons`
|
|
--
|
|
ALTER TABLE `coupons`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `coupon_usages`
|
|
--
|
|
ALTER TABLE `coupon_usages`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `customers`
|
|
--
|
|
ALTER TABLE `customers`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `customer_addresses`
|
|
--
|
|
ALTER TABLE `customer_addresses`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `c_m_s_sections`
|
|
--
|
|
ALTER TABLE `c_m_s_sections`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `delivery_charges`
|
|
--
|
|
ALTER TABLE `delivery_charges`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `departments`
|
|
--
|
|
ALTER TABLE `departments`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `deposits`
|
|
--
|
|
ALTER TABLE `deposits`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `deposit_categories`
|
|
--
|
|
ALTER TABLE `deposit_categories`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `designations`
|
|
--
|
|
ALTER TABLE `designations`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `employee_salaries`
|
|
--
|
|
ALTER TABLE `employee_salaries`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `employee_shift_assignments`
|
|
--
|
|
ALTER TABLE `employee_shift_assignments`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `expenses`
|
|
--
|
|
ALTER TABLE `expenses`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `expense_categories`
|
|
--
|
|
ALTER TABLE `expense_categories`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `failed_jobs`
|
|
--
|
|
ALTER TABLE `failed_jobs`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `faq_questions`
|
|
--
|
|
ALTER TABLE `faq_questions`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `feedback`
|
|
--
|
|
ALTER TABLE `feedback`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `floors`
|
|
--
|
|
ALTER TABLE `floors`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_availabilities`
|
|
--
|
|
ALTER TABLE `food_availabilities`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_availability_times`
|
|
--
|
|
ALTER TABLE `food_availability_times`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_categories`
|
|
--
|
|
ALTER TABLE `food_categories`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_items`
|
|
--
|
|
ALTER TABLE `food_items`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_reviews`
|
|
--
|
|
ALTER TABLE `food_reviews`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_review_replies`
|
|
--
|
|
ALTER TABLE `food_review_replies`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_variants`
|
|
--
|
|
ALTER TABLE `food_variants`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_variant_ingredients`
|
|
--
|
|
ALTER TABLE `food_variant_ingredients`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `food_wastes`
|
|
--
|
|
ALTER TABLE `food_wastes`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `frontend_contacts`
|
|
--
|
|
ALTER TABLE `frontend_contacts`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `funds`
|
|
--
|
|
ALTER TABLE `funds`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `fund_transfers`
|
|
--
|
|
ALTER TABLE `fund_transfers`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `galleries`
|
|
--
|
|
ALTER TABLE `galleries`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `hotels`
|
|
--
|
|
ALTER TABLE `hotels`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `ingredients`
|
|
--
|
|
ALTER TABLE `ingredients`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `ingredient_damages`
|
|
--
|
|
ALTER TABLE `ingredient_damages`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `interviews`
|
|
--
|
|
ALTER TABLE `interviews`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `jobs`
|
|
--
|
|
ALTER TABLE `jobs`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `kitchens`
|
|
--
|
|
ALTER TABLE `kitchens`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `kitchen_assigns`
|
|
--
|
|
ALTER TABLE `kitchen_assigns`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `languages`
|
|
--
|
|
ALTER TABLE `languages`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `leave_applications`
|
|
--
|
|
ALTER TABLE `leave_applications`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `leave_types`
|
|
--
|
|
ALTER TABLE `leave_types`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `loans`
|
|
--
|
|
ALTER TABLE `loans`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `loan_installments`
|
|
--
|
|
ALTER TABLE `loan_installments`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `loyalty_points`
|
|
--
|
|
ALTER TABLE `loyalty_points`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `loyalty_point_settings`
|
|
--
|
|
ALTER TABLE `loyalty_point_settings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `loyalty_redemptions`
|
|
--
|
|
ALTER TABLE `loyalty_redemptions`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `menu_categories`
|
|
--
|
|
ALTER TABLE `menu_categories`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `menu_sections`
|
|
--
|
|
ALTER TABLE `menu_sections`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `menu_types`
|
|
--
|
|
ALTER TABLE `menu_types`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `migrations`
|
|
--
|
|
ALTER TABLE `migrations`
|
|
MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=150;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `mobile_app_sections`
|
|
--
|
|
ALTER TABLE `mobile_app_sections`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `oauth_personal_access_clients`
|
|
--
|
|
ALTER TABLE `oauth_personal_access_clients`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `onboardings`
|
|
--
|
|
ALTER TABLE `onboardings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `orders`
|
|
--
|
|
ALTER TABLE `orders`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `order_items`
|
|
--
|
|
ALTER TABLE `order_items`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=199;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `order_trackings`
|
|
--
|
|
ALTER TABLE `order_trackings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `otp_verifications`
|
|
--
|
|
ALTER TABLE `otp_verifications`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `our_histories`
|
|
--
|
|
ALTER TABLE `our_histories`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `packages`
|
|
--
|
|
ALTER TABLE `packages`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `pages`
|
|
--
|
|
ALTER TABLE `pages`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `payment_methods`
|
|
--
|
|
ALTER TABLE `payment_methods`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `payment_requests`
|
|
--
|
|
ALTER TABLE `payment_requests`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `permissions`
|
|
--
|
|
ALTER TABLE `permissions`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=434;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `policies`
|
|
--
|
|
ALTER TABLE `policies`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `purchases`
|
|
--
|
|
ALTER TABLE `purchases`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `purchase_items`
|
|
--
|
|
ALTER TABLE `purchase_items`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `purchase_returns`
|
|
--
|
|
ALTER TABLE `purchase_returns`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `q_r_menu_settings`
|
|
--
|
|
ALTER TABLE `q_r_menu_settings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `ready_to_join_us`
|
|
--
|
|
ALTER TABLE `ready_to_join_us`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `recruitments`
|
|
--
|
|
ALTER TABLE `recruitments`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `reservations`
|
|
--
|
|
ALTER TABLE `reservations`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `reservation_settings`
|
|
--
|
|
ALTER TABLE `reservation_settings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `reservation_unavailables`
|
|
--
|
|
ALTER TABLE `reservation_unavailables`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurants`
|
|
--
|
|
ALTER TABLE `restaurants`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_deliveries`
|
|
--
|
|
ALTER TABLE `restaurant_deliveries`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_delivery_assignments`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_assignments`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_delivery_ratings`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_ratings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_delivery_status_history`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_status_history`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_delivery_tips`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_tips`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_delivery_zones`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_zones`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_image_settings`
|
|
--
|
|
ALTER TABLE `restaurant_image_settings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_image_s_a_a_s_settings`
|
|
--
|
|
ALTER TABLE `restaurant_image_s_a_a_s_settings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_riders`
|
|
--
|
|
ALTER TABLE `restaurant_riders`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_rider_bonuses`
|
|
--
|
|
ALTER TABLE `restaurant_rider_bonuses`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_rider_earnings`
|
|
--
|
|
ALTER TABLE `restaurant_rider_earnings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_rider_location_logs`
|
|
--
|
|
ALTER TABLE `restaurant_rider_location_logs`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_rider_payouts`
|
|
--
|
|
ALTER TABLE `restaurant_rider_payouts`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_schedules`
|
|
--
|
|
ALTER TABLE `restaurant_schedules`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_schedule_times`
|
|
--
|
|
ALTER TABLE `restaurant_schedule_times`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `restaurant_zone_pricing_rules`
|
|
--
|
|
ALTER TABLE `restaurant_zone_pricing_rules`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `reviews`
|
|
--
|
|
ALTER TABLE `reviews`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `review_images`
|
|
--
|
|
ALTER TABLE `review_images`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `roles`
|
|
--
|
|
ALTER TABLE `roles`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `rooms`
|
|
--
|
|
ALTER TABLE `rooms`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `room_availabilities`
|
|
--
|
|
ALTER TABLE `room_availabilities`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `room_blocks`
|
|
--
|
|
ALTER TABLE `room_blocks`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `room_prices`
|
|
--
|
|
ALTER TABLE `room_prices`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `room_types`
|
|
--
|
|
ALTER TABLE `room_types`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `salary_generates`
|
|
--
|
|
ALTER TABLE `salary_generates`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `salary_setups`
|
|
--
|
|
ALTER TABLE `salary_setups`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `salary_types`
|
|
--
|
|
ALTER TABLE `salary_types`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `settings`
|
|
--
|
|
ALTER TABLE `settings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=123;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `shifts`
|
|
--
|
|
ALTER TABLE `shifts`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `stocks`
|
|
--
|
|
ALTER TABLE `stocks`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `subscriptions`
|
|
--
|
|
ALTER TABLE `subscriptions`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `subscription_items`
|
|
--
|
|
ALTER TABLE `subscription_items`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `subscription_upgrade_requests`
|
|
--
|
|
ALTER TABLE `subscription_upgrade_requests`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `suppliers`
|
|
--
|
|
ALTER TABLE `suppliers`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `support_tickets`
|
|
--
|
|
ALTER TABLE `support_tickets`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `support_ticket_categories`
|
|
--
|
|
ALTER TABLE `support_ticket_categories`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `support_ticket_conversations`
|
|
--
|
|
ALTER TABLE `support_ticket_conversations`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `support_ticket_f_a_q_s`
|
|
--
|
|
ALTER TABLE `support_ticket_f_a_q_s`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `support_ticket_ip_infos`
|
|
--
|
|
ALTER TABLE `support_ticket_ip_infos`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `support_ticket_last_conversations`
|
|
--
|
|
ALTER TABLE `support_ticket_last_conversations`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `support_ticket_licenses`
|
|
--
|
|
ALTER TABLE `support_ticket_licenses`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `s_a_a_s_faqs`
|
|
--
|
|
ALTER TABLE `s_a_a_s_faqs`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `s_a_a_s_settings`
|
|
--
|
|
ALTER TABLE `s_a_a_s_settings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `s_a_a_s_subscriptions`
|
|
--
|
|
ALTER TABLE `s_a_a_s_subscriptions`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `tables`
|
|
--
|
|
ALTER TABLE `tables`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `tax_settings`
|
|
--
|
|
ALTER TABLE `tax_settings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `telescope_entries`
|
|
--
|
|
ALTER TABLE `telescope_entries`
|
|
MODIFY `sequence` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `testimonials`
|
|
--
|
|
ALTER TABLE `testimonials`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `themes`
|
|
--
|
|
ALTER TABLE `themes`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `tips`
|
|
--
|
|
ALTER TABLE `tips`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `tip_distributions`
|
|
--
|
|
ALTER TABLE `tip_distributions`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `transactions`
|
|
--
|
|
ALTER TABLE `transactions`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `transaction_details`
|
|
--
|
|
ALTER TABLE `transaction_details`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `units`
|
|
--
|
|
ALTER TABLE `units`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `user_logs`
|
|
--
|
|
ALTER TABLE `user_logs`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `weekly_holidays`
|
|
--
|
|
ALTER TABLE `weekly_holidays`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `why_choose_us`
|
|
--
|
|
ALTER TABLE `why_choose_us`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `zones`
|
|
--
|
|
ALTER TABLE `zones`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `zoom_meetings`
|
|
--
|
|
ALTER TABLE `zoom_meetings`
|
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- Constraints for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Constraints for table `about_us`
|
|
--
|
|
ALTER TABLE `about_us`
|
|
ADD CONSTRAINT `about_us_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `about_us_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `academic_images`
|
|
--
|
|
ALTER TABLE `academic_images`
|
|
ADD CONSTRAINT `academic_images_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `academic_images_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `addons`
|
|
--
|
|
ALTER TABLE `addons`
|
|
ADD CONSTRAINT `addons_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `addon_food`
|
|
--
|
|
ALTER TABLE `addon_food`
|
|
ADD CONSTRAINT `addon_food_addon_id_foreign` FOREIGN KEY (`addon_id`) REFERENCES `addons` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `addon_food_food_item_id_foreign` FOREIGN KEY (`food_item_id`) REFERENCES `food_items` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `addon_food_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `attendances`
|
|
--
|
|
ALTER TABLE `attendances`
|
|
ADD CONSTRAINT `attendances_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `attendance_logs`
|
|
--
|
|
ALTER TABLE `attendance_logs`
|
|
ADD CONSTRAINT `attendance_logs_attendance_id_foreign` FOREIGN KEY (`attendance_id`) REFERENCES `attendances` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `attendance_logs_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `awards`
|
|
--
|
|
ALTER TABLE `awards`
|
|
ADD CONSTRAINT `awards_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `banners`
|
|
--
|
|
ALTER TABLE `banners`
|
|
ADD CONSTRAINT `banners_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `banners_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `bookings`
|
|
--
|
|
ALTER TABLE `bookings`
|
|
ADD CONSTRAINT `bookings_canceled_by_foreign` FOREIGN KEY (`canceled_by`) REFERENCES `users` (`id`),
|
|
ADD CONSTRAINT `bookings_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `bookings_hotel_id_foreign` FOREIGN KEY (`hotel_id`) REFERENCES `hotels` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `bookings_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `booking_items`
|
|
--
|
|
ALTER TABLE `booking_items`
|
|
ADD CONSTRAINT `booking_items_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `booking_items_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `booking_items_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `rooms` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `candidates`
|
|
--
|
|
ALTER TABLE `candidates`
|
|
ADD CONSTRAINT `candidates_recruitment_id_foreign` FOREIGN KEY (`recruitment_id`) REFERENCES `recruitments` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `coupon_usages`
|
|
--
|
|
ALTER TABLE `coupon_usages`
|
|
ADD CONSTRAINT `coupon_usages_coupon_id_foreign` FOREIGN KEY (`coupon_id`) REFERENCES `coupons` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `customers`
|
|
--
|
|
ALTER TABLE `customers`
|
|
ADD CONSTRAINT `customers_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `customer_addresses`
|
|
--
|
|
ALTER TABLE `customer_addresses`
|
|
ADD CONSTRAINT `customer_addresses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `delivery_charges`
|
|
--
|
|
ALTER TABLE `delivery_charges`
|
|
ADD CONSTRAINT `delivery_charges_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `delivery_charges_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `designations`
|
|
--
|
|
ALTER TABLE `designations`
|
|
ADD CONSTRAINT `designations_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `employee_salaries`
|
|
--
|
|
ALTER TABLE `employee_salaries`
|
|
ADD CONSTRAINT `employee_salaries_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `employee_shift_assignments`
|
|
--
|
|
ALTER TABLE `employee_shift_assignments`
|
|
ADD CONSTRAINT `employee_shift_assignments_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `employee_shift_assignments_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `faq_questions`
|
|
--
|
|
ALTER TABLE `faq_questions`
|
|
ADD CONSTRAINT `faq_questions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `faq_questions_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `feedback`
|
|
--
|
|
ALTER TABLE `feedback`
|
|
ADD CONSTRAINT `feedback_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `food_availabilities`
|
|
--
|
|
ALTER TABLE `food_availabilities`
|
|
ADD CONSTRAINT `food_availabilities_food_item_id_foreign` FOREIGN KEY (`food_item_id`) REFERENCES `food_items` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `food_availabilities_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `food_availability_times`
|
|
--
|
|
ALTER TABLE `food_availability_times`
|
|
ADD CONSTRAINT `food_availability_times_food_availability_id_foreign` FOREIGN KEY (`food_availability_id`) REFERENCES `food_availabilities` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `food_categories`
|
|
--
|
|
ALTER TABLE `food_categories`
|
|
ADD CONSTRAINT `food_categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `food_categories` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `food_items`
|
|
--
|
|
ALTER TABLE `food_items`
|
|
ADD CONSTRAINT `food_items_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `food_categories` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `food_items_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `food_variants`
|
|
--
|
|
ALTER TABLE `food_variants`
|
|
ADD CONSTRAINT `food_variants_food_item_id_foreign` FOREIGN KEY (`food_item_id`) REFERENCES `food_items` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `food_variants_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `food_variants_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `food_variant_ingredients`
|
|
--
|
|
ALTER TABLE `food_variant_ingredients`
|
|
ADD CONSTRAINT `food_variant_ingredients_food_variant_id_foreign` FOREIGN KEY (`food_variant_id`) REFERENCES `food_variants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `food_variant_ingredients_ingredient_id_foreign` FOREIGN KEY (`ingredient_id`) REFERENCES `ingredients` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `food_wastes`
|
|
--
|
|
ALTER TABLE `food_wastes`
|
|
ADD CONSTRAINT `food_wastes_food_item_id_foreign` FOREIGN KEY (`food_item_id`) REFERENCES `food_items` (`id`) ON DELETE RESTRICT,
|
|
ADD CONSTRAINT `food_wastes_food_variant_id_foreign` FOREIGN KEY (`food_variant_id`) REFERENCES `food_variants` (`id`) ON DELETE RESTRICT;
|
|
|
|
--
|
|
-- Constraints for table `frontend_contacts`
|
|
--
|
|
ALTER TABLE `frontend_contacts`
|
|
ADD CONSTRAINT `frontend_contacts_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `hotels`
|
|
--
|
|
ALTER TABLE `hotels`
|
|
ADD CONSTRAINT `hotels_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `ingredients`
|
|
--
|
|
ALTER TABLE `ingredients`
|
|
ADD CONSTRAINT `ingredients_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `ingredients_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `ingredients_unit_purchase_id_foreign` FOREIGN KEY (`unit_purchase_id`) REFERENCES `units` (`id`),
|
|
ADD CONSTRAINT `ingredients_unit_sale_id_foreign` FOREIGN KEY (`unit_sale_id`) REFERENCES `units` (`id`);
|
|
|
|
--
|
|
-- Constraints for table `ingredient_damages`
|
|
--
|
|
ALTER TABLE `ingredient_damages`
|
|
ADD CONSTRAINT `ingredient_damages_ingredient_id_foreign` FOREIGN KEY (`ingredient_id`) REFERENCES `ingredients` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `ingredient_damages_reported_by_foreign` FOREIGN KEY (`reported_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `ingredient_damages_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `interviews`
|
|
--
|
|
ALTER TABLE `interviews`
|
|
ADD CONSTRAINT `interviews_candidate_id_foreign` FOREIGN KEY (`candidate_id`) REFERENCES `candidates` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `interviews_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `kitchen_assigns`
|
|
--
|
|
ALTER TABLE `kitchen_assigns`
|
|
ADD CONSTRAINT `kitchen_assigns_kitchen_id_foreign` FOREIGN KEY (`kitchen_id`) REFERENCES `kitchens` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `kitchen_assigns_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `leave_applications`
|
|
--
|
|
ALTER TABLE `leave_applications`
|
|
ADD CONSTRAINT `leave_applications_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `leave_applications_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `leave_applications_leave_type_id_foreign` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_types` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `loans`
|
|
--
|
|
ALTER TABLE `loans`
|
|
ADD CONSTRAINT `loans_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `loan_installments`
|
|
--
|
|
ALTER TABLE `loan_installments`
|
|
ADD CONSTRAINT `loan_installments_loan_id_foreign` FOREIGN KEY (`loan_id`) REFERENCES `loans` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `menu_sections`
|
|
--
|
|
ALTER TABLE `menu_sections`
|
|
ADD CONSTRAINT `menu_sections_menu_category_id_foreign` FOREIGN KEY (`menu_category_id`) REFERENCES `menu_categories` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `menu_types`
|
|
--
|
|
ALTER TABLE `menu_types`
|
|
ADD CONSTRAINT `menu_types_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `mobile_app_sections`
|
|
--
|
|
ALTER TABLE `mobile_app_sections`
|
|
ADD CONSTRAINT `mobile_app_sections_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `model_has_permissions`
|
|
--
|
|
ALTER TABLE `model_has_permissions`
|
|
ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `model_has_roles`
|
|
--
|
|
ALTER TABLE `model_has_roles`
|
|
ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `onboardings`
|
|
--
|
|
ALTER TABLE `onboardings`
|
|
ADD CONSTRAINT `onboardings_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `orders`
|
|
--
|
|
ALTER TABLE `orders`
|
|
ADD CONSTRAINT `orders_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `orders_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `orders_driver_id_foreign` FOREIGN KEY (`driver_id`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `orders_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `orders_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `orders_table_id_foreign` FOREIGN KEY (`table_id`) REFERENCES `tables` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `orders_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `orders_waiter_id_foreign` FOREIGN KEY (`waiter_id`) REFERENCES `users` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `order_items`
|
|
--
|
|
ALTER TABLE `order_items`
|
|
ADD CONSTRAINT `order_items_food_item_id_foreign` FOREIGN KEY (`food_item_id`) REFERENCES `food_items` (`id`) ON DELETE RESTRICT,
|
|
ADD CONSTRAINT `order_items_food_variant_id_foreign` FOREIGN KEY (`food_variant_id`) REFERENCES `food_variants` (`id`) ON DELETE RESTRICT,
|
|
ADD CONSTRAINT `order_items_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `order_items_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `order_trackings`
|
|
--
|
|
ALTER TABLE `order_trackings`
|
|
ADD CONSTRAINT `order_trackings_delivery_boy_id_foreign` FOREIGN KEY (`delivery_boy_id`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `order_trackings_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `otp_verifications`
|
|
--
|
|
ALTER TABLE `otp_verifications`
|
|
ADD CONSTRAINT `otp_verifications_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `our_histories`
|
|
--
|
|
ALTER TABLE `our_histories`
|
|
ADD CONSTRAINT `our_histories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `our_histories_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `pages`
|
|
--
|
|
ALTER TABLE `pages`
|
|
ADD CONSTRAINT `pages_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `payment_methods`
|
|
--
|
|
ALTER TABLE `payment_methods`
|
|
ADD CONSTRAINT `payment_methods_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `payment_requests`
|
|
--
|
|
ALTER TABLE `payment_requests`
|
|
ADD CONSTRAINT `payment_requests_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `policies`
|
|
--
|
|
ALTER TABLE `policies`
|
|
ADD CONSTRAINT `policies_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `policies_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `purchases`
|
|
--
|
|
ALTER TABLE `purchases`
|
|
ADD CONSTRAINT `purchases_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `purchases_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `purchases_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `purchase_items`
|
|
--
|
|
ALTER TABLE `purchase_items`
|
|
ADD CONSTRAINT `purchase_items_food_variant_id_foreign` FOREIGN KEY (`food_variant_id`) REFERENCES `food_variants` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `purchase_items_ingredient_id_foreign` FOREIGN KEY (`ingredient_id`) REFERENCES `ingredients` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `purchase_items_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `purchase_items_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `purchase_returns`
|
|
--
|
|
ALTER TABLE `purchase_returns`
|
|
ADD CONSTRAINT `purchase_returns_ingredient_id_foreign` FOREIGN KEY (`ingredient_id`) REFERENCES `ingredients` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `purchase_returns_processed_by_foreign` FOREIGN KEY (`processed_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `purchase_returns_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `purchase_returns_purchase_item_id_foreign` FOREIGN KEY (`purchase_item_id`) REFERENCES `purchase_items` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `purchase_returns_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `ready_to_join_us`
|
|
--
|
|
ALTER TABLE `ready_to_join_us`
|
|
ADD CONSTRAINT `ready_to_join_us_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `recruitments`
|
|
--
|
|
ALTER TABLE `recruitments`
|
|
ADD CONSTRAINT `recruitments_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `recruitments_designation_id_foreign` FOREIGN KEY (`designation_id`) REFERENCES `designations` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `recruitments_recruiter_id_foreign` FOREIGN KEY (`recruiter_id`) REFERENCES `users` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `reservations`
|
|
--
|
|
ALTER TABLE `reservations`
|
|
ADD CONSTRAINT `reservations_table_id_foreign` FOREIGN KEY (`table_id`) REFERENCES `tables` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `restaurants`
|
|
--
|
|
ALTER TABLE `restaurants`
|
|
ADD CONSTRAINT `restaurants_assigned_to_foreign` FOREIGN KEY (`assigned_to`) REFERENCES `users` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `restaurants_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `restaurants_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_deliveries`
|
|
--
|
|
ALTER TABLE `restaurant_deliveries`
|
|
ADD CONSTRAINT `restaurant_deliveries_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `restaurant_riders` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `restaurant_deliveries_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `restaurant_delivery_zones` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_delivery_assignments`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_assignments`
|
|
ADD CONSTRAINT `restaurant_delivery_assignments_delivery_id_foreign` FOREIGN KEY (`delivery_id`) REFERENCES `restaurant_deliveries` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `restaurant_delivery_assignments_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `restaurant_riders` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_delivery_ratings`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_ratings`
|
|
ADD CONSTRAINT `restaurant_delivery_ratings_delivery_id_foreign` FOREIGN KEY (`delivery_id`) REFERENCES `restaurant_deliveries` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `restaurant_delivery_ratings_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `restaurant_riders` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_delivery_status_history`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_status_history`
|
|
ADD CONSTRAINT `restaurant_delivery_status_history_delivery_id_foreign` FOREIGN KEY (`delivery_id`) REFERENCES `restaurant_deliveries` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `restaurant_delivery_status_history_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `restaurant_riders` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_delivery_tips`
|
|
--
|
|
ALTER TABLE `restaurant_delivery_tips`
|
|
ADD CONSTRAINT `restaurant_delivery_tips_delivery_id_foreign` FOREIGN KEY (`delivery_id`) REFERENCES `restaurant_deliveries` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `restaurant_delivery_tips_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `restaurant_riders` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_riders`
|
|
--
|
|
ALTER TABLE `restaurant_riders`
|
|
ADD CONSTRAINT `restaurant_riders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_rider_earnings`
|
|
--
|
|
ALTER TABLE `restaurant_rider_earnings`
|
|
ADD CONSTRAINT `restaurant_rider_earnings_delivery_id_foreign` FOREIGN KEY (`delivery_id`) REFERENCES `restaurant_deliveries` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `restaurant_rider_earnings_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `restaurant_riders` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_rider_location_logs`
|
|
--
|
|
ALTER TABLE `restaurant_rider_location_logs`
|
|
ADD CONSTRAINT `restaurant_rider_location_logs_delivery_id_foreign` FOREIGN KEY (`delivery_id`) REFERENCES `restaurant_deliveries` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `restaurant_rider_location_logs_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `restaurant_riders` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_rider_payouts`
|
|
--
|
|
ALTER TABLE `restaurant_rider_payouts`
|
|
ADD CONSTRAINT `restaurant_rider_payouts_rider_id_foreign` FOREIGN KEY (`rider_id`) REFERENCES `restaurant_riders` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_schedules`
|
|
--
|
|
ALTER TABLE `restaurant_schedules`
|
|
ADD CONSTRAINT `restaurant_schedules_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_schedule_times`
|
|
--
|
|
ALTER TABLE `restaurant_schedule_times`
|
|
ADD CONSTRAINT `restaurant_schedule_times_restaurant_schedule_id_foreign` FOREIGN KEY (`restaurant_schedule_id`) REFERENCES `restaurant_schedules` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `restaurant_zone_pricing_rules`
|
|
--
|
|
ALTER TABLE `restaurant_zone_pricing_rules`
|
|
ADD CONSTRAINT `restaurant_zone_pricing_rules_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `restaurant_delivery_zones` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `reviews`
|
|
--
|
|
ALTER TABLE `reviews`
|
|
ADD CONSTRAINT `reviews_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `reviews_food_item_id_foreign` FOREIGN KEY (`food_item_id`) REFERENCES `food_items` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `review_images`
|
|
--
|
|
ALTER TABLE `review_images`
|
|
ADD CONSTRAINT `review_images_review_id_foreign` FOREIGN KEY (`review_id`) REFERENCES `reviews` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `role_has_permissions`
|
|
--
|
|
ALTER TABLE `role_has_permissions`
|
|
ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `rooms`
|
|
--
|
|
ALTER TABLE `rooms`
|
|
ADD CONSTRAINT `rooms_floor_id_foreign` FOREIGN KEY (`floor_id`) REFERENCES `floors` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `rooms_hotel_id_foreign` FOREIGN KEY (`hotel_id`) REFERENCES `hotels` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `rooms_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `rooms_room_type_id_foreign` FOREIGN KEY (`room_type_id`) REFERENCES `room_types` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `room_availabilities`
|
|
--
|
|
ALTER TABLE `room_availabilities`
|
|
ADD CONSTRAINT `room_availabilities_blocked_by_booking_id_foreign` FOREIGN KEY (`blocked_by_booking_id`) REFERENCES `bookings` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `room_availabilities_hotel_id_foreign` FOREIGN KEY (`hotel_id`) REFERENCES `hotels` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `room_availabilities_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `rooms` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `room_blocks`
|
|
--
|
|
ALTER TABLE `room_blocks`
|
|
ADD CONSTRAINT `room_blocks_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `room_blocks_hotel_id_foreign` FOREIGN KEY (`hotel_id`) REFERENCES `hotels` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `room_blocks_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `rooms` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `room_prices`
|
|
--
|
|
ALTER TABLE `room_prices`
|
|
ADD CONSTRAINT `room_prices_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `room_prices_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `rooms` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `room_types`
|
|
--
|
|
ALTER TABLE `room_types`
|
|
ADD CONSTRAINT `room_types_hotel_id_foreign` FOREIGN KEY (`hotel_id`) REFERENCES `hotels` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `room_types_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `salary_generates`
|
|
--
|
|
ALTER TABLE `salary_generates`
|
|
ADD CONSTRAINT `salary_generates_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `salary_setups`
|
|
--
|
|
ALTER TABLE `salary_setups`
|
|
ADD CONSTRAINT `salary_setups_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `salary_setups_salary_type_id_foreign` FOREIGN KEY (`salary_type_id`) REFERENCES `salary_types` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `settings`
|
|
--
|
|
ALTER TABLE `settings`
|
|
ADD CONSTRAINT `settings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `stocks`
|
|
--
|
|
ALTER TABLE `stocks`
|
|
ADD CONSTRAINT `stocks_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
|
|
ADD CONSTRAINT `stocks_ingredient_id_foreign` FOREIGN KEY (`ingredient_id`) REFERENCES `ingredients` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `stocks_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `subscriptions`
|
|
--
|
|
ALTER TABLE `subscriptions`
|
|
ADD CONSTRAINT `subscriptions_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `subscriptions_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `subscriptions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `subscription_items`
|
|
--
|
|
ALTER TABLE `subscription_items`
|
|
ADD CONSTRAINT `subscription_items_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `subscription_items_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `subscription_items_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `subscription_items_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `subscription_upgrade_requests`
|
|
--
|
|
ALTER TABLE `subscription_upgrade_requests`
|
|
ADD CONSTRAINT `subscription_upgrade_requests_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `subscription_upgrade_requests_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `suppliers`
|
|
--
|
|
ALTER TABLE `suppliers`
|
|
ADD CONSTRAINT `suppliers_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `support_tickets`
|
|
--
|
|
ALTER TABLE `support_tickets`
|
|
ADD CONSTRAINT `support_tickets_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `support_ticket_categories` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `support_tickets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `support_ticket_conversations`
|
|
--
|
|
ALTER TABLE `support_ticket_conversations`
|
|
ADD CONSTRAINT `support_ticket_conversations_ticket_id_foreign` FOREIGN KEY (`ticket_id`) REFERENCES `support_tickets` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `support_ticket_conversations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `support_ticket_last_conversations`
|
|
--
|
|
ALTER TABLE `support_ticket_last_conversations`
|
|
ADD CONSTRAINT `support_ticket_last_conversations_ticket_id_foreign` FOREIGN KEY (`ticket_id`) REFERENCES `support_tickets` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `support_ticket_licenses`
|
|
--
|
|
ALTER TABLE `support_ticket_licenses`
|
|
ADD CONSTRAINT `support_ticket_licenses_ticket_id_foreign` FOREIGN KEY (`ticket_id`) REFERENCES `support_tickets` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `support_ticket_licenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `s_a_a_s_faqs`
|
|
--
|
|
ALTER TABLE `s_a_a_s_faqs`
|
|
ADD CONSTRAINT `s_a_a_s_faqs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `tables`
|
|
--
|
|
ALTER TABLE `tables`
|
|
ADD CONSTRAINT `tables_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `telescope_entries_tags`
|
|
--
|
|
ALTER TABLE `telescope_entries_tags`
|
|
ADD CONSTRAINT `telescope_entries_tags_entry_uuid_foreign` FOREIGN KEY (`entry_uuid`) REFERENCES `telescope_entries` (`uuid`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `testimonials`
|
|
--
|
|
ALTER TABLE `testimonials`
|
|
ADD CONSTRAINT `testimonials_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `units`
|
|
--
|
|
ALTER TABLE `units`
|
|
ADD CONSTRAINT `units_base_unit_id_foreign` FOREIGN KEY (`base_unit_id`) REFERENCES `units` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
ADD CONSTRAINT `users_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;
|
|
|
|
--
|
|
-- Constraints for table `user_logs`
|
|
--
|
|
ALTER TABLE `user_logs`
|
|
ADD CONSTRAINT `user_logs_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `user_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
|
|
|
|
--
|
|
-- Constraints for table `why_choose_us`
|
|
--
|
|
ALTER TABLE `why_choose_us`
|
|
ADD CONSTRAINT `why_choose_us_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
|
|
--
|
|
-- Constraints for table `zoom_meetings`
|
|
--
|
|
ALTER TABLE `zoom_meetings`
|
|
ADD CONSTRAINT `zoom_meetings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
|
|
ADD CONSTRAINT `zoom_meetings_restaurant_id_foreign` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE;
|
|
COMMIT;
|
|
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|