-- Table structure for table `oauth_auth_codes`
--

CREATE TABLE `oauth_auth_codes` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `client_id` bigint UNSIGNED NOT NULL,
  `scopes` text CHARACTER SET utf8mb4 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` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `secret` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `redirect` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `personal_access_client` tinyint(1) NOT NULL,
  `password_client` tinyint(1) 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`, `user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES
(1, NULL, 'Laravel Personal Access Client', 'n0gKY3ct4ULF6rNLWgFzNTcIvDonCyNTgRlliXG0', NULL, 'http://localhost', 1, 0, 0, '2024-09-19 07:20:50', '2024-09-19 07:20:50'),
(2, NULL, 'Laravel Password Grant Client', 'wyeSMVksd9JsWObaU7Y0qwdLrA0HULrkqTgXJWtm', 'users', 'http://localhost', 0, 1, 0, '2024-09-19 07:20:50', '2024-09-19 07:20:50');

-- --------------------------------------------------------

--
-- 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;

--
-- Dumping data for table `oauth_personal_access_clients`
--

INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES
(1, 1, '2024-09-19 07:20:50', '2024-09-19 07:20:50');

-- --------------------------------------------------------

--
-- Table structure for table `oauth_refresh_tokens`
--

CREATE TABLE `oauth_refresh_tokens` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `access_token_id` varchar(100) CHARACTER SET utf8mb4 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 `offers`
--

CREATE TABLE `offers` (
  `id` bigint UNSIGNED NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `image_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `discount_type` enum('fixed','percentage') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `discount_value` int DEFAULT NULL,
  `branch_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `offers`
--

INSERT INTO `offers` (`id`, `name_ar`, `name_en`, `description_ar`, `description_en`, `image_ar`, `image_en`, `is_active`, `start_date`, `end_date`, `created_by`, `modified_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `discount_type`, `discount_value`, `branch_id`) VALUES
(22, 'offer', 'offer', 'offer', 'offer', NULL, NULL, 1, '2025-01-01', '2025-02-28', 1, NULL, NULL, NULL, NULL, NULL, 'fixed', 10, '-1'),
(23, 'offer', 'offer', 'offer', 'offer', NULL, NULL, 1, '2025-01-01', '2025-02-28', 1, NULL, NULL, NULL, '2025-02-03 13:48:32', NULL, 'fixed', 10, '10'),
(24, 'offer', 'offer', 'offer', 'offer', NULL, NULL, 1, '2025-01-01', '2025-02-28', 1, NULL, NULL, NULL, '2025-02-03 13:49:35', NULL, 'fixed', 10, '11');

-- --------------------------------------------------------

--
-- Table structure for table `offer_details`
--

