-- --------------------------------------------------------
-- Server OS:                    Win64
-- HeidiSQL Version:             9.5.0.5332
-- --------------------------------------------------------


-- Dumping structure for table webmall.categories
CREATE TABLE IF NOT EXISTS `categories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int(10) unsigned DEFAULT NULL,
  `order` int(11) NOT NULL DEFAULT '1',
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `categories_slug_unique` (`slug`),
  KEY `categories_parent_id_foreign` (`parent_id`),
  CONSTRAINT `categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.categories: ~6 rows (approximately)
DELETE FROM `categories`;
INSERT INTO `categories` (`id`, `parent_id`, `order`, `name`, `slug`, `created_at`, `updated_at`) VALUES
	(3, NULL, 1, 'Men', 'men', '2020-03-07 15:10:58', '2020-03-07 15:10:58'),
	(4, 3, 2, 'watch', 'watch', '2020-03-07 15:11:36', '2020-03-07 15:11:36'),
	(5, NULL, 4, 'Women', 'women', '2020-03-14 10:02:06', '2020-03-14 10:02:06'),
	(6, 5, 1, 'cosmetics', 'cosmetics', '2020-03-14 10:02:28', '2020-03-14 10:02:41'),
	(7, 6, 1, 'lipsticks', 'lipsticks', '2020-03-14 10:03:54', '2020-03-14 10:03:54'),
	(8, NULL, 1, 'Electronics', 'electronics', '2020-03-14 11:52:14', '2020-03-14 11:52:14');

-- Dumping structure for table webmall.coupons
CREATE TABLE IF NOT EXISTS `coupons` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.coupons: ~2 rows (approximately)
DELETE FROM `coupons`;
INSERT INTO `coupons` (`id`, `name`, `code`, `type`, `value`, `description`, `created_at`, `updated_at`) VALUES
	(1, 'winter sale', '89rr', 'discount', '-50%', '50 percent discount', '2020-04-04 14:54:20', NULL),
	(2, 'good friday sale', 'friday_sale', 'discount', '-10%', '10 offsklkdjlsdk', '2020-04-04 09:12:44', '2020-04-04 09:12:44');

-- Dumping structure for table webmall.data_rows
CREATE TABLE IF NOT EXISTS `data_rows` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `data_type_id` int(10) unsigned NOT NULL,
  `field` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `required` tinyint(1) NOT NULL DEFAULT '0',
  `browse` tinyint(1) NOT NULL DEFAULT '1',
  `read` tinyint(1) NOT NULL DEFAULT '1',
  `edit` tinyint(1) NOT NULL DEFAULT '1',
  `add` tinyint(1) NOT NULL DEFAULT '1',
  `delete` tinyint(1) NOT NULL DEFAULT '1',
  `details` text COLLATE utf8mb4_unicode_ci,
  `order` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `data_rows_data_type_id_foreign` (`data_type_id`),
  CONSTRAINT `data_rows_data_type_id_foreign` FOREIGN KEY (`data_type_id`) REFERENCES `data_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.data_rows: ~106 rows (approximately)
DELETE FROM `data_rows`;


-- Dumping structure for table webmall.data_types
CREATE TABLE IF NOT EXISTS `data_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name_singular` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name_plural` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `model_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `policy_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `controller` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `generate_permissions` tinyint(1) NOT NULL DEFAULT '0',
  `server_side` tinyint(4) NOT NULL DEFAULT '0',
  `details` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `data_types_name_unique` (`name`),
  UNIQUE KEY `data_types_slug_unique` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.data_types: ~10 rows (approximately)
