-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Dec 10, 2024 at 10:27 PM
-- Server version: 10.6.19-MariaDB-cll-lve
-- PHP Version: 8.3.14

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `omaralyomhost_foshha`
--

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

--
-- Table structure for table `canteens`
--

CREATE TABLE `canteens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` text DEFAULT NULL,
  `wallet` double DEFAULT NULL,
  `account_name` text DEFAULT NULL,
  `account_number` text DEFAULT NULL,
  `bank_name` text DEFAULT NULL,
  `iban` text DEFAULT NULL,
  `school_id` bigint(20) 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;

--
-- Dumping data for table `canteens`
--

INSERT INTO `canteens` (`id`, `code`, `wallet`, `account_name`, `account_number`, `bank_name`, `iban`, `school_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '8011350', NULL, 'test', 'test', 'test', 'test', 1, NULL, '2024-12-05 23:01:37', '2024-12-05 23:01:37'),
(2, '15598052', NULL, 'ww', 'ww', 'ww', 'ww', 1, NULL, '2024-12-05 23:59:16', '2024-12-05 23:59:16'),
(3, '31001727378', NULL, 'test1', '2134324', 'test1', '43245325432543', 1, NULL, '2024-12-07 21:31:31', '2024-12-07 21:31:31'),
(4, '99642100534', NULL, 'qqqq', '3423432432', 'qqqq', '423432432', 2, NULL, '2024-12-07 21:36:00', '2024-12-10 18:42:16');

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

--
-- Table structure for table `canteen_descriptions`
--

CREATE TABLE `canteen_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(500) DEFAULT NULL,
  `canteen_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `canteen_descriptions`
--

INSERT INTO `canteen_descriptions` (`id`, `title`, `canteen_id`, `language_id`) VALUES
(3, 'test', 1, 1),
(4, 'test', 1, 2),
(5, 'www', 2, 1),
(6, 'www', 2, 2),
(13, 'test1', 3, 1),
(14, 'test1', 3, 2),
(17, 'qqqq', 4, 1),
(18, 'qqqq', 4, 2);

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

--
-- Table structure for table `child_block_products`
--

CREATE TABLE `child_block_products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `cities`
--

CREATE TABLE `cities` (
  `id` bigint(20) UNSIGNED NOT 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;

--
-- Dumping data for table `cities`
--

INSERT INTO `cities` (`id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, NULL, '2024-12-05 20:50:23', '2024-12-05 20:50:23'),
(2, NULL, '2024-12-09 07:38:40', '2024-12-09 07:38:40');

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

--
-- Table structure for table `city_descriptions`
--

CREATE TABLE `city_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(500) DEFAULT NULL,
  `city_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `city_descriptions`
--

INSERT INTO `city_descriptions` (`id`, `title`, `city_id`, `language_id`) VALUES
(3, 'test', 1, 1),
(4, 'test', 1, 2),
(7, 'test1', 2, 1),
(8, 'test1', 2, 2);

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `faqs`
--

CREATE TABLE `faqs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) 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;

--
-- Dumping data for table `faqs`
--

INSERT INTO `faqs` (`id`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES
(2, 0, NULL, '2024-12-05 21:00:14', '2024-12-05 21:00:14'),
(3, 1, NULL, '2024-12-05 21:03:19', '2024-12-05 21:03:19');

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

--
-- Table structure for table `faq_descriptions`
--

CREATE TABLE `faq_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `question` varchar(500) DEFAULT NULL,
  `answer` text DEFAULT NULL,
  `faq_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `faq_descriptions`
--

INSERT INTO `faq_descriptions` (`id`, `question`, `answer`, `faq_id`, `language_id`) VALUES
(5, 'test', 'test', 2, 1),
(6, 'test', 'test', 2, 2),
(9, 'data', 'data', 3, 1),
(10, 'data', 'data', 3, 2);

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

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `queue` varchar(191) NOT NULL,
  `payload` longtext NOT NULL,
  `attempts` tinyint(3) UNSIGNED NOT NULL,
  `reserved_at` int(10) UNSIGNED DEFAULT NULL,
  `available_at` int(10) UNSIGNED NOT NULL,
  `created_at` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `languages`
--

CREATE TABLE `languages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `local` char(2) NOT NULL,
  `name` varchar(50) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'whether the language is active in the website or not, 1-> is active',
  `admin_status` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'whether the language is active in the dashboard or not, 1-> is active',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `languages`
--

INSERT INTO `languages` (`id`, `local`, `name`, `status`, `admin_status`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'ar', 'Arabic', 1, 1, NULL, NULL, NULL),
(2, 'en', 'English', 1, 1, NULL, NULL, NULL);

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

--
-- Table structure for table `management_notifications`
--

CREATE TABLE `management_notifications` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status` varchar(100) DEFAULT NULL,
  `user_id` bigint(20) 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;

--
-- Dumping data for table `management_notifications`
--

INSERT INTO `management_notifications` (`id`, `status`, `user_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(2, '0', NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(3, '1', NULL, NULL, '2024-12-07 22:51:26', '2024-12-07 22:51:26'),
(4, '1', 5, NULL, '2024-12-07 22:52:34', '2024-12-07 22:52:34'),
(5, '2', NULL, NULL, '2024-12-07 22:52:56', '2024-12-07 22:52:56'),
(6, '2', 8, NULL, '2024-12-07 22:53:09', '2024-12-07 22:53:09');

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

--
-- Table structure for table `management_notification_descriptions`
--

CREATE TABLE `management_notification_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(500) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `management_notification_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `management_notification_descriptions`
--

INSERT INTO `management_notification_descriptions` (`id`, `title`, `description`, `management_notification_id`, `language_id`) VALUES
(1, 'test', 'test', 2, 1),
(2, 'test', 'test', 2, 2),
(3, 'test1', 'test1', 3, 1),
(4, 'test1', 'test1', 3, 2),
(5, 'test1', 'test1', 4, 1),
(6, 'test1', 'test1', 4, 2),
(7, 'test1', 'test1', 5, 1),
(8, 'test1', 'test1', 5, 2),
(9, 'test1', 'test1', 6, 1),
(10, 'test1', 'test1', 6, 2);

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(191) NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2003_03_28_090214_create_languages_table', 1),
(2, '2014_10_09_152318_cities', 1),
(3, '2014_10_10_152320_schools', 1),
(4, '2014_10_12_000000_create_users_table', 1),
(5, '2014_10_12_100000_create_password_resets_table', 1),
(6, '2020_03_23_152956_create_modules_table', 1),
(7, '2020_03_24_152319_city_descriptions', 1),
(8, '2020_03_24_152321_school_descriptions', 1),
(9, '2020_03_24_152330_create_user_modules_table', 1),
(10, '2020_04_11_162749_create_pages_table', 1),
(11, '2020_04_15_174353_create_page_description_table', 1),
(12, '2020_05_18_084100_create_jobs_table', 1),
(13, '2020_05_18_103912_create_failed_jobs_table', 1),
(14, '2020_06_01_181915_create_setting_table', 1),
(15, '2020_06_06_155249_create_website_visitor_table', 1),
(16, '2024_03_12_163619_visitor_messages', 1),
(17, '2024_03_12_163629_visitor_message_replies', 1),
(18, '2024_12_05_133416_faqs', 1),
(19, '2024_12_05_133420_faq_descriptions', 1),
(20, '2024_12_05_133632_canteens', 1),
(21, '2024_12_05_133635_canteen_descriptions', 1),
(22, '2024_12_05_133706_products', 1),
(23, '2024_12_05_133710_product_descriptions', 1),
(24, '2024_12_05_133724_packages', 1),
(25, '2024_12_05_133729_package_descriptions', 1),
(26, '2024_12_05_133744_subscriptions', 1),
(27, '2024_12_05_133807_notifications', 1),
(28, '2024_12_05_133811_notification_descriptions', 1),
(29, '2024_12_05_133820_management_notifications', 1),
(30, '2024_12_05_133824_management_notification_descriptions', 1),
(31, '2024_12_05_133846_payment_logs', 1),
(32, '2024_12_05_133900_orders', 1),
(33, '2024_12_05_133906_order_products', 1),
(34, '2024_12_05_134331_child_block_products', 1);

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

--
-- Table structure for table `modules`
--

CREATE TABLE `modules` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(100) NOT NULL,
  `path` varchar(50) NOT NULL,
  `meta` text 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;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` (`id`, `name`, `path`, `meta`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Users', 'users', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0645\\u0634\\u0631\\u0641\\u064a\\u0646\",\"en\":\"Users\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0625\\u0636\\u0627\\u0641\\u0629 \\u0645\\u0634\\u0631\\u0641 \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0645\\u0634\\u0631\\u0641\",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\",\"email\":\"\\u0627\\u0644\\u0628\\u0631\\u064a\\u062f \\u0627\\u0644\\u0625\\u0644\\u0643\\u062a\\u0631\\u0648\\u0646\\u064a\",\"phone\":\"\\u0631\\u0642\\u0645 \\u0627\\u0644\\u062c\\u0648\\u0627\\u0644\",\"photo\":\"\\u0635\\u0648\\u0631\\u0629 \\u0627\\u0644\\u0628\\u0631\\u0648\\u0641\\u0627\\u064a\\u0644\",\"password\":\"\\u0643\\u0644\\u0645\\u0629 \\u0627\\u0644\\u0645\\u0631\\u0648\\u0631\",\"password_confirmation\":\"\\u062a\\u0623\\u0643\\u064a\\u062f \\u0643\\u0644\\u0645\\u0629 \\u0627\\u0644\\u0645\\u0631\\u0648\\u0631\",\"Modules\":\"\\u0627\\u0644\\u0645\\u0648\\u062f\\u064a\\u0648\\u0644\\u0627\\u062a\"},\"en\":{\"add_new\":\"Add New User\",\"edit\":\"Edit User\",\"name\":\"The name\",\"email\":\"The email\",\"phone\":\"The Phone\",\"photo\":\"The Photo\",\"password\":\"Password\",\"password_confirmation\":\"Password Confirmation\",\"Modules\":\"Modules\"}}}', NULL, NULL, NULL),
(2, 'Parents', 'parents', '{\"module_name\":{\"ar\":\"\\u0627\\u0648\\u0644\\u064a\\u0627\\u0621 \\u0627\\u0644\\u0627\\u0645\\u0648\\u0631\",\"en\":\"Parents\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0625\\u0636\\u0627\\u0641\\u0629 \\u0648\\u0644\\u064a \\u0627\\u0645\\u0631 \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0648\\u0644\\u064a \\u0627\\u0645\\u0631\",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\",\"phone\":\"\\u0631\\u0642\\u0645 \\u0627\\u0644\\u062c\\u0648\\u0627\\u0644\",\"photo\":\"\\u0635\\u0648\\u0631\\u0629 \\u0627\\u0644\\u0628\\u0631\\u0648\\u0641\\u0627\\u064a\\u0644\",\"password\":\"\\u0643\\u0644\\u0645\\u0629 \\u0627\\u0644\\u0645\\u0631\\u0648\\u0631\",\"password_confirmation\":\"\\u062a\\u0623\\u0643\\u064a\\u062f \\u0643\\u0644\\u0645\\u0629 \\u0627\\u0644\\u0645\\u0631\\u0648\\u0631\"},\"en\":{\"add_new\":\"Add New Parent\",\"edit\":\"Edit Parent\",\"name\":\"The name\",\"phone\":\"The Phone\",\"photo\":\"The Photo\",\"password\":\"Password\",\"password_confirmation\":\"Password Confirmation\"}}}', NULL, NULL, NULL),
(3, 'Schools', 'schools', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0645\\u0648\\u0631\\u062f\\u064a\\u0646\",\"en\":\"Schools\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0625\\u0636\\u0627\\u0641\\u0629 \\u0645\\u062f\\u0631\\u0633\\u0629 \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0645\\u062f\\u0631\\u0633\\u0629\",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New School\",\"edit\":\"Edit School\",\"name\":\"The name\"}}}', NULL, NULL, NULL),
(4, 'Canteens', 'canteens', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0645\\u0642\\u0627\\u0635\\u0641\",\"en\":\"Canteens\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0627\\u0644\\u0645\\u0642\\u0635\\u0641  \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0627\\u0644\\u0645\\u0642\\u0635\\u0641    \",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New Canteen\",\"edit\":\"Edit Canteen\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(5, 'Cities', 'cities', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0645\\u062f\\u0646\",\"en\":\"Cities\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0645\\u062f\\u064a\\u0646\\u0629  \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0645\\u062f\\u064a\\u0646\\u0629    \",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New City\",\"edit\":\"Edit City\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(6, 'Faqs', 'faqs', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0627\\u0633\\u0626\\u0644\\u0629 \\u0627\\u0644\\u0634\\u0627\\u0626\\u0639\\u0629\",\"en\":\"Faqs\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0627\\u0644\\u0627\\u0633\\u0626\\u0644\\u0629 \\u0627\\u0644\\u0634\\u0627\\u0626\\u0639\\u0629  \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0627\\u0644\\u0627\\u0633\\u0626\\u0644\\u0629 \\u0627\\u0644\\u0634\\u0627\\u0626\\u0639\\u0629    \",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New Faq\",\"edit\":\"Edit Faq\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(7, 'Products', 'products', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0645\\u0646\\u062a\\u062c\\u0627\\u062a\",\"en\":\"Products\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0645\\u0646\\u062a\\u062c \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0645\\u0646\\u062a\\u062c\",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New Product\",\"edit\":\"Edit Product\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(8, 'Packages', 'packages', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0628\\u0627\\u0642\\u0627\\u062a\",\"en\":\"Packages\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0628\\u0627\\u0642\\u0629  \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0628\\u0627\\u0642\\u0629    \",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New Package\",\"edit\":\"Edit Package\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(9, 'Subscriptions', 'subscriptions', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0627\\u0634\\u062a\\u0631\\u0627\\u0643\\u0627\\u062a \",\"en\":\"Subscriptions\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0627\\u0644\\u0627\\u0634\\u062a\\u0631\\u0627\\u0643\\u0627\\u062a \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u0639\\u0631\\u0636 \\u0627\\u0644\\u0627\\u0634\\u062a\\u0631\\u0627\\u0643\\u0627\\u062a\",\"name\":\"\\u0627\\u0644\\u0627\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New Subscription\",\"edit\":\"Show Subscription\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(10, 'Payment Logs', 'payment_logs', '{\"module_name\":{\"ar\":\"\\u0639\\u0645\\u0644\\u064a\\u0627\\u062a \\u0627\\u0644\\u0645\\u062d\\u0627\\u0641\\u0638 \\u0627\\u0644\\u0645\\u0627\\u0644\\u064a\\u0629\",\"en\":\"Payment Logs\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0639\\u0645\\u0627\\u064a\\u0629 \\u0627\\u0644\\u0645\\u062d\\u0627\\u0641\\u0638 \\u0627\\u0644\\u0645\\u0627\\u0644\\u064a\\u0629 \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0639\\u0645\\u0627\\u064a\\u0629 \\u0627\\u0644\\u0645\\u062d\\u0627\\u0641\\u0638 \\u0627\\u0644\\u0645\\u0627\\u0644\\u064a\\u0629\",\"name\":\"\\u0627\\u0644\\u0625\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New Payment Log\",\"edit\":\"Edit Payment Log\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(11, 'Orders', 'orders', '{\"module_name\":{\"ar\":\"\\u0637\\u0644\\u0628\\u0627\\u062a \",\"en\":\"Orders\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0627\\u0644\\u0637\\u0644\\u0628\\u0627\\u062a \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u0639\\u0631\\u0636 \\u0627\\u0644\\u0637\\u0644\\u0628\\u0627\\u062a\",\"name\":\"\\u0627\\u0644\\u0627\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New Order\",\"edit\":\"Show Order\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(12, 'Notifications', 'notifications', '{\"module_name\":{\"ar\":\" \\u0627\\u0644\\u0627\\u0634\\u0639\\u0627\\u0631\\u0627\\u062a\",\"en\":\"Notifications\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0627\\u0634\\u0639\\u0627\\u0631 \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u0639\\u0631\\u0636 \\u0627\\u0634\\u0639\\u0627\\u0631\",\"name\":\"\\u0627\\u0644\\u0627\\u0633\\u0645\"},\"en\":{\"add_new\":\"Add New Notification\",\"edit\":\"Show Notification\",\"name\":\"The Name\"}}}', NULL, NULL, NULL),
(13, 'Pages', 'pages', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0635\\u0641\\u062d\\u0627\\u062a\",\"en\":\"Pages\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0627\\u0636\\u0627\\u0641\\u0629 \\u0635\\u0641\\u062d\\u0629 \\u062c\\u062f\\u064a\\u062f\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0635\\u0641\\u062d\\u0629\",\"image\":\"\\u0627\\u0644\\u0635\\u0648\\u0631\\u0629\",\"title\":\"\\u0627\\u0644\\u0639\\u0646\\u0648\\u0627\\u0646\",\"slug\":\"The URL Slug\",\"keywords\":\"\\u0643\\u0644\\u0645\\u0627\\u062a \\u062a\\u0646\\u0634\\u064a\\u0637 \\u0645\\u062d\\u0631\\u0643 \\u0627\\u0644\\u0628\\u062d\\u062b\",\"meta_description\":\"\\u0627\\u0644\\u0643\\u0644\\u0645\\u0627\\u062a \\u0627\\u0644\\u0648\\u0635\\u0641\\u064a\\u0629\",\"description\":\"\\u0627\\u0644\\u0648\\u0635\\u0641\"},\"en\":{\"add_new\":\"Add New Page\",\"edit\":\"Edit Page\",\"image\":\"The Image\",\"title\":\"The Title\",\"slug\":\"The Slug\",\"meta_description\":\"The Meta Description\",\"keywords\":\"The Keywords\",\"description\":\"The Description\"}}}', NULL, NULL, NULL),
(14, 'Settings', 'settings', '{\"module_name\":{\"ar\":\"\\u0627\\u0644\\u0625\\u0639\\u062f\\u0627\\u062f\\u062a\",\"en\":\"Settings\"},\"fields\":{\"ar\":{\"add_new\":\"\\u0625\\u0636\\u0627\\u0641\\u0629 \\u0623\\u0639\\u062f\\u0627\\u062f\\u062a\",\"edit\":\"\\u062a\\u0639\\u062f\\u064a\\u0644 \\u0627\\u0644\\u0625\\u0639\\u062f\\u0627\\u062f\\u062a\",\"website_disable\":\"\\u062a\\u0639\\u0637\\u064a\\u0644 \\u0627\\u0644\\u0645\\u0648\\u0642\\u0639\",\"dashboard_disable\":\"\\u062a\\u0639\\u0637\\u064a\\u0644 \\u0644\\u0648\\u062d\\u0629 \\u0627\\u0644\\u062a\\u062d\\u0643\\u0645\",\"website_name\":\"\\u0627\\u0633\\u0645 \\u0627\\u0644\\u0645\\u0648\\u0642\\u0639\",\"Keywords\":\"\\u0627\\u0644\\u0643\\u0644\\u0645\\u0627\\u062a \\u0627\\u0644\\u062f\\u0644\\u064a\\u0644\\u064a\\u0629\",\"meta_description\":\"\\u0627\\u0644\\u0643\\u0644\\u0645\\u0627\\u062a \\u0627\\u0644\\u0648\\u0635\\u0641\\u064a\\u0629\",\"site_email\":\"\\u0628\\u0631\\u064a\\u062f \\u0627\\u0644\\u0645\\u0648\\u0642\\u0639\",\"site_address\":\"\\u0639\\u0646\\u0648\\u0627\\u0646 \\u0627\\u0644\\u0645\\u0648\\u0642\\u0639\",\"site_phone\":\"\\u062c\\u0648\\u0627\\u0644 \\u0627\\u0644\\u0645\\u0648\\u0642\\u0639\",\"mail_driver\":\"Mail Driver(SMTP)\",\"mail_host\":\"Mail Host (smtp.example.com)\",\"mail_port\":\"Mail Port (2525)\",\"mail_username\":\"Mail Username(username@example.cm)\",\"mail_password\":\"Mail password\",\"mail_encryption\":\"Mail Encryption(tls)\",\"mail_from_address\":\"Mail From address(info@example.com)\",\"mail_from_name\":\"Mail From Name(Example)\",\"website_logo\":\"\\u0644\\u0648\\u062c\\u0648 \\u0627\\u0644\\u0645\\u0648\\u0642\\u0639\"},\"en\":{\"add_new\":\"Add Settings\",\"edit\":\"Edit Settings\",\"website_disable\":\"Website Disabled\",\"dashboard_disable\":\"Dashboard Disabled\",\"website_name\":\"Website Name\",\"Keywords\":\"Keywords\",\"meta_description\":\"Meta Description\",\"site_email\":\"Website Email\",\"site_address\":\"Website Address\",\"site_phone\":\"Website Phone\",\"mail_driver\":\"Mail Driver(SMTP)\",\"mail_host\":\"Mail Host (smtp.example.com)\",\"mail_port\":\"Mail Port (2525)\",\"mail_username\":\"Mail Username(username@example.cm)\",\"mail_password\":\"Mail password\",\"mail_encryption\":\"Mail Encryption(tls)\",\"mail_from_address\":\"Mail From address(info@example.com)\",\"mail_from_name\":\"Mail From Name(Example)\",\"website_logo\":\"Website Logo\"}}}', NULL, NULL, NULL);

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status` varchar(100) DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `read_at` datetime 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;

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`id`, `status`, `user_id`, `order_id`, `read_at`, `deleted_at`, `created_at`, `updated_at`) VALUES
(17, '0', 8, NULL, NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(18, '0', 7, NULL, NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(19, '0', 6, NULL, NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(20, '0', 5, NULL, NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(21, '0', 4, NULL, NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(22, '0', 3, NULL, NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(23, '0', 2, NULL, NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(24, '0', 1, NULL, NULL, NULL, '2024-12-07 22:48:43', '2024-12-07 22:48:43'),
(25, '0', 5, NULL, NULL, NULL, '2024-12-07 22:51:26', '2024-12-07 22:51:26'),
(26, '0', 4, NULL, NULL, NULL, '2024-12-07 22:51:26', '2024-12-07 22:51:26'),
(27, '0', 5, NULL, NULL, NULL, '2024-12-07 22:51:43', '2024-12-07 22:51:43'),
(28, '0', 5, NULL, NULL, NULL, '2024-12-07 22:52:34', '2024-12-07 22:52:34'),
(29, '0', 8, NULL, NULL, NULL, '2024-12-07 22:52:56', '2024-12-07 22:52:56'),
(30, '0', 7, NULL, NULL, NULL, '2024-12-07 22:52:56', '2024-12-07 22:52:56'),
(31, '0', 8, NULL, NULL, NULL, '2024-12-07 22:53:09', '2024-12-07 22:53:09');

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

--
-- Table structure for table `notification_descriptions`
--

CREATE TABLE `notification_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(500) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `notification_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `notification_descriptions`
--

INSERT INTO `notification_descriptions` (`id`, `title`, `description`, `notification_id`, `language_id`) VALUES
(33, 'test', 'test', 17, 1),
(34, 'test', 'test', 17, 2),
(35, 'test', 'test', 18, 1),
(36, 'test', 'test', 18, 2),
(37, 'test', 'test', 19, 1),
(38, 'test', 'test', 19, 2),
(39, 'test', 'test', 20, 1),
(40, 'test', 'test', 20, 2),
(41, 'test', 'test', 21, 1),
(42, 'test', 'test', 21, 2),
(43, 'test', 'test', 22, 1),
(44, 'test', 'test', 22, 2),
(45, 'test', 'test', 23, 1),
(46, 'test', 'test', 23, 2),
(47, 'test', 'test', 24, 1),
(48, 'test', 'test', 24, 2),
(49, 'test1', 'test1', 25, 1),
(50, 'test1', 'test1', 25, 2),
(51, 'test1', 'test1', 26, 1),
(52, 'test1', 'test1', 26, 2),
(53, 'test1', 'test1', 27, 1),
(54, 'test1', 'test1', 27, 2),
(55, 'test1', 'test1', 28, 1),
(56, 'test1', 'test1', 28, 2),
(57, 'test1', 'test1', 29, 1),
(58, 'test1', 'test1', 29, 2),
(59, 'test1', 'test1', 30, 1),
(60, 'test1', 'test1', 30, 2),
(61, 'test1', 'test1', 31, 1),
(62, 'test1', 'test1', 31, 2);

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

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

CREATE TABLE `orders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `total` double DEFAULT NULL,
  `total_points` double DEFAULT NULL,
  `total_management` double DEFAULT NULL,
  `tax_cost` double DEFAULT NULL,
  `total_products` double DEFAULT NULL,
  `canteen_id` bigint(20) UNSIGNED DEFAULT NULL,
  `child_id` bigint(20) 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;

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

INSERT INTO `orders` (`id`, `total`, `total_points`, `total_management`, `tax_cost`, `total_products`, `canteen_id`, `child_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 200, 100, 20, 10, 170, 1, 6, NULL, '2024-12-25 17:55:15', NULL);

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

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

CREATE TABLE `order_products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `count` int(11) DEFAULT NULL,
  `product_cost` int(11) DEFAULT NULL,
  `product_total` int(11) DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_products`
--

INSERT INTO `order_products` (`id`, `count`, `product_cost`, `product_total`, `product_id`, `order_id`) VALUES
(1, 1, 100, 100, 2, 1);

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

--
-- Table structure for table `packages`
--

CREATE TABLE `packages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cost` double DEFAULT NULL,
  `cost_discount` double DEFAULT NULL,
  `points` double 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;

--
-- Dumping data for table `packages`
--

INSERT INTO `packages` (`id`, `cost`, `cost_discount`, `points`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 22, 3, 50, NULL, '2024-12-05 23:36:28', '2024-12-05 23:37:04');

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

--
-- Table structure for table `package_descriptions`
--

CREATE TABLE `package_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(500) DEFAULT NULL,
  `package_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `package_descriptions`
--

INSERT INTO `package_descriptions` (`id`, `title`, `package_id`, `language_id`) VALUES
(5, 'test', 1, 1),
(6, 'test', 1, 2);

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

--
-- Table structure for table `pages`
--

CREATE TABLE `pages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `image` varchar(200) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `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 `page_descriptions`
--

CREATE TABLE `page_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(500) DEFAULT NULL,
  `slug` varchar(100) DEFAULT NULL,
  `meta_description` text DEFAULT NULL,
  `keywords` varchar(250) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `page_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(191) NOT NULL,
  `token` varchar(191) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `payment_logs`
--

CREATE TABLE `payment_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) DEFAULT NULL,
  `price` double DEFAULT NULL,
  `description` text DEFAULT NULL,
  `canteen_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_id` bigint(20) 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;

--
-- Dumping data for table `payment_logs`
--

INSERT INTO `payment_logs` (`id`, `status`, `price`, `description`, `canteen_id`, `order_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 500, 'fsdfs', 2, 1, NULL, '2024-12-06 16:10:24', '2024-12-06 16:10:24'),
(2, 0, 20, 'test', 2, NULL, NULL, '2024-12-07 19:32:13', '2024-12-07 19:32:13'),
(3, 2, 410, '', 2, NULL, NULL, '2024-12-07 19:32:58', '2024-12-07 19:32:58'),
(4, 1, 150, 'test', 1, NULL, NULL, '2024-12-09 07:41:47', '2024-12-09 07:41:47'),
(5, 2, 150, '', 1, NULL, NULL, '2024-12-09 07:41:58', '2024-12-09 07:41:58');

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

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

CREATE TABLE `products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` text DEFAULT NULL,
  `cost` double DEFAULT NULL,
  `count` int(11) DEFAULT NULL,
  `image` text DEFAULT NULL,
  `canteen_id` bigint(20) 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;

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

INSERT INTO `products` (`id`, `code`, `cost`, `count`, `image`, `canteen_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(2, '35625501859', 222, 22, '/storage/photos/shares/286161664377481.jpeg', 2, NULL, '2024-12-06 00:24:58', '2024-12-09 08:16:25'),
(3, '98779771362', 100, 10, '/storage/photos/shares/Test.jpg', 3, NULL, '2024-12-10 18:22:44', '2024-12-10 18:22:44');

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

--
-- Table structure for table `product_descriptions`
--

CREATE TABLE `product_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(500) DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_descriptions`
--

INSERT INTO `product_descriptions` (`id`, `title`, `product_id`, `language_id`) VALUES
(7, 'test', 2, 1),
(8, 'test', 2, 2),
(9, 'اى حاجه', 3, 1),
(10, 'منهنهحخ', 3, 2);

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

--
-- Table structure for table `schools`
--

CREATE TABLE `schools` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` text DEFAULT NULL,
  `city_id` bigint(20) 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;

--
-- Dumping data for table `schools`
--

INSERT INTO `schools` (`id`, `code`, `city_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '10574260', 1, NULL, '2024-12-05 22:39:36', '2024-12-05 22:39:36'),
(2, '7226146', 1, NULL, '2024-12-05 23:58:56', '2024-12-05 23:58:56'),
(3, '45125118', 1, NULL, '2024-12-06 00:01:15', '2024-12-06 00:01:15'),
(4, '35190200945', 2, NULL, '2024-12-09 07:39:05', '2024-12-09 07:39:05'),
(5, '63866809386', 2, NULL, '2024-12-10 17:47:32', '2024-12-10 17:47:32');

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

--
-- Table structure for table `school_descriptions`
--

CREATE TABLE `school_descriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(500) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `school_descriptions`
--

INSERT INTO `school_descriptions` (`id`, `title`, `school_id`, `language_id`) VALUES
(1, 'test', 1, 1),
(2, 'test', 1, 2),
(3, 'ww', 2, 1),
(4, 'ww', 2, 2),
(5, 'qqq', 3, 1),
(6, 'qq', 3, 2),
(7, 'test1', 4, 1),
(8, 'test1', 4, 2),
(9, 'هغخهغخه', 5, 1),
(10, 'كمعخحطخت', 5, 2);

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

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

CREATE TABLE `settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `key` varchar(100) NOT NULL,
  `value` text 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 `settings`
--

INSERT INTO `settings` (`id`, `key`, `value`, `created_at`, `updated_at`) VALUES
(1, 'website_name', 'CMS', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(2, 'keywords', 'AaeicpjaFWy52iDK', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(3, 'meta_description', 'ONyHJC2264pUUCKv', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(4, 'site_email', 'info@cms.com', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(5, 'site_address_ar', 'ch646SmEw3g5nUk5', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(6, 'site_phone', '123456789', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(7, 'mail_driver', 'smtp', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(8, 'mail_host', 'smtp.mailtrap.io', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(9, 'mail_port', '2525', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(10, 'mail_username', '759b99df94f0be', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(11, 'mail_password', 'e4c5c123acd614', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(12, 'mail_encryption', 'tls', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(13, 'mail_from_address', 'info@cms.com', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(14, 'mail_from_name', 'CMS', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(15, 'website_logo', 'logo.png', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(16, 'website_disable', '0', '2024-12-05 20:42:05', NULL),
(17, 'dashboard_disable', '0', '2024-12-05 20:42:05', NULL),
(18, 'point_value', '2', NULL, NULL),
(19, 'facebook', 'https://www.facebook.com', NULL, '2024-12-08 10:05:12'),
(20, 'twitter', 'https://x.com', NULL, '2024-12-08 10:05:12'),
(21, 'instagram', 'https://www.instagram.com/', NULL, '2024-12-08 10:05:12'),
(22, 'snapchat', 'https://snapchat.com/', NULL, '2024-12-08 10:05:12'),
(23, 'tiktok', 'https://tiktok.com', NULL, '2024-12-08 10:05:12'),
(24, 'linkedin', 'https://linkedin.com', NULL, '2024-12-08 10:05:12'),
(25, 'youtube', 'https://youtube.com/', NULL, '2024-12-08 10:05:12'),
(26, 'tax_value', '15', NULL, '2024-12-08 10:05:12'),
(27, 'point_val', '2', NULL, '2024-12-08 10:05:12'),
(28, 'management_tax', '10', NULL, '2024-12-08 10:05:12'),
(29, 'site_address_en', 'ch646SmEw3g5nUk5', '2024-12-05 20:42:05', '2024-12-08 10:05:12'),
(30, 'tax_valid', '1', NULL, '2024-12-08 10:05:12');

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

--
-- Table structure for table `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `points` double DEFAULT NULL,
  `total` double DEFAULT NULL,
  `remain_points` double DEFAULT NULL,
  `package_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` bigint(20) 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;

--
-- Dumping data for table `subscriptions`
--

INSERT INTO `subscriptions` (`id`, `points`, `total`, `remain_points`, `package_id`, `user_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 500, 1000, 100, 1, 5, NULL, '2024-12-24 14:35:08', NULL);

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

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

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(300) DEFAULT NULL,
  `last_name` varchar(300) DEFAULT NULL,
  `email` varchar(250) DEFAULT NULL,
  `phone` varchar(14) DEFAULT NULL,
  `photo` varchar(300) DEFAULT 'logo.png',
  `id_number` varchar(300) DEFAULT NULL,
  `gender` tinyint(4) DEFAULT NULL,
  `points` int(11) DEFAULT NULL,
  `points_per_day` int(11) DEFAULT NULL,
  `admin_token` varchar(1000) DEFAULT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(100) DEFAULT NULL,
  `role` tinyint(4) DEFAULT NULL,
  `api_token` varchar(300) DEFAULT NULL,
  `language` varchar(300) NOT NULL DEFAULT 'ar',
  `device_token` text DEFAULT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED DEFAULT NULL,
  `canteen_id` bigint(20) UNSIGNED DEFAULT NULL,
  `remember_token` varchar(100) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `name`, `last_name`, `email`, `phone`, `photo`, `id_number`, `gender`, `points`, `points_per_day`, `admin_token`, `email_verified_at`, `password`, `role`, `api_token`, `language`, `device_token`, `parent_id`, `school_id`, `canteen_id`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Super Web', NULL, 'super@admin.com', NULL, 'logo.png', '', NULL, 0, NULL, NULL, '2024-12-05 20:42:05', '$2y$10$eieiom5E24KYCwwKjr1MruTXhr/hiAszOK7saKREHXx73bvyscg7i', 1, NULL, 'ar', NULL, NULL, NULL, NULL, 'PLLjw725xS', NULL, NULL, NULL),
(2, 'Admin', NULL, 'admin@admin.com', '512314533', 'logo.png', '', NULL, 0, NULL, NULL, '2024-12-05 20:42:05', '$2y$10$4/UgAJ/h7icIfZt1ZPhB2OOB1OaI1Q5BGmNg4J3OLVtk3J3ZTTElK', 2, NULL, 'ar', NULL, NULL, NULL, NULL, 'yu2iG292kD', NULL, '2024-12-08 09:56:52', NULL),
(3, 'Sub Web', NULL, 'sub@admin.com', NULL, 'logo.png', '', NULL, 0, NULL, NULL, '2024-12-05 20:42:05', '$2y$10$4Sy5jc9djtoRd8mUb9rvRecD7BC190XON8qmpoh4FB5cZK8z9m.4O', 3, NULL, 'ar', NULL, NULL, NULL, NULL, 'WLLvni3f1S', NULL, NULL, NULL),
(4, 'www', 'qwerwqrwer', NULL, '5435345435', NULL, '4324324324', NULL, 0, NULL, NULL, NULL, '$2y$10$sx7sL1.as/v2AOebLlSK2eMedZAilwc54KKX0JbNJzhOqUX3t9r9m', 4, NULL, 'ar', NULL, NULL, NULL, NULL, NULL, '2024-12-06 15:14:43', '2024-12-06 15:19:16', NULL),
(5, 'qqqq', 'qqqq1', NULL, '12321432432', NULL, '432432534543423', NULL, 1, NULL, NULL, NULL, '$2y$10$dwksYUCHMrLlLIu4CrDaHOgB7HfLbB7UVAeVlLBKeg2TTWVyroeg6', 4, NULL, 'ar', NULL, NULL, NULL, NULL, NULL, '2024-12-06 15:21:17', '2024-12-06 15:21:17', NULL),
(6, 'child', NULL, NULL, NULL, '/storage/photos/shares/Test.jpg', NULL, 1, 0, 25, NULL, NULL, NULL, 5, NULL, 'ar', NULL, 5, 2, NULL, NULL, '2024-12-04 08:43:09', '2024-12-09 08:17:36', NULL),
(7, 'test1', NULL, 'test1@admin.com', '5555555599999', 'logo.png', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$vxrJZdSOwUwJT0nMHFnzQuhMr5xzIlg7NkyMEQutm94LtQHrgFCVm', 6, NULL, 'ar', NULL, NULL, 1, 3, NULL, '2024-12-07 21:31:31', '2024-12-07 21:36:50', NULL),
(8, 'eeeeee', NULL, 'qqqq@qqqq.com', '99999', 'logo.png', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$Eo/ZRdwBfL0nufCshxrjJOe6h3hEWxtPdCJBF/WNFZAqoCgPY9tFm', 6, NULL, 'ar', NULL, NULL, 2, 4, NULL, '2024-12-07 21:36:01', '2024-12-07 21:37:14', NULL),
(9, 'test', NULL, 'test@admin.com', '45543543', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$c5e5BzOom9Ydd17DQqjY5egLHmdT3i09Pcnix4b8uOV4jf3VP8MbG', 2, NULL, 'ar', NULL, NULL, NULL, NULL, NULL, '2024-12-09 07:36:06', '2024-12-09 07:36:06', NULL),
(10, 'test', 'test', NULL, '543543543', 'http://foshha.omar.alyomhost.org//storage/photos/shares/286161664377481.jpeg', '23432432423', NULL, 0, NULL, NULL, NULL, '$2y$10$ueXVtuk2NDcePBcC4.FM..JaP/j6kuTKAqfLsGTiaSCyS3ERuqrce', 4, NULL, 'ar', NULL, NULL, NULL, NULL, NULL, '2024-12-09 07:36:49', '2024-12-09 07:57:13', NULL),
(11, 'saied mohamed', NULL, 'super_admin@aml.com', '01060240219', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$9/9JJf1.LxBV9OWxMLCfk.dUACTM1MqCGS7678dv/Eig7Gri9mlRS', 3, NULL, 'ar', NULL, NULL, NULL, NULL, NULL, '2024-12-10 15:33:23', '2024-12-10 15:33:23', NULL),
(12, 'عغنغهغعغ', 'عغهغعه', NULL, '134154686', NULL, 'super_admin@aml.com', NULL, 0, NULL, NULL, NULL, '$2y$10$675tHZZL05iJPjsESaeWvOea64tsPRKpN2QLs.wWf5LCjnhvjzYP.', 4, NULL, 'ar', NULL, NULL, NULL, NULL, NULL, '2024-12-10 17:43:07', '2024-12-10 17:43:07', NULL);

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

--
-- Table structure for table `user_modules`
--

CREATE TABLE `user_modules` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `module_id` bigint(20) UNSIGNED 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 `user_modules`
--

INSERT INTO `user_modules` (`id`, `user_id`, `module_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, NULL),
(2, 1, 2, NULL, NULL),
(3, 1, 3, NULL, NULL),
(4, 1, 4, NULL, NULL),
(5, 1, 5, NULL, NULL),
(6, 1, 6, NULL, NULL),
(7, 1, 7, NULL, NULL),
(8, 1, 8, NULL, NULL),
(9, 1, 9, NULL, NULL),
(10, 1, 10, NULL, NULL),
(11, 1, 11, NULL, NULL),
(12, 1, 12, NULL, NULL),
(13, 1, 13, NULL, NULL),
(14, 1, 14, NULL, NULL),
(25, 2, 1, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(26, 2, 2, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(27, 2, 3, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(28, 2, 4, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(29, 2, 5, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(30, 2, 6, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(31, 2, 7, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(32, 2, 8, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(33, 2, 9, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(34, 2, 10, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(35, 2, 11, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(36, 2, 12, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(37, 2, 13, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(38, 2, 14, '2024-12-08 09:56:52', '2024-12-08 09:56:52'),
(39, 9, 1, '2024-12-09 07:36:06', '2024-12-09 07:36:06'),
(40, 9, 4, '2024-12-09 07:36:06', '2024-12-09 07:36:06'),
(41, 9, 7, '2024-12-09 07:36:06', '2024-12-09 07:36:06'),
(42, 9, 8, '2024-12-09 07:36:06', '2024-12-09 07:36:06'),
(43, 9, 10, '2024-12-09 07:36:06', '2024-12-09 07:36:06'),
(44, 9, 13, '2024-12-09 07:36:06', '2024-12-09 07:36:06'),
(45, 11, 7, '2024-12-10 15:33:23', '2024-12-10 15:33:23'),
(46, 11, 10, '2024-12-10 15:33:23', '2024-12-10 15:33:23'),
(47, 11, 13, '2024-12-10 15:33:23', '2024-12-10 15:33:23');

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

--
-- Table structure for table `visitor_messages`
--

CREATE TABLE `visitor_messages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` text DEFAULT NULL,
  `email` text DEFAULT NULL,
  `phone` text DEFAULT NULL,
  `subject` text DEFAULT NULL,
  `message` longtext DEFAULT NULL,
  `read` tinyint(1) NOT NULL DEFAULT 0,
  `reply` tinyint(1) NOT NULL DEFAULT 0,
  `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 `visitor_message_replies`
--

CREATE TABLE `visitor_message_replies` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `reply` text DEFAULT NULL,
  `visitor_email` varchar(191) DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `visitor_message_id` bigint(20) 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 `website_visitors`
--

CREATE TABLE `website_visitors` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `canteens`
--
ALTER TABLE `canteens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `canteens_school_id_foreign` (`school_id`);

--
-- Indexes for table `canteen_descriptions`
--
ALTER TABLE `canteen_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `canteen_descriptions_canteen_id_foreign` (`canteen_id`),
  ADD KEY `canteen_descriptions_language_id_foreign` (`language_id`);

--
-- Indexes for table `child_block_products`
--
ALTER TABLE `child_block_products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `child_block_products_product_id_foreign` (`product_id`),
  ADD KEY `child_block_products_user_id_foreign` (`user_id`);

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

--
-- Indexes for table `city_descriptions`
--
ALTER TABLE `city_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `city_descriptions_city_id_foreign` (`city_id`),
  ADD KEY `city_descriptions_language_id_foreign` (`language_id`);

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

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

--
-- Indexes for table `faq_descriptions`
--
ALTER TABLE `faq_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `faq_descriptions_faq_id_foreign` (`faq_id`),
  ADD KEY `faq_descriptions_language_id_foreign` (`language_id`);

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

--
-- Indexes for table `languages`
--
ALTER TABLE `languages`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `languages_local_unique` (`local`),
  ADD KEY `languages_status_index` (`status`),
  ADD KEY `languages_admin_status_index` (`admin_status`);

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

--
-- Indexes for table `management_notification_descriptions`
--
ALTER TABLE `management_notification_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `management_notification_descriptions_language_id_foreign` (`language_id`);

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

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

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_user_id_foreign` (`user_id`),
  ADD KEY `notifications_order_id_foreign` (`order_id`);

--
-- Indexes for table `notification_descriptions`
--
ALTER TABLE `notification_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notification_descriptions_notification_id_foreign` (`notification_id`),
  ADD KEY `notification_descriptions_language_id_foreign` (`language_id`);

--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `orders_canteen_id_foreign` (`canteen_id`),
  ADD KEY `orders_child_id_foreign` (`child_id`);

--
-- Indexes for table `order_products`
--
ALTER TABLE `order_products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `order_products_product_id_foreign` (`product_id`),
  ADD KEY `order_products_order_id_foreign` (`order_id`);

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

--
-- Indexes for table `package_descriptions`
--
ALTER TABLE `package_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `package_descriptions_package_id_foreign` (`package_id`),
  ADD KEY `package_descriptions_language_id_foreign` (`language_id`);

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

--
-- Indexes for table `page_descriptions`
--
ALTER TABLE `page_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `page_descriptions_page_id_foreign` (`page_id`),
  ADD KEY `page_descriptions_language_id_foreign` (`language_id`);

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

--
-- Indexes for table `payment_logs`
--
ALTER TABLE `payment_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_logs_canteen_id_foreign` (`canteen_id`),
  ADD KEY `payment_logs_order_id_foreign` (`order_id`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `products_canteen_id_foreign` (`canteen_id`);

--
-- Indexes for table `product_descriptions`
--
ALTER TABLE `product_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_descriptions_product_id_foreign` (`product_id`),
  ADD KEY `product_descriptions_language_id_foreign` (`language_id`);

--
-- Indexes for table `schools`
--
ALTER TABLE `schools`
  ADD PRIMARY KEY (`id`),
  ADD KEY `schools_city_id_foreign` (`city_id`);

--
-- Indexes for table `school_descriptions`
--
ALTER TABLE `school_descriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `school_descriptions_school_id_foreign` (`school_id`),
  ADD KEY `school_descriptions_language_id_foreign` (`language_id`);

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `settings_key_index` (`key`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subscriptions_package_id_foreign` (`package_id`),
  ADD KEY `subscriptions_user_id_foreign` (`user_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD UNIQUE KEY `users_phone_unique` (`phone`),
  ADD KEY `users_parent_id_foreign` (`parent_id`),
  ADD KEY `users_school_id_foreign` (`school_id`),
  ADD KEY `users_canteen_id_foreign` (`canteen_id`);

--
-- Indexes for table `user_modules`
--
ALTER TABLE `user_modules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_modules_module_id_foreign` (`module_id`),
  ADD KEY `user_modules_user_id_module_id_index` (`user_id`,`module_id`);

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `canteens`
--
ALTER TABLE `canteens`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `canteen_descriptions`
--
ALTER TABLE `canteen_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `child_block_products`
--
ALTER TABLE `child_block_products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cities`
--
ALTER TABLE `cities`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `city_descriptions`
--
ALTER TABLE `city_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `faqs`
--
ALTER TABLE `faqs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `faq_descriptions`
--
ALTER TABLE `faq_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

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

--
-- AUTO_INCREMENT for table `languages`
--
ALTER TABLE `languages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `management_notifications`
--
ALTER TABLE `management_notifications`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `management_notification_descriptions`
--
ALTER TABLE `management_notification_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;

--
-- AUTO_INCREMENT for table `modules`
--
ALTER TABLE `modules`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT for table `notification_descriptions`
--
ALTER TABLE `notification_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63;

--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `order_products`
--
ALTER TABLE `order_products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `packages`
--
ALTER TABLE `packages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `package_descriptions`
--
ALTER TABLE `package_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `pages`
--
ALTER TABLE `pages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `page_descriptions`
--
ALTER TABLE `page_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payment_logs`
--
ALTER TABLE `payment_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `product_descriptions`
--
ALTER TABLE `product_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `schools`
--
ALTER TABLE `schools`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `school_descriptions`
--
ALTER TABLE `school_descriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `subscriptions`
--
ALTER TABLE `subscriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `user_modules`
--
ALTER TABLE `user_modules`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;

--
-- AUTO_INCREMENT for table `visitor_messages`
--
ALTER TABLE `visitor_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `visitor_message_replies`
--
ALTER TABLE `visitor_message_replies`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `website_visitors`
--
ALTER TABLE `website_visitors`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `canteens`
--
ALTER TABLE `canteens`
  ADD CONSTRAINT `canteens_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `canteen_descriptions`
--
ALTER TABLE `canteen_descriptions`
  ADD CONSTRAINT `canteen_descriptions_canteen_id_foreign` FOREIGN KEY (`canteen_id`) REFERENCES `canteens` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `canteen_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `child_block_products`
--
ALTER TABLE `child_block_products`
  ADD CONSTRAINT `child_block_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `child_block_products_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `city_descriptions`
--
ALTER TABLE `city_descriptions`
  ADD CONSTRAINT `city_descriptions_city_id_foreign` FOREIGN KEY (`city_id`) REFERENCES `cities` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `city_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `faq_descriptions`
--
ALTER TABLE `faq_descriptions`
  ADD CONSTRAINT `faq_descriptions_faq_id_foreign` FOREIGN KEY (`faq_id`) REFERENCES `faqs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `faq_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

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

--
-- Constraints for table `management_notification_descriptions`
--
ALTER TABLE `management_notification_descriptions`
  ADD CONSTRAINT `management_notification_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `notifications`
--
ALTER TABLE `notifications`
  ADD CONSTRAINT `notifications_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `notifications_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `notification_descriptions`
--
ALTER TABLE `notification_descriptions`
  ADD CONSTRAINT `notification_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `notification_descriptions_notification_id_foreign` FOREIGN KEY (`notification_id`) REFERENCES `notifications` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `orders`
--
ALTER TABLE `orders`
  ADD CONSTRAINT `orders_canteen_id_foreign` FOREIGN KEY (`canteen_id`) REFERENCES `canteens` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `orders_child_id_foreign` FOREIGN KEY (`child_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `order_products`
--
ALTER TABLE `order_products`
  ADD CONSTRAINT `order_products_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `order_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `package_descriptions`
--
ALTER TABLE `package_descriptions`
  ADD CONSTRAINT `package_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `package_descriptions_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `page_descriptions`
--
ALTER TABLE `page_descriptions`
  ADD CONSTRAINT `page_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `page_descriptions_page_id_foreign` FOREIGN KEY (`page_id`) REFERENCES `pages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `payment_logs`
--
ALTER TABLE `payment_logs`
  ADD CONSTRAINT `payment_logs_canteen_id_foreign` FOREIGN KEY (`canteen_id`) REFERENCES `canteens` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `payment_logs_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `products`
--
ALTER TABLE `products`
  ADD CONSTRAINT `products_canteen_id_foreign` FOREIGN KEY (`canteen_id`) REFERENCES `canteens` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `product_descriptions`
--
ALTER TABLE `product_descriptions`
  ADD CONSTRAINT `product_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `product_descriptions_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `schools`
--
ALTER TABLE `schools`
  ADD CONSTRAINT `schools_city_id_foreign` FOREIGN KEY (`city_id`) REFERENCES `cities` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `school_descriptions`
--
ALTER TABLE `school_descriptions`
  ADD CONSTRAINT `school_descriptions_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `school_descriptions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD CONSTRAINT `subscriptions_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `subscriptions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_canteen_id_foreign` FOREIGN KEY (`canteen_id`) REFERENCES `canteens` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `users_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `users_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `user_modules`
--
ALTER TABLE `user_modules`
  ADD CONSTRAINT `user_modules_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `user_modules_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