CREATE TABLE `offer_details` (
  `id` bigint UNSIGNED NOT NULL,
  `offer_id` bigint UNSIGNED NOT NULL,
  `offer_type` enum('dishes') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type_id` int UNSIGNED NOT NULL,
  `count` int NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `offer_details`
--

INSERT INTO `offer_details` (`id`, `offer_id`, `offer_type`, `type_id`, `count`, `created_by`, `modified_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(22, 21, 'dishes', 60, 1, 1, 1, NULL, '2025-01-19 10:46:30', '2025-01-20 14:02:36', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `opening_balance`
--

CREATE TABLE `opening_balance` (
  `id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `store_id` bigint UNSIGNED NOT NULL,
  `amount` double NOT NULL,
  `price` double DEFAULT NULL,
  `date` date NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `deleted_by` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `expired_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint UNSIGNED NOT NULL,
  `status` enum('pending','completed','cancelled','inprogress') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
  `type` enum('Delivery','CallCenter','Takeaway','Online','InResturant') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `note` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `order_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `tax_value` double(8,2) DEFAULT NULL,
  `delivery_fees` double(8,2) DEFAULT NULL,
  `total_price_befor_tax` double(8,2) DEFAULT NULL,
  `total_price_after_tax` double(8,2) DEFAULT NULL,
  `client_id` bigint UNSIGNED NOT NULL,
  `table_id` bigint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `discount_id` bigint UNSIGNED DEFAULT NULL,
  `coupon_id` bigint UNSIGNED DEFAULT NULL,
  `date` date NOT NULL,
  `invoice_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint UNSIGNED NOT NULL,
  `time` time NOT NULL,
  `client_address_id` bigint UNSIGNED DEFAULT NULL,
  `service_fees` decimal(10,2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `orders`
--

INSERT INTO `orders` (`id`, `status`, `type`, `note`, `order_number`, `tax_value`, `delivery_fees`, `total_price_befor_tax`, `total_price_after_tax`, `client_id`, `table_id`, `created_by`, `modify_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `discount_id`, `coupon_id`, `date`, `invoice_number`, `branch_id`, `time`, `client_address_id`, `service_fees`) VALUES
(1, 'pending', 'Delivery', '', '#4243', 76.50, 20.00, 357.00, 407.00, 33, NULL, 33, NULL, NULL, '2025-01-21 11:53:30', '2025-01-21 11:53:30', NULL, NULL, NULL, '2025-01-21', 'INV-1-1990', 12, '12:53:30', 20, 30.00),
(2, 'pending', 'Delivery', '', '#9765', 10.00, 5.00, 80.00, 135.00, 33, NULL, 33, NULL, NULL, '2025-01-22 08:07:27', '2025-01-22 08:07:27', NULL, NULL, 11, '2025-01-22', 'INV-2-9309', 10, '09:07:27', 22, 50.00),
(3, 'pending', 'Delivery', '', '#5135', 2.40, 5.00, 19.20, 74.20, 70, NULL, 70, NULL, NULL, '2025-01-22 09:45:52', '2025-01-22 09:45:52', NULL, NULL, 11, '2025-01-22', 'INV-3-3204', 11, '10:45:52', 24, 50.00),
(4, 'pending', 'Delivery', '', '#8032', 2.40, 5.00, 19.20, 74.20, 70, NULL, 70, NULL, NULL, '2025-01-22 09:46:04', '2025-01-22 09:46:04', NULL, NULL, NULL, '2025-01-22', 'INV-4-8832', 11, '10:46:04', 24, 50.00),
(5, 'cancelled', 'Delivery', '', '#7958', 51.50, 5.00, 412.00, 518.50, 33, NULL, 33, NULL, NULL, '2025-01-23 14:49:20', '2025-01-26 07:57:36', NULL, NULL, NULL, '2025-01-23', 'INV-5-2780', 11, '15:49:20', 30, 50.00),
(6, 'pending', 'Delivery', 'order note', '#9661', 18.00, 5.00, 144.00, 217.00, 33, NULL, 33, NULL, NULL, '2025-01-27 09:21:33', '2025-01-27 09:21:33', NULL, NULL, NULL, '2025-01-27', 'INV-6-1482', 11, '10:21:33', 20, 50.00),
(7, 'pending', 'Delivery', '', '#9358', 10.00, 5.00, 80.00, 145.00, 33, NULL, 33, NULL, NULL, '2025-01-27 09:25:01', '2025-01-27 09:25:01', NULL, NULL, NULL, '2025-01-27', 'INV-7-1852', 11, '10:25:01', 20, 50.00),
(8, 'pending', 'Delivery', '', '#4403', 6.00, 5.00, 48.00, 109.00, 82, NULL, 82, NULL, NULL, '2025-01-27 11:14:25', '2025-01-27 11:14:25', NULL, NULL, NULL, '2025-01-27', 'INV-8-6005', 11, '12:14:25', 37, 50.00),
(9, 'pending', 'Delivery', '', '#5086', 5.00, 5.00, 40.00, 100.00, 87, NULL, 87, NULL, NULL, '2025-01-27 14:20:49', '2025-01-27 14:20:49', NULL, NULL, NULL, '2025-01-27', 'INV-9-2074', 10, '15:20:49', 44, 50.00),
(10, 'pending', 'Delivery', 'dish note', '#5563', 96.60, 10.00, 128.80, 335.40, 33, NULL, 33, NULL, NULL, '2025-01-29 11:09:49', '2025-01-29 11:09:50', NULL, NULL, 11, '2025-01-29', 'INV-10-3125', 10, '12:09:49', 50, 100.00),
(11, 'cancelled', 'Delivery', 'order note', '#8396', 75.60, 10.00, 100.80, 286.40, 33, NULL, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:38', NULL, NULL, NULL, '2025-01-29', 'INV-11-1512', 10, '12:27:31', 50, 100.00),
(12, 'pending', 'Delivery', 'اوك', '#5032', 36.00, 10.00, 48.00, 194.00, 33, NULL, 33, NULL, NULL, '2025-01-29 12:51:03', '2025-01-29 12:51:04', NULL, NULL, NULL, '2025-01-29', 'INV-12-9338', 10, '13:51:03', 50, 100.00),
(20, 'pending', 'Takeaway', NULL, '#7186', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 08:24:18', '2025-02-02 08:24:18', NULL, NULL, NULL, '2025-02-02', 'INV-13-7045', 10, '10:24:18', NULL, 0.00),
(21, 'pending', 'Takeaway', NULL, '#1878', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 08:26:39', '2025-02-02 08:26:39', NULL, NULL, NULL, '2025-02-02', 'INV-14-8005', 10, '10:26:39', NULL, 0.00),
(22, 'pending', 'Takeaway', NULL, '#9100', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 08:40:56', '2025-02-02 08:40:56', NULL, NULL, NULL, '2025-02-02', 'INV-15-8514', 10, '10:40:56', NULL, 0.00),
(23, 'pending', 'Takeaway', NULL, '#4785', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 08:42:33', '2025-02-02 08:42:33', NULL, NULL, NULL, '2025-02-02', 'INV-16-3908', 10, '10:42:33', NULL, 0.00),
(24, 'pending', 'Takeaway', NULL, '#9866', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 08:43:14', '2025-02-02 08:43:14', NULL, NULL, NULL, '2025-02-02', 'INV-17-7329', 10, '10:43:14', NULL, 0.00),
(25, 'pending', 'Takeaway', NULL, '#4771', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 09:40:48', '2025-02-02 09:40:48', NULL, NULL, NULL, '2025-02-02', 'INV-18-8223', 10, '11:40:48', NULL, 0.00),
(26, 'pending', 'Takeaway', NULL, '#8837', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 09:40:53', '2025-02-02 09:40:53', NULL, NULL, NULL, '2025-02-02', 'INV-19-4966', 10, '11:40:53', NULL, 0.00),
(27, 'pending', 'Takeaway', NULL, '#4757', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 09:43:16', '2025-02-02 09:43:16', NULL, NULL, NULL, '2025-02-02', 'INV-20-1246', 10, '11:43:16', NULL, 0.00),
(28, 'pending', 'Delivery', '', '#2113', 3.00, 10.00, 4.00, 117.00, 65, NULL, 65, NULL, NULL, '2025-02-02 12:24:04', '2025-02-02 12:24:04', NULL, NULL, NULL, '2025-02-02', 'INV-21-2803', 10, '14:24:04', 11, 100.00),
(29, 'pending', 'Takeaway', NULL, '#8909', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 12:28:14', '2025-02-02 12:28:14', NULL, NULL, NULL, '2025-02-02', 'INV-22-7605', 10, '14:28:14', NULL, 0.00),
(30, 'pending', 'Takeaway', NULL, '#2061', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 12:29:37', '2025-02-02 12:29:37', NULL, NULL, NULL, '2025-02-02', 'INV-23-4572', 10, '14:29:37', NULL, 0.00),
(31, 'pending', 'Delivery', '', '#9058', 3.00, 10.00, 4.00, 117.00, 65, NULL, 65, NULL, NULL, '2025-02-02 12:30:19', '2025-02-02 12:30:19', NULL, NULL, NULL, '2025-02-02', 'INV-24-7645', 10, '14:30:19', 11, 100.00),
(32, 'pending', 'Takeaway', NULL, '#2096', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 12:30:30', '2025-02-02 12:30:30', NULL, NULL, NULL, '2025-02-02', 'INV-25-1176', 10, '14:30:30', NULL, 0.00),
(33, 'pending', 'Delivery', '', '#3679', 3.00, 10.00, 4.00, 117.00, 65, NULL, 65, NULL, NULL, '2025-02-02 12:52:26', '2025-02-02 12:52:26', NULL, NULL, NULL, '2025-02-02', 'INV-26-1457', 10, '14:52:26', 11, 100.00),
(34, 'pending', 'Takeaway', NULL, '#6421', 12.60, 0.00, 16.80, 29.40, 65, NULL, 65, NULL, NULL, '2025-02-02 13:43:53', '2025-02-02 13:43:53', NULL, NULL, NULL, '2025-02-02', 'INV-27-3169', 10, '15:43:53', NULL, 0.00),
(35, 'pending', 'Delivery', '', '#4033', 21.30, 10.00, 28.40, 159.70, 65, NULL, 65, NULL, NULL, '2025-02-03 14:10:55', '2025-02-03 14:10:55', NULL, NULL, NULL, '2025-02-03', 'INV-28-5139', 10, '16:10:55', 11, 100.00),
(36, 'pending', 'Delivery', '', '#8636', 3.00, 10.00, 4.00, 117.00, 65, NULL, 65, NULL, NULL, '2025-02-03 14:12:34', '2025-02-03 14:12:34', NULL, NULL, NULL, '2025-02-03', 'INV-29-4719', 10, '16:12:34', 11, 100.00);

-- --------------------------------------------------------

--
-- Table structure for table `order_addons`
--

CREATE TABLE `order_addons` (
  `id` bigint UNSIGNED NOT NULL,
  `order_details_id` bigint UNSIGNED DEFAULT NULL,
  `quantity` int NOT NULL,
  `order_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `price_before_tax` double(8,2) NOT NULL,
  `price_after_tax` double(8,2) NOT NULL,
  `dish_addon_id` bigint UNSIGNED NOT NULL,
  `status` enum('pending','completed','cancel','inprogress') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'pending',
  `tax_value` decimal(10,2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_addons`
--

INSERT INTO `order_addons` (`id`, `order_details_id`, `quantity`, `order_id`, `created_by`, `modify_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`, `price_before_tax`, `price_after_tax`, `dish_addon_id`, `status`, `tax_value`) VALUES
(1, 6, 1, 3, 70, NULL, NULL, NULL, '2025-01-22 09:45:52', '2025-01-22 09:45:52', 10.80, 12.00, 34, 'pending', 1.20),
(2, 7, 1, 4, 70, NULL, NULL, NULL, '2025-01-22 09:46:04', '2025-01-22 09:46:04', 10.80, 12.00, 34, 'pending', 1.20),
(3, 12, 1, 5, 33, NULL, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', 18.00, 20.00, 36, 'pending', 2.00),
(4, 12, 1, 5, 33, NULL, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', 13.50, 15.00, 37, 'pending', 1.50),
(5, 13, 1, 5, 33, NULL, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', 18.00, 20.00, 38, 'pending', 2.00),
(6, 13, 1, 5, 33, NULL, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', 4.50, 5.00, 39, 'pending', 0.50),
(7, 14, 1, 5, 33, NULL, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', 18.00, 20.00, 38, 'pending', 2.00),
(8, 14, 1, 5, 33, NULL, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', 4.50, 5.00, 39, 'pending', 0.50),
(9, 43, 1, 20, 65, NULL, NULL, NULL, '2025-02-02 08:24:18', '2025-02-02 08:24:18', 7.00, 10.00, 34, 'pending', 3.00),
(10, 45, 1, 21, 65, NULL, NULL, NULL, '2025-02-02 08:26:39', '2025-02-02 08:26:39', 7.00, 10.00, 34, 'pending', 3.00),
(11, 47, 1, 22, 65, NULL, NULL, NULL, '2025-02-02 08:40:56', '2025-02-02 08:40:56', 7.00, 10.00, 34, 'pending', 3.00),
(12, 49, 1, 23, 65, NULL, NULL, NULL, '2025-02-02 08:42:33', '2025-02-02 08:42:33', 7.00, 10.00, 34, 'pending', 3.00),
(13, 51, 1, 24, 65, NULL, NULL, NULL, '2025-02-02 08:43:14', '2025-02-02 08:43:14', 7.00, 10.00, 34, 'pending', 3.00),
(14, 53, 1, 25, 65, NULL, NULL, NULL, '2025-02-02 09:40:48', '2025-02-02 09:40:48', 7.00, 10.00, 34, 'pending', 3.00),
(15, 55, 1, 26, 65, NULL, NULL, NULL, '2025-02-02 09:40:53', '2025-02-02 09:40:53', 7.00, 10.00, 34, 'pending', 3.00),
(16, 57, 1, 27, 65, NULL, NULL, NULL, '2025-02-02 09:43:16', '2025-02-02 09:43:16', 7.00, 10.00, 34, 'pending', 3.00),
(17, 60, 1, 29, 65, NULL, NULL, NULL, '2025-02-02 12:28:14', '2025-02-02 12:28:14', 7.00, 10.00, 34, 'pending', 3.00),
(18, 62, 1, 30, 65, NULL, NULL, NULL, '2025-02-02 12:29:37', '2025-02-02 12:29:37', 7.00, 10.00, 34, 'pending', 3.00),
(19, 65, 1, 32, 65, NULL, NULL, NULL, '2025-02-02 12:30:30', '2025-02-02 12:30:30', 7.00, 10.00, 34, 'pending', 3.00),
(20, 68, 1, 34, 65, NULL, NULL, NULL, '2025-02-02 13:43:53', '2025-02-02 13:43:53', 7.00, 10.00, 34, 'pending', 3.00),
(21, 70, 1, 35, 65, NULL, NULL, NULL, '2025-02-03 14:10:55', '2025-02-03 14:10:55', 7.70, 11.00, 35, 'pending', 3.30);

-- --------------------------------------------------------

--
-- Table structure for table `order_details`
--

CREATE TABLE `order_details` (
  `id` bigint UNSIGNED NOT NULL,
  `status` enum('pending','completed','cancel','inprogress') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'pending',
  `quantity` int DEFAULT NULL,
  `total` double(8,2) NOT NULL,
  `price_befor_tax` double(8,2) NOT NULL,
  `price_after_tax` double(8,2) NOT NULL,
  `tax_value` double(8,2) DEFAULT NULL,
  `note` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `order_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `dish_id` bigint UNSIGNED DEFAULT NULL,
  `dish_size_id` bigint UNSIGNED DEFAULT NULL,
  `offer_id` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_details`
--

INSERT INTO `order_details` (`id`, `status`, `quantity`, `total`, `price_befor_tax`, `price_after_tax`, `tax_value`, `note`, `order_id`, `created_by`, `modify_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `dish_id`, `dish_size_id`, `offer_id`) VALUES
(1, 'pending', 1, 30.00, 25.50, 30.00, 4.50, NULL, 1, 33, NULL, NULL, '2025-01-21 11:53:30', '2025-01-21 11:53:30', NULL, 48, NULL, NULL),
(2, 'pending', 2, 70.00, 119.00, 140.00, 21.00, NULL, 1, 33, NULL, NULL, '2025-01-21 11:53:30', '2025-01-21 11:53:30', NULL, 55, NULL, NULL),
(3, 'pending', 4, 70.00, 238.00, 280.00, 42.00, NULL, 1, 33, NULL, NULL, '2025-01-21 11:53:30', '2025-01-21 11:53:30', NULL, 56, NULL, NULL),
(4, 'pending', 20, 60.00, 51.00, 60.00, 9.00, NULL, 1, 33, NULL, NULL, '2025-01-21 11:53:30', '2025-01-21 11:53:30', NULL, 183, NULL, NULL),
(5, 'pending', 2, 50.00, 90.00, 100.00, 10.00, NULL, 2, 33, NULL, NULL, '2025-01-22 08:07:27', '2025-01-22 08:07:27', NULL, 57, NULL, NULL),
(6, 'pending', 1, 12.00, 10.80, 12.00, 1.20, NULL, 3, 70, NULL, NULL, '2025-01-22 09:45:52', '2025-01-22 09:45:52', NULL, 52, NULL, 22),
(7, 'pending', 1, 12.00, 10.80, 12.00, 1.20, NULL, 4, 70, NULL, NULL, '2025-01-22 09:46:04', '2025-01-22 09:46:04', NULL, 52, NULL, NULL),
(8, 'pending', 1, 50.00, 45.00, 50.00, 5.00, NULL, 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', NULL, 48, NULL, NULL),
(9, 'pending', 1, 50.00, 45.00, 50.00, 5.00, NULL, 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', NULL, 54, NULL, NULL),
(10, 'pending', 1, 70.00, 63.00, 70.00, 7.00, NULL, 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', NULL, 55, NULL, NULL),
(11, 'pending', 1, 60.00, 54.00, 60.00, 6.00, NULL, 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', NULL, 55, NULL, NULL),
(12, 'pending', 1, 70.00, 63.00, 70.00, 7.00, NULL, 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', NULL, 56, NULL, NULL),
(13, 'pending', 1, 70.00, 63.00, 70.00, 7.00, NULL, 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', NULL, 56, NULL, NULL),
(14, 'pending', 1, 60.00, 54.00, 60.00, 6.00, NULL, 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', NULL, 56, NULL, NULL),
(15, 'pending', 3, 60.00, 162.00, 180.00, 18.00, NULL, 6, 33, NULL, NULL, '2025-01-27 09:21:33', '2025-01-27 09:21:33', NULL, 56, NULL, NULL),
(16, 'pending', 2, 50.00, 90.00, 100.00, 10.00, NULL, 7, 33, NULL, NULL, '2025-01-27 09:25:01', '2025-01-27 09:25:01', NULL, 57, NULL, NULL),
(17, 'pending', 1, 60.00, 54.00, 60.00, 6.00, NULL, 8, 82, NULL, NULL, '2025-01-27 11:14:25', '2025-01-27 11:14:25', NULL, 56, NULL, NULL),
(18, 'pending', 1, 50.00, 45.00, 50.00, 5.00, NULL, 9, 87, NULL, NULL, '2025-01-27 14:20:49', '2025-01-27 14:20:49', NULL, 48, NULL, 23),
(19, 'pending', 1, 30.00, 21.00, 30.00, 9.00, NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:49', '2025-01-29 11:09:49', NULL, 48, NULL, NULL),
(20, 'pending', 1, 30.00, 21.00, 30.00, 9.00, NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, 48, NULL, NULL),
(21, 'pending', 1, 50.00, 35.00, 50.00, 15.00, NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, 54, NULL, NULL),
(22, 'pending', 1, 50.00, 35.00, 50.00, 15.00, NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, 54, NULL, NULL),
(23, 'pending', 1, 60.00, 42.00, 60.00, 18.00, NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, 55, NULL, NULL),
(24, 'pending', 1, 70.00, 49.00, 70.00, 21.00, NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, 55, NULL, NULL),
(25, 'pending', 1, 20.00, 14.00, 20.00, 6.00, NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, 52, NULL, NULL),
(26, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, 52, NULL, NULL),
(27, 'pending', 1, 30.00, 21.00, 30.00, 9.00, NULL, 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:31', NULL, 48, NULL, NULL),
(28, 'pending', 1, 30.00, 21.00, 30.00, 9.00, NULL, 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:31', NULL, 48, NULL, NULL),
(29, 'pending', 1, 50.00, 35.00, 50.00, 15.00, NULL, 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:31', NULL, 54, NULL, NULL),
(30, 'pending', 1, 50.00, 35.00, 50.00, 15.00, NULL, 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:31', NULL, 54, NULL, NULL),
(31, 'pending', 1, 60.00, 42.00, 60.00, 18.00, NULL, 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:31', NULL, 55, NULL, NULL),
(32, 'pending', 1, 20.00, 14.00, 20.00, 6.00, NULL, 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:31', NULL, 52, NULL, NULL),
(33, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:31', NULL, 52, NULL, NULL),
(34, 'pending', 1, 60.00, 42.00, 60.00, 18.00, NULL, 12, 33, NULL, NULL, '2025-01-29 12:51:04', '2025-01-29 12:51:04', NULL, 55, NULL, NULL),
(35, 'pending', 1, 60.00, 42.00, 60.00, 18.00, NULL, 12, 33, NULL, NULL, '2025-01-29 12:51:04', '2025-01-29 12:51:04', NULL, 56, NULL, NULL),
(42, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 20, 65, NULL, NULL, '2025-02-02 08:24:18', '2025-02-02 08:24:18', NULL, 185, NULL, NULL),
(43, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 20, 65, NULL, NULL, '2025-02-02 08:24:18', '2025-02-02 08:24:18', NULL, 184, 35, NULL),
(44, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 21, 65, NULL, NULL, '2025-02-02 08:26:39', '2025-02-02 08:26:39', NULL, 185, NULL, NULL),
(45, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 21, 65, NULL, NULL, '2025-02-02 08:26:39', '2025-02-02 08:26:39', NULL, 184, 35, NULL),
(46, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 22, 65, NULL, NULL, '2025-02-02 08:40:56', '2025-02-02 08:40:56', NULL, 185, NULL, NULL),
(47, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 22, 65, NULL, NULL, '2025-02-02 08:40:56', '2025-02-02 08:40:56', NULL, 184, 35, NULL),
(48, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 23, 65, NULL, NULL, '2025-02-02 08:42:33', '2025-02-02 08:42:33', NULL, 185, NULL, NULL),
(49, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 23, 65, NULL, NULL, '2025-02-02 08:42:33', '2025-02-02 08:42:33', NULL, 184, 35, NULL),
(50, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 24, 65, NULL, NULL, '2025-02-02 08:43:14', '2025-02-02 08:43:14', NULL, 185, NULL, NULL),
(51, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 24, 65, NULL, NULL, '2025-02-02 08:43:14', '2025-02-02 08:43:14', NULL, 184, 35, NULL),
(52, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 25, 65, NULL, NULL, '2025-02-02 09:40:48', '2025-02-02 09:40:48', NULL, 185, NULL, NULL),
(53, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 25, 65, NULL, NULL, '2025-02-02 09:40:48', '2025-02-02 09:40:48', NULL, 184, 35, NULL),
(54, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 26, 65, NULL, NULL, '2025-02-02 09:40:53', '2025-02-02 09:40:53', NULL, 185, NULL, NULL),
(55, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 26, 65, NULL, NULL, '2025-02-02 09:40:53', '2025-02-02 09:40:53', NULL, 184, 35, NULL),
(56, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 27, 65, NULL, NULL, '2025-02-02 09:43:16', '2025-02-02 09:43:16', NULL, 185, NULL, NULL),
(57, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 27, 65, NULL, NULL, '2025-02-02 09:43:16', '2025-02-02 09:43:16', NULL, 184, 35, NULL),
(58, 'pending', 1, 10.00, 7.00, 10.00, 3.00, NULL, 28, 65, NULL, NULL, '2025-02-02 12:24:04', '2025-02-02 12:24:04', NULL, 46, NULL, NULL),
(59, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 29, 65, NULL, NULL, '2025-02-02 12:28:14', '2025-02-02 12:28:14', NULL, 185, NULL, NULL),
(60, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 29, 65, NULL, NULL, '2025-02-02 12:28:14', '2025-02-02 12:28:14', NULL, 184, 35, NULL),
(61, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 30, 65, NULL, NULL, '2025-02-02 12:29:37', '2025-02-02 12:29:37', NULL, 185, NULL, NULL),
(62, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 30, 65, NULL, NULL, '2025-02-02 12:29:37', '2025-02-02 12:29:37', NULL, 184, 35, NULL),
(63, 'pending', 1, 10.00, 7.00, 10.00, 3.00, NULL, 31, 65, NULL, NULL, '2025-02-02 12:30:19', '2025-02-02 12:30:19', NULL, 46, NULL, NULL),
(64, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 32, 65, NULL, NULL, '2025-02-02 12:30:30', '2025-02-02 12:30:30', NULL, 185, NULL, NULL),
(65, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 32, 65, NULL, NULL, '2025-02-02 12:30:30', '2025-02-02 12:30:30', NULL, 184, 35, NULL),
(66, 'pending', 1, 10.00, 7.00, 10.00, 3.00, NULL, 33, 65, NULL, NULL, '2025-02-02 12:52:26', '2025-02-02 12:52:26', NULL, 46, NULL, NULL),
(67, 'pending', 4, 5.00, 14.00, 20.00, 6.00, NULL, 34, 65, NULL, NULL, '2025-02-02 13:43:53', '2025-02-02 13:43:53', NULL, 185, NULL, NULL),
(68, 'pending', 1, 12.00, 8.40, 12.00, 3.60, NULL, 34, 65, NULL, NULL, '2025-02-02 13:43:53', '2025-02-02 13:43:53', NULL, 184, 35, NULL),
(69, 'pending', 1, 10.00, 7.00, 10.00, 3.00, NULL, 35, 65, NULL, NULL, '2025-02-03 14:10:55', '2025-02-03 14:10:55', NULL, 46, NULL, NULL),
(70, 'pending', 1, 50.00, 35.00, 50.00, 15.00, NULL, 35, 65, NULL, NULL, '2025-02-03 14:10:55', '2025-02-03 14:10:55', NULL, 54, NULL, NULL),
(71, 'pending', 1, 10.00, 7.00, 10.00, 3.00, NULL, 36, 65, NULL, NULL, '2025-02-03 14:12:34', '2025-02-03 14:12:34', NULL, 46, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `order_products`
--

CREATE TABLE `order_products` (
  `id` bigint UNSIGNED NOT NULL,
  `order_id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `quantity` int NOT NULL,
  `price` decimal(8,2) NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `product_unit_id` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `order_refunds`
--

CREATE TABLE `order_refunds` (
  `id` bigint UNSIGNED NOT NULL,
  `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `date` date NOT NULL,
  `status` enum('accepted','pending','rejected') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
  `invoice_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_id` bigint UNSIGNED DEFAULT NULL,
  `item_id` bigint UNSIGNED NOT NULL,
  `item_type` enum('product','addon','dish') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` int NOT NULL,
  `price` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `order_trackings`
--

CREATE TABLE `order_trackings` (
  `id` bigint UNSIGNED NOT NULL,
  `order_status` enum('pending','in_progress','completed','on_way','deliverd','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
  `order_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `time` time DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_trackings`
--

INSERT INTO `order_trackings` (`id`, `order_status`, `order_id`, `created_by`, `modify_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `time`) VALUES
(1, 'pending', 1, 33, NULL, NULL, '2025-01-21 11:53:30', '2025-01-21 11:53:30', NULL, NULL),
(2, 'pending', 2, 33, NULL, NULL, '2025-01-22 08:07:27', '2025-01-22 08:07:27', NULL, NULL),
(3, 'pending', 3, 70, NULL, NULL, '2025-01-22 09:45:52', '2025-01-22 09:45:52', NULL, NULL),
(4, 'pending', 4, 70, NULL, NULL, '2025-01-22 09:46:04', '2025-01-22 09:46:04', NULL, NULL),
(5, 'cancelled', 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-26 07:57:36', NULL, NULL),
(6, 'pending', 6, 33, NULL, NULL, '2025-01-27 09:21:33', '2025-01-27 09:21:33', NULL, NULL),
(7, 'pending', 7, 33, NULL, NULL, '2025-01-27 09:25:01', '2025-01-27 09:25:01', NULL, NULL),
(8, 'pending', 8, 82, NULL, NULL, '2025-01-27 11:14:25', '2025-01-27 11:14:25', NULL, NULL),
(9, 'pending', 9, 87, NULL, NULL, '2025-01-27 14:20:49', '2025-01-27 14:20:49', NULL, NULL),
(10, 'pending', 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, NULL),
(11, 'cancelled', 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:38', NULL, NULL),
(12, 'pending', 12, 33, NULL, NULL, '2025-01-29 12:51:04', '2025-01-29 12:51:04', NULL, NULL),
(13, 'pending', 20, 65, NULL, NULL, '2025-02-02 08:24:18', '2025-02-02 08:24:18', NULL, NULL),
(14, 'pending', 21, 65, NULL, NULL, '2025-02-02 08:26:39', '2025-02-02 08:26:39', NULL, NULL),
(15, 'pending', 22, 65, NULL, NULL, '2025-02-02 08:40:56', '2025-02-02 08:40:56', NULL, NULL),
(16, 'pending', 23, 65, NULL, NULL, '2025-02-02 08:42:33', '2025-02-02 08:42:33', NULL, NULL),
(17, 'pending', 24, 65, NULL, NULL, '2025-02-02 08:43:14', '2025-02-02 08:43:14', NULL, NULL),
(18, 'pending', 25, 65, NULL, NULL, '2025-02-02 09:40:48', '2025-02-02 09:40:48', NULL, NULL),
(19, 'pending', 26, 65, NULL, NULL, '2025-02-02 09:40:53', '2025-02-02 09:40:53', NULL, NULL),
(20, 'pending', 27, 65, NULL, NULL, '2025-02-02 09:43:16', '2025-02-02 09:43:16', NULL, NULL),
(21, 'pending', 28, 65, NULL, NULL, '2025-02-02 12:24:04', '2025-02-02 12:24:04', NULL, NULL),
(22, 'pending', 29, 65, NULL, NULL, '2025-02-02 12:28:14', '2025-02-02 12:28:14', NULL, NULL),
(23, 'pending', 30, 65, NULL, NULL, '2025-02-02 12:29:37', '2025-02-02 12:29:37', NULL, NULL),
(24, 'pending', 31, 65, NULL, NULL, '2025-02-02 12:30:19', '2025-02-02 12:30:19', NULL, NULL),
(25, 'pending', 32, 65, NULL, NULL, '2025-02-02 12:30:30', '2025-02-02 12:30:30', NULL, NULL),
(26, 'pending', 33, 65, NULL, NULL, '2025-02-02 12:52:26', '2025-02-02 12:52:26', NULL, NULL),
(27, 'pending', 34, 65, NULL, NULL, '2025-02-02 13:43:53', '2025-02-02 13:43:53', NULL, NULL),
(28, 'pending', 35, 65, NULL, NULL, '2025-02-03 14:10:55', '2025-02-03 14:10:55', NULL, NULL),
(29, 'pending', 36, 65, NULL, NULL, '2025-02-03 14:12:34', '2025-02-03 14:12:34', NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `order_transactions`
--

CREATE TABLE `order_transactions` (
  `id` bigint UNSIGNED NOT NULL,
  `payment_status` enum('paid','unpaid','payment_failed') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'unpaid',
  `payment_method` enum('cash','credit_card','online') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash',
  `transaction_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `paid` double(8,2) NOT NULL,
  `date` date NOT NULL,
  `refund` double(8,2) DEFAULT NULL,
  `order_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `discount_id` bigint UNSIGNED DEFAULT NULL,
  `coupon_id` bigint UNSIGNED DEFAULT NULL,
  `points_num` int NOT NULL DEFAULT '0',
  `is_refund` tinyint(1) NOT NULL DEFAULT '0',
  `payment_gateway_reference` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_gateway_date` date DEFAULT NULL,
  `payment_gateway_currency` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_gateway_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_gateway_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_transactions`
--

INSERT INTO `order_transactions` (`id`, `payment_status`, `payment_method`, `transaction_id`, `paid`, `date`, `refund`, `order_id`, `created_by`, `modify_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `discount_id`, `coupon_id`, `points_num`, `is_refund`, `payment_gateway_reference`, `payment_gateway_date`, `payment_gateway_currency`, `payment_gateway_status`, `payment_gateway_method`, `reason`) VALUES
(1, 'unpaid', 'cash', '2183ff11-047f-44fb-9e68-d93893719564', 407.00, '2025-01-21', NULL, 1, 33, NULL, NULL, '2025-01-21 11:53:30', '2025-01-21 11:53:30', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 'unpaid', 'cash', 'f2f364b5-d713-4928-a00d-09e3fac17ac5', 135.00, '2025-01-22', NULL, 2, 33, NULL, NULL, '2025-01-22 08:07:27', '2025-01-22 08:07:27', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(3, 'unpaid', 'credit_card', 'd1510889-908b-46a0-8bba-e7075bc850a6', 74.20, '2025-01-22', NULL, 3, 70, NULL, NULL, '2025-01-22 09:45:52', '2025-01-22 09:45:52', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(4, 'unpaid', 'credit_card', 'aa08dba7-0cf4-4927-862f-7972719ec477', 74.20, '2025-01-22', NULL, 4, 70, NULL, NULL, '2025-01-22 09:46:04', '2025-01-22 09:46:04', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(5, 'unpaid', 'cash', 'fa7abd41-c91b-472d-b9de-7366bab80319', 467.00, '2025-01-23', NULL, 5, 33, NULL, NULL, '2025-01-23 14:49:21', '2025-01-23 14:49:21', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(6, 'unpaid', 'cash', '415118e6-a79a-4994-950b-93a2b6ab7f29', 199.00, '2025-01-27', NULL, 6, 33, NULL, NULL, '2025-01-27 09:21:33', '2025-01-27 09:21:33', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(7, 'unpaid', 'cash', 'd75dcf6a-6df2-4b75-b08d-81affcc22315', 135.00, '2025-01-27', NULL, 7, 33, NULL, NULL, '2025-01-27 09:25:01', '2025-01-27 09:25:01', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(8, 'unpaid', 'cash', 'e193f194-d074-4b35-b27b-831478154d97', 103.00, '2025-01-27', NULL, 8, 82, NULL, NULL, '2025-01-27 11:14:26', '2025-01-27 11:14:26', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(9, 'unpaid', 'cash', '7066d6a4-41f7-4a45-a5b5-9fa41e4a7477', 95.00, '2025-01-27', NULL, 9, 87, NULL, NULL, '2025-01-27 14:20:49', '2025-01-27 14:20:49', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(10, 'unpaid', 'cash', '0c4c3c00-8227-4ddc-a4f8-2286f07d2f57', 238.80, '2025-01-29', NULL, 10, 33, NULL, NULL, '2025-01-29 11:09:50', '2025-01-29 11:09:50', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(11, 'unpaid', 'cash', 'da31d9e1-ff91-4bcf-99f5-980cd07526ec', 210.80, '2025-01-29', NULL, 11, 33, NULL, NULL, '2025-01-29 11:27:31', '2025-01-29 11:27:31', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(12, 'unpaid', 'cash', 'd6e56aaa-7b02-40a5-aa7b-0df3466378c4', 158.00, '2025-01-29', NULL, 12, 33, NULL, NULL, '2025-01-29 12:51:04', '2025-01-29 12:51:04', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(13, 'unpaid', 'cash', 'f9755e20-bf23-4a6b-ad51-834b5b46ac55', 16.80, '2025-02-02', NULL, 20, 65, NULL, NULL, '2025-02-02 08:24:19', '2025-02-02 08:24:19', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(14, 'unpaid', 'cash', '9171428f-8788-4545-b381-b0938c786927', 16.80, '2025-02-02', NULL, 21, 65, NULL, NULL, '2025-02-02 08:26:39', '2025-02-02 08:26:39', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(15, 'unpaid', 'cash', '11aead79-81fa-4265-944d-41e054826ee3', 16.80, '2025-02-02', NULL, 22, 65, NULL, NULL, '2025-02-02 08:40:56', '2025-02-02 08:40:56', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(16, 'unpaid', 'cash', '7539ad27-f4b1-4582-8446-2e4f22b9f86c', 16.80, '2025-02-02', NULL, 23, 65, NULL, NULL, '2025-02-02 08:42:33', '2025-02-02 08:42:33', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(17, 'unpaid', 'cash', '9076d137-6d34-4e74-a019-67faf4a5810f', 16.80, '2025-02-02', NULL, 24, 65, NULL, NULL, '2025-02-02 08:43:14', '2025-02-02 08:43:14', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(18, 'unpaid', 'cash', 'dd239301-4a50-4a28-9669-5934b3e662ac', 16.80, '2025-02-02', NULL, 25, 65, NULL, NULL, '2025-02-02 09:40:48', '2025-02-02 09:40:48', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(19, 'unpaid', 'cash', '57b8c074-b02c-4ae1-8a71-eea05377ef76', 16.80, '2025-02-02', NULL, 26, 65, NULL, NULL, '2025-02-02 09:40:53', '2025-02-02 09:40:53', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(20, 'unpaid', 'cash', 'e4f91a18-ec71-4cac-8122-b419a0d70c84', 16.80, '2025-02-02', NULL, 27, 65, NULL, NULL, '2025-02-02 09:43:16', '2025-02-02 09:43:16', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(21, 'unpaid', 'cash', '0f9227be-c857-42ae-bd2d-b3189504246e', 114.00, '2025-02-02', NULL, 28, 65, NULL, NULL, '2025-02-02 12:24:04', '2025-02-02 12:24:04', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(22, 'unpaid', 'cash', 'f3431db6-a8fb-48b4-9d96-ae551e3b416a', 16.80, '2025-02-02', NULL, 29, 65, NULL, NULL, '2025-02-02 12:28:14', '2025-02-02 12:28:14', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(23, 'unpaid', 'cash', 'ea88aef4-410e-480c-81e2-a0989ab26b8d', 16.80, '2025-02-02', NULL, 30, 65, NULL, NULL, '2025-02-02 12:29:37', '2025-02-02 12:29:37', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(24, 'unpaid', 'cash', '15a48e29-7297-40f3-bd32-e7f14023ac99', 114.00, '2025-02-02', NULL, 31, 65, NULL, NULL, '2025-02-02 12:30:19', '2025-02-02 12:30:19', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(25, 'unpaid', 'cash', 'b8e23575-5c76-4c39-888b-da80668863c4', 16.80, '2025-02-02', NULL, 32, 65, NULL, NULL, '2025-02-02 12:30:30', '2025-02-02 12:30:30', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(26, 'unpaid', 'cash', 'af322c8b-bee0-496d-90a2-672f028b8004', 114.00, '2025-02-02', NULL, 33, 65, NULL, NULL, '2025-02-02 12:52:26', '2025-02-02 12:52:26', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(27, 'unpaid', 'cash', '00e42346-7cbf-4048-80a0-27839d5e9c2b', 16.80, '2025-02-02', NULL, 34, 65, NULL, NULL, '2025-02-02 13:43:53', '2025-02-02 13:43:53', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(28, 'unpaid', 'cash', '823381d2-fd12-46d2-a3b2-9524ad7ee9ad', 138.40, '2025-02-03', NULL, 35, 65, NULL, NULL, '2025-02-03 14:10:56', '2025-02-03 14:10:56', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL),
(29, 'unpaid', 'cash', '070d5673-a374-4e68-b7cf-8e03f688b864', 114.00, '2025-02-03', NULL, 36, 65, NULL, NULL, '2025-02-03 14:12:34', '2025-02-03 14:12:34', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `otps`
--

CREATE TABLE `otps` (
  `id` bigint UNSIGNED NOT NULL,
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `otp` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `expires_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 `overtime_settings`
--

CREATE TABLE `overtime_settings` (
  `id` bigint UNSIGNED NOT NULL,
  `overtime_type_id` bigint UNSIGNED NOT NULL,
  `quentity` double(8,2) DEFAULT NULL,
  `percent` double(8,2) DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `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;

-- --------------------------------------------------------

--
-- Table structure for table `overtime_types`
--

CREATE TABLE `overtime_types` (
  `id` bigint UNSIGNED NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `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;

-- --------------------------------------------------------

--
-- Table structure for table `password_reset_tokens`
--

CREATE TABLE `password_reset_tokens` (
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) CHARACTER SET utf8mb4 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,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb4 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 `payment_methods`
--

INSERT INTO `payment_methods` (`id`, `code`, `description`, `created_at`, `updated_at`) VALUES
(1, 'C', 'Cash', '2025-01-29 14:10:32', '2025-01-29 14:10:32'),
(2, 'V', 'Visa', '2025-01-29 14:10:32', '2025-01-29 14:10:32'),
(3, 'CC', 'Cash with contractor', '2025-01-29 14:10:32', '2025-01-29 14:10:32'),
(4, 'VC', 'Visa with contractor', '2025-01-29 14:10:32', '2025-01-29 14:10:32'),
(5, 'VO', 'Vouchers', '2025-01-29 14:10:32', '2025-01-29 14:10:32'),
(6, 'PR', 'Promotion', '2025-01-29 14:10:32', '2025-01-29 14:10:32'),
(7, 'GC', 'Gift Card', '2025-01-29 14:10:32', '2025-01-29 14:10:32'),
(8, 'P', 'Points', '2025-01-29 14:10:32', '2025-01-29 14:10:32'),
(9, 'O', 'Others', '2025-01-29 14:10:32', '2025-01-29 14:10:32');

-- --------------------------------------------------------

--
-- Table structure for table `payrolls`
--

CREATE TABLE `payrolls` (
  `id` bigint UNSIGNED NOT NULL,
  `employee_id` bigint UNSIGNED NOT NULL,
  `base_salary` decimal(10,2) NOT NULL,
  `bonus` decimal(10,2) DEFAULT NULL,
  `deductions` decimal(10,2) DEFAULT NULL,
  `taxes` decimal(10,2) DEFAULT NULL,
  `insurance` decimal(10,2) DEFAULT NULL,
  `advance` decimal(10,2) DEFAULT NULL,
  `net_salary` decimal(10,2) NOT NULL,
  `pay_date` date NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `penalties`
--

CREATE TABLE `penalties` (
  `id` bigint UNSIGNED NOT NULL,
  `reason_id` bigint UNSIGNED NOT NULL,
  `employee_id` bigint UNSIGNED NOT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `penalty_deductions`
--

CREATE TABLE `penalty_deductions` (
  `id` bigint UNSIGNED NOT NULL,
  `penalty_id` bigint UNSIGNED NOT NULL,
  `employee_id` bigint UNSIGNED NOT NULL,
  `deduction_amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `penalty_reasons`
--

CREATE TABLE `penalty_reasons` (
  `id` bigint UNSIGNED NOT NULL,
  `reason_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `reason_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `punishment_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `punishment_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `permissions`
--

CREATE TABLE `permissions` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '0'
) 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`, `is_active`) VALUES
(1, 'view dashboard', 'admin', '2024-12-16 12:06:15', '2024-12-22 08:05:20', 0),
(5, 'view actionbacklogs', 'admin', '2024-12-16 12:06:15', '2025-01-20 14:55:41', 0),
(6, 'create actionbacklogs', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:52:23', 1),
(7, 'update actionbacklogs', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:52:36', 1),
(8, 'delete actionbacklogs', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:52:45', 1),
(9, 'view advances', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:52:58', 1),
(10, 'create advances', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:54:38', 1),
(11, 'update advances', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:54:26', 1),
(12, 'delete advances', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:54:16', 1),
(13, 'view advance_requests', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:54:04', 1),
(14, 'create advance_requests', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:55:03', 1),
(15, 'update advance_requests', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:55:39', 1),
(16, 'delete advance_requests', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:55:58', 1),
(17, 'view advance_settings', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:56:27', 1),
(18, 'create advance_settings', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:57:00', 1),
(19, 'update advance_settings', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:57:34', 1),
(20, 'delete advance_settings', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:58:00', 1),
(21, 'view branches', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(22, 'create branches', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(23, 'update branches', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(24, 'delete branches', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(25, 'view branch_coupon', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(26, 'create branch_coupon', 'admin', '2024-12-16 12:06:15', '2024-12-26 06:58:35', 0),
(27, 'update branch_coupon', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(28, 'delete branch_coupon', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(29, 'view branch_discount', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(30, 'create branch_discount', 'admin', '2024-12-16 12:06:15', '2024-12-16 12:06:15', 0),
(31, 'update branch_discount', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(32, 'delete branch_discount', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(33, 'view branch_recipe', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(34, 'create branch_recipe', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(35, 'update branch_recipe', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(36, 'delete branch_recipe', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(37, 'view brands', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(38, 'create brands', 'admin', '2024-12-16 12:06:16', '2024-12-26 06:59:19', 0),
(39, 'update brands', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(40, 'delete brands', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(41, 'view cashier_machines', 'admin', '2024-12-16 12:06:16', '2024-12-26 06:59:48', 1),
(42, 'create cashier_machines', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:00:00', 1),
(43, 'update cashier_machines', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:00:10', 1),
(44, 'delete cashier_machines', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:00:22', 1),
(45, 'view cashier_machine_logs', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:00:42', 1),
(46, 'create cashier_machine_logs', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:01:11', 1),
(47, 'update cashier_machine_logs', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:01:32', 1),
(48, 'delete cashier_machine_logs', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:01:44', 1),
(49, 'view categories', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(50, 'create categories', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:02:06', 0),
(51, 'update categories', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(52, 'delete categories', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(53, 'view client_addresses', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(54, 'create client_addresses', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:02:27', 0),
(55, 'update client_addresses', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(56, 'delete client_addresses', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(57, 'view client_details', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(58, 'create client_details', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(59, 'update client_details', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(60, 'delete client_details', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(61, 'view colors', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(62, 'create colors', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(63, 'update colors', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(64, 'delete colors', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(65, 'view countries', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(66, 'create countries', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:03:17', 0),
(67, 'update countries', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(68, 'delete countries', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(69, 'view coupons', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(70, 'create coupons', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:03:04', 0),
(71, 'update coupons', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(72, 'delete coupons', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(73, 'view cuisines', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(74, 'create cuisines', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:04:43', 0),
(75, 'update cuisines', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:04:58', 0),
(76, 'delete cuisines', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:05:15', 0),
(77, 'view delays', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:05:29', 1),
(78, 'create delays', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:05:40', 1),
(79, 'update delays', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:05:52', 1),
(80, 'delete delays', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:06:04', 1),
(81, 'view delay_deductions', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:06:42', 1),
(82, 'create delay_deductions', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:07:05', 1),
(83, 'update delay_deductions', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:09:45', 1),
(84, 'delete delay_deductions', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:10:14', 1),
(85, 'view delay_times', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:10:44', 1),
(86, 'create delay_times', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:11:16', 1),
(87, 'update delay_times', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:11:44', 1),
(88, 'delete delay_times', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:12:02', 1),
(89, 'view delivery_settings', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:14:22', 1),
(90, 'create delivery_settings', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:14:38', 1),
(91, 'update delivery_settings', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:15:11', 1),
(92, 'delete delivery_settings', 'admin', '2024-12-16 12:06:16', '2024-12-26 07:15:31', 1),
(93, 'view departments', 'admin', '2024-12-16 12:06:16', '2025-01-20 10:16:34', 0),
(94, 'create departments', 'admin', '2024-12-16 12:06:16', '2024-12-16 12:06:16', 0),
(95, 'update departments', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(96, 'delete departments', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(97, 'view discounts', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(98, 'create discounts', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(99, 'update discounts', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(100, 'delete discounts', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(101, 'view dishes', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(102, 'create dishes', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(103, 'update dishes', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(104, 'delete dishes', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(105, 'view dish_addons', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(106, 'create dish_addons', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(107, 'update dish_addons', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(108, 'delete dish_addons', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:16:12', 0),
(109, 'view dish_categories', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(110, 'create dish_categories', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(111, 'update dish_categories', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(112, 'delete dish_categories', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(113, 'view dish_details', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(114, 'create dish_details', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(115, 'update dish_details', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(116, 'delete dish_details', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(117, 'view dish_discount', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(118, 'create dish_discount', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(119, 'update dish_discount', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(120, 'delete dish_discount', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(125, 'view einvoices', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(126, 'create einvoices', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(127, 'update einvoices', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(128, 'delete einvoices', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(129, 'view einvoice_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(130, 'create einvoice_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(131, 'update einvoice_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(132, 'delete einvoice_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(133, 'view employees', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:17:26', 0),
(134, 'create employees', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:17:47', 0),
(135, 'update employees', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(136, 'delete employees', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(137, 'view employee_floor_partitions', 'admin', '2024-12-16 12:06:17', '2025-01-22 08:35:40', 0),
(138, 'create employee_floor_partitions', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(139, 'update employee_floor_partitions', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(140, 'delete employee_floor_partitions', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(141, 'view employee_opening_balances', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:18:25', 1),
(142, 'create employee_opening_balances', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:18:39', 1),
(143, 'update employee_opening_balances', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:18:54', 1),
(144, 'delete employee_opening_balances', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:19:08', 1),
(145, 'view employee_schedules', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:19:20', 1),
(146, 'create employee_schedules', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:19:34', 1),
(147, 'update employee_schedules', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:19:58', 1),
(148, 'delete employee_schedules', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:20:12', 1),
(149, 'view excuses', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:20:24', 1),
(150, 'create excuses', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:20:38', 1),
(151, 'update excuses', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:21:00', 1),
(152, 'delete excuses', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:21:13', 1),
(153, 'view excuse_requests', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(154, 'create excuse_requests', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:21:28', 1),
(155, 'update excuse_requests', 'admin', '2024-12-16 12:06:17', '2024-12-26 07:21:40', 1),
(156, 'delete excuse_requests', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(157, 'view excuse_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(158, 'create excuse_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(159, 'update excuse_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(160, 'delete excuse_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(161, 'view floors', 'admin', '2024-12-16 12:06:17', '2025-01-22 08:36:03', 0),
(162, 'create floors', 'admin', '2024-12-16 12:06:17', '2025-01-22 08:36:22', 0),
(163, 'update floors', 'admin', '2024-12-16 12:06:17', '2025-01-22 08:36:49', 0),
(164, 'delete floors', 'admin', '2024-12-16 12:06:17', '2025-01-22 08:36:58', 0),
(165, 'view floor_partitions', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(166, 'create floor_partitions', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(167, 'update floor_partitions', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(168, 'delete floor_partitions', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(169, 'view gifts', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(170, 'create gifts', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(171, 'update gifts', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(172, 'delete gifts', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(173, 'view ingredients', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(174, 'create ingredients', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(175, 'update ingredients', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(176, 'delete ingredients', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(177, 'view leave_nationals', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(178, 'create leave_nationals', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(179, 'update leave_nationals', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(180, 'delete leave_nationals', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(181, 'view leave_requests', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(182, 'create leave_requests', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(183, 'update leave_requests', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(184, 'delete leave_requests', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(185, 'view leave_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(186, 'create leave_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(187, 'update leave_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(188, 'delete leave_settings', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(189, 'view leave_types', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(190, 'create leave_types', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(191, 'update leave_types', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(192, 'delete leave_types', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(193, 'view lines', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(194, 'create lines', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(195, 'update lines', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(196, 'delete lines', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(197, 'view menu', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(198, 'create menu', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(199, 'update menu', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(200, 'delete menu', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(201, 'view notifications', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(202, 'create notifications', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(203, 'update notifications', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(204, 'delete notifications', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 1),
(205, 'view offers', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(206, 'create offers', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(207, 'update offers', 'admin', '2024-12-16 12:06:17', '2024-12-16 12:06:17', 0),
(208, 'delete offers', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(213, 'view opening_balance', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(214, 'create opening_balance', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(215, 'update opening_balance', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(216, 'delete opening_balance', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(217, 'view orders', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(218, 'create orders', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(219, 'update orders', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(220, 'delete orders', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(221, 'view order_addons', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(222, 'create order_addons', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(223, 'update order_addons', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(224, 'delete order_addons', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(225, 'view order_details', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(226, 'create order_details', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(227, 'update order_details', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(228, 'delete order_details', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(229, 'view order_products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(230, 'create order_products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(231, 'update order_products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(232, 'delete order_products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(233, 'view order_refunds', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(234, 'create order_refunds', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(235, 'update order_refunds', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(236, 'delete order_refunds', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(237, 'view order_trackings', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(238, 'create order_trackings', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(239, 'update order_trackings', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(240, 'delete order_trackings', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(241, 'view order_transactions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(242, 'create order_transactions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(243, 'update order_transactions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(244, 'delete order_transactions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(245, 'view overtime_settings', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(246, 'create overtime_settings', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(247, 'update overtime_settings', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(248, 'delete overtime_settings', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(249, 'view overtime_types', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(250, 'create overtime_types', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(251, 'update overtime_types', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(252, 'delete overtime_types', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(253, 'view payrolls', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(254, 'create payrolls', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(255, 'update payrolls', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(256, 'delete payrolls', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(257, 'view penalties', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(258, 'create penalties', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(259, 'update penalties', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(260, 'delete penalties', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(261, 'view penalty_deductions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(262, 'create penalty_deductions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(263, 'update penalty_deductions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(264, 'delete penalty_deductions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(265, 'view penalty_reasons', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(266, 'create penalty_reasons', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(267, 'update penalty_reasons', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(268, 'delete penalty_reasons', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(269, 'view permissions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(270, 'create permissions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(271, 'update permissions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(272, 'delete permissions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(273, 'view point_products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(274, 'create point_products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(275, 'update point_products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(276, 'delete point_products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(277, 'view point_systems', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(278, 'create point_systems', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(279, 'update point_systems', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(280, 'delete point_systems', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(281, 'view point_transactions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(282, 'create point_transactions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(283, 'update point_transactions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(284, 'delete point_transactions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 1),
(285, 'view positions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(286, 'create positions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(287, 'update positions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(288, 'delete positions', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(289, 'view products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(290, 'create products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(291, 'update products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(292, 'delete products', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(293, 'view product_colors', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(294, 'create product_colors', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(295, 'update product_colors', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(296, 'delete product_colors', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(297, 'view product_images', 'admin', '2024-12-16 12:06:18', '2024-12-16 12:06:18', 0),
(298, 'create product_images', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(299, 'update product_images', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(300, 'delete product_images', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(301, 'view product_limit', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(302, 'create product_limit', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(303, 'update product_limit', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(304, 'delete product_limit', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(305, 'view product_sizes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(306, 'create product_sizes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(307, 'update product_sizes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(308, 'delete product_sizes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(309, 'view product_transactions', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(310, 'create product_transactions', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(311, 'update product_transactions', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(312, 'delete product_transactions', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(313, 'view product_transaction_logs', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(314, 'create product_transaction_logs', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(315, 'update product_transaction_logs', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(316, 'delete product_transaction_logs', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(317, 'view product_units', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(318, 'create product_units', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(319, 'update product_units', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(320, 'delete product_units', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(321, 'view purchase_invoices', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(322, 'create purchase_invoices', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(323, 'update purchase_invoices', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(324, 'delete purchase_invoices', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(325, 'view purchase_invoices_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(326, 'create purchase_invoices_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(327, 'update purchase_invoices_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(328, 'delete purchase_invoices_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(329, 'view recipes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(330, 'create recipes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(331, 'update recipes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(332, 'delete recipes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(333, 'view recipe_images', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(334, 'create recipe_images', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(335, 'update recipe_images', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(336, 'delete recipe_images', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(337, 'view roles', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(338, 'create roles', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(339, 'update roles', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(340, 'delete roles', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(341, 'view settings', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(342, 'create settings', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(343, 'update settings', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(344, 'delete settings', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(345, 'view shelves', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(346, 'create shelves', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(347, 'update shelves', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(348, 'delete shelves', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(349, 'view shifts', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(350, 'create shifts', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(351, 'update shifts', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(352, 'delete shifts', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(353, 'view shift_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(354, 'create shift_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(355, 'update shift_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(356, 'delete shift_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(357, 'view sizes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(358, 'create sizes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(359, 'update sizes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(360, 'delete sizes', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 0),
(361, 'view stores', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(362, 'create stores', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(363, 'update stores', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(364, 'delete stores', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(365, 'view store_categories', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(366, 'create store_categories', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(367, 'update store_categories', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(368, 'delete store_categories', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(369, 'view store_transactions', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(370, 'create store_transactions', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(371, 'update store_transactions', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(372, 'delete store_transactions', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(373, 'view store_transaction_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(374, 'create store_transaction_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(375, 'update store_transaction_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(376, 'delete store_transaction_details', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(377, 'view tables', 'admin', '2024-12-16 12:06:19', '2025-01-22 08:37:22', 0),
(378, 'create tables', 'admin', '2024-12-16 12:06:19', '2025-01-22 08:37:31', 0),
(379, 'update tables', 'admin', '2024-12-16 12:06:19', '2025-01-22 08:37:40', 0),
(380, 'delete tables', 'admin', '2024-12-16 12:06:19', '2025-01-22 08:37:52', 0),
(381, 'view table_reservations', 'admin', '2024-12-16 12:06:19', '2025-01-22 08:38:02', 0),
(382, 'create table_reservations', 'admin', '2024-12-16 12:06:19', '2025-01-22 08:38:14', 0),
(383, 'update table_reservations', 'admin', '2024-12-16 12:06:19', '2025-01-22 08:38:23', 0),
(384, 'delete table_reservations', 'admin', '2024-12-16 12:06:19', '2025-01-22 08:38:32', 0),
(385, 'view timetables', 'admin', '2024-12-16 12:06:19', '2024-12-16 12:06:19', 1),
(386, 'create timetables', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 1),
(387, 'update timetables', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 1),
(388, 'delete timetables', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 1),
(389, 'view units', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(390, 'create units', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(391, 'update units', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(392, 'delete units', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(393, 'view users', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(394, 'create users', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(395, 'update users', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(396, 'delete users', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(397, 'view user_gifts', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(398, 'create user_gifts', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(399, 'update user_gifts', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(400, 'delete user_gifts', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(401, 'view vendors', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 1),
(402, 'create vendors', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 1),
(403, 'update vendors', 'admin', '2024-12-16 12:06:20', '2024-12-26 10:46:26', 1),
(404, 'delete vendors', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 1),
(405, 'view logos', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(406, 'create logos', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(407, 'update logos', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(408, 'delete logos', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(409, 'view sliders', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(410, 'create sliders', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(411, 'update sliders', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(412, 'delete sliders', 'admin', '2024-12-16 12:06:20', '2024-12-16 12:06:20', 0),
(413, 'view terms', 'admin', '2024-12-18 09:33:38', '2024-12-18 09:35:32', 0),
(414, 'create terms', 'admin', '2024-12-18 09:36:09', '2024-12-18 09:36:09', 0),
(415, 'update terms', 'admin', '2024-12-18 09:36:34', '2024-12-18 09:36:34', 0),
(416, 'delete terms', 'admin', '2024-12-18 09:37:12', '2024-12-18 09:37:12', 0),
(417, 'view privacies', 'admin', '2024-12-18 09:37:52', '2024-12-18 09:37:52', 0),
(418, 'create privacies', 'admin', '2024-12-18 09:38:09', '2024-12-18 09:38:09', 0),
(419, 'update privacies', 'admin', '2024-12-18 09:38:26', '2024-12-18 09:38:26', 0),
(420, 'delete privacies', 'admin', '2024-12-18 09:38:43', '2024-12-18 09:38:43', 0),
(421, 'view returns', 'admin', '2024-12-18 10:21:32', '2024-12-18 10:21:32', 0),
(422, 'create returns', 'admin', '2024-12-18 10:21:51', '2024-12-18 10:21:51', 0),
(423, 'update returns', 'admin', '2024-12-18 10:22:23', '2024-12-18 10:22:23', 0),
(424, 'delete returns', 'admin', '2024-12-18 10:22:46', '2024-12-18 10:22:46', 0),
(425, 'view discount_dishes', 'admin', '2024-12-23 05:58:29', '2024-12-23 05:58:29', 0),
(426, 'view offerDetails', 'admin', '2024-12-23 10:43:24', '2024-12-23 10:43:24', 0),
(427, 'create offerDetails', 'admin', '2024-12-23 10:44:08', '2024-12-23 10:44:08', 0),
(428, 'update offerDetails', 'admin', '2024-12-23 10:44:25', '2024-12-23 10:44:25', 0),
(429, 'delete offerDetails', 'admin', '2024-12-23 10:44:40', '2024-12-23 10:44:40', 0),
(430, 'create faqs', 'admin', '2024-12-25 09:52:08', '2024-12-25 09:52:08', 0),
(431, 'view faqs', 'admin', '2024-12-25 09:52:32', '2024-12-25 09:52:32', 0),
(432, 'update faqs', 'admin', '2024-12-25 09:52:57', '2024-12-25 09:52:57', 0),
(433, 'delete faqs', 'admin', '2024-12-25 09:54:04', '2024-12-25 09:54:04', 0),
(434, 'view rates', 'admin', '2024-12-25 09:54:38', '2024-12-25 09:54:38', 0),
(435, 'create rates', 'admin', '2024-12-25 09:55:08', '2024-12-25 09:55:08', 0),
(436, 'update rates', 'admin', '2024-12-25 09:55:37', '2024-12-25 09:55:37', 0),
(437, 'delete rates', 'admin', '2024-12-25 09:56:06', '2024-12-25 09:56:06', 0),
(440, 'view branch_menu_categories', 'admin', '2025-01-20 09:57:06', '2025-01-20 09:57:06', 0),
(441, 'view branch_menus', 'admin', '2025-01-20 10:00:25', '2025-01-20 10:00:25', 0),
(442, 'create branch_menus', 'admin', '2025-01-20 10:01:01', '2025-01-20 10:01:01', 0),
(443, 'update branch_menus', 'admin', '2025-01-20 10:01:33', '2025-01-20 10:01:33', 0),
(444, 'delete branch_menus', 'admin', '2025-01-20 10:02:00', '2025-01-20 10:02:00', 0),
(445, 'create branch_menu_categories', 'admin', '2025-01-20 10:02:22', '2025-01-20 10:02:22', 0),
(446, 'update branch_menu_categories', 'admin', '2025-01-20 10:02:43', '2025-01-20 10:02:43', 0),
(447, 'delete branch_menu_categories', 'admin', '2025-01-20 10:03:10', '2025-01-20 10:03:10', 0),
(448, 'view report_best_seller_dishes', 'admin', '2025-01-20 10:08:16', '2025-01-20 10:08:16', 0),
(449, 'view addon_categories', 'admin', '2025-01-20 10:40:32', '2025-01-20 10:40:32', 0),
(450, 'print purchase_invoice', 'admin', '2025-01-20 10:40:55', '2025-01-20 10:40:55', 0),
(451, 'edit addon_categorie', 'admin', '2025-01-20 10:41:44', '2025-01-20 10:41:44', 0),
(452, 'view units_products', 'admin', '2025-01-20 10:43:36', '2025-01-20 10:43:36', 0),
(453, 'delete addon_categories', 'admin', '2025-01-20 10:44:34', '2025-01-20 10:44:34', 0),
(454, 'print advances', 'admin', '2025-01-20 10:45:02', '2025-01-20 10:45:02', 0),
(455, 'print invoice', 'admin', '2025-01-20 10:45:52', '2025-01-20 10:45:52', 0),
(456, 'view addons', 'admin', '2025-01-20 10:47:10', '2025-01-20 10:47:10', 0),
(457, 'view branch_menu_addons', 'admin', '2025-01-20 11:05:45', '2025-01-20 11:05:45', 0),
(458, 'create branch_menu_addons', 'admin', '2025-01-20 11:06:08', '2025-01-20 11:06:08', 0),
(459, 'update branch_menu_addons', 'admin', '2025-01-20 11:06:41', '2025-01-20 11:06:41', 0),
(460, 'delete branch_menu_addons', 'admin', '2025-01-20 11:07:08', '2025-01-20 11:07:08', 0),
(461, 'view branch_menu_sizes', 'admin', '2025-01-20 11:07:30', '2025-01-20 11:07:30', 0),
(462, 'create branch_menu_sizes\'', 'admin', '2025-01-20 11:07:55', '2025-01-20 11:07:55', 0),
(463, 'update branch_menu_sizes', 'admin', '2025-01-20 11:08:14', '2025-01-20 11:08:14', 0),
(464, 'delete branch_menu_sizes', 'admin', '2025-01-20 11:08:34', '2025-01-20 11:08:34', 0),
(465, 'view clients_reports', 'admin', '2025-01-20 11:09:21', '2025-01-20 11:09:21', 0),
(466, 'view purchasing_reports', 'admin', '2025-01-20 11:09:42', '2025-01-20 11:09:42', 0),
(467, 'view report_most_customer_place_order', 'admin', '2025-01-20 11:10:14', '2025-01-20 11:10:14', 0),
(468, 'create order_settings', 'admin', '2025-01-20 11:11:07', '2025-01-20 11:11:07', 0),
(469, 'update order_settings', 'admin', '2025-01-20 11:11:26', '2025-01-20 11:11:26', 0),
(470, 'view order_settings', 'admin', '2025-01-20 11:11:50', '2025-01-20 11:11:50', 0),
(471, 'active branch_menu_categories', 'admin', '2025-01-20 14:57:35', '2025-01-22 10:52:46', 0),
(472, 'active branch_menus', 'admin', '2025-01-20 14:58:45', '2025-01-22 10:52:20', 0),
(473, 'active branch_menu_addons', 'admin', '2025-01-20 14:59:08', '2025-01-22 10:51:09', 0),
(474, 'active branch_menu_sizes', 'admin', '2025-01-20 14:59:37', '2025-01-22 10:51:35', 0),
(475, 'restore addon_categories', 'admin', '2025-01-21 08:28:32', '2025-01-21 08:28:32', 0),
(476, 'print orders', 'admin', '2025-01-21 09:03:23', '2025-01-21 09:03:23', 0),
(477, 'download orders', 'admin', '2025-01-21 09:04:42', '2025-01-21 09:04:42', 0),
(478, 'update addons', 'admin', '2025-01-22 07:41:44', '2025-01-22 07:41:44', 0),
(479, 'delete addons', 'admin', '2025-01-22 07:42:03', '2025-01-22 07:42:03', 0),
(480, 'restore addons', 'admin', '2025-01-22 07:42:24', '2025-01-22 07:42:24', 0),
(481, 'create addons', 'admin', '2025-01-22 07:42:44', '2025-01-22 07:42:44', 0),
(482, 'restore cuisines', 'admin', '2025-01-22 08:21:04', '2025-01-22 08:21:04', 0),
(483, 'print purchase_invoices', 'admin', '2025-01-22 08:35:00', '2025-01-22 08:35:00', 0),
(484, 'import employess', 'admin', '2025-01-22 10:03:36', '2025-01-22 10:03:36', 0),
(485, 'save report_pdf', 'admin', '2025-01-22 10:32:51', '2025-01-22 10:32:51', 0),
(486, 'detail report_orders', 'admin', '2025-01-22 10:36:42', '2025-01-28 11:47:26', 0),
(487, 'view branch_menu_category_addons', 'admin', '2025-01-26 09:11:36', '2025-01-26 09:11:36', 0),
(488, 'create branch_menu_category_addons', 'admin', '2025-01-26 09:12:26', '2025-01-26 09:12:26', 0),
(489, 'update branch_menu_category_addons', 'admin', '2025-01-26 09:12:53', '2025-01-26 09:12:53', 0),
(490, 'changestatus branch_menu_category_addons', 'admin', '2025-01-26 09:13:42', '2025-01-26 09:13:42', 0),
(491, 'detail report_best_seller_dishes', 'admin', '2025-01-27 14:15:04', '2025-01-27 14:15:04', 0),
(492, 'view report_branches', 'admin', '2025-01-27 14:21:16', '2025-01-27 14:21:16', 0),
(493, 'detail report_branches', 'admin', '2025-01-27 14:22:42', '2025-01-27 14:22:42', 0),
(494, 'view report_orders', 'admin', '2025-01-28 11:53:06', '2025-01-28 11:53:06', 0);

-- --------------------------------------------------------

--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint UNSIGNED NOT NULL,
  `tokenable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL 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 `point_products`
--

CREATE TABLE `point_products` (
  `id` bigint UNSIGNED NOT NULL,
  `dish_id` bigint UNSIGNED NOT NULL,
  `point_num` int NOT NULL,
  `value` decimal(10,2) NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '1',
  `expire` date NOT NULL,
  `vendor_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 `point_systems`
--

CREATE TABLE `point_systems` (
  `id` bigint UNSIGNED NOT NULL,
  `type_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `value_redeem` decimal(10,2) DEFAULT NULL,
  `active` int NOT NULL DEFAULT '1' COMMENT '1 = active, 0 = inactive',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `value_earn` decimal(10,2) DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `point_redeem` decimal(10,2) DEFAULT NULL,
  `branch_id` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `point_systems`
--

INSERT INTO `point_systems` (`id`, `type_en`, `type_ar`, `value_redeem`, `active`, `created_at`, `updated_at`, `value_earn`, `created_by`, `modified_by`, `deleted_by`, `deleted_at`, `point_redeem`, `branch_id`) VALUES
(2, 'total of order value', 'بأجمالى الفاتوره', NULL, 1, '2025-01-08 06:18:54', '2025-01-08 06:18:54', 1.00, NULL, NULL, NULL, NULL, 1.00, NULL),
(3, 'total of order value', 'بأجمالى الفاتوره', NULL, 1, '2025-01-08 06:19:09', '2025-01-08 06:19:09', 1.00, NULL, NULL, NULL, NULL, 1.00, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `point_transactions`
--

CREATE TABLE `point_transactions` (
  `id` bigint UNSIGNED NOT NULL,
  `customer_id` bigint UNSIGNED NOT NULL,
  `order_id` bigint UNSIGNED DEFAULT NULL,
  `type` enum('earn','redeem') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `points` int NOT NULL,
  `amount` decimal(10,2) DEFAULT NULL,
  `transaction_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `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;

-- --------------------------------------------------------

--
-- Table structure for table `positions`
--

CREATE TABLE `positions` (
  `id` bigint UNSIGNED NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `department_id` bigint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `privacy_policies`
--

CREATE TABLE `privacy_policies` (
  `id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `privacy_policies`
--

INSERT INTO `privacy_policies` (`id`, `name_ar`, `name_en`, `description_ar`, `description_en`, `created_by`, `modified_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `active`) VALUES
('11cf3bde-805d-41b9-9619-b73f582c74b2', 'المعلومات التي نجمعها', 'Information We Collect', '<p>معلومات الاتصال: على سبيل المثال، قد نجمع اسمك وعنوان شارعك. قد نجمع أيضًا رقم هاتفك أو عنوان بريدك الإلكتروني. معلومات الدفع: على سبيل المثال، قد نجمع معلومات بطاقتك الائتمانية عند إجراء عملية شراء</p>', '<p>Contact information: For example, we may collect your name and street address. We may also collect your phone number or email address. Payment information: For example, we may collect your credit card information when you make a purchase</p>', 1, 9, NULL, '2024-12-18 09:40:40', '2025-01-21 12:04:41', NULL, 1),
('597316c1-0bea-4c3f-b0af-d76b15941b06', 'سياسة الخصوصية 2', 'Privacy Policy 2', '<p>وصف سياسة الخصوصية 2</p>', '<p>Privacy Policy Description 2</p>', 1, 9, NULL, '2024-12-22 11:26:51', '2025-01-15 09:16:55', NULL, 0),
('a12c5e30-ff66-4d9c-939e-ce793fa14e72', 'j', 'Term 3', '<p>&nbsp;j</p>', '<p>h</p>', 1, 1, NULL, '2024-12-24 08:31:57', '2024-12-24 08:32:24', '2024-12-24 08:32:24', 0),
('ca021e2d-401c-43c2-8499-bd9648d2ad72', 'سياسة الخصوصية 2', 'Privacy policy 2', '<p>وصف</p>', '<p>description</p>', 1, 1, NULL, '2024-12-22 11:12:08', '2024-12-22 11:25:40', '2024-12-22 11:25:40', 0);

-- --------------------------------------------------------

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint UNSIGNED NOT NULL,
  `brand_id` bigint UNSIGNED DEFAULT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `main_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` enum('complete','raw') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `main_unit_id` bigint UNSIGNED NOT NULL,
  `currency_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `category_id` bigint UNSIGNED NOT NULL,
  `is_valid` tinyint(1) NOT NULL DEFAULT '1',
  `sku` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `barcode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_remind` tinyint(1) NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `is_have_expired` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `products`
--

INSERT INTO `products` (`id`, `brand_id`, `name_ar`, `name_en`, `description_ar`, `description_en`, `main_image`, `type`, `main_unit_id`, `currency_code`, `category_id`, `is_valid`, `sku`, `barcode`, `code`, `is_remind`, `created_by`, `modify_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `is_have_expired`) VALUES
(19, 7, 'منتج 1', 'product1', 'منتج 1', 'product 1', 'https://erpsystem.testdomain100.online/images/brands/81736413641.png', 'raw', 16, 'EGP', 4, 1, '123', '123', '0000', 1, 1, NULL, NULL, '2025-01-08 10:01:43', '2025-01-09 07:57:35', '2025-01-09 07:57:35', 1),
(20, 7, 'مياه', 'water', NULL, NULL, 'https://erpsystem.testdomain100.online/images/products/211736413248.png', 'complete', 16, 'EGP', 5, 1, '141', '141', '0001', 1, 1, NULL, NULL, '2025-01-08 12:11:55', '2025-01-13 10:52:19', '2025-01-13 10:52:19', 1),
(21, 7, 'منتج 1', 'Product 1', 'وصف منتج 1', 'description of product 1', 'https://erpsystem.testdomain100.online/images/products/211736413248.png', 'raw', 16, 'EUR', 1, 1, '123', '123', '0002', 1, 9, NULL, NULL, '2025-01-09 08:00:48', '2025-01-14 10:46:36', NULL, 1),
(22, 7, 'منتج 2', 'Product 2', 'وصف منتج 2', 'description of product 2', 'https://erpsystem.testdomain100.online/images/products/221736750559.png', 'complete', 16, 'USD', 3, 1, '2', '2', '0003', 1, 9, NULL, NULL, '2025-01-13 05:41:45', '2025-01-13 10:56:35', '2025-01-13 10:56:35', 1),
(23, 7, 'new', 'new', 'Part-Time', 'Part-Time', 'https://erpsystem.testdomain100.online/images/products/231736769464.png', 'raw', 16, 'MXN', 1, 1, 'aa', 'Part-Time', '0004', 1, 9, NULL, NULL, '2025-01-13 10:57:44', '2025-01-13 11:02:28', '2025-01-13 11:02:28', 1),
(24, 7, 'new', 'new', NULL, NULL, 'https://erpsystem.testdomain100.online/images/products/241736770012.png', 'complete', 16, 'MXN', 2, 1, 'cc', 'mm', '0005', 1, 9, NULL, NULL, '2025-01-13 11:06:51', '2025-01-13 11:07:28', '2025-01-13 13:22:29', 1),
(25, 7, 'منتج 2', 'product 2', 'وصف', 'description', 'https://erpsystem.testdomain100.online/images/products/251736855086.png', 'complete', 16, 'USD', 3, 1, '1234', '1234', '0006', 1, 9, NULL, NULL, '2025-01-14 10:44:46', '2025-01-14 10:44:46', NULL, 1),
(26, 7, 'new', 'new', '21', '21', 'https://erpsystem.testdomain100.online/images/products/261736939290.png', 'raw', 16, 'KWD', 1, 1, '21', '21', '0007', 1, 9, NULL, NULL, '2025-01-15 12:08:10', '2025-01-15 12:08:10', NULL, 1);

-- --------------------------------------------------------

--
-- Table structure for table `product_colors`
--

CREATE TABLE `product_colors` (
  `id` bigint UNSIGNED NOT NULL,
  `color_id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_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 `product_colors`
--

INSERT INTO `product_colors` (`id`, `color_id`, `product_id`, `deleted_by`, `created_by`, `modify_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(5, 2, 19, NULL, 9, NULL, '2025-01-09 07:41:31', '2025-01-09 07:41:31', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `product_images`
--

CREATE TABLE `product_images` (
  `id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `modify_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 `product_limit`
--

CREATE TABLE `product_limit` (
  `id` bigint UNSIGNED NOT NULL,
  `min_limit` decimal(8,2) NOT NULL,
  `max_limit` decimal(8,2) NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `store_id` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_limit`
--

INSERT INTO `product_limit` (`id`, `min_limit`, `max_limit`, `product_id`, `created_at`, `updated_at`, `store_id`) VALUES
(16, 1.00, 2.00, 19, '2025-01-08 10:01:43', '2025-01-08 10:01:43', NULL),
(17, 1.00, 3.00, 20, '2025-01-08 12:11:55', '2025-01-08 12:11:55', NULL),
(18, 1.00, 2.00, 21, '2025-01-09 08:00:48', '2025-01-09 08:00:48', NULL),
(19, 1.00, 5.00, 22, '2025-01-13 05:41:45', '2025-01-13 05:41:45', NULL),
(20, 10.00, 20.00, 23, '2025-01-13 10:57:44', '2025-01-13 10:57:44', NULL),
(21, 10.00, 20.00, 24, '2025-01-13 11:06:52', '2025-01-13 11:06:52', NULL),
(22, 1.00, 3.00, 25, '2025-01-14 10:44:46', '2025-01-14 10:44:46', NULL),
(23, 1.00, 21.00, 26, '2025-01-15 12:08:10', '2025-01-15 12:08:10', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `product_sizes`
--

CREATE TABLE `product_sizes` (
  `id` bigint UNSIGNED NOT NULL,
  `size_id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `code_size` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `modify_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 `product_sizes`
--

INSERT INTO `product_sizes` (`id`, `size_id`, `product_id`, `code_size`, `created_by`, `deleted_by`, `modify_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(4, 7, 19, '1', 9, NULL, NULL, '2025-01-09 07:41:22', '2025-01-09 07:41:22', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `product_transactions`
--

CREATE TABLE `product_transactions` (
  `id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `store_id` bigint UNSIGNED NOT NULL,
  `product_size_id` bigint UNSIGNED DEFAULT NULL,
  `product_color_id` bigint UNSIGNED DEFAULT NULL,
  `count` int NOT NULL,
  `expired_date` date DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_transaction_logs`
--

CREATE TABLE `product_transaction_logs` (
  `id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `store_id` bigint UNSIGNED NOT NULL,
  `product_size_id` bigint UNSIGNED DEFAULT NULL,
  `product_color_id` bigint UNSIGNED DEFAULT NULL,
  `count` double(8,2) NOT NULL,
  `expired_date` date DEFAULT NULL,
  `model_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `type` enum('1','2') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 for outgoing, 2 for incoming',
  `order_id` int DEFAULT NULL,
  `transaction_type` int DEFAULT '1' COMMENT '1 order, 2 refund order, 3 purchase, 4 refund purchase',
  `order_details_id` int DEFAULT NULL,
  `order_type` int DEFAULT '1' COMMENT '1 product, 2 dish, 3 addon',
  `created_by` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_units`
--

CREATE TABLE `product_units` (
  `id` bigint UNSIGNED NOT NULL,
  `unit_id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `factor` double(8,2) NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modify_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `product_units`
--

INSERT INTO `product_units` (`id`, `unit_id`, `product_id`, `factor`, `created_by`, `modify_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(4, 16, 19, 4.00, 1, NULL, NULL, '2025-01-08 10:02:00', '2025-01-08 10:02:00', NULL),
(5, 16, 21, 2.00, 1, NULL, NULL, '2025-01-13 09:54:30', '2025-01-13 09:54:30', NULL),
(6, 16, 22, 1.00, 9, NULL, NULL, '2025-01-13 10:51:43', '2025-01-13 10:51:43', NULL),
(7, 16, 23, 1.00, 9, NULL, NULL, '2025-01-13 11:01:36', '2025-01-13 11:01:36', NULL),
(8, 16, 24, 1.00, 9, NULL, NULL, '2025-01-13 11:07:09', '2025-01-13 11:07:09', NULL),
(9, 16, 25, 1.00, 9, NULL, NULL, '2025-01-14 10:45:03', '2025-01-14 10:45:03', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `purchase_invoices`
--

CREATE TABLE `purchase_invoices` (
  `id` bigint UNSIGNED NOT NULL,
  `Date` date NOT NULL,
  `invoice_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `vendor_id` bigint UNSIGNED NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:Purchase, 1:Refund',
  `store_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `purchase_invoices_details`
--

CREATE TABLE `purchase_invoices_details` (
  `id` bigint UNSIGNED NOT NULL,
  `purchase_invoices_id` bigint UNSIGNED NOT NULL,
  `category_id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `unit_id` bigint UNSIGNED NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `total_price` decimal(15,2) GENERATED ALWAYS AS ((`price` * `quantity`)) VIRTUAL,
  `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 `rates`
--

CREATE TABLE `rates` (
  `id` bigint UNSIGNED NOT NULL,
  `value` int NOT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `active` tinyint(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rates`
--

INSERT INTO `rates` (`id`, `value`, `note`, `created_by`, `modified_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `active`) VALUES
(10, 5, NULL, 1, NULL, NULL, '2025-01-08 12:18:45', '2025-01-08 12:18:45', NULL, 1);

-- --------------------------------------------------------

--
-- Table structure for table `recipes`
--

CREATE TABLE `recipes` (
  `id` bigint UNSIGNED NOT NULL,
  `meal_type` enum('breakfast','lunch','dinner','snack','dessert') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'lunch',
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `type` tinyint NOT NULL DEFAULT '1' COMMENT '1: Recipe, 2: Addon',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `recipes`
--

INSERT INTO `recipes` (`id`, `meal_type`, `name_en`, `name_ar`, `description_en`, `description_ar`, `type`, `is_active`, `created_by`, `modified_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`, `code`) VALUES
(15, 'lunch', 'extra cheese', 'اضافه جبنه', NULL, NULL, 2, 1, 1, 67, NULL, NULL, '2025-01-08 11:50:21', '2025-01-21 07:50:01', '0001'),
(16, 'lunch', 'sauce', 'اضافه صوص', NULL, NULL, 2, 1, 1, 9, NULL, NULL, '2025-01-08 11:51:38', '2025-01-13 10:52:52', '0002'),
(17, 'lunch', 'pizza', 'بيتزا', NULL, NULL, 1, 1, 1, 67, NULL, NULL, '2025-01-08 11:52:17', '2025-01-21 07:49:48', '0003'),
(18, 'lunch', 'onion rings', 'اضافة حلقات بصل', 'description', 'وصف', 2, 1, 9, 9, NULL, NULL, '2025-01-09 08:03:53', '2025-01-21 11:04:18', '0004'),
(19, 'lunch', 'add on 3', 'اضافة حلقات بصل', NULL, NULL, 2, 1, 9, NULL, 9, '2025-01-09 08:37:58', '2025-01-09 08:04:04', '2025-01-09 08:37:58', '0005'),
(20, 'lunch', 'add on 3', 'اضافة حلقات بصل', NULL, NULL, 2, 1, 9, NULL, 9, '2025-01-09 08:38:04', '2025-01-09 08:04:15', '2025-01-09 08:38:04', '0006'),
(21, 'lunch', 'add on 3', 'اضافة حلقات بصل', NULL, NULL, 2, 1, 9, NULL, 9, '2025-01-09 08:38:11', '2025-01-09 08:04:59', '2025-01-09 08:38:11', '0007'),
(22, 'lunch', 'new', 'new', 'new', 'new', 2, 1, 9, 9, 9, '2025-01-13 10:56:27', '2025-01-13 05:43:34', '2025-01-13 10:56:27', '0008'),
(29, 'lunch', 'yy', 'ii', NULL, NULL, 1, 1, 1, 1, NULL, NULL, '2025-01-13 09:55:08', '2025-01-22 13:10:15', '0009'),
(30, 'lunch', 'new', 'new', NULL, NULL, 1, 1, 9, 9, 9, '2025-01-13 10:57:05', '2025-01-13 10:52:04', '2025-01-13 10:57:05', '0010'),
(32, 'lunch', 'new', 'new', NULL, NULL, 1, 1, 9, NULL, 9, '2025-01-13 11:02:15', '2025-01-13 11:01:48', '2025-01-13 11:02:15', '0011'),
(33, 'lunch', 'new', 'new', NULL, NULL, 1, 1, 9, 9, NULL, NULL, '2025-01-13 11:07:39', '2025-01-14 11:01:50', '0012'),
(34, 'lunch', 'spicy', 'حار', 'desc', 'وصف', 2, 1, 9, 1, NULL, NULL, '2025-01-14 10:59:26', '2025-01-22 11:30:43', '0013'),
(35, 'lunch', 'new', 'new', NULL, NULL, 2, 1, 9, 9, 9, '2025-01-19 10:38:34', '2025-01-15 12:09:07', '2025-01-19 10:38:34', '0014'),
(36, 'lunch', 'water', 'ماء', NULL, NULL, 1, 1, 1, NULL, NULL, NULL, '2025-01-15 15:18:17', '2025-01-15 15:18:17', '0015'),
(37, 'lunch', 'water', 'مياة', NULL, NULL, 1, 1, 1, 1, NULL, NULL, '2025-01-16 12:11:10', '2025-01-22 13:10:46', '0016'),
(38, 'lunch', 'a', 'a', NULL, NULL, 1, 1, 9, NULL, 9, '2025-01-20 13:54:01', '2025-01-19 10:39:21', '2025-01-20 13:54:01', '0017'),
(39, 'lunch', 'Stacy Kent', 'Liberty Lynn', NULL, NULL, 1, 0, 1, NULL, 1, '2025-01-19 14:57:47', '2025-01-19 14:41:51', '2025-01-19 14:57:47', '0018'),
(40, 'lunch', 'aaa', 'a', 'a', NULL, 2, 1, 9, 9, 9, '2025-01-20 13:44:06', '2025-01-20 13:43:37', '2025-01-20 13:44:06', '0019'),
(41, 'lunch', 'a', 'a', NULL, NULL, 1, 1, 9, NULL, 9, '2025-01-20 13:54:23', '2025-01-20 13:53:56', '2025-01-20 13:54:23', '0020'),
(42, 'lunch', 'a', 'a', NULL, NULL, 1, 1, 9, 9, 9, '2025-01-21 12:09:09', '2025-01-21 12:08:37', '2025-01-21 12:09:09', '0021'),
(43, 'lunch', 'Stella Cash', 'Xantha Warren', 'Velit eos do offic', 'Rerum veritatis expe', 2, 1, 1, NULL, 1, '2025-01-22 11:29:49', '2025-01-22 11:29:42', '2025-01-22 11:29:49', '0022'),
(44, 'lunch', 'Fredericka Smith', 'Salvador Guthrie', 'yy', 'uu', 2, 0, 1, 1, 1, '2025-01-22 12:13:46', '2025-01-22 11:32:56', '2025-01-22 12:13:46', '0023'),
(45, 'lunch', 'Anne Church', 'Iona Patrick', NULL, NULL, 2, 0, 1, NULL, 1, '2025-01-22 11:37:42', '2025-01-22 11:33:02', '2025-01-22 11:37:42', '0024'),
(46, 'lunch', 'Anne Church', 'Iona Patrick', NULL, NULL, 2, 0, 1, NULL, 1, '2025-01-22 11:37:39', '2025-01-22 11:33:05', '2025-01-22 11:37:39', '0025'),
(47, 'lunch', 'Anne Church', 'Iona Patrick', 'tt', 'jj', 2, 0, 1, NULL, 1, '2025-01-22 11:37:35', '2025-01-22 11:33:14', '2025-01-22 11:37:35', '0026'),
(48, 'lunch', 'Natalie Sharpe', 'Philip Suarez', 'Repudiandae consequa', 'Unde cupiditate numq', 2, 1, 1, 1, 1, '2025-01-22 12:13:42', '2025-01-22 12:12:25', '2025-01-22 12:13:42', '0027'),
(49, 'lunch', 'Jermaine Bright', 'Paul Rivas', 'Praesentium quas fug', 'Autem in duis deseru', 2, 1, 1, NULL, 1, '2025-01-22 12:13:59', '2025-01-22 12:13:54', '2025-01-22 12:13:59', '0028'),
(50, 'lunch', 'Yael Santana', 'Vivien Greer', 'bbbbbbbbbb', 'aaaaaaaaa', 2, 1, 1, 9, 9, '2025-01-26 14:17:41', '2025-01-22 13:09:18', '2025-01-26 14:17:41', '0029'),
(51, 'lunch', 'Quinlan Ayala', 'Brielle Holt', 'rr', 'yy', 1, 1, 1, NULL, 1, '2025-01-22 13:38:29', '2025-01-22 13:25:57', '2025-01-22 13:38:29', '0030'),
(52, 'lunch', 'new', 'new', 'aa', 'aa', 1, 1, 9, NULL, 9, '2025-01-27 14:34:51', '2025-01-26 11:24:09', '2025-01-27 14:34:51', '0031'),
(54, 'lunch', 'test', 'test', 'aa', 'aa', 1, 1, 9, NULL, 9, '2025-01-27 14:34:46', '2025-01-26 11:27:52', '2025-01-27 14:34:46', '0032'),
(55, 'lunch', 'aa', 'aa', 'aa', 'aa', 1, 1, 9, NULL, 9, '2025-01-29 08:50:51', '2025-01-29 08:49:42', '2025-01-29 08:50:51', '0033'),
(56, 'lunch', 'Kasper Carter', 'Yolanda Holcomb', 'Dolor ex quo lorem q', 'Nisi dolorem nulla s', 1, 1, 1, NULL, NULL, NULL, '2025-01-29 13:01:07', '2025-01-29 13:01:07', NULL),
(57, 'lunch', 'Hunter Carson', 'Ruby Cline', 'Sed eum consequatur', 'Nostrum quidem volup', 1, 1, 1, NULL, NULL, NULL, '2025-01-29 14:09:39', '2025-01-29 14:09:39', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `recipe_images`
--

CREATE TABLE `recipe_images` (
  `id` bigint UNSIGNED NOT NULL,
  `recipe_id` bigint UNSIGNED NOT NULL,
  `image_path` varchar(255) CHARACTER SET utf8mb4 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 `recipe_images`
--

INSERT INTO `recipe_images` (`id`, `recipe_id`, `image_path`, `created_at`, `updated_at`) VALUES
(5, 15, 'images/addons/dish.jpg', '2025-01-08 11:50:21', '2025-01-08 11:50:21'),
(6, 17, 'images/recipes/677e83117a983_dish.jpg', '2025-01-08 11:52:17', '2025-01-08 11:52:17'),
(8, 33, 'images/recipes/logo-with-white-bg.png', '2025-01-15 13:00:11', '2025-01-15 13:00:11'),
(9, 36, 'images/addons/1.PNG', '2025-01-15 15:18:17', '2025-01-15 15:18:17'),
(10, 37, 'images/addons/images.jpg', '2025-01-16 12:11:10', '2025-01-16 12:11:10');

-- --------------------------------------------------------

--
-- Table structure for table `return_policies`
--

CREATE TABLE `return_policies` (
  `id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `return_policies`
--

INSERT INTO `return_policies` (`id`, `name_ar`, `name_en`, `description_ar`, `description_en`, `created_by`, `modified_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `active`) VALUES
('8c50e350-f541-4a98-bbbd-7c797b43d02e', 'سياسة الاسترجاع 2', 'Return Policy 2', '<p>وصف سياسة الاسترجاع 2</p>', '<p>Return Policy Description 2</p>', 1, 9, NULL, '2024-12-22 11:28:15', '2024-12-31 12:47:00', NULL, 1),
('ae1aafd9-d966-4658-ba6b-aac5161622f3', 'سياسة الاسترجاع 1', 'Return Policy 1', '<p>وصف سياسة الاسترجاع 1</p>', '<p>Return Policy Description 1</p>', 1, 9, NULL, '2024-12-18 10:24:16', '2024-12-31 12:47:08', NULL, 1);

-- --------------------------------------------------------

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(255) CHARACTER SET utf8mb4 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`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'superAdmin', 'admin', '2025-01-08 06:16:27', '2025-01-08 06:16:27'),
(2, 'LocalWork Admin', 'admin', '2025-01-08 06:16:27', '2025-01-08 06:16:27'),
(3, 'Branch Manager', 'admin', '2025-01-08 07:22:55', '2025-01-08 07:22:55'),
(4, 'Kitchen Manager', 'admin', '2025-01-21 09:47:21', '2025-01-21 09:47:21');

-- --------------------------------------------------------

--
-- 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),
(5, 1),
(21, 1),
(22, 1),
(23, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 1),
(29, 1),
(30, 1),
(31, 1),
(32, 1),
(33, 1),
(34, 1),
(35, 1),
(36, 1),
(37, 1),
(38, 1),
(39, 1),
(40, 1),
(49, 1),
(50, 1),
(51, 1),
(52, 1),
(53, 1),
(54, 1),
(55, 1),
(56, 1),
(57, 1),
(58, 1),
(59, 1),
(60, 1),
(61, 1),
(62, 1),
(63, 1),
(64, 1),
(65, 1),
(66, 1),
(67, 1),
(68, 1),
(69, 1),
(70, 1),
(71, 1),
(72, 1),
(73, 1),
(74, 1),
(75, 1),
(76, 1),
(93, 1),
(94, 1),
(95, 1),
(96, 1),
(97, 1),
(98, 1),
(99, 1),
(100, 1),
(101, 1),
(102, 1),
(103, 1),
(104, 1),
(105, 1),
(106, 1),
(107, 1),
(108, 1),
(109, 1),
(110, 1),
(111, 1),
(112, 1),
(113, 1),
(114, 1),
(115, 1),
(116, 1),
(117, 1),
(118, 1),
(119, 1),
(120, 1),
(125, 1),
(126, 1),
(127, 1),
(128, 1),
(129, 1),
(130, 1),
(131, 1),
(132, 1),
(133, 1),
(134, 1),
(135, 1),
(136, 1),
(137, 1),
(138, 1),
(139, 1),
(140, 1),
(153, 1),
(156, 1),
(157, 1),
(158, 1),
(159, 1),
(160, 1),
(161, 1),
(162, 1),
(163, 1),
(164, 1),
(165, 1),
(166, 1),
(167, 1),
(168, 1),
(169, 1),
(170, 1),
(171, 1),
(172, 1),
(173, 1),
(174, 1),
(175, 1),
(176, 1),
(197, 1),
(198, 1),
(199, 1),
(200, 1),
(205, 1),
(206, 1),
(207, 1),
(208, 1),
(217, 1),
(218, 1),
(219, 1),
(220, 1),
(221, 1),
(222, 1),
(223, 1),
(224, 1),
(225, 1),
(226, 1),
(227, 1),
(228, 1),
(229, 1),
(230, 1),
(231, 1),
(232, 1),
(233, 1),
(234, 1),
(235, 1),
(236, 1),
(237, 1),
(238, 1),
(239, 1),
(240, 1),
(241, 1),
(242, 1),
(243, 1),
(244, 1),
(285, 1),
(286, 1),
(287, 1),
(288, 1),
(289, 1),
(290, 1),
(291, 1),
(292, 1),
(293, 1),
(294, 1),
(295, 1),
(296, 1),
(297, 1),
(298, 1),
(299, 1),
(300, 1),
(301, 1),
(302, 1),
(303, 1),
(304, 1),
(305, 1),
(306, 1),
(307, 1),
(308, 1),
(309, 1),
(310, 1),
(311, 1),
(312, 1),
(313, 1),
(314, 1),
(315, 1),
(316, 1),
(317, 1),
(318, 1),
(319, 1),
(320, 1),
(329, 1),
(330, 1),
(331, 1),
(332, 1),
(333, 1),
(334, 1),
(335, 1),
(336, 1),
(337, 1),
(339, 1),
(340, 1),
(341, 1),
(342, 1),
(343, 1),
(344, 1),
(357, 1),
(358, 1),
(359, 1),
(360, 1),
(377, 1),
(378, 1),
(379, 1),
(380, 1),
(381, 1),
(382, 1),
(383, 1),
(384, 1),
(389, 1),
(390, 1),
(391, 1),
(392, 1),
(393, 1),
(394, 1),
(395, 1),
(396, 1),
(397, 1),
(398, 1),
(399, 1),
(400, 1),
(405, 1),
(406, 1),
(407, 1),
(408, 1),
(409, 1),
(410, 1),
(411, 1),
(412, 1),
(413, 1),
(414, 1),
(415, 1),
(416, 1),
(417, 1),
(418, 1),
(419, 1),
(420, 1),
(421, 1),
(422, 1),
(423, 1),
(424, 1),
(425, 1),
(426, 1),
(427, 1),
(428, 1),
(429, 1),
(430, 1),
(431, 1),
(432, 1),
(433, 1),
(434, 1),
(435, 1),
(436, 1),
(437, 1),
(440, 1),
(441, 1),
(442, 1),
(443, 1),
(444, 1),
(445, 1),
(446, 1),
(447, 1),
(448, 1),
(449, 1),
(450, 1),
(451, 1),
(452, 1),
(453, 1),
(454, 1),
(455, 1),
(456, 1),
(457, 1),
(458, 1),
(459, 1),
(460, 1),
(461, 1),
(462, 1),
(463, 1),
(464, 1),
(465, 1),
(466, 1),
(467, 1),
(468, 1),
(469, 1),
(470, 1),
(471, 1),
(472, 1),
(473, 1),
(474, 1),
(475, 1),
(476, 1),
(477, 1),
(478, 1),
(479, 1),
(480, 1),
(481, 1),
(482, 1),
(483, 1),
(484, 1),
(485, 1),
(486, 1),
(487, 1),
(488, 1),
(489, 1),
(490, 1),
(1, 2),
(5, 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),
(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),
(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),
(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),
(153, 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),
(197, 2),
(198, 2),
(199, 2),
(200, 2),
(205, 2),
(206, 2),
(207, 2),
(208, 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),
(269, 2),
(270, 2),
(271, 2),
(272, 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),
(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),
(357, 2),
(358, 2),
(359, 2),
(360, 2),
(377, 2),
(378, 2),
(379, 2),
(380, 2),
(381, 2),
(382, 2),
(383, 2),
(384, 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),
(405, 2),
(406, 2),
(407, 2),
(408, 2),
(409, 2),
(410, 2),
(411, 2),
(412, 2),
(413, 2),
(414, 2),
(415, 2),
(416, 2),
(417, 2),
(418, 2),
(419, 2),
(420, 2),
(421, 2),
(422, 2),
(423, 2),
(424, 2),
(425, 2),
(426, 2),
(427, 2),
(428, 2),
(429, 2),
(430, 2),
(431, 2),
(432, 2),
(433, 2),
(434, 2),
(435, 2),
(436, 2),
(437, 2),
(440, 2),
(441, 2),
(442, 2),
(443, 2),
(444, 2),
(445, 2),
(446, 2),
(447, 2),
(448, 2),
(449, 2),
(450, 2),
(451, 2),
(452, 2),
(453, 2),
(454, 2),
(455, 2),
(456, 2),
(457, 2),
(458, 2),
(459, 2),
(460, 2),
(461, 2),
(462, 2),
(463, 2),
(464, 2),
(465, 2),
(466, 2),
(467, 2),
(468, 2),
(469, 2),
(470, 2),
(471, 2),
(472, 2),
(473, 2),
(474, 2),
(475, 2),
(476, 2),
(477, 2),
(478, 2),
(479, 2),
(480, 2),
(481, 2),
(482, 2),
(483, 2),
(484, 2),
(485, 2),
(486, 2),
(487, 2),
(488, 2),
(489, 2),
(490, 2),
(491, 2),
(492, 2),
(493, 2),
(494, 2),
(1, 3),
(21, 3),
(23, 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),
(69, 3),
(70, 3),
(71, 3),
(72, 3),
(169, 3),
(170, 3),
(171, 3),
(172, 3),
(205, 3),
(206, 3),
(207, 3),
(208, 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),
(237, 3),
(238, 3),
(239, 3),
(240, 3),
(241, 3),
(242, 3),
(243, 3),
(244, 3),
(329, 3),
(330, 3),
(331, 3),
(332, 3),
(333, 3),
(334, 3),
(335, 3),
(336, 3),
(397, 3),
(398, 3),
(399, 3),
(400, 3),
(425, 3),
(426, 3),
(427, 3),
(428, 3),
(429, 3),
(434, 3),
(435, 3),
(436, 3),
(437, 3),
(440, 3),
(441, 3),
(442, 3),
(443, 3),
(444, 3),
(445, 3),
(446, 3),
(447, 3),
(448, 3),
(457, 3),
(458, 3),
(459, 3),
(460, 3),
(461, 3),
(462, 3),
(463, 3),
(464, 3),
(465, 3),
(466, 3),
(467, 3),
(471, 3),
(472, 3),
(473, 3),
(474, 3),
(476, 3),
(477, 3),
(1, 4),
(33, 4),
(34, 4),
(35, 4),
(36, 4),
(49, 4),
(50, 4),
(51, 4),
(52, 4),
(73, 4),
(74, 4),
(75, 4),
(76, 4),
(101, 4),
(102, 4),
(103, 4),
(104, 4),
(105, 4),
(106, 4),
(107, 4),
(108, 4),
(109, 4),
(110, 4),
(111, 4),
(112, 4),
(113, 4),
(114, 4),
(115, 4),
(116, 4),
(329, 4),
(330, 4),
(331, 4),
(332, 4),
(333, 4),
(334, 4),
(335, 4),
(336, 4),
(482, 4);

-- --------------------------------------------------------

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` bigint UNSIGNED NOT NULL,
  `stock_transfer_method` enum('First In First Out','Last In First Out') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'First In First Out',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `tax_application` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:tax not included, 1:tax included',
  `tax_percentage` decimal(5,2) NOT NULL DEFAULT '0.00',
  `pricing_method` enum('original_price','avg_price','new_price') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'avg_price',
  `service_fees` decimal(10,2) NOT NULL DEFAULT '0.00',
  `coupon_application` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:before tax, 1:after tax',
  `store_use` tinyint(1) NOT NULL DEFAULT '0',
  `withdrawal_store` int DEFAULT '1' COMMENT '1 manual, 2 automatic',
  `reservation_time` int DEFAULT '0',
  `reservation_time_type` int DEFAULT '1' COMMENT '1 for moment, 2 for day',
  `hotline` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `time_cancellation` int DEFAULT NULL,
  `closing_cashier` int NOT NULL DEFAULT '0' COMMENT '0 not closing, 1 closing',
  `transgression_leave_type` int DEFAULT '1' COMMENT '1 for day, 2 for money',
  `transgression_leave` int DEFAULT '0',
  `delivery_time` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `stock_transfer_method`, `created_at`, `updated_at`, `tax_application`, `tax_percentage`, `pricing_method`, `service_fees`, `coupon_application`, `store_use`, `withdrawal_store`, `reservation_time`, `reservation_time_type`, `hotline`, `time_cancellation`, `closing_cashier`, `transgression_leave_type`, `transgression_leave`, `delivery_time`) VALUES
(1, 'First In First Out', NULL, NULL, 0, 14.00, 'avg_price', 14.00, 0, 0, 1, 0, 1, NULL, NULL, 0, 1, 0, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `shelves`
--

CREATE TABLE `shelves` (
  `id` bigint UNSIGNED NOT NULL,
  `division_id` bigint UNSIGNED NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `shifts`
--

CREATE TABLE `shifts` (
  `id` bigint UNSIGNED NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `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;

-- --------------------------------------------------------

--
-- Table structure for table `shift_details`
--

CREATE TABLE `shift_details` (
  `id` bigint UNSIGNED NOT NULL,
  `shift_id` bigint UNSIGNED NOT NULL,
  `timetable_id` bigint UNSIGNED NOT NULL,
  `day_index` tinyint NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `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;

-- --------------------------------------------------------

--
-- Table structure for table `sizes`
--

CREATE TABLE `sizes` (
  `id` bigint UNSIGNED NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `category_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sizes`
--

INSERT INTO `sizes` (`id`, `name_ar`, `name_en`, `category_id`, `created_at`, `updated_at`, `deleted_at`, `created_by`, `deleted_by`, `modified_by`) VALUES
(7, 'صغير جدا', 'XS', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(8, 'صغير', 'S', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(9, 'متوسط', 'M', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(10, 'كبير', 'L', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(11, 'كبير جدا', 'XL', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(12, 'كبير جدا جدا', 'XXL', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(13, '36', '36', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(14, '37', '37', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(15, '38', '38', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(16, '39', '39', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(17, '40', '40', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(18, '41', '41', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(19, '41', '41', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(20, '43', '43', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(21, '44', '44', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(22, '45', '45', 1, NULL, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sliders`
--

CREATE TABLE `sliders` (
  `id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dish_id` bigint UNSIGNED DEFAULT NULL,
  `offer_id` bigint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `discount_id` bigint UNSIGNED DEFAULT NULL,
  `flag` enum('dish','offer','discount') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'dish'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sliders`
--

INSERT INTO `sliders` (`id`, `name_ar`, `name_en`, `description_ar`, `description_en`, `image`, `dish_id`, `offer_id`, `created_by`, `modified_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `discount_id`, `flag`) VALUES
('160c11d2-ba90-4f2e-b384-14d3f5064aca', 'new', 'new', 'aa', 'aa', 'https://erpsystem.testdomain100.online/images/sliders/1736949647.png', 43, NULL, 9, NULL, NULL, '2025-01-15 15:00:47', '2025-01-15 15:01:08', '2025-01-15 15:01:08', NULL, 'dish'),
('4555881d-0d92-45fd-bb6f-0bd234ac54c5', 'مجبوس لحم عربي ضاني طازج', 'مجبوس لحم عربي ضاني طازج', 'عيش مع لحم ضاني يقدم مع معبوج أخضر ومعبوج أحمر ومرق باميه او دقوس', 'عيش مع لحم ضاني يقدم مع معبوج أخضر ومعبوج أحمر ومرق باميه او دقوس', 'https://erpsystem.testdomain100.online/images/sliders/4555881d-0d92-45fd-bb6f-0bd234ac54c51737451767.jpg', 46, NULL, 9, 9, NULL, '2025-01-16 09:56:32', '2025-01-21 10:29:27', NULL, NULL, 'dish'),
('762ed4bd-60db-4ed8-a74c-6d07790eea0d', 'مجبوس دجاج', 'مجبوس دجاج', 'عيش مع نصف دجاجه يقدم مع معبوج أخضر ومعبوج أحمر ودقوس او مرق باميه', 'عيش مع نصف دجاجه يقدم مع معبوج أخضر ومعبوج أحمر ودقوس او مرق باميه', 'https://erpsystem.testdomain100.online/images/sliders/762ed4bd-60db-4ed8-a74c-6d07790eea0d1737451719.jpg', 46, NULL, 1, 9, NULL, '2025-01-08 12:18:15', '2025-01-21 10:28:39', NULL, NULL, 'dish');

-- --------------------------------------------------------

--
-- Table structure for table `stores`
--

CREATE TABLE `stores` (
  `id` bigint UNSIGNED NOT NULL,
  `branch_id` bigint UNSIGNED NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_kitchen` tinyint(1) NOT NULL DEFAULT '0',
  `is_freeze` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `store_categories`
--

CREATE TABLE `store_categories` (
  `id` bigint UNSIGNED NOT NULL,
  `store_id` bigint UNSIGNED NOT NULL,
  `category_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 `store_transactions`
--

CREATE TABLE `store_transactions` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `store_id` bigint UNSIGNED DEFAULT NULL,
  `type` enum('1','2') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 for outgoing, 2 for incoming',
  `to_type` enum('1','2','3','4') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 from store, 2 from client, 3 from vender, 4 from employee',
  `to_id` int NOT NULL COMMENT 'id for to_type column from users and vendors and stores',
  `date` date NOT NULL,
  `total` int NOT NULL DEFAULT '0',
  `total_price` decimal(8,2) DEFAULT '0.00',
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `invoice_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_id` int DEFAULT '0' COMMENT 'order id, purchase id',
  `branch_id` bigint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `store_transaction_details`
--

CREATE TABLE `store_transaction_details` (
  `id` bigint UNSIGNED NOT NULL,
  `store_transaction_id` bigint UNSIGNED NOT NULL,
  `product_id` bigint UNSIGNED NOT NULL,
  `product_unit_id` bigint UNSIGNED DEFAULT NULL,
  `product_size_id` bigint UNSIGNED DEFAULT NULL,
  `product_color_id` bigint UNSIGNED DEFAULT NULL,
  `country_id` bigint UNSIGNED NOT NULL COMMENT 'to get currency id',
  `expirt_date` date DEFAULT NULL,
  `count` double(15,2) NOT NULL DEFAULT '0.00',
  `price` decimal(8,2) NOT NULL DEFAULT '0.00',
  `total_price` double(15,2) NOT NULL DEFAULT '0.00',
  `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 `tables`
--

CREATE TABLE `tables` (
  `id` bigint UNSIGNED NOT NULL,
  `floor_id` bigint UNSIGNED NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `capacity` int NOT NULL DEFAULT '1',
  `status` enum('1','2','3') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 for available, 2 occupied, 3 reserved',
  `type` enum('1','2') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 on door, 2 out door',
  `smoking` enum('1','2') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 smokin, 2 not smokin',
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `floor_partition_id` bigint UNSIGNED DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `table_reservations`
--

CREATE TABLE `table_reservations` (
  `id` bigint UNSIGNED NOT NULL,
  `table_id` bigint UNSIGNED DEFAULT NULL,
  `client_id` bigint UNSIGNED DEFAULT NULL,
  `date` date DEFAULT NULL,
  `time_from` time DEFAULT NULL,
  `time_to` time DEFAULT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '1 for pendding, 2 for existing, 3 for empty',
  `confirmed` int NOT NULL DEFAULT '1' COMMENT '1 for pendding, 2 for confirm, 3 for reject',
  `confirmed_date` date DEFAULT NULL,
  `confirmed_time` time DEFAULT NULL,
  `confirmed_by` bigint UNSIGNED DEFAULT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `created_by` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `tax_kinds`
--

CREATE TABLE `tax_kinds` (
  `id` int NOT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `desc_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `desc_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tax_kinds`
--

INSERT INTO `tax_kinds` (`id`, `code`, `desc_en`, `desc_ar`) VALUES
(1, 'T1', 'Value added tax', 'ضريبه القيمه المضافه'),
(2, 'T2', 'Table tax (percentage)', 'ضريبه الجدول (نسبيه)'),
(3, 'T3', 'Table tax (Fixed Amount)', 'ضريبه الجدول (قطعيه)'),
(4, 'T4', 'Withholding tax (WHT)', 'الخصم تحت حساب الضريبه'),
(5, 'T5', 'Stamping tax (percentage)', 'ضريبه الدمغه (نسبيه)'),
(6, 'T6', 'Stamping Tax (amount)', 'ضريبه الدمغه (قطعيه بمقدار ثابت )'),
(7, 'T7', 'Entertainment tax', 'ضريبة الملاهى'),
(8, 'T8', 'Resource development fee', 'رسم تنميه الموارد'),
(9, 'T9', 'Table tax (percentage)', 'رسم خدمة'),
(10, 'T10', 'Municipality Fees', 'رسم المحليات'),
(11, 'T11', 'Medical insurance fee', 'رسم التامين الصحى'),
(12, 'T12', 'Other fees', 'رسوم أخري'),
(13, 'T13', 'Stamping tax (percentage)', 'ضريبه الدمغه (نسبيه)'),
(14, 'T14', 'Stamping Tax (amount)', 'ضريبه الدمغه (قطعيه بمقدار ثابت )'),
(15, 'T15', 'Entertainment tax', 'ضريبة الملاهى'),
(16, 'T16', 'Resource development fee', 'رسم تنميه الموارد'),
(17, 'T17', 'Table tax (percentage)', 'رسم خدمة'),
(18, 'T18', 'Municipality Fees', 'رسم المحليات'),
(19, 'T19', 'Medical insurance fee', 'رسم التامين الصحى'),
(20, 'T20', 'Other fees', 'رسوم أخرى');

-- --------------------------------------------------------

--
-- Table structure for table `tax_sub_kinds`
--

CREATE TABLE `tax_sub_kinds` (
  `id` int NOT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `desc_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `desc_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `tax_kind_reference` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `default` int DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tax_sub_kinds`
--

INSERT INTO `tax_sub_kinds` (`id`, `code`, `desc_en`, `desc_ar`, `tax_kind_reference`, `default`) VALUES
(1, 'V001', 'Export', 'تصدير للخارج', 'T1', 0),
(2, 'V002', 'Export to free areas and other areas', 'تصدير مناطق حرة وأخرى', 'T1', 0),
(3, 'V003', 'Exempted good or service', 'سلعة أو خدمة معفاة', 'T1', 0),
(4, 'V004', 'A non-taxable good or service', 'سلعة أو خدمة غير خاضعة للضريبة', 'T1', 0),
(5, 'V005', 'Exemptions for diplomats, consulates and embassies', 'إعفاءات دبلوماسين والقنصليات والسفارات', 'T1', 0),
(6, 'V006', 'Defence and National security Exemptions', 'إعفاءات الدفاع والأمن القومى', 'T1', 0),
(7, 'V007', 'Agreements exemptions', 'إعفاءات اتفاقيات', 'T1', 0),
(8, 'V008', 'Special Exemptios and other reasons', 'إعفاءات خاصة و أخرى', 'T1', 0),
(9, 'V009', 'General Item sales', 'سلع عامة', 'T1', 1),
(10, 'V010', 'Other Rates', 'نسب ضريبة أخرى', 'T1', 0),
(11, 'Tbl01', 'Table tax (percentage)', 'ضريبه الجدول (نسبيه)', 'T2', 0),
(12, 'Tbl02', 'Table tax (Fixed Amount)', 'ضريبه الجدول (النوعية)', 'T3', 0),
(13, 'W001', 'Contracting', 'المقاولات', 'T4', 0),
(14, 'W002', 'Supplies', 'التوريدات', 'T4', 0),
(15, 'W003', 'Purachases', 'المشتريات', 'T4', 0),
(16, 'W004', 'Services', 'الخدمات', 'T4', 1),
(17, 'W005', 'Sumspaid by the cooperative societies for car transportation to their members', 'المبالغالتي تدفعها الجميعات التعاونية للنقل بالسيارات لاعضائها', 'T4', 0),
(18, 'W006', 'Commissionagency & brokerage', 'الوكالةبالعمولة والسمسرة', 'T4', 0),
(19, 'W007', 'Discounts& grants & additional exceptional incentives granted by smoke &cement companies', 'الخصوماتوالمنح والحوافز الاستثنائية ةالاضافية التي تمنحها شركات الدخان والاسمنت ', 'T4', 0),
(20, 'W008', 'Alldiscounts & grants & commissions granted by petroleum &telecommunications & other companies', 'جميعالخصومات والمنح والعمولات  التيتمنحها  شركات البترول والاتصالات ...وغيرها من الشركات المخاطبة بنظام الخصم', 'T4', 0),
(21, 'W009', 'Supporting export subsidies', 'مساندة دعم الصادرات التي يمنحها صندوق تنمية الصادرات ', 'T4', 0),
(22, 'W010', 'Professional fees', 'اتعاب مهنية', 'T4', 0),
(23, 'W011', 'Commission & brokerage _A_57', 'العمولة والسمسرة _م_57', 'T4', 0),
(24, 'W012', 'Hospitals collecting from doctors', 'تحصيل المستشفيات من الاطباء', 'T4', 0),
(25, 'W013', 'Royalties', 'الاتاوات', 'T4', 0),
(26, 'W014', 'Customs clearance', 'تخليص جمركي ', 'T4', 0),
(27, 'W015', 'Exemption', 'أعفاء', 'T4', 0),
(28, 'W016', 'advance payments', 'دفعات مقدمه', 'T4', 0),
(29, 'ST01', 'Stamping tax (percentage)', 'ضريبه الدمغه (نسبيه)', 'T5', 0),
(30, 'ST02', 'Stamping Tax (amount)', 'ضريبه الدمغه (قطعيه بمقدار ثابت)', 'T6', 0),
(31, 'Ent01', 'Entertainment tax (rate)', 'ضريبة الملاهى (نسبة)', 'T7', 1),
(32, 'Ent02', 'Entertainment tax (amount)', 'ضريبة الملاهى (قطعية)', 'T7', 0),
(33, 'RD01', 'Resource development fee (rate)', 'رسم تنميه الموارد (نسبة)', 'T8', 1),
(34, 'RD02', 'Resource development fee (amount)', 'رسم تنميه الموارد (قطعية)', 'T8', 0),
(35, 'SC01', 'Service charges (rate)', 'رسم خدمة (نسبة)', 'T9', 1),
(36, 'SC02', 'Service charges (amount)', 'رسم خدمة (قطعية)', 'T9', 0),
(37, 'Mn01', 'Municipality Fees (rate)', 'رسم المحليات (نسبة)', 'T10', 1),
(38, 'Mn02', 'Municipality Fees (amount)', 'رسم المحليات (قطعية)', 'T10', 0),
(39, 'MI01', 'Medical insurance fee (rate)', 'رسم التامين الصحى (نسبة)', 'T11', 1),
(40, 'MI02', 'Medical insurance fee (amount)', 'رسم التامين الصحى (قطعية)', 'T11', 0),
(41, 'OF01', 'Other fees (rate)', 'رسوم أخرى (نسبة)', 'T12', 1),
(42, 'OF02', 'Other fees (amount)', 'رسوم أخرى (قطعية)', 'T12', 0),
(43, 'ST03', 'Stamping tax (percentage)', 'ضريبه الدمغه (نسبيه)', 'T13', 0),
(44, 'ST04', 'Stamping Tax (amount)', 'ضريبه الدمغه (قطعيه بمقدار ثابت)', 'T14', 0),
(45, 'Ent03', 'Entertainment tax (rate)', 'ضريبة الملاهى (نسبة)', 'T15', 0),
(46, 'Ent04', 'Entertainment tax (amount)', 'ضريبة الملاهى (قطعية)', 'T15', 0),
(47, 'RD03', 'Resource development fee (rate)', 'رسم تنميه الموارد (نسبة)', 'T16', 0),
(48, 'RD04', 'Resource development fee (amount)', 'رسم تنميه الموارد (قطعية)', 'T16', 0),
(49, 'SC03', 'Service charges (rate)', 'رسم خدمة (نسبة)', 'T17', 0),
(50, 'SC04', 'Service charges (amount)', 'رسم خدمة (قطعية)', 'T17', 0),
(51, 'Mn03', 'Municipality Fees (rate)', 'رسم المحليات (نسبة)', 'T18', 0),
(52, 'Mn04', 'Municipality Fees (amount)', 'رسم المحليات (قطعية)', 'T18', 0),
(53, 'MI03', 'Medical insurance fee (rate)', 'رسم التامين الصحى (نسبة)', 'T19', 0),
(54, 'MI04', 'Medical insurance fee (amount)', 'رسم التامين الصحى (قطعية)', 'T19', 0),
(55, 'OF03', 'Other fees (rate)', 'رسوم أخرى (نسبة)', 'T20', 0),
(56, 'OF04', 'Other fees (amount)', 'رسوم أخرى (قطعية)', 'T20', 0);

-- --------------------------------------------------------

--
-- Table structure for table `tenants`
--

CREATE TABLE `tenants` (
  `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tenants`
--

INSERT INTO `tenants` (`id`, `created_at`, `updated_at`, `data`) VALUES
('foo', '2024-11-18 11:37:10', '2024-11-18 11:37:10', '{\"created_at\": \"2024-11-18 13:37:10\", \"updated_at\": \"2024-11-18 13:37:10\", \"tenancy_db_name\": \"tenantfoo\"}'),
('new', '2024-11-18 11:37:58', '2024-11-18 11:37:58', '{\"created_at\": \"2024-11-18 13:37:58\", \"updated_at\": \"2024-11-18 13:37:58\", \"tenancy_db_name\": \"tenantnew\"}');

-- --------------------------------------------------------

--
-- Table structure for table `terms_and_conditions`
--

CREATE TABLE `terms_and_conditions` (
  `id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `terms_and_conditions`
--

INSERT INTO `terms_and_conditions` (`id`, `name_ar`, `name_en`, `description_ar`, `description_en`, `created_by`, `modified_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`, `active`) VALUES
('4d9b8d02-f4c6-49b0-b3c9-abbac83cb382', 'شرط 2', 'Term 2', '<p>وصف شرط 2</p>', '<p>Term Description 2</p>', 1, 1, NULL, '2024-12-22 11:03:49', '2024-12-30 05:46:19', NULL, 1),
('5709b1ba-e3f8-4a9b-8ffc-df42cb04f1b5', 'شرط 1', 'Term 1', '<p>وصف شرط 1</p>', '<p>Term Description 1</p>', 1, 1, NULL, '2024-12-18 09:41:56', '2024-12-30 05:46:28', NULL, 1),
('aefb76ed-81cc-4336-b820-3b3f17ffc699', 'شرط 3', 'Term 3', '<p>وصف</p>', '<p>Description</p>', 1, 9, NULL, '2024-12-24 08:30:30', '2025-01-15 09:16:27', NULL, 0),
('b5f365f1-2e49-47b0-94b0-ff5354074ee0', 'شرط 2', 'Term 2', '<p>وصف</p>', '<p>description</p>', 1, 1, NULL, '2024-12-22 11:01:38', '2024-12-22 11:03:14', '2024-12-22 11:03:14', 1);

-- --------------------------------------------------------

--
-- Table structure for table `timetables`
--

CREATE TABLE `timetables` (
  `id` bigint UNSIGNED NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `on_duty_time` time NOT NULL,
  `off_duty_time` time NOT NULL,
  `start_sign_in` time NOT NULL,
  `end_sign_in` time NOT NULL,
  `start_sign_out` time NOT NULL,
  `end_sign_out` time NOT NULL,
  `lateness_grace_period` int NOT NULL DEFAULT '0',
  `start_late_time_option` enum('after_duty_time_grace_period','after_duty_time','from_duty_time') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'after_duty_time_grace_period',
  `cross_day` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `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;

-- --------------------------------------------------------

--
-- Table structure for table `units`
--

CREATE TABLE `units` (
  `id` bigint UNSIGNED NOT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `deleted_by` bigint UNSIGNED DEFAULT NULL,
  `modify_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 `units`
--

INSERT INTO `units` (`id`, `name_ar`, `name_en`, `created_by`, `deleted_by`, `modify_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(16, 'ك ج', 'kg', 1, NULL, NULL, '2025-01-08 10:00:17', '2025-01-08 10:00:17', NULL),
(17, 'منتج 1', 'Product 1', 9, NULL, NULL, '2025-01-09 08:05:39', '2025-01-09 08:05:45', '2025-01-09 08:05:45');

-- --------------------------------------------------------

--
-- Table structure for table `unit_types`
--

CREATE TABLE `unit_types` (
  `id` bigint UNSIGNED NOT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `desc_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `desc_ar` varchar(255) CHARACTER SET utf8mb4 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 `unit_types`
--

INSERT INTO `unit_types` (`id`, `code`, `desc_en`, `desc_ar`, `created_at`, `updated_at`) VALUES
(1, '2Z', 'Millivolt ( mV )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(2, '4K', 'Milliampere ( mA )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(3, '4O', 'Microfarad ( microF )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(4, 'A87', 'Gigaohm ( GOhm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(5, 'A93', 'Gram/Cubic meter ( g/m3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(6, 'A94', 'Gram/cubic centimeter ( g/cm3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(7, 'AMP', 'Ampere ( A )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(8, 'ANN', 'Years ( yr )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(9, 'B22', 'Kiloampere ( kA )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(10, 'B49', 'Kiloohm ( kOhm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(11, 'B75', 'Megohm ( MOhm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(12, 'B78', 'Megavolt ( MV )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(13, 'B84', 'Microampere ( microA )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(14, 'BAR', 'bar ( bar )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(15, 'BBL', 'Barrel (oil 42 gal.)', 'برميل', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(16, 'BG', 'Bag ( Bag )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(17, 'BO', 'Bottle ( Bt. )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(18, 'BOX', 'Box', 'صندوق', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(19, 'C10', 'Millifarad ( mF )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(20, 'C39', 'Nanoampere ( nA )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(21, 'C41', 'Nanofarad ( nF )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(22, 'C45', 'Nanometer ( nm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(23, 'C62', 'Activity unit ( AU )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(24, 'CA', 'Canister ( Can )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(25, 'CMK', 'Square centimeter ( cm2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(26, 'CMQ', 'Cubic centimeter ( cm3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(27, 'CMT', 'Centimeter ( cm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(28, 'CS', 'Case ( Case )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(29, 'CT', 'Carton ( Car )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(30, 'CTL', 'Centiliter ( Cl )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(31, 'D10', 'Siemens per meter ( S/m )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(32, 'D33', 'Tesla ( D )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(33, 'D41', 'Ton/Cubic meter ( t/m3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(34, 'DAY', 'Days ( d )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(35, 'DMT', 'Decimeter ( dm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(36, 'DRM', 'DRUM', 'أسطوانة', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(37, 'EA', 'each (ST) ( ST )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(38, 'FAR', 'Farad ( F )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(39, 'FOT', 'Foot ( Foot )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(40, 'FTK', 'Square foot ( ft2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(41, 'FTQ', 'Cubic foot ( ft3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(42, 'G42', 'Microsiemens per centimeter ( microS/cm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(43, 'GL', 'Gram/liter ( g/l )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(44, 'GLL', 'gallon ( gal )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(45, 'GM', 'Gram/square meter ( g/m2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(46, 'GPT', 'Gallon per thousand', 'جالون/الف', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(47, 'GRM', 'Gram ( g )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(48, 'H63', 'Milligram/Square centimeter ( mg/cm2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(49, 'HHP', 'Hydraulic Horse Power', 'قوة حصان هيدروليكي', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(50, 'HLT', 'Hectoliter ( hl )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(51, 'HTZ', 'Hertz (1/second) ( Hz )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(52, 'HUR', 'Hours ( hrs )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(53, 'IE', 'Number of Persons ( PRS )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(54, 'INH', 'Inch ( “” )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(55, 'INK', 'Square inch ( Inch2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(56, 'JOB', 'JOB', 'وظيفة', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(57, 'KGM', 'Kilogram ( KG )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(58, 'KHZ', 'Kilohertz ( kHz )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(59, 'KMH', 'Kilometer/hour ( km/h )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(60, 'KMK', 'Square kilometer ( km2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(61, 'KMQ', 'Kilogram/cubic meter ( kg/m3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(62, 'KMT', 'Kilometer ( km )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(63, 'KSM', 'Kilogram/Square meter ( kg/m2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(64, 'KVT', 'Kilovolt ( kV )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(65, 'KWT', 'Kilowatt ( KW )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(66, 'LB', 'pounds ', 'رطل', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(67, 'LTR', 'Liter ( l )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(68, 'LVL', 'Level', 'مستوي', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(69, 'M', 'Meter ( m )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(70, 'MAN', 'Man', 'رجل', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(71, 'MAW', 'Megawatt ( VA )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(72, 'MGM', 'Milligram ( mg )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(73, 'MHZ', 'Megahertz ( MHz )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(74, 'MIN', 'Minute ( min )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(75, 'MMK', 'Square millimeter ( mm2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(76, 'MMQ', 'Cubic millimeter ( mm3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(77, 'MMT', 'Millimeter ( mm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(78, 'MON', 'Months ( Months )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(79, 'MTK', 'Square meter ( m2 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(80, 'MTQ', 'Cubic meter ( m3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(81, 'OHM', 'Ohm ( Ohm )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(82, 'ONZ', 'Ounce ( oz )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(83, 'PAL', 'Pascal ( Pa )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(84, 'PF', 'Pallet ( PAL )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(85, 'PK', 'Pack ( PAK )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(86, 'SK', 'Sack', 'كيس', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(87, 'SMI', 'Mile ( mile )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(88, 'ST', 'Sheet', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(89, 'TNE', 'Tonne ( t )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(90, 'TON', 'Ton (metric)', 'طن (متري)', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(91, 'VLT', 'Volt ( V )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(92, 'WEE', 'Weeks ( Weeks )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(93, 'WTT', 'Watt ( W )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(94, 'X03', 'Meter/Hour ( m/h )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(95, 'YDQ', 'Cubic yard ( yd3 )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(96, 'YRD', 'Yards ( yd )', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(97, 'NMP', 'Number of packs', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(98, '5I', 'Standard cubic foot', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(99, 'AE', 'Ampere per metre', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(100, 'B4', 'Barrel, Imperial', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(101, 'BB', 'Base box', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(102, 'BD', 'Board', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(103, 'BE', 'Bundle', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(104, 'BK', 'Basket', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(105, 'BL', 'Bale', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(106, 'CH', 'Container', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(107, 'CR', 'Crate', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(108, 'DAA', 'Decare', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(109, 'DTN', 'Decitonne', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(110, 'DZN', 'Dozen', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(111, 'FP', 'Pound per square foot', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(112, 'HMT', 'Hectometre', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(113, 'INQ', 'Cubic inch', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(114, 'KG', 'Keg', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(115, 'KTM', 'Kilometre', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(116, 'LO', 'Lot [unit of procurement]', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(117, 'MLT', 'Millilitre', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(118, 'MT', 'Mat', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(119, 'NA', 'Milligram per kilogram', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(120, 'NAR', 'Number of articles', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(121, 'NC', 'Car', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(122, 'NE', 'Net litre', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(123, 'NPL', 'Number of parcels', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(124, 'NV', 'Vehicle', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(125, 'PA', 'Packet', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(126, 'PG', 'Plate', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(127, 'PL', 'Pail', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(128, 'PR', 'Pair', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(129, 'PT', 'Pint (US)', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(130, 'RL', 'Reel', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(131, 'RO', 'Roll', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(132, 'SET', 'Set', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(133, 'STK', 'Stick, Cigarette ', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(134, 'T3', 'Thousand piece', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(135, 'TC', 'Truckload', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(136, 'TK', 'Tank, rectangular', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(137, 'TN', 'Tin', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(138, 'TTS', 'Ten thousand sticks', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(139, 'UC', 'Telecommunication port ', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(140, 'VI', 'Vial', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(141, 'VQ', 'Bulk', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(142, 'YDK', 'Square yard', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04'),
(143, 'Z3', 'Cask', '', '2025-01-29 11:22:04', '2025-01-29 11:22:04');

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country_id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `age` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `birth_date` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rule_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `flag` enum('admin','client','unknown','employee') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'client',
  `is_active` int NOT NULL DEFAULT '1',
  `remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `google_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `facebook_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci 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`, `name`, `email`, `email_verified_at`, `password`, `country_id`, `country_code`, `phone`, `code`, `age`, `birth_date`, `rule_id`, `flag`, `is_active`, `remember_token`, `created_at`, `updated_at`, `google_id`, `facebook_id`, `deleted_at`) VALUES
(1, 'admin', 'adminn@adminn.com', NULL, '$2y$10$08SNo6e3TXDbCXRstCHoXuU9rtWvAQ8EBV.vW2a67nDqbAEvmqLQy', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '123123123', NULL, NULL, NULL, NULL, 'admin', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(9, 'LocalWork', 'LocalWork@admin.com', NULL, '$2y$10$08SNo6e3TXDbCXRstCHoXuU9rtWvAQ8EBV.vW2a67nDqbAEvmqLQy', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '', '01000416716', NULL, NULL, NULL, NULL, 'admin', 1, NULL, '2024-09-24 09:01:00', '2024-09-24 09:01:00', NULL, NULL, NULL),
(10, 'admin', 'admin@admin.com', NULL, '$2y$10$xjm1ZgJ3lF3C0CWGRTlu3ubVJR57wb9v3DmJBT1xL.OUFqlvusIl.', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '', '123123123', NULL, NULL, NULL, NULL, 'admin', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(11, 'unkown', 'unknown@unknown.com', NULL, '$2y$10$KRuT/q/luS8evgCtmdviueUb57AuKLMyU8MulQnMmvm8fGqTDBTT6', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '', '123123125', NULL, NULL, NULL, NULL, 'unknown', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(13, 'ISchool user1', 'ischooluser1@gmail.com', NULL, NULL, '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '', 'null', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-11-04 10:19:42', '2024-11-04 10:19:42', '105573525573982136413', NULL, NULL),
(15, 'Wessam Fawzy', 'wessam@admin.com', NULL, '$2y$10$sDRoYFb7/gCGF1ZPJ6I4nO0SyewZdkyKegD4KqhCrqL5KSXcYPzWy', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '1', '0122334455', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-15 09:02:26', '2025-01-01 11:29:58', NULL, NULL, NULL),
(17, 'khlood ibrahim', 'test18@admin.com', NULL, '$2y$10$NfuXjgHkx2c.IGJgd8udAugoyXBYKg4mCa.HgN92UYtwpSa1OfD5W', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '', '01201001817', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-18 08:35:20', '2024-12-18 08:35:20', NULL, NULL, NULL),
(19, 'khlood ibrahim', 'testkhlood12@admin.com', NULL, '$2y$10$UQRjjf6LZ40SC0O/VXIRz.wdP2xEalD8ARA.haYiEsEwDtNp5wbxG', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01201001819', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-18 13:17:57', '2024-12-18 13:19:06', NULL, NULL, NULL),
(20, 'khlood ibrahim', 'test518@admin.com', NULL, '$2y$10$LT5Be53L4BT7R6VVaMZCo.1Bl48aGaAxIJ2d0nqsCixLxMUeexGgG', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '0120', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-18 13:19:10', '2024-12-18 13:19:10', NULL, NULL, NULL),
(21, 'omar hassan', 'omar@gmail.com', NULL, '$2y$10$16u/IjhAQIMfqW.qTvy7KODK6.uSG7XO0Mw.bskiv3e22xZ/F9IlS', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01140', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-18 13:19:54', '2024-12-18 13:19:54', NULL, NULL, NULL),
(22, 'احمد عيد صديق', 'ahmedeid2026@gmail.com', NULL, '$2y$10$f5MAUNqBtlVZ.Es2iQeGh.UBmDGKfZcy.VirupgBDZt192WS.3rgq', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+965', '01091510', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-18 13:45:48', '2024-12-18 13:45:48', NULL, NULL, NULL),
(23, 'khlood ibrahim', 'testkhlood122@admin.com', NULL, '$2y$10$cUOpps/OMD3CtbKBuuh56.6mCXk9u38JgPYLs6OgoxLXWkT0xg/lS', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '012010018199', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 05:24:18', '2024-12-19 05:24:18', NULL, NULL, NULL),
(24, 'Ahmed Eid', 'fuygfuyfuy@admin.com', NULL, '$2y$10$p/yfsoO3sr0SOFjmoXTpmuF3d3NfUX5f2FGzp1qT7MC5m9iynA48i', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01091510577', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 06:43:16', '2025-01-29 08:46:12', NULL, NULL, '2025-01-29 08:46:12'),
(25, 'Ahmed Eid', 'fuygfuyfuy@admin.comfgdg', NULL, '$2y$10$X8R2oWbJM8F6xJ8hLvQNzOGkVh0/bSPzT5z4RJFwiK/Ay24wO.3OO', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '010915105778', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 06:51:22', '2025-01-29 08:45:39', NULL, NULL, '2025-01-29 08:45:39'),
(26, 'omar', 'omar1@gmail.com', NULL, '$2y$10$rBXp8ZnB0OrrtyysUXa5CuU.H/n1gz.FH7vIDMrTjDjDIoArJLYO6', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '0114043', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 06:54:02', '2024-12-19 10:11:17', NULL, NULL, NULL),
(28, 'احمد', 'cycle@outlook.com', NULL, '$2y$10$3rh/UlXnIFuovv59eycdtuZlhjZUcFhUwugwWOpg1zLHC59ofwxuy', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01091885524', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 07:26:03', '2025-01-29 08:46:17', NULL, NULL, '2025-01-29 08:46:17'),
(29, 'احمد عيد', 'ahm@gmail.com', NULL, '$2y$10$pOk3FN9LXqCg57PGMR5Z3eWWhGMjmWhfVTU8QwzLl/wv1vt..S4HS', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01091510588', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 07:27:53', '2025-01-29 08:46:43', NULL, NULL, '2025-01-29 08:46:43'),
(30, 'khlood ibrahim', 'testkhlood15@admin.com', NULL, '$2y$10$gx1B6W4RT2xWifJHGDtu/eEWb3H7ySue4caQ2RwNkrIbrPThVV/YS', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '0125684489', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 11:38:23', '2024-12-19 11:38:23', NULL, NULL, NULL),
(31, 'khlood ibrahim', 'testkhlood16@admin.com', NULL, '$2y$10$fZZNwlXjQdnlKeTpj5HO/.Psnbt7316YSIBbgHjqdb74NKphw.APi', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '0125684487', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 11:42:00', '2024-12-19 11:42:00', NULL, NULL, NULL),
(32, 'khlood ibrahim', 'testkhlood11@admin.com', NULL, '$2y$10$eXc.jrpvtu.ys/Ghgm1b8u9PRHW8jPvz/5IahK/wg3KMC8sDDvmIK', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01256844866', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 11:54:55', '2024-12-19 11:54:55', NULL, NULL, NULL),
(33, 'Wessam Fawzy', 'wessam2047@gmail.com', NULL, '$2y$10$0FZGgRWdva3zUSrvTSurqOe54Gan5l5PU/nmhXtVZ8HoIiz9Ep9w6', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01224303330', NULL, NULL, '2002-10-14', NULL, 'client', 1, NULL, '2024-12-19 12:08:27', '2025-01-21 09:20:06', NULL, NULL, NULL),
(34, 'ahmed', 'ahmed@mail.com', NULL, '$2y$10$2YXg2ey1ezydkz7qeWa40.qw2.YK1oZ9SQ2CmqXkqu9No2ut65Wve', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '222222', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-19 12:59:34', '2024-12-19 12:59:34', NULL, NULL, NULL),
(36, 'Ali', 'ali@mail.com', NULL, '$2y$10$Xd39ZX8.H8CRbPzhaSPjYuBi2Ga8eJwH7.qUA6dNHqePgV91nCitC', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '3216549870', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-22 09:28:23', '2024-12-22 09:28:23', NULL, NULL, NULL),
(38, 'omar', 'omar123@gmail.com', NULL, '$2y$10$wdeNCi/t0KZNWgaWGtd9Q.cNTAcdOedsGzoCHTEwzEX4tAw1cUlp6', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '011404345', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-25 07:25:13', '2024-12-25 07:25:13', NULL, NULL, NULL),
(39, 'omar', 'omar1233@gmail.com', NULL, '$2y$10$6KbzcBw19CRQ9wpTrMXdMu18OgUwiobI50Bx0sD/3K0dzLScuTyfG', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '0114043455', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2024-12-25 07:25:36', '2024-12-25 07:25:36', NULL, NULL, NULL),
(40, 'جديد', 'sh@client.com', NULL, '$2y$10$C12xvfjNze7svsl.Yy/o1Ob1YbEFFnpydfm1qJiyqEZhMq2pItNK2', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01020647446', NULL, NULL, '1996-12-06', NULL, 'client', 1, NULL, '2024-12-25 10:52:48', '2024-12-25 10:53:06', NULL, NULL, NULL),
(60, 'khlood ibrahim', 'rasha@admin.com', NULL, '$2y$10$MfM05jWW0upP7JRDlzvwSecqGBVNvklf6pKLGos3Ht7k23mBT0Rn.', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01201001817', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2025-01-07 08:05:48', '2025-01-07 08:05:48', NULL, NULL, NULL),
(61, 'Touka Raafat', 'toka@gmail.com', NULL, '$2y$10$6gNs47H.DjH4LnoCUZtae.hxzu2qXySvFEv1AvhsGcEF3tLrUrPZm', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01097575849', NULL, NULL, '2025-01-22', NULL, 'client', 1, NULL, '2025-01-07 11:24:24', '2025-01-07 11:24:24', NULL, NULL, NULL),
(65, 'hend', 'hend@yahoo.com', NULL, '$2y$10$YtGAoXJ1Dr1kFn2PLN5V9OkIVHgZhA/D7vKXwPGk65wALHft8ERay', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01062501779', NULL, NULL, '2025-01-09', NULL, 'client', 1, NULL, '2025-01-09 11:34:12', '2025-01-09 11:34:12', NULL, NULL, NULL),
(67, 'احمد محمد', 'aaa@mail.com', NULL, '$2y$10$YEsJ.z5l0za4FxfYIDqQ5emCm3NOyf49QunBVew9tVfE43ByvApb.', NULL, NULL, '0122', NULL, NULL, NULL, NULL, 'admin', 1, NULL, '2025-01-13 10:40:31', '2025-01-13 10:40:31', NULL, NULL, NULL),
(70, 'ahmed', 'ahmed@email.com', NULL, '$2y$10$AQt4ncP.NMPnVgNvvQ2TlOpHN1vUXdHU1.hcrIJAPymoxfBHA580q', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01224567863', NULL, NULL, '2025-01-01', NULL, 'client', 1, NULL, '2025-01-21 12:37:04', '2025-01-29 08:45:52', NULL, NULL, '2025-01-29 08:45:52'),
(71, 'محمد حسن', 'mohamed@email.com', NULL, '$2y$10$Y45dQUErat9GETr3f/GjHuWlto/gPW2K3k1wJ.9n1Syd9mbr4L1Dq', NULL, NULL, '01224303330', NULL, NULL, NULL, NULL, 'admin', 1, NULL, '2025-01-22 15:04:23', '2025-01-22 15:04:23', NULL, NULL, NULL),
(72, 'kitchen manager', 'kitchenmanager@admin.com', NULL, '$2y$10$ocJ0bZ4kgYF.mkF1yR3T/egKS2qBWf6GB4pT3Jb0j/kk2mIubZ4H.', NULL, NULL, '01245785647', NULL, NULL, NULL, NULL, 'admin', 1, NULL, '2025-01-23 13:15:50', '2025-01-23 13:15:50', NULL, NULL, NULL),
(74, 'kitchen manager1', 'kitchenmanager1@admin.com', NULL, '$2y$10$oL.VCQ8V88.w60ih.GVD6.U7VedDPzC4sCBWcS6Vk/IN.ANUyZTtG', NULL, NULL, '01000416747', NULL, NULL, NULL, NULL, 'admin', 1, NULL, '2025-01-23 13:21:37', '2025-01-23 13:21:37', NULL, NULL, NULL),
(82, 'احمد محمد', 'ahmeddd@gmail.com', NULL, '$2y$10$QBdqWOLMLXxTOSiEK2TePOWzf30VzGW7qK41eUYa4/YRsv5hca5UO', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01111111111', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2025-01-27 10:57:54', '2025-01-29 08:45:45', NULL, NULL, '2025-01-29 08:45:45'),
(87, 'احمد محمد', 'ahmedd@gmail.com', NULL, '$2y$10$Id0MgRx3.leQuJRYmbPKi.iF8UM8aJbq4biuElYxISP04Kbz.v30W', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01224304440', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2025-01-27 14:11:47', '2025-01-29 08:45:29', NULL, NULL, '2025-01-29 08:45:29'),
(88, 'احمد عيد صديق حفنى', 'ahmed@gmail.com', NULL, '$2y$10$19.orygSXt3JiJ9F0mdmou5cupNecZl.yUJT/K2dfOmVYgUULuJB6', '9e80453d-561f-4f8c-8f99-865fd4ef8ecd', '+20', '01091510571', NULL, NULL, NULL, NULL, 'client', 1, NULL, '2025-01-29 12:18:24', '2025-01-29 12:18:24', NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `user_coupons`
--

CREATE TABLE `user_coupons` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `coupon_id` bigint UNSIGNED NOT NULL,
  `status` enum('active','inactive','used') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `user_coupons`
--

INSERT INTO `user_coupons` (`id`, `user_id`, `coupon_id`, `status`, `created_by`, `modified_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 33, 12, 'active', 9, NULL, NULL, NULL, NULL, NULL),
(2, 33, 14, 'used', 9, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `user_favorite_dishes`
--

CREATE TABLE `user_favorite_dishes` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `dish_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;

--
-- Dumping data for table `user_favorite_dishes`
--

INSERT INTO `user_favorite_dishes` (`id`, `user_id`, `dish_id`, `created_at`, `updated_at`) VALUES
(102, 33, 52, '2025-01-21 13:08:59', '2025-01-21 13:08:59'),
(104, 33, 129, '2025-01-22 07:29:07', '2025-01-22 07:29:07'),
(107, 33, 130, '2025-01-22 11:48:22', '2025-01-22 11:48:22'),
(108, 33, 144, '2025-01-22 13:17:40', '2025-01-22 13:17:40'),
(111, 33, 131, '2025-01-22 13:17:55', '2025-01-22 13:17:55');

-- --------------------------------------------------------

--
-- Table structure for table `user_gifts`
--

CREATE TABLE `user_gifts` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `gift_id` bigint UNSIGNED NOT NULL,
  `used` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1(used), 0(not used)',
  `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 `user_gifts`
--

INSERT INTO `user_gifts` (`id`, `user_id`, `gift_id`, `used`, `created_at`, `updated_at`) VALUES
(1, 65, 1, 0, '2025-01-09 11:34:13', '2025-01-09 11:34:13'),
(2, 66, 1, 0, '2025-01-13 08:49:55', '2025-01-13 08:49:55'),
(3, 68, 1, 0, '2025-01-15 14:31:59', '2025-01-15 14:31:59'),
(4, 69, 1, 0, '2025-01-20 14:17:13', '2025-01-20 14:17:13'),
(5, 70, 1, 0, '2025-01-21 12:37:04', '2025-01-21 12:37:04'),
(6, 75, 1, 0, '2025-01-23 14:24:15', '2025-01-23 14:24:15'),
(7, 76, 1, 0, '2025-01-23 15:02:09', '2025-01-23 15:02:09'),
(8, 77, 1, 0, '2025-01-26 12:19:25', '2025-01-26 12:19:25'),
(9, 78, 1, 0, '2025-01-26 14:02:58', '2025-01-26 14:02:58'),
(10, 79, 1, 0, '2025-01-26 15:05:53', '2025-01-26 15:05:53'),
(11, 80, 1, 0, '2025-01-27 10:33:40', '2025-01-27 10:33:40'),
(12, 81, 1, 0, '2025-01-27 10:40:01', '2025-01-27 10:40:01'),
(13, 82, 1, 0, '2025-01-27 10:57:54', '2025-01-27 10:57:54'),
(14, 83, 1, 0, '2025-01-27 11:43:29', '2025-01-27 11:43:29'),
(15, 84, 1, 0, '2025-01-27 14:04:35', '2025-01-27 14:04:35'),
(16, 85, 1, 0, '2025-01-27 14:08:03', '2025-01-27 14:08:03'),
(17, 86, 1, 0, '2025-01-27 14:09:04', '2025-01-27 14:09:04'),
(18, 87, 1, 0, '2025-01-27 14:11:47', '2025-01-27 14:11:47'),
(19, 88, 1, 0, '2025-01-29 12:18:24', '2025-01-29 12:18:24');

-- --------------------------------------------------------

--
-- Table structure for table `vendors`
--

CREATE TABLE `vendors` (
  `id` bigint UNSIGNED NOT NULL,
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_ar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `contact_person` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `address_ar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `country_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `modified_by` bigint UNSIGNED DEFAULT NULL,
  `deleted_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 `actionbacklogs`
--
ALTER TABLE `actionbacklogs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `actionbacklogs_created_by_foreign` (`created_by`);

--
-- Indexes for table `activity_codes`
--
ALTER TABLE `activity_codes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `addon_categories`
--
ALTER TABLE `addon_categories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `advances`
--
ALTER TABLE `advances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advances_request_id_foreign` (`request_id`),
  ADD KEY `advances_employee_id_foreign` (`employee_id`),
  ADD KEY `advances_created_by_foreign` (`created_by`),
  ADD KEY `advances_modified_by_foreign` (`modified_by`),
  ADD KEY `advances_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `advance_requests`
--
ALTER TABLE `advance_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advance_requests_advance_setting_id_foreign` (`advance_setting_id`),
  ADD KEY `advance_requests_employee_id_foreign` (`employee_id`),
  ADD KEY `advance_requests_created_by_foreign` (`created_by`),
  ADD KEY `advance_requests_modified_by_foreign` (`modified_by`),
  ADD KEY `advance_requests_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `advance_settings`
--
ALTER TABLE `advance_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advance_settings_created_by_foreign` (`created_by`),
  ADD KEY `advance_settings_modified_by_foreign` (`modified_by`),
  ADD KEY `advance_settings_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `apicodes`
--
ALTER TABLE `apicodes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `branches`
--
ALTER TABLE `branches`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branches_country_id_foreign` (`country_id`),
  ADD KEY `branches_created_by_foreign` (`created_by`),
  ADD KEY `branches_modified_by_foreign` (`modified_by`),
  ADD KEY `branches_deleted_by_foreign` (`deleted_by`),
  ADD KEY `branches_employee_id_foreign` (`employee_id`);

--
-- Indexes for table `branch_coupon`
--
ALTER TABLE `branch_coupon`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_coupon_coupon_id_foreign` (`coupon_id`),
  ADD KEY `branch_coupon_branch_id_foreign` (`branch_id`);

--
-- Indexes for table `branch_discount`
--
ALTER TABLE `branch_discount`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_discount_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_discount_discount_id_foreign` (`discount_id`);

--
-- Indexes for table `branch_menus`
--
ALTER TABLE `branch_menus`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_menus_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_menus_dish_id_foreign` (`dish_id`),
  ADD KEY `branch_menus_branch_menu_category_id_foreign` (`branch_menu_category_id`),
  ADD KEY `branch_menus_created_by_foreign` (`created_by`),
  ADD KEY `branch_menus_modified_by_foreign` (`modified_by`),
  ADD KEY `branch_menus_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `branch_menu_addons`
--
ALTER TABLE `branch_menu_addons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_menu_addons_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_menu_addons_dish_addon_id_foreign` (`dish_addon_id`),
  ADD KEY `branch_menu_addons_created_by_foreign` (`created_by`),
  ADD KEY `branch_menu_addons_modified_by_foreign` (`modified_by`),
  ADD KEY `branch_menu_addons_deleted_by_foreign` (`deleted_by`),
  ADD KEY `branch_menu_addons_dish_id_foreign` (`dish_id`),
  ADD KEY `branch_menu_addons_branch_menu_addon_category_id_foreign` (`branch_menu_addon_category_id`);

--
-- Indexes for table `branch_menu_addon_categories`
--
ALTER TABLE `branch_menu_addon_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_menu_addon_categories_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_menu_addon_categories_addon_category_id_foreign` (`addon_category_id`),
  ADD KEY `branch_menu_addon_categories_created_by_foreign` (`created_by`),
  ADD KEY `branch_menu_addon_categories_modified_by_foreign` (`modified_by`),
  ADD KEY `branch_menu_addon_categories_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `branch_menu_categories`
--
ALTER TABLE `branch_menu_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_menu_categories_dish_category_id_foreign` (`dish_category_id`),
  ADD KEY `branch_menu_categories_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_menu_categories_created_by_foreign` (`created_by`),
  ADD KEY `branch_menu_categories_modified_by_foreign` (`modified_by`),
  ADD KEY `branch_menu_categories_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `branch_menu_sizes`
--
ALTER TABLE `branch_menu_sizes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_menu_sizes_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_menu_sizes_dish_size_id_foreign` (`dish_size_id`),
  ADD KEY `branch_menu_sizes_created_by_foreign` (`created_by`),
  ADD KEY `branch_menu_sizes_modified_by_foreign` (`modified_by`),
  ADD KEY `branch_menu_sizes_deleted_by_foreign` (`deleted_by`),
  ADD KEY `branch_menu_sizes_dish_id_foreign` (`dish_id`);

--
-- Indexes for table `branch_poses`
--
ALTER TABLE `branch_poses`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `branch_poses_posserial_unique` (`posserial`),
  ADD KEY `branch_poses_branch_id_foreign` (`branch_id`);

--
-- Indexes for table `branch_recipe`
--
ALTER TABLE `branch_recipe`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_recipe_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_recipe_recipe_id_foreign` (`recipe_id`);

--
-- Indexes for table `branch_times`
--
ALTER TABLE `branch_times`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_times_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_times_created_by_foreign` (`created_by`),
  ADD KEY `branch_times_modified_by_foreign` (`modified_by`),
  ADD KEY `branch_times_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
  ADD PRIMARY KEY (`id`),
  ADD KEY `brands_created_by_foreign` (`created_by`),
  ADD KEY `brands_modified_by_foreign` (`modified_by`),
  ADD KEY `brands_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `cashier_machines`
--
ALTER TABLE `cashier_machines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cashier_machines_branch_id_foreign` (`branch_id`),
  ADD KEY `cashier_machines_created_by_foreign` (`created_by`),
  ADD KEY `cashier_machines_modified_by_foreign` (`modified_by`),
  ADD KEY `cashier_machines_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `cashier_machine_logs`
--
ALTER TABLE `cashier_machine_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cashier_machine_logs_employee_id_foreign` (`employee_id`),
  ADD KEY `cashier_machine_logs_cashier_machine_id_foreign` (`cashier_machine_id`),
  ADD KEY `cashier_machine_logs_employee_opening_balance_id_foreign` (`employee_opening_balance_id`),
  ADD KEY `cashier_machine_logs_created_by_foreign` (`created_by`),
  ADD KEY `cashier_machine_logs_modified_by_foreign` (`modified_by`),
  ADD KEY `cashier_machine_logs_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `categories_code_unique` (`code`),
  ADD KEY `categories_parent_id_foreign` (`parent_id`),
  ADD KEY `categories_created_by_foreign` (`created_by`),
  ADD KEY `categories_modify_by_foreign` (`modify_by`),
  ADD KEY `categories_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `client_addresses`
--
ALTER TABLE `client_addresses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `client_addresses_user_id_foreign` (`user_id`);

--
-- Indexes for table `colors`
--
ALTER TABLE `colors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `colors_modified_by_foreign` (`modified_by`),
  ADD KEY `colors_created_by_foreign` (`created_by`),
  ADD KEY `colors_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `countries_modified_by_foreign` (`modified_by`),
  ADD KEY `countries_created_by_foreign` (`created_by`),
  ADD KEY `countries_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `coupons`
--
ALTER TABLE `coupons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `coupons_created_by_foreign` (`created_by`),
  ADD KEY `coupons_modified_by_foreign` (`modified_by`),
  ADD KEY `coupons_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `cuisines`
--
ALTER TABLE `cuisines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cuisines_created_by_foreign` (`created_by`),
  ADD KEY `cuisines_modified_by_foreign` (`modified_by`),
  ADD KEY `cuisines_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `delays`
--
ALTER TABLE `delays`
  ADD PRIMARY KEY (`id`),
  ADD KEY `delays_time_id_foreign` (`time_id`),
  ADD KEY `delays_employee_id_foreign` (`employee_id`),
  ADD KEY `delays_created_by_foreign` (`created_by`),
  ADD KEY `delays_modified_by_foreign` (`modified_by`),
  ADD KEY `delays_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `delay_deductions`
--
ALTER TABLE `delay_deductions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `delay_deductions_delay_id_foreign` (`delay_id`),
  ADD KEY `delay_deductions_employee_id_foreign` (`employee_id`),
  ADD KEY `delay_deductions_created_by_foreign` (`created_by`),
  ADD KEY `delay_deductions_modified_by_foreign` (`modified_by`),
  ADD KEY `delay_deductions_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `delay_times`
--
ALTER TABLE `delay_times`
  ADD PRIMARY KEY (`id`),
  ADD KEY `delay_times_created_by_foreign` (`created_by`),
  ADD KEY `delay_times_modified_by_foreign` (`modified_by`),
  ADD KEY `delay_times_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `delivery_settings`
--
ALTER TABLE `delivery_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `delivery_settings_branch_id_foreign` (`branch_id`),
  ADD KEY `delivery_settings_created_by_foreign` (`created_by`),
  ADD KEY `delivery_settings_modified_by_foreign` (`modified_by`),
  ADD KEY `delivery_settings_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `departments_name_en_unique` (`name_en`),
  ADD UNIQUE KEY `departments_name_ar_unique` (`name_ar`),
  ADD KEY `departments_parent_id_foreign` (`parent_id`),
  ADD KEY `departments_created_by_foreign` (`created_by`),
  ADD KEY `departments_modified_by_foreign` (`modified_by`),
  ADD KEY `departments_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `discounts`
--
ALTER TABLE `discounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discounts_created_by_foreign` (`created_by`),
  ADD KEY `discounts_modified_by_foreign` (`modified_by`),
  ADD KEY `discounts_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `dishes`
--
ALTER TABLE `dishes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `dishes_code_unique` (`code`),
  ADD KEY `dishes_category_id_foreign` (`category_id`),
  ADD KEY `dishes_cuisine_id_foreign` (`cuisine_id`),
  ADD KEY `dishes_created_by_foreign` (`created_by`),
  ADD KEY `dishes_modified_by_foreign` (`modified_by`),
  ADD KEY `dishes_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `dish_addons`
--
ALTER TABLE `dish_addons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `recipe_addons_addon_id_foreign` (`addon_id`),
  ADD KEY `dish_addons_dish_id_foreign` (`dish_id`),
  ADD KEY `dish_addons_addon_category_id_foreign` (`addon_category_id`);

--
-- Indexes for table `dish_categories`
--
ALTER TABLE `dish_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `dish_categories_parent_id_foreign` (`parent_id`),
  ADD KEY `dish_categories_created_by_foreign` (`created_by`),
  ADD KEY `dish_categories_modified_by_foreign` (`modified_by`),
  ADD KEY `dish_categories_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `dish_details`
--
ALTER TABLE `dish_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `dish_details_dish_id_foreign` (`dish_id`),
  ADD KEY `dish_details_recipe_id_foreign` (`recipe_id`),
  ADD KEY `dish_details_dish_size_id_foreign` (`dish_size_id`);

--
-- Indexes for table `dish_discount`
--
ALTER TABLE `dish_discount`
  ADD PRIMARY KEY (`id`),
  ADD KEY `dish_discount_dish_id_foreign` (`dish_id`),
  ADD KEY `dish_discount_discount_id_foreign` (`discount_id`),
  ADD KEY `dish_discount_created_by_foreign` (`created_by`),
  ADD KEY `dish_discount_modify_by_foreign` (`modify_by`),
  ADD KEY `dish_discount_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `dish_sizes`
--
ALTER TABLE `dish_sizes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `dish_sizes_dish_id_foreign` (`dish_id`);

--
-- Indexes for table `divisions`
--
ALTER TABLE `divisions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `divisions_created_by_foreign` (`created_by`),
  ADD KEY `divisions_modified_by_foreign` (`modified_by`),
  ADD KEY `divisions_deleted_by_foreign` (`deleted_by`),
  ADD KEY `divisions_line_id_foreign` (`line_id`);

--
-- Indexes for table `domains`
--
ALTER TABLE `domains`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `domains_domain_unique` (`domain`),
  ADD KEY `domains_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `einvoices`
--
ALTER TABLE `einvoices`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `einvoices_invoice_id_unique` (`invoice_id`),
  ADD KEY `einvoices_reference_invoice_id_foreign` (`reference_invoice_id`);

--
-- Indexes for table `einvoice_settings`
--
ALTER TABLE `einvoice_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `einvoice_settings_key_unique` (`key`);

--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `employees_employee_code_unique` (`employee_code`),
  ADD UNIQUE KEY `employees_email_unique` (`email`),
  ADD UNIQUE KEY `employees_user_id_unique` (`user_id`),
  ADD UNIQUE KEY `employees_national_id_unique` (`national_id`),
  ADD KEY `employees_created_by_foreign` (`created_by`),
  ADD KEY `employees_modified_by_foreign` (`modified_by`),
  ADD KEY `employees_deleted_by_foreign` (`deleted_by`),
  ADD KEY `employees_nationality_id_foreign` (`nationality_id`),
  ADD KEY `employees_branch_id_foreign` (`branch_id`),
  ADD KEY `employees_supervisor_id_foreign` (`supervisor_id`);

--
-- Indexes for table `employee_floor_partitions`
--
ALTER TABLE `employee_floor_partitions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_floor_partitions_floor_partition_id_foreign` (`floor_partition_id`),
  ADD KEY `employee_floor_partitions_employee_id_foreign` (`employee_id`),
  ADD KEY `employee_floor_partitions_created_by_foreign` (`created_by`),
  ADD KEY `employee_floor_partitions_modified_by_foreign` (`modified_by`),
  ADD KEY `employee_floor_partitions_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `employee_opening_balances`
--
ALTER TABLE `employee_opening_balances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_opening_balances_employee_id_foreign` (`employee_id`),
  ADD KEY `employee_opening_balances_cashier_machine_id_foreign` (`cashier_machine_id`),
  ADD KEY `employee_opening_balances_employee_schedule_id_foreign` (`employee_schedule_id`),
  ADD KEY `employee_opening_balances_created_by_foreign` (`created_by`),
  ADD KEY `employee_opening_balances_modified_by_foreign` (`modified_by`),
  ADD KEY `employee_opening_balances_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `employee_schedules`
--
ALTER TABLE `employee_schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_schedules_employee_id_foreign` (`employee_id`),
  ADD KEY `employee_schedules_shift_id_foreign` (`shift_id`),
  ADD KEY `employee_schedules_created_by_foreign` (`created_by`),
  ADD KEY `employee_schedules_modified_by_foreign` (`modified_by`),
  ADD KEY `employee_schedules_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `excuses`
--
ALTER TABLE `excuses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `excuses_employee_id_foreign` (`employee_id`),
  ADD KEY `excuses_excuse_request_id_foreign` (`excuse_request_id`),
  ADD KEY `excuses_approver_id_foreign` (`approver_id`),
  ADD KEY `excuses_created_by_foreign` (`created_by`),
  ADD KEY `excuses_modified_by_foreign` (`modified_by`);

--
-- Indexes for table `excuse_requests`
--
ALTER TABLE `excuse_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `excuse_requests_employee_id_foreign` (`employee_id`),
  ADD KEY `excuse_requests_approved_by_foreign` (`approved_by`);

--
-- Indexes for table `excuse_settings`
--
ALTER TABLE `excuse_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `floors`
--
ALTER TABLE `floors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `floors_modified_by_foreign` (`modified_by`),
  ADD KEY `floors_deleted_by_foreign` (`deleted_by`),
  ADD KEY `floors_branch_id_foreign` (`branch_id`),
  ADD KEY `floors_created_by_foreign` (`created_by`);

--
-- Indexes for table `floor_partitions`
--
ALTER TABLE `floor_partitions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `floor_partitions_floor_id_foreign` (`floor_id`),
  ADD KEY `floor_partitions_modified_by_foreign` (`modified_by`),
  ADD KEY `floor_partitions_deleted_by_foreign` (`deleted_by`),
  ADD KEY `floor_partitions_created_by_foreign` (`created_by`);

--
-- Indexes for table `f_a_q_s`
--
ALTER TABLE `f_a_q_s`
  ADD PRIMARY KEY (`id`),
  ADD KEY `f_a_q_s_created_by_foreign` (`created_by`),
  ADD KEY `f_a_q_s_modified_by_foreign` (`modified_by`),
  ADD KEY `f_a_q_s_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `gifts`
--
ALTER TABLE `gifts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ingredients`
--
ALTER TABLE `ingredients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ingredients_recipe_id_foreign` (`recipe_id`),
  ADD KEY `ingredients_product_id_foreign` (`product_id`),
  ADD KEY `ingredients_product_unit_id_foreign` (`product_unit_id`);

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_queue_index` (`queue`);

--
-- Indexes for table `kitchen_logs`
--
ALTER TABLE `kitchen_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `kitchen_logs_order_id_foreign` (`order_id`),
  ADD KEY `kitchen_logs_order_details_id_foreign` (`order_details_id`),
  ADD KEY `kitchen_logs_dish_id_foreign` (`dish_id`),
  ADD KEY `kitchen_logs_dish_size_id_foreign` (`dish_size_id`),
  ADD KEY `kitchen_logs_offer_id_foreign` (`offer_id`),
  ADD KEY `kitchen_logs_branch_id_foreign` (`branch_id`),
  ADD KEY `kitchen_logs_store_id_foreign` (`store_id`),
  ADD KEY `kitchen_logs_order_addone_id_foreign` (`order_addone_id`),
  ADD KEY `kitchen_logs_dish_addone_id_foreign` (`dish_addone_id`),
  ADD KEY `kitchen_logs_table_id_foreign` (`table_id`),
  ADD KEY `kitchen_logs_employee_id_foreign` (`employee_id`),
  ADD KEY `kitchen_logs_created_by_foreign` (`created_by`),
  ADD KEY `kitchen_logs_modified_by_foreign` (`modified_by`),
  ADD KEY `kitchen_logs_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `leave_nationals`
--
ALTER TABLE `leave_nationals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_nationals_country_id_foreign` (`country_id`),
  ADD KEY `leave_nationals_leave_type_id_foreign` (`leave_type_id`),
  ADD KEY `leave_nationals_created_by_foreign` (`created_by`),
  ADD KEY `leave_nationals_modified_by_foreign` (`modified_by`),
  ADD KEY `leave_nationals_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `leave_requests`
--
ALTER TABLE `leave_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_requests_employee_id_foreign` (`employee_id`),
  ADD KEY `leave_requests_leave_type_id_foreign` (`leave_type_id`),
  ADD KEY `leave_requests_agreement_by_foreign` (`agreement_by`),
  ADD KEY `leave_requests_created_by_foreign` (`created_by`),
  ADD KEY `leave_requests_modified_by_foreign` (`modified_by`),
  ADD KEY `leave_requests_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `leave_settings`
--
ALTER TABLE `leave_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_settings_country_id_foreign` (`country_id`),
  ADD KEY `leave_settings_leave_type_id_foreign` (`leave_type_id`),
  ADD KEY `leave_settings_created_by_foreign` (`created_by`),
  ADD KEY `leave_settings_modified_by_foreign` (`modified_by`),
  ADD KEY `leave_settings_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `leave_types`
--
ALTER TABLE `leave_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_types_created_by_foreign` (`created_by`),
  ADD KEY `leave_types_modified_by_foreign` (`modified_by`),
  ADD KEY `leave_types_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `lines`
--
ALTER TABLE `lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lines_created_by_foreign` (`created_by`),
  ADD KEY `lines_modified_by_foreign` (`modified_by`),
  ADD KEY `lines_deleted_by_foreign` (`deleted_by`),
  ADD KEY `lines_store_id_foreign` (`store_id`);

--
-- Indexes for table `logos`
--
ALTER TABLE `logos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `logos_created_by_foreign` (`created_by`),
  ADD KEY `logos_modified_by_foreign` (`modified_by`),
  ADD KEY `logos_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
  ADD PRIMARY KEY (`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 `nationalities`
--
ALTER TABLE `nationalities`
  ADD PRIMARY KEY (`id`),
  ADD KEY `nationalities_created_by_foreign` (`created_by`),
  ADD KEY `nationalities_updated_by_foreign` (`updated_by`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_user_id_foreign` (`user_id`),
  ADD KEY `notifications_modified_by_foreign` (`modified_by`),
  ADD KEY `notifications_created_by_foreign` (`created_by`),
  ADD KEY `notifications_product_id_foreign` (`product_id`);

--
-- 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_user_id_index` (`user_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 `offers`
--
ALTER TABLE `offers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `offers_created_by_foreign` (`created_by`),
  ADD KEY `offers_modified_by_foreign` (`modified_by`),
  ADD KEY `offers_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `offer_details`
--
ALTER TABLE `offer_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `offer_details_offer_id_foreign` (`offer_id`),
  ADD KEY `offer_details_created_by_foreign` (`created_by`),
  ADD KEY `offer_details_modified_by_foreign` (`modified_by`),
  ADD KEY `offer_details_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `opening_balance`
--
ALTER TABLE `opening_balance`
  ADD PRIMARY KEY (`id`),
  ADD KEY `opening_balance_created_by_foreign` (`created_by`),
  ADD KEY `opening_balance_deleted_by_foreign` (`deleted_by`),
  ADD KEY `opening_balance_product_id_foreign` (`product_id`),
  ADD KEY `opening_balance_store_id_foreign` (`store_id`),
  ADD KEY `opening_balance_modified_by_foreign` (`modified_by`);

--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `orders_client_id_foreign` (`client_id`),
  ADD KEY `orders_table_id_foreign` (`table_id`),
  ADD KEY `orders_created_by_foreign` (`created_by`),
  ADD KEY `orders_modify_by_foreign` (`modify_by`),
  ADD KEY `orders_deleted_by_foreign` (`deleted_by`),
  ADD KEY `orders_discount_id_foreign` (`discount_id`),
  ADD KEY `orders_coupon_id_foreign` (`coupon_id`),
  ADD KEY `orders_branch_id_foreign` (`branch_id`),
  ADD KEY `orders_client_address_id_foreign` (`client_address_id`);

--
-- Indexes for table `order_addons`
--
ALTER TABLE `order_addons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `order_addons_order_id_foreign` (`order_id`),
  ADD KEY `order_addons_created_by_foreign` (`created_by`),
  ADD KEY `order_addons_modify_by_foreign` (`modify_by`),
  ADD KEY `order_addons_deleted_by_foreign` (`deleted_by`),
  ADD KEY `order_addons_dish_addon_id_foreign` (`dish_addon_id`),
  ADD KEY `order_addons_order_details_id_foreign` (`order_details_id`);

--
-- Indexes for table `order_details`
--
ALTER TABLE `order_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `order_details_order_id_foreign` (`order_id`),
  ADD KEY `order_details_created_by_foreign` (`created_by`),
  ADD KEY `order_details_modify_by_foreign` (`modify_by`),
  ADD KEY `order_details_deleted_by_foreign` (`deleted_by`),
  ADD KEY `order_details_dish_id_foreign` (`dish_id`),
  ADD KEY `order_details_offer_id_foreign` (`offer_id`),
  ADD KEY `order_details_dish_size_id_foreign` (`dish_size_id`);

--
-- Indexes for table `order_products`
--
ALTER TABLE `order_products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `order_products_order_id_foreign` (`order_id`),
  ADD KEY `order_products_product_id_foreign` (`product_id`),
  ADD KEY `order_products_created_by_foreign` (`created_by`),
  ADD KEY `order_products_modified_by_foreign` (`modified_by`),
  ADD KEY `order_products_deleted_by_foreign` (`deleted_by`),
  ADD KEY `order_products_product_unit_id_foreign` (`product_unit_id`);

--
-- Indexes for table `order_refunds`
--
ALTER TABLE `order_refunds`
  ADD PRIMARY KEY (`id`),
  ADD KEY `order_refunds_created_by_foreign` (`created_by`),
  ADD KEY `order_refunds_modify_by_foreign` (`modify_by`),
  ADD KEY `order_refunds_deleted_by_foreign` (`deleted_by`),
  ADD KEY `order_refunds_order_id_foreign` (`order_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_created_by_foreign` (`created_by`),
  ADD KEY `order_trackings_modify_by_foreign` (`modify_by`),
  ADD KEY `order_trackings_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `order_transactions`
--
ALTER TABLE `order_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `order_transactions_order_id_foreign` (`order_id`),
  ADD KEY `order_transactions_created_by_foreign` (`created_by`),
  ADD KEY `order_transactions_modify_by_foreign` (`modify_by`),
  ADD KEY `order_transactions_deleted_by_foreign` (`deleted_by`),
  ADD KEY `order_transactions_discount_id_foreign` (`discount_id`),
  ADD KEY `order_transactions_coupon_id_foreign` (`coupon_id`);

--
-- Indexes for table `otps`
--
ALTER TABLE `otps`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `overtime_settings`
--
ALTER TABLE `overtime_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `overtime_settings_overtime_type_id_foreign` (`overtime_type_id`),
  ADD KEY `overtime_settings_created_by_foreign` (`created_by`),
  ADD KEY `overtime_settings_modified_by_foreign` (`modified_by`),
  ADD KEY `overtime_settings_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `overtime_types`
--
ALTER TABLE `overtime_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `overtime_types_created_by_foreign` (`created_by`),
  ADD KEY `overtime_types_modified_by_foreign` (`modified_by`),
  ADD KEY `overtime_types_deleted_by_foreign` (`deleted_by`);

--
-- 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_code_unique` (`code`);

--
-- Indexes for table `payrolls`
--
ALTER TABLE `payrolls`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payrolls_employee_id_foreign` (`employee_id`),
  ADD KEY `payrolls_created_by_foreign` (`created_by`),
  ADD KEY `payrolls_modified_by_foreign` (`modified_by`),
  ADD KEY `payrolls_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `penalties`
--
ALTER TABLE `penalties`
  ADD PRIMARY KEY (`id`),
  ADD KEY `penalties_reason_id_foreign` (`reason_id`),
  ADD KEY `penalties_employee_id_foreign` (`employee_id`),
  ADD KEY `penalties_created_by_foreign` (`created_by`),
  ADD KEY `penalties_modified_by_foreign` (`modified_by`),
  ADD KEY `penalties_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `penalty_deductions`
--
ALTER TABLE `penalty_deductions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `penalty_deductions_penalty_id_foreign` (`penalty_id`),
  ADD KEY `penalty_deductions_employee_id_foreign` (`employee_id`),
  ADD KEY `penalty_deductions_created_by_foreign` (`created_by`),
  ADD KEY `penalty_deductions_modified_by_foreign` (`modified_by`),
  ADD KEY `penalty_deductions_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `penalty_reasons`
--
ALTER TABLE `penalty_reasons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `penalty_reasons_created_by_foreign` (`created_by`),
  ADD KEY `penalty_reasons_modified_by_foreign` (`modified_by`),
  ADD KEY `penalty_reasons_deleted_by_foreign` (`deleted_by`);

--
-- 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 `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);

--
-- Indexes for table `point_products`
--
ALTER TABLE `point_products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `point_products_dish_id_foreign` (`dish_id`),
  ADD KEY `point_products_vendor_id_foreign` (`vendor_id`);

--
-- Indexes for table `point_systems`
--
ALTER TABLE `point_systems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `point_systems_created_by_foreign` (`created_by`),
  ADD KEY `point_systems_modified_by_foreign` (`modified_by`),
  ADD KEY `point_systems_deleted_by_foreign` (`deleted_by`),
  ADD KEY `point_systems_branch_id_foreign` (`branch_id`);

--
-- Indexes for table `point_transactions`
--
ALTER TABLE `point_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `point_transactions_customer_id_foreign` (`customer_id`),
  ADD KEY `point_transactions_order_id_foreign` (`order_id`),
  ADD KEY `point_transactions_created_by_foreign` (`created_by`),
  ADD KEY `point_transactions_modified_by_foreign` (`modified_by`),
  ADD KEY `point_transactions_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `positions`
--
ALTER TABLE `positions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `positions_department_id_foreign` (`department_id`),
  ADD KEY `positions_created_by_foreign` (`created_by`),
  ADD KEY `positions_modified_by_foreign` (`modified_by`),
  ADD KEY `positions_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `privacy_policies`
--
ALTER TABLE `privacy_policies`
  ADD PRIMARY KEY (`id`),
  ADD KEY `privacy_policies_created_by_foreign` (`created_by`),
  ADD KEY `privacy_policies_modified_by_foreign` (`modified_by`),
  ADD KEY `privacy_policies_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `products_code_unique` (`code`),
  ADD KEY `products_created_by_foreign` (`created_by`),
  ADD KEY `products_modify_by_foreign` (`modify_by`),
  ADD KEY `products_deleted_by_foreign` (`deleted_by`),
  ADD KEY `products_main_unit_id_foreign` (`main_unit_id`),
  ADD KEY `products_currency_code_foreign` (`currency_code`),
  ADD KEY `products_category_id_foreign` (`category_id`),
  ADD KEY `products_brand_id_foreign` (`brand_id`);

--
-- Indexes for table `product_colors`
--
ALTER TABLE `product_colors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_colors_created_by_foreign` (`created_by`),
  ADD KEY `product_colors_modify_by_foreign` (`modify_by`),
  ADD KEY `product_colors_deleted_by_foreign` (`deleted_by`),
  ADD KEY `product_colors_color_id_foreign` (`color_id`),
  ADD KEY `product_colors_product_id_foreign` (`product_id`);

--
-- Indexes for table `product_images`
--
ALTER TABLE `product_images`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_images_product_id_foreign` (`product_id`),
  ADD KEY `product_images_created_by_foreign` (`created_by`),
  ADD KEY `product_images_modify_by_foreign` (`modify_by`),
  ADD KEY `product_images_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `product_limit`
--
ALTER TABLE `product_limit`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_limit_product_id_foreign` (`product_id`),
  ADD KEY `product_limit_store_id_foreign` (`store_id`);

--
-- Indexes for table `product_sizes`
--
ALTER TABLE `product_sizes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_sizes_created_by_foreign` (`created_by`),
  ADD KEY `product_sizes_modify_by_foreign` (`modify_by`),
  ADD KEY `product_sizes_deleted_by_foreign` (`deleted_by`),
  ADD KEY `product_sizes_size_id_foreign` (`size_id`),
  ADD KEY `product_sizes_product_id_foreign` (`product_id`);

--
-- Indexes for table `product_transactions`
--
ALTER TABLE `product_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_transactions_product_id_foreign` (`product_id`),
  ADD KEY `product_transactions_store_id_foreign` (`store_id`),
  ADD KEY `product_transactions_product_size_id_foreign` (`product_size_id`),
  ADD KEY `product_transactions_product_color_id_foreign` (`product_color_id`),
  ADD KEY `product_transactions_modified_by_foreign` (`modified_by`),
  ADD KEY `product_transactions_deleted_by_foreign` (`deleted_by`),
  ADD KEY `product_transactions_created_by_foreign` (`created_by`);

--
-- Indexes for table `product_transaction_logs`
--
ALTER TABLE `product_transaction_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_transaction_logs_product_id_foreign` (`product_id`),
  ADD KEY `product_transaction_logs_store_id_foreign` (`store_id`),
  ADD KEY `product_transaction_logs_product_size_id_foreign` (`product_size_id`),
  ADD KEY `product_transaction_logs_product_color_id_foreign` (`product_color_id`),
  ADD KEY `product_transaction_logs_modified_by_foreign` (`modified_by`),
  ADD KEY `product_transaction_logs_deleted_by_foreign` (`deleted_by`),
  ADD KEY `product_transaction_logs_created_by_foreign` (`created_by`);

--
-- Indexes for table `product_units`
--
ALTER TABLE `product_units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_units_created_by_foreign` (`created_by`),
  ADD KEY `product_units_deleted_by_foreign` (`deleted_by`),
  ADD KEY `product_units_modify_by_foreign` (`modify_by`),
  ADD KEY `product_units_unit_id_foreign` (`unit_id`),
  ADD KEY `product_units_product_id_foreign` (`product_id`);

--
-- Indexes for table `purchase_invoices`
--
ALTER TABLE `purchase_invoices`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `purchase_invoices_invoice_number_unique` (`invoice_number`),
  ADD KEY `purchase_invoices_vendor_id_foreign` (`vendor_id`),
  ADD KEY `purchase_invoices_store_id_foreign` (`store_id`),
  ADD KEY `purchase_invoices_created_by_foreign` (`created_by`),
  ADD KEY `purchase_invoices_modified_by_foreign` (`modified_by`),
  ADD KEY `purchase_invoices_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `purchase_invoices_details`
--
ALTER TABLE `purchase_invoices_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `purchase_invoices_details_purchase_invoices_id_foreign` (`purchase_invoices_id`),
  ADD KEY `purchase_invoices_details_category_id_foreign` (`category_id`),
  ADD KEY `purchase_invoices_details_product_id_foreign` (`product_id`),
  ADD KEY `purchase_invoices_details_unit_id_foreign` (`unit_id`);

--
-- Indexes for table `rates`
--
ALTER TABLE `rates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `rates_created_by_foreign` (`created_by`),
  ADD KEY `rates_modified_by_foreign` (`modified_by`),
  ADD KEY `rates_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `recipes`
--
ALTER TABLE `recipes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `recipes_code_unique` (`code`),
  ADD KEY `recipes_created_by_foreign` (`created_by`),
  ADD KEY `recipes_modified_by_foreign` (`modified_by`),
  ADD KEY `recipes_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `recipe_images`
--
ALTER TABLE `recipe_images`
  ADD PRIMARY KEY (`id`),
  ADD KEY `recipe_images_recipe_id_foreign` (`recipe_id`);

--
-- Indexes for table `return_policies`
--
ALTER TABLE `return_policies`
  ADD PRIMARY KEY (`id`),
  ADD KEY `return_policies_created_by_foreign` (`created_by`),
  ADD KEY `return_policies_modified_by_foreign` (`modified_by`),
  ADD KEY `return_policies_deleted_by_foreign` (`deleted_by`);

--
-- 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 `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `shelves`
--
ALTER TABLE `shelves`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `shelves_code_unique` (`code`),
  ADD KEY `shelves_division_id_foreign` (`division_id`),
  ADD KEY `shelves_created_by_foreign` (`created_by`),
  ADD KEY `shelves_modified_by_foreign` (`modified_by`),
  ADD KEY `shelves_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `shifts`
--
ALTER TABLE `shifts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `shifts_created_by_foreign` (`created_by`),
  ADD KEY `shifts_modified_by_foreign` (`modified_by`),
  ADD KEY `shifts_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `shift_details`
--
ALTER TABLE `shift_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `shift_details_shift_id_foreign` (`shift_id`),
  ADD KEY `shift_details_timetable_id_foreign` (`timetable_id`),
  ADD KEY `shift_details_created_by_foreign` (`created_by`),
  ADD KEY `shift_details_modified_by_foreign` (`modified_by`),
  ADD KEY `shift_details_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `sizes`
--
ALTER TABLE `sizes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sizes_category_id_foreign` (`category_id`),
  ADD KEY `sizes_modified_by_foreign` (`modified_by`),
  ADD KEY `sizes_created_by_foreign` (`created_by`),
  ADD KEY `sizes_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `sliders`
--
ALTER TABLE `sliders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sliders_created_by_foreign` (`created_by`),
  ADD KEY `sliders_modified_by_foreign` (`modified_by`),
  ADD KEY `sliders_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `stores`
--
ALTER TABLE `stores`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stores_branch_id_foreign` (`branch_id`),
  ADD KEY `stores_created_by_foreign` (`created_by`),
  ADD KEY `stores_modified_by_foreign` (`modified_by`),
  ADD KEY `stores_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `store_categories`
--
ALTER TABLE `store_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_categories_store_id_foreign` (`store_id`),
  ADD KEY `store_categories_category_id_foreign` (`category_id`);

--
-- Indexes for table `store_transactions`
--
ALTER TABLE `store_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_transactions_user_id_foreign` (`user_id`),
  ADD KEY `store_transactions_store_id_foreign` (`store_id`),
  ADD KEY `store_transactions_modified_by_foreign` (`modified_by`),
  ADD KEY `store_transactions_deleted_by_foreign` (`deleted_by`),
  ADD KEY `store_transactions_branch_id_foreign` (`branch_id`),
  ADD KEY `store_transactions_created_by_foreign` (`created_by`);

--
-- Indexes for table `store_transaction_details`
--
ALTER TABLE `store_transaction_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `store_transaction_details_store_transaction_id_foreign` (`store_transaction_id`),
  ADD KEY `store_transaction_details_product_id_foreign` (`product_id`),
  ADD KEY `store_transaction_details_product_unit_id_foreign` (`product_unit_id`),
  ADD KEY `store_transaction_details_product_size_id_foreign` (`product_size_id`),
  ADD KEY `store_transaction_details_product_color_id_foreign` (`product_color_id`),
  ADD KEY `store_transaction_details_country_id_foreign` (`country_id`);

--
-- Indexes for table `tables`
--
ALTER TABLE `tables`
  ADD PRIMARY KEY (`id`),
  ADD KEY `tables_floor_id_foreign` (`floor_id`),
  ADD KEY `tables_modified_by_foreign` (`modified_by`),
  ADD KEY `tables_deleted_by_foreign` (`deleted_by`),
  ADD KEY `tables_floor_partition_id_foreign` (`floor_partition_id`),
  ADD KEY `tables_created_by_foreign` (`created_by`);

--
-- Indexes for table `table_reservations`
--
ALTER TABLE `table_reservations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `table_reservations_table_id_foreign` (`table_id`),
  ADD KEY `table_reservations_client_id_foreign` (`client_id`),
  ADD KEY `table_reservations_confirmed_by_foreign` (`confirmed_by`),
  ADD KEY `table_reservations_modified_by_foreign` (`modified_by`),
  ADD KEY `table_reservations_deleted_by_foreign` (`deleted_by`),
  ADD KEY `table_reservations_created_by_foreign` (`created_by`);

--
-- Indexes for table `tenants`
--
ALTER TABLE `tenants`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `terms_and_conditions`
--
ALTER TABLE `terms_and_conditions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `terms_and_conditions_created_by_foreign` (`created_by`),
  ADD KEY `terms_and_conditions_modified_by_foreign` (`modified_by`),
  ADD KEY `terms_and_conditions_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `timetables`
--
ALTER TABLE `timetables`
  ADD PRIMARY KEY (`id`),
  ADD KEY `timetables_created_by_foreign` (`created_by`),
  ADD KEY `timetables_modified_by_foreign` (`modified_by`),
  ADD KEY `timetables_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `units`
--
ALTER TABLE `units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `units_created_by_foreign` (`created_by`),
  ADD KEY `units_modify_by_foreign` (`modify_by`),
  ADD KEY `units_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `unit_types`
--
ALTER TABLE `unit_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unit_types_code_unique` (`code`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD KEY `users_country_id_foreign` (`country_id`);

--
-- Indexes for table `user_coupons`
--
ALTER TABLE `user_coupons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_coupons_user_id_foreign` (`user_id`),
  ADD KEY `user_coupons_coupon_id_foreign` (`coupon_id`),
  ADD KEY `user_coupons_created_by_foreign` (`created_by`),
  ADD KEY `user_coupons_modified_by_foreign` (`modified_by`),
  ADD KEY `user_coupons_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `user_favorite_dishes`
--
ALTER TABLE `user_favorite_dishes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_favorite_dishes_user_id_foreign` (`user_id`),
  ADD KEY `user_favorite_dishes_dish_id_foreign` (`dish_id`);

--
-- Indexes for table `user_gifts`
--
ALTER TABLE `user_gifts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_gifts_user_id_foreign` (`user_id`),
  ADD KEY `user_gifts_gift_id_foreign` (`gift_id`);

--
-- Indexes for table `vendors`
--
ALTER TABLE `vendors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `vendors_country_id_foreign` (`country_id`),
  ADD KEY `vendors_created_by_foreign` (`created_by`),
  ADD KEY `vendors_modified_by_foreign` (`modified_by`),
  ADD KEY `vendors_deleted_by_foreign` (`deleted_by`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `actionbacklogs`
--
ALTER TABLE `actionbacklogs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `addon_categories`
--
ALTER TABLE `addon_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `advances`
--
ALTER TABLE `advances`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `advance_requests`
--
ALTER TABLE `advance_requests`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `advance_settings`
--
ALTER TABLE `advance_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `apicodes`
--
ALTER TABLE `apicodes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;

--
-- AUTO_INCREMENT for table `branches`
--
ALTER TABLE `branches`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `branch_coupon`
--
ALTER TABLE `branch_coupon`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `branch_discount`
--
ALTER TABLE `branch_discount`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `branch_menus`
--
ALTER TABLE `branch_menus`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=200;

--
-- AUTO_INCREMENT for table `branch_menu_addons`
--
ALTER TABLE `branch_menu_addons`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=322;

--
-- AUTO_INCREMENT for table `branch_menu_addon_categories`
--
ALTER TABLE `branch_menu_addon_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT for table `branch_menu_categories`
--
ALTER TABLE `branch_menu_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=67;

--
-- AUTO_INCREMENT for table `branch_menu_sizes`
--
ALTER TABLE `branch_menu_sizes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=208;

--
-- AUTO_INCREMENT for table `branch_poses`
--
ALTER TABLE `branch_poses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `branch_recipe`
--
ALTER TABLE `branch_recipe`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `branch_times`
--
ALTER TABLE `branch_times`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `cashier_machines`
--
ALTER TABLE `cashier_machines`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cashier_machine_logs`
--
ALTER TABLE `cashier_machine_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `client_addresses`
--
ALTER TABLE `client_addresses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT for table `colors`
--
ALTER TABLE `colors`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `coupons`
--
ALTER TABLE `coupons`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `cuisines`
--
ALTER TABLE `cuisines`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `delays`
--
ALTER TABLE `delays`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `delay_deductions`
--
ALTER TABLE `delay_deductions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `delay_times`
--
ALTER TABLE `delay_times`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `delivery_settings`
--
ALTER TABLE `delivery_settings`
  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 for table `discounts`
--
ALTER TABLE `discounts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `dishes`
--
ALTER TABLE `dishes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87;

--
-- AUTO_INCREMENT for table `dish_addons`
--
ALTER TABLE `dish_addons`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=89;

--
-- AUTO_INCREMENT for table `dish_categories`
--
ALTER TABLE `dish_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT for table `dish_details`
--
ALTER TABLE `dish_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102;

--
-- AUTO_INCREMENT for table `dish_discount`
--
ALTER TABLE `dish_discount`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=93;

--
-- AUTO_INCREMENT for table `dish_sizes`
--
ALTER TABLE `dish_sizes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64;

--
-- AUTO_INCREMENT for table `divisions`
--
ALTER TABLE `divisions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `domains`
--
ALTER TABLE `domains`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `einvoices`
--
ALTER TABLE `einvoices`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `einvoice_settings`
--
ALTER TABLE `einvoice_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `employee_floor_partitions`
--
ALTER TABLE `employee_floor_partitions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `employee_opening_balances`
--
ALTER TABLE `employee_opening_balances`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `employee_schedules`
--
ALTER TABLE `employee_schedules`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `excuses`
--
ALTER TABLE `excuses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `excuse_requests`
--
ALTER TABLE `excuse_requests`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `excuse_settings`
--
ALTER TABLE `excuse_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `floors`
--
ALTER TABLE `floors`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `floor_partitions`
--
ALTER TABLE `floor_partitions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gifts`
--
ALTER TABLE `gifts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ingredients`
--
ALTER TABLE `ingredients`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=77;

--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `kitchen_logs`
--
ALTER TABLE `kitchen_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `leave_nationals`
--
ALTER TABLE `leave_nationals`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `leave_requests`
--
ALTER TABLE `leave_requests`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `lines`
--
ALTER TABLE `lines`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=435;

--
-- AUTO_INCREMENT for table `nationalities`
--
ALTER TABLE `nationalities`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `oauth_clients`
--
ALTER TABLE `oauth_clients`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `offers`
--
ALTER TABLE `offers`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `offer_details`
--
ALTER TABLE `offer_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT for table `opening_balance`
--
ALTER TABLE `opening_balance`
  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=37;

--
-- AUTO_INCREMENT for table `order_addons`
--
ALTER TABLE `order_addons`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT for table `order_details`
--
ALTER TABLE `order_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72;

--
-- AUTO_INCREMENT for table `order_products`
--
ALTER TABLE `order_products`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `order_refunds`
--
ALTER TABLE `order_refunds`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `order_trackings`
--
ALTER TABLE `order_trackings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT for table `order_transactions`
--
ALTER TABLE `order_transactions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT for table `otps`
--
ALTER TABLE `otps`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `overtime_settings`
--
ALTER TABLE `overtime_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `overtime_types`
--
ALTER TABLE `overtime_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payment_methods`
--
ALTER TABLE `payment_methods`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `payrolls`
--
ALTER TABLE `payrolls`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `penalties`
--
ALTER TABLE `penalties`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `penalty_deductions`
--
ALTER TABLE `penalty_deductions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `penalty_reasons`
--
ALTER TABLE `penalty_reasons`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=495;

--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `point_products`
--
ALTER TABLE `point_products`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `point_systems`
--
ALTER TABLE `point_systems`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `point_transactions`
--
ALTER TABLE `point_transactions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `positions`
--
ALTER TABLE `positions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `product_colors`
--
ALTER TABLE `product_colors`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `product_images`
--
ALTER TABLE `product_images`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT for table `product_limit`
--
ALTER TABLE `product_limit`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT for table `product_sizes`
--
ALTER TABLE `product_sizes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `product_transactions`
--
ALTER TABLE `product_transactions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_transaction_logs`
--
ALTER TABLE `product_transaction_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_units`
--
ALTER TABLE `product_units`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `purchase_invoices`
--
ALTER TABLE `purchase_invoices`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `purchase_invoices_details`
--
ALTER TABLE `purchase_invoices_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `rates`
--
ALTER TABLE `rates`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `recipes`
--
ALTER TABLE `recipes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58;

--
-- AUTO_INCREMENT for table `recipe_images`
--
ALTER TABLE `recipe_images`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `shelves`
--
ALTER TABLE `shelves`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `shifts`
--
ALTER TABLE `shifts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `shift_details`
--
ALTER TABLE `shift_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sizes`
--
ALTER TABLE `sizes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT for table `stores`
--
ALTER TABLE `stores`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `store_categories`
--
ALTER TABLE `store_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `store_transactions`
--
ALTER TABLE `store_transactions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `store_transaction_details`
--
ALTER TABLE `store_transaction_details`
  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 for table `table_reservations`
--
ALTER TABLE `table_reservations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `timetables`
--
ALTER TABLE `timetables`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `units`
--
ALTER TABLE `units`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `unit_types`
--
ALTER TABLE `unit_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=144;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=89;

--
-- AUTO_INCREMENT for table `user_coupons`
--
ALTER TABLE `user_coupons`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `user_favorite_dishes`
--
ALTER TABLE `user_favorite_dishes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=115;

--
-- AUTO_INCREMENT for table `user_gifts`
--
ALTER TABLE `user_gifts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `vendors`
--
ALTER TABLE `vendors`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `actionbacklogs`
--
ALTER TABLE `actionbacklogs`
  ADD CONSTRAINT `actionbacklogs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `advances`
--
ALTER TABLE `advances`
  ADD CONSTRAINT `advances_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `advances_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `advances_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  ADD CONSTRAINT `advances_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `advances_request_id_foreign` FOREIGN KEY (`request_id`) REFERENCES `advance_requests` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `advance_requests`
--
ALTER TABLE `advance_requests`
  ADD CONSTRAINT `advance_requests_advance_setting_id_foreign` FOREIGN KEY (`advance_setting_id`) REFERENCES `advance_settings` (`id`),
  ADD CONSTRAINT `advance_requests_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `advance_requests_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `advance_requests_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `advance_requests_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `advance_settings`
--
ALTER TABLE `advance_settings`
  ADD CONSTRAINT `advance_settings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `advance_settings_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `advance_settings_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `branches`
--
ALTER TABLE `branches`
  ADD CONSTRAINT `branches_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branches_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `branches_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `branches_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `branches_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `branch_coupon`
--
ALTER TABLE `branch_coupon`
  ADD CONSTRAINT `branch_coupon_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `branch_coupon_coupon_id_foreign` FOREIGN KEY (`coupon_id`) REFERENCES `coupons` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `branch_discount`
--
ALTER TABLE `branch_discount`
  ADD CONSTRAINT `branch_discount_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `branch_discount_discount_id_foreign` FOREIGN KEY (`discount_id`) REFERENCES `discounts` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `branch_menus`
--
ALTER TABLE `branch_menus`
  ADD CONSTRAINT `branch_menus_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menus_branch_menu_category_id_foreign` FOREIGN KEY (`branch_menu_category_id`) REFERENCES `branch_menu_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menus_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menus_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menus_dish_id_foreign` FOREIGN KEY (`dish_id`) REFERENCES `dishes` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menus_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `branch_menu_addons`
--
ALTER TABLE `branch_menu_addons`
  ADD CONSTRAINT `branch_menu_addons_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addons_branch_menu_addon_category_id_foreign` FOREIGN KEY (`branch_menu_addon_category_id`) REFERENCES `branch_menu_addon_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addons_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addons_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addons_dish_addon_id_foreign` FOREIGN KEY (`dish_addon_id`) REFERENCES `dish_addons` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addons_dish_id_foreign` FOREIGN KEY (`dish_id`) REFERENCES `dishes` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addons_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `branch_menu_addon_categories`
--
ALTER TABLE `branch_menu_addon_categories`
  ADD CONSTRAINT `branch_menu_addon_categories_addon_category_id_foreign` FOREIGN KEY (`addon_category_id`) REFERENCES `addon_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addon_categories_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addon_categories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addon_categories_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_addon_categories_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `branch_menu_categories`
--
ALTER TABLE `branch_menu_categories`
  ADD CONSTRAINT `branch_menu_categories_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_categories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_categories_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_categories_dish_category_id_foreign` FOREIGN KEY (`dish_category_id`) REFERENCES `dish_categories` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_categories_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `branch_menu_sizes`
--
ALTER TABLE `branch_menu_sizes`
  ADD CONSTRAINT `branch_menu_sizes_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_sizes_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_sizes_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_sizes_dish_id_foreign` FOREIGN KEY (`dish_id`) REFERENCES `dishes` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_sizes_dish_size_id_foreign` FOREIGN KEY (`dish_size_id`) REFERENCES `dish_sizes` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_menu_sizes_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `branch_poses`
--
ALTER TABLE `branch_poses`
  ADD CONSTRAINT `branch_poses_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`);

--
-- Constraints for table `branch_recipe`
--
ALTER TABLE `branch_recipe`
  ADD CONSTRAINT `branch_recipe_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `branch_recipe_recipe_id_foreign` FOREIGN KEY (`recipe_id`) REFERENCES `recipes` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `branch_times`
--
ALTER TABLE `branch_times`
  ADD CONSTRAINT `branch_times_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_times_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_times_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `branch_times_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `brands`
--
ALTER TABLE `brands`
  ADD CONSTRAINT `brands_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `brands_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `brands_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `cashier_machines`
--
ALTER TABLE `cashier_machines`
  ADD CONSTRAINT `cashier_machines_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cashier_machines_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cashier_machines_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cashier_machines_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `cashier_machine_logs`
--
ALTER TABLE `cashier_machine_logs`
  ADD CONSTRAINT `cashier_machine_logs_cashier_machine_id_foreign` FOREIGN KEY (`cashier_machine_id`) REFERENCES `cashier_machines` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cashier_machine_logs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cashier_machine_logs_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cashier_machine_logs_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cashier_machine_logs_employee_opening_balance_id_foreign` FOREIGN KEY (`employee_opening_balance_id`) REFERENCES `employee_opening_balances` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `cashier_machine_logs_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `categories`
--
ALTER TABLE `categories`
  ADD CONSTRAINT `categories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `categories_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `categories_modify_by_foreign` FOREIGN KEY (`modify_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `client_addresses`
--
ALTER TABLE `client_addresses`
  ADD CONSTRAINT `client_addresses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `colors`
--
ALTER TABLE `colors`
  ADD CONSTRAINT `colors_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `colors_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `colors_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `countries`
--
ALTER TABLE `countries`
  ADD CONSTRAINT `countries_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `countries_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `countries_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `dish_addons`
--
ALTER TABLE `dish_addons`
  ADD CONSTRAINT `dish_addons_addon_category_id_foreign` FOREIGN KEY (`addon_category_id`) REFERENCES `addon_categories` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `dish_details`
--
ALTER TABLE `dish_details`
  ADD CONSTRAINT `dish_details_dish_size_id_foreign` FOREIGN KEY (`dish_size_id`) REFERENCES `dish_sizes` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `dish_discount`
--
ALTER TABLE `dish_discount`
  ADD CONSTRAINT `dish_discount_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `dish_discount_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `dish_discount_modify_by_foreign` FOREIGN KEY (`modify_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `dish_sizes`
--
ALTER TABLE `dish_sizes`
  ADD CONSTRAINT `dish_sizes_dish_id_foreign` FOREIGN KEY (`dish_id`) REFERENCES `dishes` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT;

--
-- Constraints for table `domains`
--
ALTER TABLE `domains`
  ADD CONSTRAINT `domains_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `employees`
--
ALTER TABLE `employees`
  ADD CONSTRAINT `employees_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `employees_nationality_id_foreign` FOREIGN KEY (`nationality_id`) REFERENCES `nationalities` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `employees_supervisor_id_foreign` FOREIGN KEY (`supervisor_id`) REFERENCES `employees` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `f_a_q_s`
--
ALTER TABLE `f_a_q_s`
  ADD CONSTRAINT `f_a_q_s_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `f_a_q_s_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `f_a_q_s_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `kitchen_logs`
--
ALTER TABLE `kitchen_logs`
  ADD CONSTRAINT `kitchen_logs_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_dish_addone_id_foreign` FOREIGN KEY (`dish_addone_id`) REFERENCES `dish_addons` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_dish_id_foreign` FOREIGN KEY (`dish_id`) REFERENCES `dishes` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_dish_size_id_foreign` FOREIGN KEY (`dish_size_id`) REFERENCES `dish_sizes` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_offer_id_foreign` FOREIGN KEY (`offer_id`) REFERENCES `offers` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_order_addone_id_foreign` FOREIGN KEY (`order_addone_id`) REFERENCES `order_addons` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_order_details_id_foreign` FOREIGN KEY (`order_details_id`) REFERENCES `order_details` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_store_id_foreign` FOREIGN KEY (`store_id`) REFERENCES `stores` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `kitchen_logs_table_id_foreign` FOREIGN KEY (`table_id`) REFERENCES `tables` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `leave_settings`
--
ALTER TABLE `leave_settings`
  ADD CONSTRAINT `leave_settings_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `leave_settings_leave_type_id_foreign` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_types` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `logos`
--
ALTER TABLE `logos`
  ADD CONSTRAINT `logos_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `logos_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `logos_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE 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 ON UPDATE RESTRICT;

--
-- 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 `nationalities`
--
ALTER TABLE `nationalities`
  ADD CONSTRAINT `nationalities_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `nationalities_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `orders`
--
ALTER TABLE `orders`
  ADD CONSTRAINT `orders_client_address_id_foreign` FOREIGN KEY (`client_address_id`) REFERENCES `client_addresses` (`id`);

--
-- Constraints for table `order_addons`
--
ALTER TABLE `order_addons`
  ADD CONSTRAINT `order_addons_order_details_id_foreign` FOREIGN KEY (`order_details_id`) REFERENCES `order_details` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `order_details`
--
ALTER TABLE `order_details`
  ADD CONSTRAINT `order_details_dish_size_id_foreign` FOREIGN KEY (`dish_size_id`) REFERENCES `dish_sizes` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `order_details_offer_id_foreign` FOREIGN KEY (`offer_id`) REFERENCES `offers` (`id`);

--
-- Constraints for table `privacy_policies`
--
ALTER TABLE `privacy_policies`
  ADD CONSTRAINT `privacy_policies_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `privacy_policies_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `privacy_policies_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `rates`
--
ALTER TABLE `rates`
  ADD CONSTRAINT `rates_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `rates_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `rates_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `return_policies`
--
ALTER TABLE `return_policies`
  ADD CONSTRAINT `return_policies_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `return_policies_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `return_policies_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE 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 ON UPDATE RESTRICT,
  ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `sliders`
--
ALTER TABLE `sliders`
  ADD CONSTRAINT `sliders_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `sliders_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `sliders_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `terms_and_conditions`
--
ALTER TABLE `terms_and_conditions`
  ADD CONSTRAINT `terms_and_conditions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `terms_and_conditions_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `terms_and_conditions_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `user_coupons`
--
ALTER TABLE `user_coupons`
  ADD CONSTRAINT `user_coupons_coupon_id_foreign` FOREIGN KEY (`coupon_id`) REFERENCES `coupons` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_coupons_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_coupons_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_coupons_modified_by_foreign` FOREIGN KEY (`modified_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `user_coupons_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `user_favorite_dishes`
--
ALTER TABLE `user_favorite_dishes`
  ADD CONSTRAINT `user_favorite_dishes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
COMMIT;