DELETE FROM `data_types`;
INSERT INTO `data_types` (`id`, `name`, `slug`, `display_name_singular`, `display_name_plural`, `icon`, `model_name`, `policy_name`, `controller`, `description`, `generate_permissions`, `server_side`, `details`, `created_at`, `updated_at`) VALUES
	(1, 'users', 'users', 'User', 'Users', 'voyager-person', 'TCG\\Voyager\\Models\\User', 'TCG\\Voyager\\Policies\\UserPolicy', 'TCG\\Voyager\\Http\\Controllers\\VoyagerUserController', '', 1, 0, NULL, '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(2, 'menus', 'menus', 'Menu', 'Menus', 'voyager-list', 'TCG\\Voyager\\Models\\Menu', NULL, '', '', 1, 0, NULL, '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(3, 'roles', 'roles', 'Role', 'Roles', 'voyager-lock', 'TCG\\Voyager\\Models\\Role', NULL, 'TCG\\Voyager\\Http\\Controllers\\VoyagerRoleController', NULL, 1, 0, '{"order_column":null,"order_display_column":null,"order_direction":"desc","default_search_key":null,"scope":null}', '2020-02-11 00:10:11', '2020-02-19 17:28:01'),
	(4, 'categories', 'categories', 'Category', 'Categories', 'voyager-categories', 'TCG\\Voyager\\Models\\Category', NULL, '', '', 1, 0, NULL, '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(5, 'posts', 'posts', 'Post', 'Posts', 'voyager-news', 'TCG\\Voyager\\Models\\Post', 'TCG\\Voyager\\Policies\\PostPolicy', '', '', 1, 0, NULL, '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(6, 'pages', 'pages', 'Page', 'Pages', 'voyager-file-text', 'TCG\\Voyager\\Models\\Page', NULL, '', '', 1, 0, NULL, '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(7, 'orders', 'orders', 'Order', 'Orders', 'voyager-buy', 'App\\Order', NULL, NULL, NULL, 1, 0, '{"order_column":null,"order_display_column":null,"order_direction":"asc","default_search_key":null,"scope":null}', '2020-02-11 00:22:34', '2020-02-13 01:06:26'),
	(8, 'shops', 'shops', 'Shop', 'Shops', 'voyager-bag', 'App\\Shop', 'App\\Policies\\ShopPolicy', 'App\\Http\\Controllers\\Admin\\ShopController', NULL, 1, 0, '{"order_column":null,"order_display_column":null,"order_direction":"asc","default_search_key":null,"scope":null}', '2020-02-19 17:15:37', '2020-02-19 17:16:25'),
	(9, 'products', 'products', 'Product', 'Products', NULL, 'App\\Product', 'App\\Policies\\ProductPolicy', 'App\\Http\\Controllers\\Admin\\ProductController', NULL, 1, 0, '{"order_column":null,"order_display_column":null,"order_direction":"asc","default_search_key":null,"scope":null}', '2020-02-19 17:18:39', '2020-02-19 18:23:32'),
	(10, 'coupons', 'coupons', 'Coupon', 'Coupons', NULL, 'App\\Coupon', NULL, NULL, NULL, 1, 0, '{"order_column":null,"order_display_column":null,"order_direction":"asc","default_search_key":null}', '2020-04-04 09:11:42', '2020-04-04 09:11:42');

-- Dumping structure for table webmall.failed_jobs
CREATE TABLE IF NOT EXISTS `failed_jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.failed_jobs: ~0 rows (approximately)
DELETE FROM `failed_jobs`;

-- Dumping structure for table webmall.menus
CREATE TABLE IF NOT EXISTS `menus` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `menus_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.menus: ~1 rows (approximately)
DELETE FROM `menus`;
INSERT INTO `menus` (`id`, `name`, `created_at`, `updated_at`) VALUES
	(1, 'admin', '2020-02-11 00:10:11', '2020-02-11 00:10:11');

-- Dumping structure for table webmall.menu_items
CREATE TABLE IF NOT EXISTS `menu_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `menu_id` int(10) unsigned DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `target` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '_self',
  `icon_class` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `color` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `order` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `route` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parameters` text COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `menu_items_menu_id_foreign` (`menu_id`),
  CONSTRAINT `menu_items_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.menu_items: ~18 rows (approximately)
DELETE FROM `menu_items`;
INSERT INTO `menu_items` (`id`, `menu_id`, `title`, `url`, `target`, `icon_class`, `color`, `parent_id`, `order`, `created_at`, `updated_at`, `route`, `parameters`) VALUES
	(1, 1, 'Dashboard', '', '_self', 'voyager-boat', NULL, NULL, 1, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.dashboard', NULL),
	(2, 1, 'Media', '', '_self', 'voyager-images', NULL, NULL, 5, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.media.index', NULL),
	(3, 1, 'Users', '', '_self', 'voyager-person', NULL, NULL, 3, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.users.index', NULL),
	(4, 1, 'Roles', '', '_self', 'voyager-lock', NULL, NULL, 2, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.roles.index', NULL),
	(5, 1, 'Tools', '', '_self', 'voyager-tools', NULL, NULL, 9, '2020-02-11 00:10:11', '2020-02-11 00:10:11', NULL, NULL),
	(6, 1, 'Menu Builder', '', '_self', 'voyager-list', NULL, 5, 10, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.menus.index', NULL),
	(7, 1, 'Database', '', '_self', 'voyager-data', NULL, 5, 11, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.database.index', NULL),
	(8, 1, 'Compass', '', '_self', 'voyager-compass', NULL, 5, 12, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.compass.index', NULL),
	(9, 1, 'BREAD', '', '_self', 'voyager-bread', NULL, 5, 13, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.bread.index', NULL),
	(10, 1, 'Settings', '', '_self', 'voyager-settings', NULL, NULL, 14, '2020-02-11 00:10:11', '2020-02-11 00:10:11', 'voyager.settings.index', NULL),
	(11, 1, 'Categories', '', '_self', 'voyager-categories', NULL, NULL, 8, '2020-02-11 00:10:14', '2020-02-11 00:10:14', 'voyager.categories.index', NULL),
	(12, 1, 'Posts', '', '_self', 'voyager-news', NULL, NULL, 6, '2020-02-11 00:10:14', '2020-02-11 00:10:14', 'voyager.posts.index', NULL),
	(13, 1, 'Pages', '', '_self', 'voyager-file-text', NULL, NULL, 7, '2020-02-11 00:10:14', '2020-02-11 00:10:14', 'voyager.pages.index', NULL),
	(14, 1, 'Hooks', '', '_self', 'voyager-hook', NULL, 5, 13, '2020-02-11 00:10:14', '2020-02-11 00:10:14', 'voyager.hooks', NULL),
	(15, 1, 'Orders', '', '_self', 'voyager-buy', NULL, NULL, 15, '2020-02-11 00:22:34', '2020-02-11 00:22:34', 'voyager.orders.index', NULL),
	(16, 1, 'Shops', '', '_self', 'voyager-shop', '#000000', NULL, 16, '2020-02-19 17:15:37', '2020-02-19 17:20:29', 'voyager.shops.index', 'null'),
	(17, 1, 'Products', '', '_self', 'voyager-bag', '#000000', NULL, 17, '2020-02-19 17:18:39', '2020-02-19 17:20:44', 'voyager.products.index', 'null'),
	(18, 1, 'Coupons', '', '_self', NULL, NULL, NULL, 18, '2020-04-04 09:11:42', '2020-04-04 09:11:42', 'voyager.coupons.index', NULL);

-- Dumping structure for table webmall.migrations
CREATE TABLE IF NOT EXISTS `migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.migrations: ~33 rows (approximately)
DELETE FROM `migrations`;
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
	(1, '2014_10_12_000000_create_users_table', 1),
	(2, '2014_10_12_100000_create_password_resets_table', 1),
	(3, '2016_01_01_000000_add_voyager_user_fields', 1),
	(4, '2016_01_01_000000_create_data_types_table', 1),
	(5, '2016_01_01_000000_create_pages_table', 1),
	(6, '2016_01_01_000000_create_posts_table', 1),
	(7, '2016_02_15_204651_create_categories_table', 1),
	(8, '2016_05_19_173453_create_menu_table', 1),
	(9, '2016_10_21_190000_create_roles_table', 1),
	(10, '2016_10_21_190000_create_settings_table', 1),
	(11, '2016_11_30_135954_create_permission_table', 1),
	(12, '2016_11_30_141208_create_permission_role_table', 1),
	(13, '2016_12_26_201236_data_types__add__server_side', 1),
	(14, '2017_01_13_000000_add_route_to_menu_items_table', 1),
	(15, '2017_01_14_005015_create_translations_table', 1),
	(16, '2017_01_15_000000_make_table_name_nullable_in_permissions_table', 1),
	(17, '2017_03_06_000000_add_controller_to_data_types_table', 1),
	(18, '2017_04_11_000000_alter_post_nullable_fields_table', 1),
	(19, '2017_04_21_000000_add_order_to_data_rows_table', 1),
	(20, '2017_07_05_210000_add_policyname_to_data_types_table', 1),
	(21, '2017_08_05_000000_add_group_to_settings_table', 1),
	(22, '2017_11_26_013050_add_user_role_relationship', 1),
	(23, '2017_11_26_015000_create_user_roles_table', 1),
	(24, '2018_03_11_000000_add_user_settings', 1),
	(25, '2018_03_14_000000_add_details_to_data_types_table', 1),
	(26, '2018_03_16_000000_make_settings_value_nullable', 1),
	(27, '2019_08_19_000000_create_failed_jobs_table', 1),
	(28, '2020_02_01_064736_create_shops_table', 1),
	(29, '2020_02_02_070326_create_products_table', 1),
	(30, '2020_02_06_174602_create_orders_table', 1),
	(31, '2020_02_06_181800_create_order_items_table', 1),
	(32, '2020_03_14_095509_create_product_categories_table', 2),
	(33, '2020_04_04_090325_create_coupons_table', 3);

-- Dumping structure for table webmall.orders
CREATE TABLE IF NOT EXISTS `orders` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `order_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint(20) unsigned NOT NULL,
  `status` enum('pending','processing','completed','decline') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
  `grand_total` double(8,2) NOT NULL,
  `item_count` int(11) NOT NULL,
  `is_paid` tinyint(1) NOT NULL DEFAULT '0',
  `payment_method` enum('cash_on_delivery','paypal','stripe','card') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash_on_delivery',
  `shipping_fullname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `shipping_address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `shipping_city` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `shipping_state` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `shipping_zipcode` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `shipping_phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `notes` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `billing_fullname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `billing_address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `billing_city` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `billing_state` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `billing_zipcode` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `billing_phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `orders_user_id_foreign` (`user_id`),
  CONSTRAINT `orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.orders: ~0 rows (approximately)
DELETE FROM `orders`;

-- Dumping structure for table webmall.order_items
CREATE TABLE IF NOT EXISTS `order_items` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint(20) unsigned NOT NULL,
  `product_id` bigint(20) unsigned NOT NULL,
  `price` double(8,2) NOT NULL,
  `quantity` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `order_items_product_id_foreign` (`product_id`),
  KEY `order_items_order_id_foreign` (`order_id`),
  CONSTRAINT `order_items_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `order_items_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.order_items: ~0 rows (approximately)
DELETE FROM `order_items`;

-- Dumping structure for table webmall.pages
CREATE TABLE IF NOT EXISTS `pages` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `author_id` int(11) NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `excerpt` text COLLATE utf8mb4_unicode_ci,
  `body` text COLLATE utf8mb4_unicode_ci,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `meta_description` text COLLATE utf8mb4_unicode_ci,
  `meta_keywords` text COLLATE utf8mb4_unicode_ci,
  `status` enum('ACTIVE','INACTIVE') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'INACTIVE',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pages_slug_unique` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.pages: ~1 rows (approximately)
DELETE FROM `pages`;
INSERT INTO `pages` (`id`, `author_id`, `title`, `excerpt`, `body`, `image`, `slug`, `meta_description`, `meta_keywords`, `status`, `created_at`, `updated_at`) VALUES
	(1, 0, 'Hello World', 'Hang the jib grog grog blossom grapple dance the hempen jig gangway pressgang bilge rat to go on account lugger. Nelsons folly gabion line draught scallywag fire ship gaff fluke fathom case shot. Sea Legs bilge rat sloop matey gabion long clothes run a shot across the bow Gold Road cog league.', '<p>Hello World. Scallywag grog swab Cat o\'nine tails scuttle rigging hardtack cable nipper Yellow Jack. Handsomely spirits knave lad killick landlubber or just lubber deadlights chantey pinnace crack Jennys tea cup. Provost long clothes black spot Yellow Jack bilged on her anchor league lateen sail case shot lee tackle.</p>\r\n<p>Ballast spirits fluke topmast me quarterdeck schooner landlubber or just lubber gabion belaying pin. Pinnace stern galleon starboard warp carouser to go on account dance the hempen jig jolly boat measured fer yer chains. Man-of-war fire in the hole nipperkin handsomely doubloon barkadeer Brethren of the Coast gibbet driver squiffy.</p>', 'pages/page1.jpg', 'hello-world', 'Yar Meta Description', 'Keyword1, Keyword2', 'ACTIVE', '2020-02-11 00:10:14', '2020-02-11 00:10:14');

-- Dumping structure for table webmall.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.password_resets: ~0 rows (approximately)
DELETE FROM `password_resets`;

-- Dumping structure for table webmall.permissions
CREATE TABLE IF NOT EXISTS `permissions` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `table_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `permissions_key_index` (`key`)
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.permissions: ~61 rows (approximately)
DELETE FROM `permissions`;
INSERT INTO `permissions` (`id`, `key`, `table_name`, `created_at`, `updated_at`) VALUES
	(1, 'browse_admin', NULL, '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(2, 'browse_bread', NULL, '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(3, 'browse_database', NULL, '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(4, 'browse_media', NULL, '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(5, 'browse_compass', NULL, '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(6, 'browse_menus', 'menus', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(7, 'read_menus', 'menus', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(8, 'edit_menus', 'menus', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(9, 'add_menus', 'menus', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(10, 'delete_menus', 'menus', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(11, 'browse_roles', 'roles', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(12, 'read_roles', 'roles', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(13, 'edit_roles', 'roles', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(14, 'add_roles', 'roles', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(15, 'delete_roles', 'roles', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(16, 'browse_users', 'users', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(17, 'read_users', 'users', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(18, 'edit_users', 'users', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(19, 'add_users', 'users', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(20, 'delete_users', 'users', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(21, 'browse_settings', 'settings', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(22, 'read_settings', 'settings', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(23, 'edit_settings', 'settings', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(24, 'add_settings', 'settings', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(25, 'delete_settings', 'settings', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(26, 'browse_categories', 'categories', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(27, 'read_categories', 'categories', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(28, 'edit_categories', 'categories', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(29, 'add_categories', 'categories', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(30, 'delete_categories', 'categories', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(31, 'browse_posts', 'posts', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(32, 'read_posts', 'posts', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(33, 'edit_posts', 'posts', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(34, 'add_posts', 'posts', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(35, 'delete_posts', 'posts', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(36, 'browse_pages', 'pages', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(37, 'read_pages', 'pages', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(38, 'edit_pages', 'pages', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(39, 'add_pages', 'pages', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(40, 'delete_pages', 'pages', '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(41, 'browse_hooks', NULL, '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(42, 'browse_orders', 'orders', '2020-02-11 00:22:34', '2020-02-11 00:22:34'),
	(43, 'read_orders', 'orders', '2020-02-11 00:22:34', '2020-02-11 00:22:34'),
	(44, 'edit_orders', 'orders', '2020-02-11 00:22:34', '2020-02-11 00:22:34'),
	(45, 'add_orders', 'orders', '2020-02-11 00:22:34', '2020-02-11 00:22:34'),
	(46, 'delete_orders', 'orders', '2020-02-11 00:22:34', '2020-02-11 00:22:34'),
	(47, 'browse_shops', 'shops', '2020-02-19 17:15:37', '2020-02-19 17:15:37'),
	(48, 'read_shops', 'shops', '2020-02-19 17:15:37', '2020-02-19 17:15:37'),
	(49, 'edit_shops', 'shops', '2020-02-19 17:15:37', '2020-02-19 17:15:37'),
	(50, 'add_shops', 'shops', '2020-02-19 17:15:37', '2020-02-19 17:15:37'),
	(51, 'delete_shops', 'shops', '2020-02-19 17:15:37', '2020-02-19 17:15:37'),
	(52, 'browse_products', 'products', '2020-02-19 17:18:39', '2020-02-19 17:18:39'),
	(53, 'read_products', 'products', '2020-02-19 17:18:39', '2020-02-19 17:18:39'),
	(54, 'edit_products', 'products', '2020-02-19 17:18:39', '2020-02-19 17:18:39'),
	(55, 'add_products', 'products', '2020-02-19 17:18:39', '2020-02-19 17:18:39'),
	(56, 'delete_products', 'products', '2020-02-19 17:18:39', '2020-02-19 17:18:39'),
	(57, 'browse_coupons', 'coupons', '2020-04-04 09:11:42', '2020-04-04 09:11:42'),
	(58, 'read_coupons', 'coupons', '2020-04-04 09:11:42', '2020-04-04 09:11:42'),
	(59, 'edit_coupons', 'coupons', '2020-04-04 09:11:42', '2020-04-04 09:11:42'),
	(60, 'add_coupons', 'coupons', '2020-04-04 09:11:42', '2020-04-04 09:11:42'),
	(61, 'delete_coupons', 'coupons', '2020-04-04 09:11:42', '2020-04-04 09:11:42');

-- Dumping structure for table webmall.permission_role
CREATE TABLE IF NOT EXISTS `permission_role` (
  `permission_id` bigint(20) unsigned NOT NULL,
  `role_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`permission_id`,`role_id`),
  KEY `permission_role_permission_id_index` (`permission_id`),
  KEY `permission_role_role_id_index` (`role_id`),
  CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.permission_role: ~74 rows (approximately)
DELETE FROM `permission_role`;
INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES
	(1, 1),
	(1, 3),
	(2, 1),
	(3, 1),
	(4, 1),
	(5, 1),
	(6, 1),
	(6, 3),
	(7, 1),
	(7, 3),
	(8, 1),
	(9, 1),
	(10, 1),
	(11, 1),
	(12, 1),
	(13, 1),
	(14, 1),
	(15, 1),
	(16, 1),
	(17, 1),
	(18, 1),
	(19, 1),
	(20, 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),
	(41, 1),
	(42, 1),
	(43, 1),
	(44, 1),
	(45, 1),
	(46, 1),
	(47, 1),
	(47, 3),
	(48, 1),
	(48, 3),
	(49, 1),
	(49, 3),
	(50, 1),
	(50, 3),
	(51, 1),
	(51, 3),
	(52, 1),
	(52, 3),
	(53, 1),
	(53, 3),
	(54, 1),
	(54, 3),
	(55, 1),
	(55, 3),
	(56, 1),
	(56, 3),
	(57, 1),
	(58, 1),
	(59, 1),
	(60, 1),
	(61, 1);

-- Dumping structure for table webmall.posts
CREATE TABLE IF NOT EXISTS `posts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `author_id` int(11) NOT NULL,
  `category_id` int(11) DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `seo_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `excerpt` text COLLATE utf8mb4_unicode_ci,
  `body` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `meta_description` text COLLATE utf8mb4_unicode_ci,
  `meta_keywords` text COLLATE utf8mb4_unicode_ci,
  `status` enum('PUBLISHED','DRAFT','PENDING') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'DRAFT',
  `featured` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `posts_slug_unique` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.posts: ~4 rows (approximately)
DELETE FROM `posts`;
INSERT INTO `posts` (`id`, `author_id`, `category_id`, `title`, `seo_title`, `excerpt`, `body`, `image`, `slug`, `meta_description`, `meta_keywords`, `status`, `featured`, `created_at`, `updated_at`) VALUES
	(1, 0, NULL, 'Lorem Ipsum Post', NULL, 'This is the excerpt for the Lorem Ipsum Post', '<p>This is the body of the lorem ipsum post</p>', 'posts/post1.jpg', 'lorem-ipsum-post', 'This is the meta description', 'keyword1, keyword2, keyword3', 'PUBLISHED', 0, '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(2, 0, NULL, 'My Sample Post', NULL, 'This is the excerpt for the sample Post', '<p>This is the body for the sample post, which includes the body.</p>\r\n<h2>We can use all kinds of format!</h2>\r\n<p>And include a bunch of other stuff.</p>', 'posts/post2.jpg', 'my-sample-post', 'Meta Description for sample post', 'keyword1, keyword2, keyword3', 'PUBLISHED', 0, '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(3, 0, NULL, 'Latest Post', NULL, 'This is the excerpt for the latest post', '<p>This is the body for the latest post</p>', 'posts/post3.jpg', 'latest-post', 'This is the meta description', 'keyword1, keyword2, keyword3', 'PUBLISHED', 0, '2020-02-11 00:10:14', '2020-02-11 00:10:14'),
	(4, 0, NULL, 'Yarr Post', NULL, 'Reef sails nipperkin bring a spring upon her cable coffer jury mast spike marooned Pieces of Eight poop deck pillage. Clipper driver coxswain galleon hempen halter come about pressgang gangplank boatswain swing the lead. Nipperkin yard skysail swab lanyard Blimey bilge water ho quarter Buccaneer.', '<p>Swab deadlights Buccaneer fire ship square-rigged dance the hempen jig weigh anchor cackle fruit grog furl. Crack Jennys tea cup chase guns pressgang hearties spirits hogshead Gold Road six pounders fathom measured fer yer chains. Main sheet provost come about trysail barkadeer crimp scuttle mizzenmast brig plunder.</p>\r\n<p>Mizzen league keelhaul galleon tender cog chase Barbary Coast doubloon crack Jennys tea cup. Blow the man down lugsail fire ship pinnace cackle fruit line warp Admiral of the Black strike colors doubloon. Tackle Jack Ketch come about crimp rum draft scuppers run a shot across the bow haul wind maroon.</p>\r\n<p>Interloper heave down list driver pressgang holystone scuppers tackle scallywag bilged on her anchor. Jack Tar interloper draught grapple mizzenmast hulk knave cable transom hogshead. Gaff pillage to go on account grog aft chase guns piracy yardarm knave clap of thunder.</p>', 'posts/post4.jpg', 'yarr-post', 'this be a meta descript', 'keyword1, keyword2, keyword3', 'PUBLISHED', 0, '2020-02-11 00:10:14', '2020-02-11 00:10:14');

-- Dumping structure for table webmall.products
CREATE TABLE IF NOT EXISTS `products` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `price` double(8,2) NOT NULL,
  `cover_img` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shop_id` bigint(20) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `products_shop_id_foreign` (`shop_id`),
  CONSTRAINT `products_shop_id_foreign` FOREIGN KEY (`shop_id`) REFERENCES `shops` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.products: ~48 rows (approximately)
DELETE FROM `products`;
INSERT INTO `products` (`id`, `name`, `description`, `price`, `cover_img`, `shop_id`, `created_at`, `updated_at`) VALUES
	(3, 'Non ut voluptatem.', '<p>Exercitationem accusantium distinctio fuga aliquid quod sequi praesentium quia et recusandae qui deserunt expedita veniam recusandae ex molestias cumque sed deserunt reprehenderit.</p>', 4721.00, NULL, NULL, '2020-02-19 18:05:00', '2020-03-14 10:04:31'),
	(4, 'Sunt et distinctio.', '<p>Itaque dicta quo inventore esse natus enim aliquid molestiae reiciendis cumque ad voluptas nobis.</p>', 3105.00, 'products\\March2020\\ZsIocI2E5iZGZHwCtBxp.jpg', NULL, '2020-02-19 18:05:00', '2020-03-22 09:06:43'),
	(5, 'Reprehenderit est.', '<p>Sunt atque aliquam explicabo sapiente et quis ducimus enim molestiae perspiciatis fuga qui corporis nobis iste impedit aut aperiam et aut ut qui eum quia ullam et.</p>', 929.00, NULL, NULL, '2020-02-19 18:05:00', '2020-03-14 10:49:45'),
	(6, 'Rerum fugit deserunt.', '<p>Maiores ut qui aperiam voluptates sed quod cum incidunt ut occaecati libero et minus sed earum ea qui sequi nihil aspernatur.</p>', 4839.00, NULL, NULL, '2020-02-19 18:05:00', '2020-03-14 10:05:06'),
	(7, 'Ipsa illo.', '<p>Illo sit laborum est quod natus maiores voluptas dolores maxime dolorem sequi nam quis similique qui ut similique est nisi est dolorem quo aut.</p>', 2020.00, NULL, NULL, '2020-02-19 18:05:00', '2020-03-14 10:05:20'),
	(8, 'Ducimus perspiciatis provident.', 'Non maxime impedit omnis vero nulla officiis et vel corporis rerum id vero nisi architecto mollitia et qui eaque aut necessitatibus commodi enim.', 3978.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(9, 'Quo reiciendis.', 'Sunt architecto ducimus porro iusto explicabo et quod quibusdam nemo aliquid et accusantium inventore nam totam qui.', 331.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(10, 'Maiores accusantium molestiae.', 'Aut est fugit voluptatem quidem adipisci consectetur architecto tenetur aut id quam enim eaque.', 4207.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(11, 'Quo nostrum voluptas.', 'Voluptas sed et aliquam consequatur temporibus consequatur nulla in commodi dicta est unde totam molestiae recusandae et.', 947.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(12, 'Non ullam.', 'Quis iure quo accusantium ea adipisci non facere odit ducimus aut in sunt velit sunt.', 2179.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(13, 'Mollitia quisquam molestias.', 'Omnis sapiente ut sunt voluptas maiores numquam ut quia debitis exercitationem id accusamus blanditiis quisquam voluptas minus eaque quasi deleniti aut.', 3778.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(14, 'Molestias facilis.', 'Hic numquam dolorum nostrum molestias dolorum quasi debitis cumque error aliquam officia et quae repellat consequatur et nesciunt quam dolores officia deserunt inventore est inventore fugit ducimus maxime.', 4890.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(15, 'Animi recusandae.', 'Odit in asperiores veritatis et a numquam quaerat maxime in quam eos asperiores doloribus et libero sint eos debitis perspiciatis perspiciatis vel nulla est maiores.', 4884.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(16, 'Tenetur quibusdam.', 'Minus nisi sint quo dolor ipsam illum quo soluta sapiente illo porro facilis adipisci ducimus quia nihil temporibus autem non sunt error consequatur nulla nemo.', 2767.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(17, 'Corrupti ut.', 'Ad quo dolores iste deleniti aliquam unde aut molestias officiis est laudantium illo earum ipsum consectetur qui cumque autem nobis quisquam natus harum nostrum qui fugit voluptas fuga vitae.', 3284.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(18, 'Voluptas quisquam.', 'Qui perferendis aut voluptas est ut officia aut quas vitae soluta voluptas perspiciatis omnis ducimus ut error animi ea autem odit voluptas.', 4358.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(19, 'Sint atque enim.', 'Et provident ut nemo placeat amet soluta non ea non beatae ad et quisquam ipsam temporibus quia aut aut nihil soluta.', 719.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(20, 'Atque repellat vitae.', 'Magnam atque ipsa rem numquam qui sint aliquid magni aliquid dolorum labore doloribus dolores et veniam aliquam consequatur quas molestiae natus quos ipsa saepe culpa nihil est.', 4585.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(21, 'Eum quo qui.', 'Cupiditate quia debitis voluptates ut sit aspernatur commodi est aut asperiores ullam placeat rerum sapiente error aspernatur animi laudantium eos molestiae.', 1026.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(22, 'Dolores culpa autem.', 'Qui esse minima deleniti voluptatibus officiis labore omnis voluptatem eius sapiente ut deleniti delectus quo quia officia assumenda.', 4117.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(23, 'Quae eveniet consequuntur.', 'Officia rerum necessitatibus aut sint non voluptatum veritatis harum non eos sunt cupiditate unde deleniti error eum dolorem architecto deserunt omnis dolorum dolore sed voluptatum quia.', 3216.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(24, 'Aperiam vel qui.', 'Et odio totam magnam odio corrupti neque illum sunt quae et rerum perspiciatis non minima soluta et porro esse fuga facilis vitae qui et soluta in alias facere.', 701.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(25, 'Et aut libero.', 'Labore necessitatibus maiores id ab voluptatibus quisquam quaerat est corporis sit dolores nostrum eveniet ad eum aperiam qui saepe natus.', 3577.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(26, 'Tenetur corporis.', 'Voluptates et modi deserunt ullam minus labore neque mollitia nemo provident eius eveniet sint quod veniam tenetur perferendis commodi aspernatur neque aliquid animi amet minima ad.', 1438.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(27, 'Minus voluptatem.', 'In fugiat eum quibusdam et eos aut porro veniam aut aperiam est in pariatur laborum.', 274.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(28, 'Vel qui.', 'At aut qui maiores recusandae non voluptas consequatur est aspernatur cumque laborum eum tenetur molestias.', 2846.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(29, 'Aut neque.', 'Quia reprehenderit accusamus odio eaque et non officiis sapiente et porro reprehenderit laboriosam accusantium et nobis adipisci eos non et.', 3161.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(30, 'Rerum facere.', 'Voluptatem quia repudiandae nulla voluptas aut quia cum qui veritatis minima qui dignissimos aperiam veniam mollitia consequatur et.', 4361.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(31, 'Eum enim.', 'Beatae dolor recusandae similique natus aut aut rerum qui omnis sint omnis excepturi ratione modi iusto modi quis illum maiores rerum molestias reiciendis maxime.', 1943.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(32, 'Ut numquam est.', 'Nisi aut et ut quibusdam et aut laboriosam assumenda iste facilis nemo fugiat est debitis.', 1614.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(33, 'Consequatur vel incidunt.', 'Est repellendus laborum vitae accusantium aut corporis voluptas quos voluptas perspiciatis eaque magnam fuga ut est voluptatem ipsa consequatur reprehenderit voluptatibus aut quidem architecto est voluptatibus modi nulla.', 4119.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(34, 'Tenetur explicabo.', 'Dolor deserunt quia et sequi facilis rerum voluptatibus voluptate sint sint quasi eius assumenda consequatur recusandae possimus cum accusantium perferendis nisi.', 1458.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(35, 'Ex qui non.', 'Beatae commodi consequatur ipsam placeat incidunt maxime iste reprehenderit velit eveniet molestias eligendi sunt facilis laborum eligendi voluptates tenetur quos eveniet cum blanditiis similique commodi.', 4040.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(36, 'Quis modi possimus.', 'Provident numquam assumenda quibusdam aliquam odit accusamus ex sunt quaerat numquam aperiam laborum ea sit numquam voluptas veniam facere doloribus pariatur sed iste cumque assumenda.', 3711.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(37, 'Voluptas ipsum.', 'Dolorum ut qui ratione corporis ut id et omnis aut porro magni fugiat incidunt qui placeat sit est est corporis eos iure praesentium doloremque.', 2986.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(38, 'Quibusdam quas id.', 'Aut suscipit sint voluptatum in aut maxime magnam sed vel velit illo praesentium ut fugit aliquam nulla.', 3519.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(39, 'Perferendis dolores numquam.', 'Nihil ut voluptas voluptate molestiae quas nobis temporibus soluta optio non et sint laudantium eius iusto et harum quibusdam et accusamus.', 4462.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(40, 'Hic quo tempore.', 'Beatae accusantium veritatis deleniti ipsa fugit dolor fugit fugiat inventore a at voluptatem consequatur ea natus deleniti atque et.', 2358.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(41, 'Quis qui.', 'Voluptas et porro unde est eos necessitatibus et doloremque soluta vitae est eligendi non eum adipisci voluptatem.', 2355.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(42, 'Odit temporibus.', 'Et laboriosam saepe nam culpa dolorum ipsam qui occaecati et eius voluptate dicta ut in alias soluta nulla.', 4790.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(43, 'Aut voluptatem.', 'Consequatur nobis corporis quia nemo consequatur quis in at voluptatem dolore sunt voluptas porro ut et autem et.', 1996.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(44, 'Quibusdam incidunt.', 'Aut enim assumenda et expedita temporibus impedit voluptas omnis laudantium ipsam pariatur quas libero architecto pariatur.', 336.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(45, 'Rem ut eaque.', 'Cumque quia ipsum est repellendus vel voluptate dignissimos nihil saepe consequatur perferendis unde cum id et consequuntur.', 2871.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(46, 'Quisquam sint.', 'Corrupti recusandae qui iure id porro soluta delectus exercitationem ipsam blanditiis hic et voluptatibus quo a nam magni eum dolor aut pariatur aut quod sunt.', 1100.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(47, 'Sunt officiis.', 'Ut eligendi commodi eaque animi qui voluptate ipsam fugit sit facilis est ex et ea eaque perspiciatis neque non.', 3071.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(48, 'Atque nisi eius.', 'Tempore et neque et eligendi velit unde unde laudantium cum saepe non corporis et.', 3271.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(49, 'Eos quis doloribus.', 'Eum qui cum cum eligendi voluptates est esse est ipsum quo perspiciatis soluta dolorem quasi animi optio sint magni voluptas.', 4509.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10'),
	(50, 'Nihil error pariatur.', 'Omnis amet voluptatibus dolores aut praesentium ab quibusdam dolores doloremque nulla tempora accusamus temporibus.', 1121.00, NULL, NULL, '2020-02-19 18:05:10', '2020-02-19 18:05:10');

-- Dumping structure for table webmall.product_categories
CREATE TABLE IF NOT EXISTS `product_categories` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `product_id` bigint(20) unsigned NOT NULL,
  `category_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.product_categories: ~5 rows (approximately)
DELETE FROM `product_categories`;
INSERT INTO `product_categories` (`id`, `product_id`, `category_id`, `created_at`, `updated_at`) VALUES
	(1, 3, 4, NULL, NULL),
	(2, 6, 5, NULL, NULL),
	(3, 6, 6, NULL, NULL),
	(4, 7, 3, NULL, NULL),
	(5, 5, 7, NULL, NULL);

-- Dumping structure for table webmall.roles
CREATE TABLE IF NOT EXISTS `roles` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `roles_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.roles: ~3 rows (approximately)
DELETE FROM `roles`;
INSERT INTO `roles` (`id`, `name`, `display_name`, `created_at`, `updated_at`) VALUES
	(1, 'admin', 'Administrator', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(2, 'user', 'Normal User', '2020-02-11 00:10:11', '2020-02-11 00:10:11'),
	(3, 'seller', 'Seller', '2020-02-19 17:25:16', '2020-02-19 17:25:16');

-- Dumping structure for table webmall.shops
CREATE TABLE IF NOT EXISTS `shops` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint(20) unsigned NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '0',
  `description` text COLLATE utf8mb4_unicode_ci,
  `rating` double(8,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `shops_user_id_foreign` (`user_id`),
  CONSTRAINT `shops_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.shops: ~1 rows (approximately)
DELETE FROM `shops`;
INSERT INTO `shops` (`id`, `name`, `user_id`, `is_active`, `description`, `rating`, `created_at`, `updated_at`) VALUES
	(2, 'Recusandae similique : seller 2 shop', 5, 1, 'Id tempora voluptates sed aut quis rerum provident est natus illo dolor quam quia eos.', NULL, '2020-02-19 18:05:00', '2020-02-25 00:39:14');

-- Dumping structure for table webmall.translations
CREATE TABLE IF NOT EXISTS `translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `table_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `column_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `foreign_key` int(10) unsigned NOT NULL,
  `locale` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `translations_table_name_column_name_foreign_key_locale_unique` (`table_name`,`column_name`,`foreign_key`,`locale`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.translations: ~0 rows (approximately)
DELETE FROM `translations`;

-- Dumping structure for table webmall.user_roles
CREATE TABLE IF NOT EXISTS `user_roles` (
  `user_id` bigint(20) unsigned NOT NULL,
  `role_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`user_id`,`role_id`),
  KEY `user_roles_user_id_index` (`user_id`),
  KEY `user_roles_role_id_index` (`role_id`),
  CONSTRAINT `user_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
  CONSTRAINT `user_roles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Dumping data for table webmall.user_roles: ~0 rows (approximately)
DELETE FROM `user_roles`;

