
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;

--
-- Database: `tastyigniter425`
--

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

--
-- Table structure for table `[[dbprefix]]addresses`
--

CREATE TABLE `[[dbprefix]]addresses` (
  `address_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `customer_id` int DEFAULT NULL,
  `address_1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `address_2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `postcode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`address_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]admin_users`
--

CREATE TABLE `[[dbprefix]]admin_users` (
  `user_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `telephone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_role_id` bigint unsigned DEFAULT NULL,
  `language_id` bigint unsigned DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `sale_permission` tinyint NOT NULL DEFAULT '0',
  `username` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `super_user` tinyint(1) DEFAULT NULL,
  `reset_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reset_time` datetime DEFAULT NULL,
  `activation_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remember_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_activated` tinyint(1) DEFAULT NULL,
  `activated_at` datetime DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `last_seen` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `invited_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`user_id`),
  UNIQUE KEY `[[dbprefix]]admin_users_username_unique` (`username`),
  UNIQUE KEY `[[dbprefix]]admin_users_email_unique` (`email`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]admin_users`
--

INSERT INTO `[[dbprefix]]admin_users` VALUES
(1, '[[admin_username]]', '[[admin_email]]', NULL, 1, NULL, 1, 0, 'admin', '[[admin_pass]]', 1, NULL, NULL, NULL, NULL, 1, '[[regtime]]', NULL, NULL, '[[regtime]]', '[[regtime]]', NULL);

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

--
-- Table structure for table `[[dbprefix]]admin_users_groups`
--

CREATE TABLE `[[dbprefix]]admin_users_groups` (
  `user_id` int unsigned NOT NULL,
  `user_group_id` int unsigned NOT NULL,
  PRIMARY KEY (`user_id`,`user_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `[[dbprefix]]admin_users_groups`
--

INSERT INTO `[[dbprefix]]admin_users_groups` VALUES
(1, 1);

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

--
-- Table structure for table `[[dbprefix]]admin_user_groups`
--

CREATE TABLE `[[dbprefix]]admin_user_groups` (
  `user_group_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_group_name` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `auto_assign` tinyint(1) DEFAULT '0',
  `auto_assign_mode` tinyint DEFAULT '1',
  `auto_assign_limit` int DEFAULT '20',
  `auto_assign_availability` tinyint(1) DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`user_group_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=5 ;

--
-- Dumping data for table `[[dbprefix]]admin_user_groups`
--

INSERT INTO `[[dbprefix]]admin_user_groups` VALUES
(1, 'Owners', 'Default group for owners', 0, 1, 20, 1, '[[regtime]]', '[[regtime]]'),
(2, 'Managers', 'Default group for managers', 0, 1, 20, 1, '[[regtime]]', '[[regtime]]'),
(3, 'Waiters', 'Default group for waiters.', 0, 1, 20, 1, '[[regtime]]', '[[regtime]]'),
(4, 'Delivery', 'Default group for delivery drivers.', 0, 1, 20, 1, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]admin_user_preferences`
--

CREATE TABLE `[[dbprefix]]admin_user_preferences` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `item` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` text COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]admin_user_roles`
--

CREATE TABLE `[[dbprefix]]admin_user_roles` (
  `user_role_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `permissions` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`user_role_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=5 ;

--
-- Dumping data for table `[[dbprefix]]admin_user_roles`
--

INSERT INTO `[[dbprefix]]admin_user_roles` VALUES
(1, 'Owner', 'owner', 'Default role for restaurant owners', NULL, '[[regtime]]', '[[regtime]]'),
(2, 'Manager', 'manager', 'Default role for restaurant managers.', 'a:16:{s:15:"Admin.Dashboard";s:1:"1";s:16:"Admin.Categories";s:1:"1";s:14:"Admin.Statuses";s:1:"1";s:12:"Admin.Staffs";s:1:"1";s:17:"Admin.StaffGroups";s:1:"1";s:15:"Admin.Customers";s:1:"1";s:20:"Admin.CustomerGroups";s:1:"1";s:14:"Admin.Payments";s:1:"1";s:18:"Admin.Reservations";s:1:"1";s:12:"Admin.Orders";s:1:"1";s:12:"Admin.Tables";s:1:"1";s:15:"Admin.Locations";s:1:"1";s:15:"Admin.Mealtimes";s:1:"1";s:11:"Admin.Menus";s:1:"1";s:11:"Site.Themes";s:1:"1";s:18:"Admin.MediaManager";s:1:"1";}', '[[regtime]]', '[[regtime]]'),
(3, 'Waiter', 'waiter', 'Default role for restaurant waiters.', 'a:4:{s:16:"Admin.Categories";s:1:"1";s:18:"Admin.Reservations";s:1:"1";s:12:"Admin.Orders";s:1:"1";s:11:"Admin.Menus";s:1:"1";}', '[[regtime]]', '[[regtime]]'),
(4, 'Delivery', 'delivery', 'Default role for restaurant delivery.', 'a:3:{s:14:"Admin.Statuses";s:1:"1";s:18:"Admin.Reservations";s:1:"1";s:12:"Admin.Orders";s:1:"1";}', '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]assignable_logs`
--

CREATE TABLE `[[dbprefix]]assignable_logs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `assignable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `assignable_id` bigint unsigned NOT NULL,
  `assignee_id` int unsigned DEFAULT NULL,
  `assignee_group_id` int unsigned DEFAULT NULL,
  `user_id` int unsigned DEFAULT NULL,
  `status_id` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `assignable_logs_assignable` (`assignable_type`,`assignable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]categories`
--

CREATE TABLE `[[dbprefix]]categories` (
  `category_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `parent_id` int DEFAULT NULL,
  `priority` int NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `nest_left` int DEFAULT NULL,
  `nest_right` int DEFAULT NULL,
  `permalink_slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`category_id`),
  KEY `idx_categories_status` (`status`),
  KEY `idx_categories_status_priority` (`status`,`priority`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]countries`
--

CREATE TABLE `[[dbprefix]]countries` (
  `country_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `country_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `iso_code_2` varchar(2) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iso_code_3` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `format` text COLLATE utf8mb4_unicode_ci,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `priority` int NOT NULL DEFAULT '999',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`country_id`),
  KEY `idx_countries_status_default` (`status`,`is_default`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=240 ;

--
-- Dumping data for table `[[dbprefix]]countries`
--

INSERT INTO `[[dbprefix]]countries` VALUES
(1, 'Afghanistan', 'AF', 'AFG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(2, 'Albania', 'AL', 'ALB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(3, 'Algeria', 'DZ', 'DZA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(4, 'American Samoa', 'AS', 'ASM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(5, 'Andorra', 'AD', 'AND', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(6, 'Angola', 'AO', 'AGO', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(7, 'Anguilla', 'AI', 'AIA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(8, 'Antarctica', 'AQ', 'ATA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(9, 'Antigua and Barbuda', 'AG', 'ATG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(10, 'Argentina', 'AR', 'ARG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(11, 'Armenia', 'AM', 'ARM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(12, 'Aruba', 'AW', 'ABW', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(13, 'Australia', 'AU', 'AUS', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(14, 'Austria', 'AT', 'AUT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(15, 'Azerbaijan', 'AZ', 'AZE', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(16, 'Bahamas', 'BS', 'BHS', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(17, 'Bahrain', 'BH', 'BHR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(18, 'Bangladesh', 'BD', 'BGD', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(19, 'Barbados', 'BB', 'BRB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(20, 'Belarus', 'BY', 'BLR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(21, 'Belgium', 'BE', 'BEL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(22, 'Belize', 'BZ', 'BLZ', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(23, 'Benin', 'BJ', 'BEN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(24, 'Bermuda', 'BM', 'BMU', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(25, 'Bhutan', 'BT', 'BTN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(26, 'Bolivia', 'BO', 'BOL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(27, 'Bosnia and Herzegowina', 'BA', 'BIH', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(28, 'Botswana', 'BW', 'BWA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(29, 'Bouvet Island', 'BV', 'BVT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(30, 'Brazil', 'BR', 'BRA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(31, 'British Indian Ocean Territory', 'IO', 'IOT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(32, 'Brunei Darussalam', 'BN', 'BRN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(33, 'Bulgaria', 'BG', 'BGR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(34, 'Burkina Faso', 'BF', 'BFA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(35, 'Burundi', 'BI', 'BDI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(36, 'Cambodia', 'KH', 'KHM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(37, 'Cameroon', 'CM', 'CMR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(38, 'Canada', 'CA', 'CAN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(39, 'Cape Verde', 'CV', 'CPV', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(40, 'Cayman Islands', 'KY', 'CYM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(41, 'Central African Republic', 'CF', 'CAF', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(42, 'Chad', 'TD', 'TCD', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(43, 'Chile', 'CL', 'CHL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(44, 'China', 'CN', 'CHN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(45, 'Christmas Island', 'CX', 'CXR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(46, 'Cocos (Keeling) Islands', 'CC', 'CCK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(47, 'Colombia', 'CO', 'COL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(48, 'Comoros', 'KM', 'COM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(49, 'Congo', 'CG', 'COG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(50, 'Cook Islands', 'CK', 'COK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(51, 'Costa Rica', 'CR', 'CRI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(52, 'Cote D''Ivoire', 'CI', 'CIV', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(53, 'Croatia', 'HR', 'HRV', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(54, 'Cuba', 'CU', 'CUB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(55, 'Cyprus', 'CY', 'CYP', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(56, 'Czech Republic', 'CZ', 'CZE', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(57, 'Denmark', 'DK', 'DNK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(58, 'Djibouti', 'DJ', 'DJI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(59, 'Dominica', 'DM', 'DMA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(60, 'Dominican Republic', 'DO', 'DOM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(61, 'East Timor', 'TP', 'TMP', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(62, 'Ecuador', 'EC', 'ECU', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(63, 'Egypt', 'EG', 'EGY', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(64, 'El Salvador', 'SV', 'SLV', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(65, 'Equatorial Guinea', 'GQ', 'GNQ', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(66, 'Eritrea', 'ER', 'ERI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(67, 'Estonia', 'EE', 'EST', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(68, 'Ethiopia', 'ET', 'ETH', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(69, 'Falkland Islands (Malvinas)', 'FK', 'FLK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(70, 'Faroe Islands', 'FO', 'FRO', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(71, 'Fiji', 'FJ', 'FJI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(72, 'Finland', 'FI', 'FIN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(73, 'France', 'FR', 'FRA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(74, 'France, Metropolitan', 'FX', 'FXX', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(75, 'French Guiana', 'GF', 'GUF', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(76, 'French Polynesia', 'PF', 'PYF', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(77, 'French Southern Territories', 'TF', 'ATF', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(78, 'Gabon', 'GA', 'GAB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(79, 'Gambia', 'GM', 'GMB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(80, 'Georgia', 'GE', 'GEO', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(81, 'Germany', 'DE', 'DEU', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(82, 'Ghana', 'GH', 'GHA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(83, 'Gibraltar', 'GI', 'GIB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(84, 'Greece', 'GR', 'GRC', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(85, 'Greenland', 'GL', 'GRL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(86, 'Grenada', 'GD', 'GRD', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(87, 'Guadeloupe', 'GP', 'GLP', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(88, 'Guam', 'GU', 'GUM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(89, 'Guatemala', 'GT', 'GTM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(90, 'Guinea', 'GN', 'GIN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(91, 'Guinea-bissau', 'GW', 'GNB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(92, 'Guyana', 'GY', 'GUY', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(93, 'Haiti', 'HT', 'HTI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(94, 'Heard and Mc Donald Islands', 'HM', 'HMD', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(95, 'Honduras', 'HN', 'HND', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(96, 'Hong Kong', 'HK', 'HKG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(97, 'Hungary', 'HU', 'HUN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(98, 'Iceland', 'IS', 'ISL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(99, 'India', 'IN', 'IND', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(100, 'Indonesia', 'ID', 'IDN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(101, 'Iran (Islamic Republic of)', 'IR', 'IRN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(102, 'Iraq', 'IQ', 'IRQ', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(103, 'Ireland', 'IE', 'IRL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(104, 'Israel', 'IL', 'ISR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(105, 'Italy', 'IT', 'ITA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(106, 'Jamaica', 'JM', 'JAM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(107, 'Japan', 'JP', 'JPN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(108, 'Jordan', 'JO', 'JOR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(109, 'Kazakhstan', 'KZ', 'KAZ', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(110, 'Kenya', 'KE', 'KEN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(111, 'Kiribati', 'KI', 'KIR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(112, 'North Korea', 'KP', 'PRK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(113, 'Korea, Republic of', 'KR', 'KOR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(114, 'Kuwait', 'KW', 'KWT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(115, 'Kyrgyzstan', 'KG', 'KGZ', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(116, 'Lao People''s Democratic Republic', 'LA', 'LAO', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(117, 'Latvia', 'LV', 'LVA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(118, 'Lebanon', 'LB', 'LBN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(119, 'Lesotho', 'LS', 'LSO', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(120, 'Liberia', 'LR', 'LBR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(121, 'Libyan Arab Jamahiriya', 'LY', 'LBY', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(122, 'Liechtenstein', 'LI', 'LIE', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(123, 'Lithuania', 'LT', 'LTU', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(124, 'Luxembourg', 'LU', 'LUX', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(125, 'Macau', 'MO', 'MAC', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(126, 'FYROM', 'MK', 'MKD', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(127, 'Madagascar', 'MG', 'MDG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(128, 'Malawi', 'MW', 'MWI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(129, 'Malaysia', 'MY', 'MYS', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(130, 'Maldives', 'MV', 'MDV', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(131, 'Mali', 'ML', 'MLI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(132, 'Malta', 'MT', 'MLT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(133, 'Marshall Islands', 'MH', 'MHL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(134, 'Martinique', 'MQ', 'MTQ', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(135, 'Mauritania', 'MR', 'MRT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(136, 'Mauritius', 'MU', 'MUS', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(137, 'Mayotte', 'YT', 'MYT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(138, 'Mexico', 'MX', 'MEX', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(139, 'Micronesia, Federated States of', 'FM', 'FSM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(140, 'Moldova, Republic of', 'MD', 'MDA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(141, 'Monaco', 'MC', 'MCO', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(142, 'Mongolia', 'MN', 'MNG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(143, 'Montserrat', 'MS', 'MSR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(144, 'Morocco', 'MA', 'MAR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(145, 'Mozambique', 'MZ', 'MOZ', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(146, 'Myanmar', 'MM', 'MMR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(147, 'Namibia', 'NA', 'NAM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(148, 'Nauru', 'NR', 'NRU', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(149, 'Nepal', 'NP', 'NPL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(150, 'Netherlands', 'NL', 'NLD', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(151, 'Netherlands Antilles', 'AN', 'ANT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(152, 'New Caledonia', 'NC', 'NCL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(153, 'New Zealand', 'NZ', 'NZL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(154, 'Nicaragua', 'NI', 'NIC', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(155, 'Niger', 'NE', 'NER', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(156, 'Nigeria', 'NG', 'NGA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(157, 'Niue', 'NU', 'NIU', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(158, 'Norfolk Island', 'NF', 'NFK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(159, 'Northern Mariana Islands', 'MP', 'MNP', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(160, 'Norway', 'NO', 'NOR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(161, 'Oman', 'OM', 'OMN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(162, 'Pakistan', 'PK', 'PAK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(163, 'Palau', 'PW', 'PLW', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(164, 'Panama', 'PA', 'PAN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(165, 'Papua New Guinea', 'PG', 'PNG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(166, 'Paraguay', 'PY', 'PRY', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(167, 'Peru', 'PE', 'PER', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(168, 'Philippines', 'PH', 'PHL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(169, 'Pitcairn', 'PN', 'PCN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(170, 'Poland', 'PL', 'POL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(171, 'Portugal', 'PT', 'PRT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(172, 'Puerto Rico', 'PR', 'PRI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(173, 'Qatar', 'QA', 'QAT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(174, 'Reunion', 'RE', 'REU', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(175, 'Romania', 'RO', 'ROM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(176, 'Russian Federation', 'RU', 'RUS', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(177, 'Rwanda', 'RW', 'RWA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(178, 'Saint Kitts and Nevis', 'KN', 'KNA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(179, 'Saint Lucia', 'LC', 'LCA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(180, 'Saint Vincent and the Grenadines', 'VC', 'VCT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(181, 'Samoa', 'WS', 'WSM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(182, 'San Marino', 'SM', 'SMR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(183, 'Sao Tome and Principe', 'ST', 'STP', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(184, 'Saudi Arabia', 'SA', 'SAU', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(185, 'Senegal', 'SN', 'SEN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(186, 'Seychelles', 'SC', 'SYC', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(187, 'Sierra Leone', 'SL', 'SLE', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(188, 'Singapore', 'SG', 'SGP', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(189, 'Slovak Republic', 'SK', 'SVK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(190, 'Slovenia', 'SI', 'SVN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(191, 'Solomon Islands', 'SB', 'SLB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(192, 'Somalia', 'SO', 'SOM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(193, 'South Africa', 'ZA', 'ZAF', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(194, 'South Georgia &amp; South Sandwich Islands', 'GS', 'SGS', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(195, 'Spain', 'ES', 'ESP', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(196, 'Sri Lanka', 'LK', 'LKA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(197, 'St. Helena', 'SH', 'SHN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(198, 'St. Pierre and Miquelon', 'PM', 'SPM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(199, 'Sudan', 'SD', 'SDN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(200, 'Suriname', 'SR', 'SUR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(201, 'Svalbard and Jan Mayen Islands', 'SJ', 'SJM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(202, 'Swaziland', 'SZ', 'SWZ', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(203, 'Sweden', 'SE', 'SWE', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(204, 'Switzerland', 'CH', 'CHE', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(205, 'Syrian Arab Republic', 'SY', 'SYR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(206, 'Taiwan', 'TW', 'TWN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(207, 'Tajikistan', 'TJ', 'TJK', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(208, 'Tanzania, United Republic of', 'TZ', 'TZA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(209, 'Thailand', 'TH', 'THA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(210, 'Togo', 'TG', 'TGO', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(211, 'Tokelau', 'TK', 'TKL', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(212, 'Tonga', 'TO', 'TON', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(213, 'Trinidad and Tobago', 'TT', 'TTO', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(214, 'Tunisia', 'TN', 'TUN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(215, 'Turkey', 'TR', 'TUR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(216, 'Turkmenistan', 'TM', 'TKM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(217, 'Turks and Caicos Islands', 'TC', 'TCA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(218, 'Tuvalu', 'TV', 'TUV', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(219, 'Uganda', 'UG', 'UGA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(220, 'Ukraine', 'UA', 'UKR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(221, 'United Arab Emirates', 'AE', 'ARE', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(222, 'United Kingdom', 'GB', 'GBR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(223, 'United States', 'US', 'USA', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 1),
(224, 'United States Minor Outlying Islands', 'UM', 'UMI', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(225, 'Uruguay', 'UY', 'URY', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(226, 'Uzbekistan', 'UZ', 'UZB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(227, 'Vanuatu', 'VU', 'VUT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(228, 'Vatican City State (Holy See)', 'VA', 'VAT', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(229, 'Venezuela', 'VE', 'VEN', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(230, 'Viet Nam', 'VN', 'VNM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(231, 'Virgin Islands (British)', 'VG', 'VGB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(232, 'Virgin Islands (U.S.)', 'VI', 'VIR', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(233, 'Wallis and Futuna Islands', 'WF', 'WLF', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(234, 'Western Sahara', 'EH', 'ESH', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(235, 'Yemen', 'YE', 'YEM', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(236, 'Yugoslavia', 'YU', 'YUG', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(237, 'Democratic Republic of Congo', 'CD', 'COD', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(238, 'Zambia', 'ZM', 'ZMB', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0),
(239, 'Zimbabwe', 'ZW', 'ZWE', NULL, 1, 999, '[[regtime]]', '[[regtime]]', 0);

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

--
-- Table structure for table `[[dbprefix]]currencies`
--

CREATE TABLE `[[dbprefix]]currencies` (
  `currency_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `country_id` int NOT NULL,
  `currency_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_code` varchar(3) COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_symbol` varchar(3) COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_rate` decimal(15,8) NOT NULL,
  `symbol_position` tinyint(1) DEFAULT NULL,
  `thousand_sign` char(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  `decimal_sign` char(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  `decimal_position` char(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  `iso_alpha2` varchar(2) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iso_alpha3` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iso_numeric` int DEFAULT NULL,
  `currency_status` int DEFAULT NULL,
  `updated_at` timestamp NOT NULL,
  `created_at` timestamp NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`currency_id`),
  KEY `idx_currencies_status_default` (`currency_status`,`is_default`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=7 ;

--
-- Dumping data for table `[[dbprefix]]currencies`
--

INSERT INTO `[[dbprefix]]currencies` VALUES
(1, 222, 'Pound Sterling', 'GBP', '£', '0.00000000', 0, ',', '.', '2', 'GB', 'GBR', 826, 1, '[[regtime]]', '[[regtime]]', 0),
(2, 73, 'Euro', 'EUR', '€', '0.00000000', 0, ',', '.', '2', 'FR', 'FRA', 0, 0, '[[regtime]]', '[[regtime]]', 0),
(3, 223, 'US Dollar', 'USD', '$', '0.00000000', 0, ',', '.', '2', 'US', 'USA', 840, 0, '[[regtime]]', '[[regtime]]', 0),
(4, 44, 'Yuan Renminbi', 'CNY', '¥', '0.00000000', 0, ',', '.', '2', 'CN', 'CHN', 156, 0, '[[regtime]]', '[[regtime]]', 0),
(5, 13, 'Australian Dollar', 'AUD', '$', '0.00000000', 0, ',', '.', '2', 'AU', 'AUS', 36, 1, '[[regtime]]', '[[regtime]]', 0),
(6, 156, 'Naira', 'NGN', '₦', '0.00000000', 0, ',', '.', '2', 'NG', 'NGA', 566, 1, '[[regtime]]', '[[regtime]]', 0);

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

--
-- Table structure for table `[[dbprefix]]customers`
--

CREATE TABLE `[[dbprefix]]customers` (
  `customer_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(96) COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `telephone` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address_id` int DEFAULT NULL,
  `newsletter` tinyint(1) DEFAULT NULL,
  `customer_group_id` int NOT NULL,
  `ip_address` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL,
  `status` tinyint(1) NOT NULL,
  `reset_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reset_time` datetime DEFAULT NULL,
  `activation_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remember_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_activated` tinyint(1) DEFAULT NULL,
  `activated_at` datetime DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `last_seen` datetime DEFAULT NULL,
  `updated_at` timestamp NOT NULL,
  `invited_at` timestamp NULL DEFAULT NULL,
  `last_location_area` text COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`customer_id`),
  UNIQUE KEY `[[dbprefix]]customers_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]customer_groups`
--

CREATE TABLE `[[dbprefix]]customer_groups` (
  `customer_group_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `group_name` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `approval` tinyint(1) NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`customer_group_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]customer_groups`
--

INSERT INTO `[[dbprefix]]customer_groups` VALUES
(1, 'Default group', NULL, 0, 1, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]dining_areas`
--

CREATE TABLE `[[dbprefix]]dining_areas` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_id` bigint unsigned NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `floor_plan` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_dining_areas_location_id` (`id`,`location_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]dining_areas`
--

INSERT INTO `[[dbprefix]]dining_areas` VALUES
(1, 1, 'Default', NULL, NULL, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]dining_sections`
--

CREATE TABLE `[[dbprefix]]dining_sections` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_id` bigint unsigned NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `color` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `priority` int NOT NULL DEFAULT '0',
  `is_enabled` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dining_sections_location_id_index` (`location_id`),
  KEY `idx_dining_sections_enabled` (`id`,`is_enabled`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]dining_tables`
--

CREATE TABLE `[[dbprefix]]dining_tables` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `dining_area_id` bigint unsigned NOT NULL,
  `dining_section_id` bigint unsigned DEFAULT NULL,
  `parent_id` bigint unsigned DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `shape` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `min_capacity` int NOT NULL DEFAULT '0',
  `max_capacity` int NOT NULL DEFAULT '0',
  `extra_capacity` int NOT NULL DEFAULT '0',
  `is_combo` tinyint(1) NOT NULL DEFAULT '0',
  `is_enabled` tinyint(1) NOT NULL DEFAULT '0',
  `nest_left` int DEFAULT NULL,
  `nest_right` int DEFAULT NULL,
  `priority` int NOT NULL DEFAULT '0',
  `seat_layout` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dining_tables_dining_area_id_index` (`dining_area_id`),
  KEY `dining_tables_dining_section_id_index` (`dining_section_id`),
  KEY `dining_tables_parent_id_index` (`parent_id`),
  KEY `idx_dining_tables_booked_filter` (`parent_id`,`is_enabled`,`min_capacity`,`max_capacity`,`dining_area_id`,`dining_section_id`),
  KEY `idx_dining_tables_capacity` (`min_capacity`,`max_capacity`),
  KEY `idx_dining_tables_priority` (`id`,`priority`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=15 ;

--
-- Dumping data for table `[[dbprefix]]dining_tables`
--

INSERT INTO `[[dbprefix]]dining_tables` VALUES
(1, 1, NULL, NULL, 'Table 1', 'rectangle', 3, 8, 0, 0, 1, 1, 2, 0, NULL, '[[regtime]]', '[[regtime]]'),
(2, 1, NULL, NULL, 'Table 2', 'rectangle', 4, 8, 0, 0, 1, 3, 4, 0, NULL, '[[regtime]]', '[[regtime]]'),
(3, 1, NULL, NULL, 'Table 3', 'rectangle', 5, 6, 0, 0, 1, 5, 6, 0, NULL, '[[regtime]]', '[[regtime]]'),
(4, 1, NULL, NULL, 'Table 4', 'rectangle', 3, 8, 0, 0, 1, 7, 8, 0, NULL, '[[regtime]]', '[[regtime]]'),
(5, 1, NULL, NULL, 'Table 5', 'rectangle', 3, 6, 0, 0, 1, 9, 10, 0, NULL, '[[regtime]]', '[[regtime]]'),
(6, 1, NULL, NULL, 'Table 6', 'rectangle', 3, 6, 0, 0, 1, 11, 12, 0, NULL, '[[regtime]]', '[[regtime]]'),
(7, 1, NULL, NULL, 'Table 7', 'rectangle', 3, 9, 0, 0, 1, 13, 14, 0, NULL, '[[regtime]]', '[[regtime]]'),
(8, 1, NULL, NULL, 'Table 8', 'rectangle', 5, 7, 0, 0, 1, 15, 16, 0, NULL, '[[regtime]]', '[[regtime]]'),
(9, 1, NULL, NULL, 'Table 9', 'rectangle', 4, 12, 0, 0, 1, 17, 18, 0, NULL, '[[regtime]]', '[[regtime]]'),
(10, 1, NULL, NULL, 'Table 10', 'rectangle', 5, 12, 0, 0, 1, 19, 20, 0, NULL, '[[regtime]]', '[[regtime]]'),
(11, 1, NULL, NULL, 'Table 11', 'rectangle', 5, 12, 0, 0, 1, 21, 22, 0, NULL, '[[regtime]]', '[[regtime]]'),
(12, 1, NULL, NULL, 'Table 12', 'rectangle', 3, 7, 0, 0, 1, 23, 24, 0, NULL, '[[regtime]]', '[[regtime]]'),
(13, 1, NULL, NULL, 'Table 13', 'rectangle', 2, 12, 0, 0, 1, 25, 26, 0, NULL, '[[regtime]]', '[[regtime]]'),
(14, 1, NULL, NULL, 'Table 14', 'rectangle', 3, 8, 0, 0, 1, 27, 28, 0, NULL, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]extensions`
--

CREATE TABLE `[[dbprefix]]extensions` (
  `extension_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  `version` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT '1.0.0',
  PRIMARY KEY (`extension_id`),
  UNIQUE KEY `[[dbprefix]]extensions_name_unique` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]extension_settings`
--

CREATE TABLE `[[dbprefix]]extension_settings` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `item` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data` json NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[dbprefix]]extension_settings_item_unique` (`item`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]extension_settings`
--

INSERT INTO `[[dbprefix]]extension_settings` VALUES
(1, 'igniter_review_settings', '{"ratings": {"ratings": ["Bad", "Worse", "Good", "Average", "Excellent"]}, "allow_reviews": "1", "approve_reviews": "1"}');

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

--
-- Table structure for table `[[dbprefix]]failed_jobs`
--

CREATE TABLE `[[dbprefix]]failed_jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[dbprefix]]failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_api_access_tokens`
--

CREATE TABLE `[[dbprefix]]igniter_api_access_tokens` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint unsigned NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `api_access_tokens_token_unique` (`token`),
  KEY `api_access_tokens_tokenable` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_api_resources`
--

CREATE TABLE `[[dbprefix]]igniter_api_resources` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `endpoint` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta` text COLLATE utf8mb4_unicode_ci,
  `is_custom` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=17 ;

--
-- Dumping data for table `[[dbprefix]]igniter_api_resources`
--

INSERT INTO `[[dbprefix]]igniter_api_resources` VALUES
(1, 'Categories', 'categories', 'An API resource for categories', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"all","show":"all","store":"admin","update":"admin","destroy":"admin"}}', 0),
(2, 'Currencies', 'currencies', 'An API resource for currencies', '{"actions":["index"],"authorization":{"index":"all"}}', 0),
(3, 'Addresses', 'addresses', 'An API resource for customer addresses', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"users","show":"users","store":"users","update":"users","destroy":"users"}}', 0),
(4, 'Customers', 'customers', 'An API resource for customers', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"admin","show":"admin","store":"admin","update":"users","destroy":"admin"}}', 0),
(5, 'Locations', 'locations', 'An API resource for locations', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"all","show":"admin","store":"admin","update":"admin","destroy":"admin"}}', 0),
(6, 'LocationSettings', 'location_settings', 'An API resource for location settings', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"admin","show":"admin","store":"admin","update":"admin","destroy":"admin"}}', 0),
(7, 'Menus', 'menus', 'An API resource for menus', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"all","show":"all","store":"admin","update":"admin","destroy":"admin"}}', 0),
(8, 'MenuOptions', 'menu_options', 'An API resource for Menu options', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"admin","show":"admin","store":"admin","update":"admin","destroy":"admin"}}', 0),
(9, 'MenuItemOptions', 'menu_item_options', 'An API resource for Menu item options', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"admin","show":"admin","store":"admin","update":"admin","destroy":"admin"}}', 0),
(10, 'Orders', 'orders', 'An API resource for orders', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"users","show":"users","store":"users","update":"admin","destroy":"admin"}}', 0),
(11, 'Reservations', 'reservations', 'An API resource for reservations', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"users","show":"users","store":"users","update":"admin","destroy":"admin"}}', 0),
(12, 'Reviews', 'reviews', 'An API resource for reviews', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"users","show":"users","store":"users","update":"admin","destroy":"admin"}}', 0),
(13, 'Tables', 'tables', 'An API resource for dining tables', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"admin","show":"admin","store":"admin","update":"admin","destroy":"admin"}}', 0),
(14, 'Status', 'status', 'An API resource for status', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"admin","show":"admin","store":"admin","update":"admin","destroy":"admin"}}', 0),
(15, 'Staff', 'users', 'An API resource for staff', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"admin","show":"admin","store":"admin","update":"admin","destroy":"admin"}}', 0),
(16, 'Coupons', 'coupons', 'An API resource for coupons', '{"actions":["index","show","store","update","destroy"],"authorization":{"index":"all","show":"all","store":"admin","update":"admin","destroy":"admin"}}', 0);

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

--
-- Table structure for table `[[dbprefix]]igniter_automation_logs`
--

CREATE TABLE `[[dbprefix]]igniter_automation_logs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `automation_rule_id` bigint unsigned DEFAULT NULL,
  `rule_action_id` bigint unsigned DEFAULT NULL,
  `is_success` tinyint(1) NOT NULL,
  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `params` text COLLATE utf8mb4_unicode_ci,
  `exception` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_automation_rules`
--

CREATE TABLE `[[dbprefix]]igniter_automation_rules` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `event_class` text COLLATE utf8mb4_unicode_ci,
  `config_data` text COLLATE utf8mb4_unicode_ci,
  `is_custom` tinyint(1) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_automation_rule_actions`
--

CREATE TABLE `[[dbprefix]]igniter_automation_rule_actions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `automation_rule_id` bigint unsigned DEFAULT NULL,
  `class_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `[[dbprefix]]igniter_actions_automation_rule_id_foreign` (`automation_rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_automation_rule_conditions`
--

CREATE TABLE `[[dbprefix]]igniter_automation_rule_conditions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `automation_rule_id` bigint unsigned DEFAULT NULL,
  `class_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `[[dbprefix]]igniter_conditions_automation_rule_id_foreign` (`automation_rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_cart_cart`
--

CREATE TABLE `[[dbprefix]]igniter_cart_cart` (
  `identifier` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `instance` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`identifier`,`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]igniter_coupons`
--

CREATE TABLE `[[dbprefix]]igniter_coupons` (
  `coupon_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` char(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  `discount` decimal(15,4) DEFAULT NULL,
  `min_total` decimal(15,4) DEFAULT NULL,
  `redemptions` int NOT NULL DEFAULT '0',
  `customer_redemptions` int NOT NULL DEFAULT '0',
  `description` text COLLATE utf8mb4_unicode_ci,
  `status` tinyint(1) DEFAULT NULL,
  `created_at` timestamp NOT NULL,
  `validity` char(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fixed_date` date DEFAULT NULL,
  `fixed_from_time` time DEFAULT NULL,
  `fixed_to_time` time DEFAULT NULL,
  `period_start_date` date DEFAULT NULL,
  `period_end_date` date DEFAULT NULL,
  `recurring_every` varchar(35) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `recurring_from_time` time DEFAULT NULL,
  `recurring_to_time` time DEFAULT NULL,
  `order_restriction` text COLLATE utf8mb4_unicode_ci,
  `apply_coupon_on` enum('whole_cart','menu_items','delivery_fee') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'whole_cart',
  `min_menu_quantity` int NOT NULL DEFAULT '0',
  `auto_apply` tinyint(1) NOT NULL DEFAULT '0',
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`coupon_id`),
  UNIQUE KEY `code` (`code`),
  UNIQUE KEY `[[dbprefix]]igniter_coupons_code_unique` (`code`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=5 ;

--
-- Dumping data for table `[[dbprefix]]igniter_coupons`
--

INSERT INTO `[[dbprefix]]igniter_coupons` VALUES
(1, 'Half Sundays', '2222', 'F', '100.0000', '500.0000', 0, 0, NULL, 1, '[[regdate_yesterday]] 18:30:00', 'forever', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'whole_cart', 0, 0, '[[regdate_yesterday]] 18:30:00'),
(2, 'Half Tuesdays', '3333', 'P', '30.0000', '1000.0000', 0, 0, NULL, 1, '[[regdate_yesterday]] 18:30:00', 'forever', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'whole_cart', 0, 0, '[[regdate_yesterday]] 18:30:00'),
(3, 'Full Mondays', 'MTo6TuTg', 'P', '50.0000', '0.0000', 0, 1, NULL, 1, '[[regdate_yesterday]] 18:30:00', 'forever', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'whole_cart', 0, 0, '[[regdate_yesterday]] 18:30:00'),
(4, 'Full Tuesdays', '4444', 'F', '500.0000', '5000.0000', 0, 0, NULL, 1, '[[regdate_yesterday]] 18:30:00', 'forever', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'whole_cart', 0, 0, '[[regdate_yesterday]] 18:30:00');

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

--
-- Table structure for table `[[dbprefix]]igniter_coupons_history`
--

CREATE TABLE `[[dbprefix]]igniter_coupons_history` (
  `coupon_history_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `coupon_id` bigint unsigned NOT NULL,
  `order_id` bigint unsigned DEFAULT NULL,
  `customer_id` bigint unsigned DEFAULT NULL,
  `code` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
  `min_total` decimal(15,4) DEFAULT NULL,
  `amount` decimal(15,4) DEFAULT NULL,
  `created_at` timestamp NOT NULL,
  `status` tinyint(1) NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`coupon_history_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_coupon_categories`
--

CREATE TABLE `[[dbprefix]]igniter_coupon_categories` (
  `coupon_id` int unsigned NOT NULL,
  `category_id` int unsigned NOT NULL,
  UNIQUE KEY `coupon_category_unique` (`coupon_id`,`category_id`),
  KEY `coupon_id_index` (`coupon_id`),
  KEY `category_id_index` (`category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]igniter_coupon_customers`
--

CREATE TABLE `[[dbprefix]]igniter_coupon_customers` (
  `coupon_id` bigint unsigned NOT NULL,
  `customer_id` bigint unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]igniter_coupon_customer_groups`
--

CREATE TABLE `[[dbprefix]]igniter_coupon_customer_groups` (
  `coupon_id` bigint unsigned NOT NULL,
  `customer_group_id` bigint unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]igniter_coupon_menus`
--

CREATE TABLE `[[dbprefix]]igniter_coupon_menus` (
  `coupon_id` int unsigned NOT NULL,
  `menu_id` int unsigned NOT NULL,
  UNIQUE KEY `coupon_menu_unique` (`coupon_id`,`menu_id`),
  KEY `coupon_id_index` (`coupon_id`),
  KEY `menu_id_index` (`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]igniter_frontend_banners`
--

CREATE TABLE `[[dbprefix]]igniter_frontend_banners` (
  `banner_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` char(8) COLLATE utf8mb4_unicode_ci NOT NULL,
  `click_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `language_id` bigint unsigned DEFAULT NULL,
  `alt_text` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image_code` text COLLATE utf8mb4_unicode_ci,
  `custom_code` text COLLATE utf8mb4_unicode_ci,
  `status` tinyint(1) NOT NULL,
  PRIMARY KEY (`banner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_frontend_sliders`
--

CREATE TABLE `[[dbprefix]]igniter_frontend_sliders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `metadata` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[dbprefix]]igniter_frontend_sliders_code_unique` (`code`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]igniter_frontend_sliders`
--

INSERT INTO `[[dbprefix]]igniter_frontend_sliders` VALUES
(1, 'Homepage slider', 'home-slider', NULL, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]igniter_frontend_subscribers`
--

CREATE TABLE `[[dbprefix]]igniter_frontend_subscribers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  `statistics` int NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_pages_menus`
--

CREATE TABLE `[[dbprefix]]igniter_pages_menus` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `theme_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `[[dbprefix]]igniter_pages_menus_theme_code_index` (`theme_code`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=4 ;

--
-- Dumping data for table `[[dbprefix]]igniter_pages_menus`
--

INSERT INTO `[[dbprefix]]igniter_pages_menus` VALUES
(1, 'igniter-orange', 'Footer menu', 'footer-menu', '[[regtime]]', '[[regtime]]'),
(2, 'igniter-orange', 'Main menu', 'main-menu', '[[regtime]]', '[[regtime]]'),
(3, 'igniter-orange', 'Pages menu', 'pages-menu', '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]igniter_pages_menu_items`
--

CREATE TABLE `[[dbprefix]]igniter_pages_menu_items` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `menu_id` int unsigned NOT NULL,
  `parent_id` int unsigned DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `config` text COLLATE utf8mb4_unicode_ci,
  `nest_left` int DEFAULT NULL,
  `nest_right` int DEFAULT NULL,
  `priority` int NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `[[dbprefix]]igniter_pages_menu_items_menu_id_index` (`menu_id`),
  KEY `[[dbprefix]]igniter_pages_menu_items_parent_id_index` (`parent_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=20 ;

--
-- Dumping data for table `[[dbprefix]]igniter_pages_menu_items`
--

INSERT INTO `[[dbprefix]]igniter_pages_menu_items` VALUES
(1, 1, NULL, 'igniter.orange::default.text_restaurant', '', NULL, 'header', NULL, NULL, '[]', 1, 8, 1, '[[regtime]]', '[[regtime]]'),
(2, 1, 1, 'igniter.orange::default.menu_menu', '', NULL, 'theme-page', NULL, 'local.menus', '[]', 2, 3, 2, '[[regtime]]', '[[regtime]]'),
(3, 1, 1, 'igniter.orange::default.menu_reservation', '', NULL, 'theme-page', NULL, 'reservation.reservation', '[]', 4, 5, 3, '[[regtime]]', '[[regtime]]'),
(4, 1, 1, 'igniter.orange::default.menu_locations', '', NULL, 'theme-page', NULL, 'locations', '[]', 6, 7, 4, '[[regtime]]', '[[regtime]]'),
(5, 1, NULL, 'igniter.orange::default.text_information', '', NULL, 'header', NULL, NULL, '[]', 9, 16, 5, '[[regtime]]', '[[regtime]]'),
(6, 1, 5, 'igniter.orange::default.menu_contact', '', NULL, 'theme-page', NULL, 'contact', '[]', 10, 11, 6, '[[regtime]]', '[[regtime]]'),
(7, 1, 5, 'About Us', '', NULL, 'static-page', NULL, '1', '[]', 12, 13, 7, '[[regtime]]', '[[regtime]]'),
(8, 1, 5, 'Privacy Policy', '', NULL, 'static-page', NULL, '2', '[]', 14, 15, 8, '[[regtime]]', '[[regtime]]'),
(9, 2, NULL, 'igniter.orange::default.menu_menu', 'view-menu', NULL, 'theme-page', NULL, 'local.menus', '[]', 17, 18, 9, '[[regtime]]', '[[regtime]]'),
(10, 2, NULL, 'igniter.orange::default.menu_reservation', 'reservation', NULL, 'theme-page', NULL, 'reservation.reservation', '[]', 19, 20, 10, '[[regtime]]', '[[regtime]]'),
(11, 2, NULL, 'igniter.orange::default.menu_login', 'login', NULL, 'theme-page', NULL, 'account.login', '[]', 21, 22, 11, '[[regtime]]', '[[regtime]]'),
(12, 2, NULL, 'igniter.orange::default.menu_register', 'register', NULL, 'theme-page', NULL, 'account.register', '[]', 23, 24, 12, '[[regtime]]', '[[regtime]]'),
(13, 2, NULL, 'igniter.orange::default.menu_my_account', 'account', NULL, 'theme-page', NULL, 'account.account', '[]', 25, 36, 13, '[[regtime]]', '[[regtime]]'),
(14, 2, 13, 'igniter.orange::default.menu_recent_order', 'recent-orders', NULL, 'theme-page', NULL, 'account.orders', '[]', 26, 27, 14, '[[regtime]]', '[[regtime]]'),
(15, 2, 13, 'igniter.orange::default.menu_my_account', '', NULL, 'theme-page', NULL, 'account.account', '[]', 28, 29, 15, '[[regtime]]', '[[regtime]]'),
(16, 2, 13, 'igniter.orange::default.menu_address', '', NULL, 'theme-page', NULL, 'account.address', '[]', 30, 31, 16, '[[regtime]]', '[[regtime]]'),
(17, 2, 13, 'igniter.orange::default.menu_recent_reservation', '', NULL, 'theme-page', NULL, 'account.reservations', '[]', 32, 33, 17, '[[regtime]]', '[[regtime]]'),
(18, 2, 13, 'igniter.orange::default.menu_logout', '', NULL, 'url', '/logout', NULL, '[]', 34, 35, 18, '[[regtime]]', '[[regtime]]'),
(19, 3, NULL, 'Pages', '', NULL, 'all-static-pages', NULL, '', '[]', 37, 38, 19, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]igniter_reviews`
--

CREATE TABLE `[[dbprefix]]igniter_reviews` (
  `review_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `customer_id` bigint unsigned DEFAULT NULL,
  `reviewable_id` bigint unsigned DEFAULT NULL,
  `reviewable_type` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `author` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_id` bigint unsigned DEFAULT NULL,
  `quality` int NOT NULL,
  `delivery` int NOT NULL,
  `service` int NOT NULL,
  `review_text` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NOT NULL,
  `review_status` tinyint(1) NOT NULL,
  `updated_at` timestamp NOT NULL,
  PRIMARY KEY (`review_id`),
  KEY `reviews_sale_id_type_index` (`review_id`,`reviewable_type`,`reviewable_id`),
  KEY `idx_igniter_reviews_location_status` (`location_id`,`review_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]igniter_socialite_providers`
--

CREATE TABLE `[[dbprefix]]igniter_socialite_providers` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int unsigned DEFAULT NULL,
  `provider` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `provider_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `provider_token_index` (`provider`,`token`),
  KEY `[[dbprefix]]igniter_socialite_providers_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]ingredientables`
--

CREATE TABLE `[[dbprefix]]ingredientables` (
  `ingredient_id` int unsigned NOT NULL,
  `ingredientable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ingredientable_id` bigint unsigned NOT NULL,
  UNIQUE KEY `ingredientable_unique` (`ingredient_id`,`ingredientable_id`,`ingredientable_type`),
  KEY `allergenable_index` (`ingredientable_type`,`ingredientable_id`),
  KEY `[[dbprefix]]allergenables_allergen_id_index` (`ingredient_id`),
  KEY `idx_type_id_ingredient` (`ingredientable_type`,`ingredientable_id`,`ingredient_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]ingredients`
--

CREATE TABLE `[[dbprefix]]ingredients` (
  `ingredient_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_allergen` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ingredient_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]languages`
--

CREATE TABLE `[[dbprefix]]languages` (
  `language_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idiom` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL,
  `can_delete` tinyint(1) NOT NULL,
  `original_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `version` json DEFAULT NULL,
  PRIMARY KEY (`language_id`),
  KEY `idx_languages_status_default` (`status`,`is_default`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]languages`
--

INSERT INTO `[[dbprefix]]languages` VALUES
(1, 'en', 'English', NULL, 'english', 1, 0, NULL, '[[regtime]]', '[[regtime]]', 1, NULL);

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

--
-- Table structure for table `[[dbprefix]]language_translations`
--

CREATE TABLE `[[dbprefix]]language_translations` (
  `translation_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `locale` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `namespace` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '*',
  `group` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `item` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `unstable` tinyint(1) NOT NULL DEFAULT '0',
  `locked` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`translation_id`),
  UNIQUE KEY `item_unique` (`locale`,`namespace`,`group`,`item`),
  KEY `[[dbprefix]]language_translations_group_index` (`group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]locationables`
--

CREATE TABLE `[[dbprefix]]locationables` (
  `location_id` int NOT NULL,
  `locationable_id` int NOT NULL,
  `locationable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `options` text COLLATE utf8mb4_unicode_ci,
  KEY `idx_locationables_lookup` (`locationable_type`,`locationable_id`,`location_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `[[dbprefix]]locationables`
--

INSERT INTO `[[dbprefix]]locationables` VALUES
(1, 1, 'tables', NULL),
(1, 2, 'tables', NULL),
(1, 3, 'tables', NULL),
(1, 4, 'tables', NULL),
(1, 5, 'tables', NULL),
(1, 6, 'tables', NULL),
(1, 7, 'tables', NULL),
(1, 8, 'tables', NULL),
(1, 9, 'tables', NULL),
(1, 10, 'tables', NULL),
(1, 11, 'tables', NULL),
(1, 12, 'tables', NULL),
(1, 13, 'tables', NULL),
(1, 14, 'tables', NULL),
(1, 1, 'users', NULL);

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

--
-- Table structure for table `[[dbprefix]]locations`
--

CREATE TABLE `[[dbprefix]]locations` (
  `location_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_email` varchar(96) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `location_address_1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_address_2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_postcode` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_country_id` int DEFAULT NULL,
  `location_telephone` text COLLATE utf8mb4_unicode_ci,
  `location_lat` decimal(10,6) DEFAULT NULL,
  `location_lng` decimal(10,6) DEFAULT NULL,
  `location_radius` int DEFAULT NULL,
  `location_status` tinyint(1) DEFAULT NULL,
  `permalink_slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_auto_lat_lng` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`location_id`),
  KEY `idx_locations_name` (`location_name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]locations`
--

INSERT INTO `[[dbprefix]]locations` VALUES
(1, '[[site_name]]', '[[admin_email]]', NULL, '[[store_address]]', NULL, NULL, NULL, '[[store_pincode]]', '[[country_code]]', NULL, '52.415884', '-1.603648', NULL, 1, 'default', 1, '[[regtime]]', '[[regtime]]', 0);

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

--
-- Table structure for table `[[dbprefix]]location_areas`
--

CREATE TABLE `[[dbprefix]]location_areas` (
  `area_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `boundaries` json NOT NULL,
  `conditions` json NOT NULL,
  `color` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `priority` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`area_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]location_options`
--

CREATE TABLE `[[dbprefix]]location_options` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_id` bigint unsigned NOT NULL,
  `item` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` json DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[dbprefix]]location_options_location_id_item_unique` (`location_id`,`item`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]location_settings`
--

CREATE TABLE `[[dbprefix]]location_settings` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_id` bigint unsigned NOT NULL,
  `item` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data` json DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[dbprefix]]location_settings_location_id_item_unique` (`location_id`,`item`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]location_settings`
--

INSERT INTO `[[dbprefix]]location_settings` VALUES
(1, 1, 'booking', '[]');

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

--
-- Table structure for table `[[dbprefix]]mail_layouts`
--

CREATE TABLE `[[dbprefix]]mail_layouts` (
  `layout_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `language_id` int NOT NULL,
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NOT NULL,
  `status` tinyint(1) NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `layout` text COLLATE utf8mb4_unicode_ci,
  `plain_layout` text COLLATE utf8mb4_unicode_ci,
  `layout_css` text COLLATE utf8mb4_unicode_ci,
  `is_locked` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`layout_id`),
  UNIQUE KEY `[[dbprefix]]mail_layouts_code_unique` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]mail_partials`
--

CREATE TABLE `[[dbprefix]]mail_partials` (
  `partial_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `html` text COLLATE utf8mb4_unicode_ci,
  `text` text COLLATE utf8mb4_unicode_ci,
  `is_custom` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`partial_id`),
  UNIQUE KEY `[[dbprefix]]mail_partials_code_unique` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]mail_templates`
--

CREATE TABLE `[[dbprefix]]mail_templates` (
  `template_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `layout_id` bigint unsigned DEFAULT NULL,
  `code` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  `subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `body` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NOT NULL,
  `label` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_custom` tinyint(1) DEFAULT NULL,
  `plain_body` text COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`template_id`),
  UNIQUE KEY `[[dbprefix]]mail_templates_data_template_id_code_unique` (`layout_id`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]mealtimes`
--

CREATE TABLE `[[dbprefix]]mealtimes` (
  `mealtime_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `mealtime_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_time` time NOT NULL DEFAULT '00:00:00',
  `end_time` time NOT NULL DEFAULT '23:59:59',
  `mealtime_status` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `validity` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'daily',
  `start_at` datetime DEFAULT NULL,
  `end_at` datetime DEFAULT NULL,
  `recurring_every` json DEFAULT NULL,
  `recurring_from` time DEFAULT NULL,
  `recurring_to` time DEFAULT NULL,
  PRIMARY KEY (`mealtime_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=4 ;

--
-- Dumping data for table `[[dbprefix]]mealtimes`
--

INSERT INTO `[[dbprefix]]mealtimes` VALUES
(1, 'Breakfast', '07:00:00', '10:00:00', 1, '[[regtime]]', '[[regtime]]', 'daily', NULL, NULL, NULL, NULL, NULL),
(2, 'Lunch', '12:00:00', '14:30:00', 1, '[[regtime]]', '[[regtime]]', 'daily', NULL, NULL, NULL, NULL, NULL),
(3, 'Dinner', '18:00:00', '20:00:00', 1, '[[regtime]]', '[[regtime]]', 'daily', NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `[[dbprefix]]media_attachments`
--

CREATE TABLE `[[dbprefix]]media_attachments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `disk` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `mime_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `size` int unsigned NOT NULL,
  `tag` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `attachment_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `attachment_id` bigint unsigned DEFAULT NULL,
  `is_public` tinyint(1) NOT NULL DEFAULT '1',
  `custom_properties` text COLLATE utf8mb4_unicode_ci,
  `priority` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `media_attachments_attachment` (`attachment_type`,`attachment_id`),
  KEY `[[dbprefix]]media_attachments_tag_index` (`tag`),
  KEY `idx_media_attachments_type_id_priority` (`attachment_type`,`attachment_id`,`priority`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]media_attachments`
--

INSERT INTO `[[dbprefix]]media_attachments` VALUES
(1, 'public', '6a2fa60f4a0d9378494681.png', 'slide.png', 'image/jpeg', 748127, 'images', 'sliders', 1, 1, '[]', 1, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]menus`
--

CREATE TABLE `[[dbprefix]]menus` (
  `menu_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `menu_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `menu_description` text COLLATE utf8mb4_unicode_ci,
  `menu_price` decimal(15,4) NOT NULL,
  `minimum_qty` int NOT NULL DEFAULT '0',
  `menu_status` tinyint(1) NOT NULL,
  `menu_priority` int NOT NULL DEFAULT '0',
  `order_restriction` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`menu_id`),
  KEY `idx_menus_status` (`menu_status`),
  KEY `idx_menus_status_priority` (`menu_status`,`menu_priority`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]menus_specials`
--

CREATE TABLE `[[dbprefix]]menus_specials` (
  `special_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `menu_id` int NOT NULL DEFAULT '0',
  `start_date` datetime DEFAULT CURRENT_TIMESTAMP,
  `end_date` datetime DEFAULT CURRENT_TIMESTAMP,
  `special_price` decimal(15,4) DEFAULT NULL,
  `special_status` tinyint(1) NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `validity` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `recurring_every` text COLLATE utf8mb4_unicode_ci,
  `recurring_from` time DEFAULT NULL,
  `recurring_to` time DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`special_id`),
  UNIQUE KEY `[[dbprefix]]menus_specials_special_id_menu_id_unique` (`special_id`,`menu_id`),
  KEY `idx_menus_specials_menu_special` (`menu_id`,`special_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]menu_categories`
--

CREATE TABLE `[[dbprefix]]menu_categories` (
  `menu_id` int unsigned NOT NULL,
  `category_id` int unsigned NOT NULL,
  UNIQUE KEY `[[dbprefix]]menu_categories_menu_id_category_id_unique` (`menu_id`,`category_id`),
  KEY `[[dbprefix]]menu_categories_menu_id_index` (`menu_id`),
  KEY `[[dbprefix]]menu_categories_category_id_index` (`category_id`),
  KEY `idx_menu_categories_category_menu` (`category_id`,`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]menu_item_options`
--

CREATE TABLE `[[dbprefix]]menu_item_options` (
  `menu_option_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `option_id` int NOT NULL,
  `menu_id` int NOT NULL,
  `is_required` tinyint(1) NOT NULL DEFAULT '0',
  `priority` int NOT NULL DEFAULT '0',
  `min_selected` int NOT NULL DEFAULT '0',
  `max_selected` int NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`menu_option_id`),
  KEY `idx_menu_item_options_menu` (`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]menu_item_option_values`
--

CREATE TABLE `[[dbprefix]]menu_item_option_values` (
  `menu_option_value_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `menu_option_id` int NOT NULL,
  `option_value_id` int NOT NULL,
  `override_price` decimal(15,4) DEFAULT NULL,
  `priority` int NOT NULL DEFAULT '0',
  `is_default` tinyint(1) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`menu_option_value_id`),
  KEY `idx_menu_item_option_values_menu_option` (`menu_option_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]menu_mealtimes`
--

CREATE TABLE `[[dbprefix]]menu_mealtimes` (
  `menu_id` int unsigned NOT NULL,
  `mealtime_id` int unsigned NOT NULL,
  UNIQUE KEY `[[dbprefix]]menu_mealtimes_menu_id_mealtime_id_unique` (`menu_id`,`mealtime_id`),
  KEY `[[dbprefix]]menu_mealtimes_menu_id_index` (`menu_id`),
  KEY `[[dbprefix]]menu_mealtimes_mealtime_id_index` (`mealtime_id`),
  KEY `idx_menu_mealtimes_menu_mealtime` (`menu_id`,`mealtime_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]menu_options`
--

CREATE TABLE `[[dbprefix]]menu_options` (
  `option_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `option_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `priority` int NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`option_id`),
  KEY `idx_menu_options_option` (`option_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]menu_option_values`
--

CREATE TABLE `[[dbprefix]]menu_option_values` (
  `option_value_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `option_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `price` decimal(15,4) DEFAULT NULL,
  `priority` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`option_value_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]migrations`
--

CREATE TABLE `[[dbprefix]]migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=161 ;

--
-- Dumping data for table `[[dbprefix]]migrations`
--

INSERT INTO `[[dbprefix]]migrations` VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, 'igniter.system::2015_03_25_000001_create_tables', 2),
(6, 'igniter.system::2016_11_29_000300_optimize_tables_columns', 2),
(7, 'igniter.system::2017_04_13_000300_modify_columns_on_users_and_customers_tables', 2),
(8, 'igniter.system::2017_05_08_000300_add_columns', 2),
(9, 'igniter.system::2017_06_11_000300_create_payments_and_payment_logs_table', 2),
(10, 'igniter.system::2017_08_23_000300_create_themes_table', 2),
(11, 'igniter.system::2018_01_23_000300_create_language_translations_table', 2),
(12, 'igniter.system::2018_03_30_000300_create_extension_settings_table', 2),
(13, 'igniter.system::2018_06_12_000300_rename_model_class_names_to_morph_map_custom_names', 2),
(14, 'igniter.system::2018_10_19_000300_create_media_attachments_table', 2),
(15, 'igniter.system::2019_04_16_000300_nullify_customer_id_on_addresses_table', 2),
(16, 'igniter.system::2019_07_01_000300_delete_unused_columns_from_activities_table', 2),
(17, 'igniter.system::2019_07_22_000300_add_user_type_column_to_activities_table', 2),
(18, 'igniter.system::2019_07_30_000300_create_mail_partials_table', 2),
(19, 'igniter.system::2020_02_05_000300_delete_stale_unused_table', 2),
(20, 'igniter.system::2020_04_16_000300_drop_stale_unused_columns', 2),
(21, 'igniter.system::2020_05_24_000300_create_request_logs_table', 2),
(22, 'igniter.system::2021_09_06_010000_add_timestamps_to_tables', 2),
(23, 'igniter.system::2021_10_22_010000_make_primary_key_bigint_all_tables', 2),
(24, 'igniter.system::2022_04_20_000300_add_version_column_to_languages_table', 2),
(25, 'igniter.system::2022_05_14_000300_update_class_view_lang_namespaces', 2),
(26, 'igniter.system::2022_06_30_010000_drop_foreign_key_constraints_on_all_tables', 2),
(27, 'igniter.system::2023_02_24_000300_drop_activities_table', 2),
(28, 'igniter.system::2023_03_05_123125_create_notifications_table', 2),
(29, 'igniter.system::2023_04_23_000300_reduce_column_key_size_language_translations_table', 2),
(30, 'igniter.system::2023_04_24_000300_nullable_layout_id_column_mail_layouts_table', 2),
(31, 'igniter.system::2023_05_20_000300_add_is_default_column_locations_countries_currencies_customer_groups_languages_tables', 2),
(32, 'igniter.system::2025_03_29_164243_remove_deprecated_code_from_mail_layouts', 2),
(33, 'igniter.system::2025_05_04_000300_increase_version_column_length_languages_table', 2),
(34, 'igniter.system::2025_05_11_000300_fix_renamed_mail_templates_table', 2),
(35, 'igniter.system::2025_11_15_165912_add_indexes', 2),
(36, 'igniter.admin::2017_08_25_000300_create_location_areas_table', 3),
(37, 'igniter.admin::2017_08_25_000300_create_menu_categories_table', 3),
(38, 'igniter.admin::2018_01_19_000300_add_hash_columns_on_orders_reservations_table', 3),
(39, 'igniter.admin::2018_04_06_000300_drop_unique_on_order_totals_table', 3),
(40, 'igniter.admin::2018_04_12_000300_modify_columns_on_orders_reservations_table', 3),
(41, 'igniter.admin::2018_05_21_000300_drop_redundant_columns_on_kitchen_tables', 3),
(42, 'igniter.admin::2018_05_29_000300_add_columns_on_location_areas_table', 3),
(43, 'igniter.admin::2018_06_12_000300_create_locationables_table', 3),
(44, 'igniter.admin::2018_07_04_000300_create_user_preferences_table', 3),
(45, 'igniter.admin::2018_10_09_000300_auto_increment_on_order_totals_table', 3),
(46, 'igniter.admin::2019_04_09_000300_auto_increment_on_user_preferences_table', 3),
(47, 'igniter.admin::2019_07_02_000300_add_columns_on_menu_specials_table', 3),
(48, 'igniter.admin::2019_07_16_000300_create_reservation_tables_table', 3),
(49, 'igniter.admin::2019_07_21_000300_change_sort_value_ratings_to_config_on_settings_table', 3),
(50, 'igniter.admin::2019_11_08_000300_add_selected_columns_to_menu_options_table', 3),
(51, 'igniter.admin::2020_02_18_000400_create_staffs_groups_and_locations_table', 3),
(52, 'igniter.admin::2020_02_21_000400_create_staff_roles_table', 3),
(53, 'igniter.admin::2020_02_22_000300_remove_add_columns_on_staff_staff_groups_table', 3),
(54, 'igniter.admin::2020_02_25_000300_create_assignable_logs_table', 3),
(55, 'igniter.admin::2020_03_18_000300_add_quantity_column_to_order_menu_options_table', 3),
(56, 'igniter.admin::2020_04_05_000300_create_payment_profiles_table', 3),
(57, 'igniter.admin::2020_04_16_000300_drop_stale_unused_columns', 3),
(58, 'igniter.admin::2020_05_31_000300_drop_more_unused_columns', 3),
(59, 'igniter.admin::2020_06_11_000300_create_menu_mealtimes_table', 3),
(60, 'igniter.admin::2020_08_16_000300_modify_columns_on_tables_reservations_table', 3),
(61, 'igniter.admin::2020_08_18_000300_create_allergens_table', 3),
(62, 'igniter.admin::2020_09_28_000300_add_refund_columns_to_payment_logs_table', 3),
(63, 'igniter.admin::2020_12_13_000300_merge_staffs_locations_into_locationables_table', 3),
(64, 'igniter.admin::2020_12_22_000300_add_priority_column_to_location_areas_table', 3),
(65, 'igniter.admin::2021_01_04_000300_add_update_related_column_to_menu_options_table', 3),
(66, 'igniter.admin::2021_01_04_010000_add_order_time_is_asap_on_orders_table', 3),
(67, 'igniter.admin::2021_04_23_010000_remove_unused_columns', 3),
(68, 'igniter.admin::2021_05_26_010000_alter_order_type_columns', 3),
(69, 'igniter.admin::2021_05_29_010000_add_is_summable_on_order_totals_table', 3),
(70, 'igniter.admin::2021_07_20_010000_add_columns_default_value', 3),
(71, 'igniter.admin::2021_09_03_010000_make_serialize_columns_json', 3),
(72, 'igniter.admin::2021_09_06_010000_add_timestamps_to_tables', 3),
(73, 'igniter.admin::2021_10_22_010000_make_primary_key_bigint_all_tables', 3),
(74, 'igniter.admin::2021_11_28_000300_create_stocks_table', 3),
(75, 'igniter.admin::2022_02_03_000300_rename_allergens_to_ingredients_table', 3),
(76, 'igniter.admin::2022_02_07_010000_add_low_stock_alerted_on_stocks_table', 3),
(77, 'igniter.admin::2022_02_17_000300_merge_staffs_into_users_table', 3),
(78, 'igniter.admin::2022_04_27_000300_create_location_options_table', 3),
(79, 'igniter.admin::2022_05_10_000300_add_primary_key_to_working_hours_table', 3),
(80, 'igniter.admin::2022_06_10_030300_prefix_users_tables_with_admin_table', 3),
(81, 'igniter.admin::2022_06_30_010000_drop_foreign_key_constraints_on_all_tables', 3),
(82, 'igniter.admin::2022_09_03_000300_make_location_options_fields_unique', 3),
(83, 'igniter.admin::2022_10_26_000300_make_code_field_unique_mail_layouts_partials_table', 3),
(84, 'igniter.admin::2022_11_03_003000_merge_menu_item_options_tables', 3),
(85, 'igniter.admin::2023_01_10_000400_add_delivery_comment_orders_table', 3),
(86, 'igniter.admin::2023_05_22_000400_add_invited_at_activated_at_orders_table', 3),
(87, 'igniter.admin::2023_06_06_000400_update_dashboard_widget_properties_on_user_preferences_table', 3),
(88, 'igniter.admin::2023_07_01_000300_create_location_settings', 3),
(89, 'igniter.admin::2023_07_01_000400_copy_location_options_to_settings', 3),
(90, 'igniter.admin::2025_11_15_165912_add_indexes', 3),
(91, 'igniter.api::2018_10_12_000300_create_resources_table', 4),
(92, 'igniter.api::2020_04_27_000300_update_class_names_api_resources_table', 4),
(93, 'igniter.api::2020_05_18_000300_create_access_tokens_table', 4),
(94, 'igniter.api::2020_11_11_000300_alter_resources_table', 4),
(95, 'igniter.api::2021_11_18_010000_make_primary_key_bigint_all_tables', 4),
(96, 'igniter.api::2023_06_15_010000_drop_controller_resources_table', 4),
(97, 'igniter.automation::2018_10_01_000100_create_all_tables', 5),
(98, 'igniter.automation::2020_11_08_000300_create_task_log_table', 5),
(99, 'igniter.automation::2021_11_18_010000_make_primary_key_bigint_all_tables', 5),
(100, 'igniter.automation::2021_11_18_010300_add_foreign_key_constraints_to_tables', 5),
(101, 'igniter.automation::2022_06_30_010000_drop_foreign_key_constraints', 5),
(102, 'igniter.cart::2017_10_20_000100_create_conditions_settings', 6),
(103, 'igniter.cart::2017_11_20_010000_create_cart_table', 6),
(104, 'igniter.cart::2018_09_20_010000_rename_content_field_on_cart_table', 6),
(105, 'igniter.cart::2025_05_22_010000_make_menu_description_nullable_table', 6),
(106, 'igniter.cart::2025_07_08_010000_add_start_end_date_mealtimes_table', 6),
(107, 'igniter.cart::2025_11_15_165912_add_indexes', 6),
(108, 'igniter.cart::2026_02_27_010000_add_out_of_stock_override_to_stocks_table', 6),
(109, 'igniter.coupons::2020_09_17_000300_create_coupons_table_or_rename', 7),
(110, 'igniter.coupons::2020_09_18_000300_create_coupon_relations_tables', 7),
(111, 'igniter.coupons::2020_10_15_000300_create_cart_restriction', 7),
(112, 'igniter.coupons::2020_11_01_000300_add_auto_apply_field_on_coupons_table', 7),
(113, 'igniter.coupons::2021_02_22_000300_increase_coupon_code_character_limit', 7),
(114, 'igniter.coupons::2021_05_26_010000_alter_order_restriction_column', 7),
(115, 'igniter.coupons::2021_09_06_010000_add_timestamps_to_coupons', 7),
(116, 'igniter.coupons::2021_11_18_010000_make_primary_key_bigint_all_tables', 7),
(117, 'igniter.coupons::2021_11_18_010300_add_foreign_key_constraints_to_tables', 7),
(118, 'igniter.coupons::2022_06_30_010000_drop_foreign_key_constraints', 7),
(119, 'igniter.coupons::2023_06_03_010000_set_nullable_columns', 7),
(120, 'igniter.coupons::2023_09_28_010000_create_coupon_customer_groups_tables', 7),
(121, 'igniter.coupons::2023_10_19_010000_change_is_limited_to_cart_item_to_apply_coupon_on_enum', 7),
(122, 'igniter.coupons::2025_11_21_010000_add_min_menu_quantity', 7),
(123, 'igniter.frontend::2018_01_28_000300_create_subscribers_table', 8),
(124, 'igniter.frontend::2018_06_28_000300_create_banners_table', 8),
(125, 'igniter.frontend::2019_11_02_000300_create_sliders_table', 8),
(126, 'igniter.frontend::2021_10_20_000300_rename_banners_table', 8),
(127, 'igniter.frontend::2021_11_18_010000_make_primary_key_bigint_all_tables', 8),
(128, 'igniter.frontend::2021_11_18_010300_add_foreign_key_constraints_to_tables', 8),
(129, 'igniter.frontend::2022_06_30_010000_drop_foreign_key_constraints', 8),
(130, 'igniter.frontend::2024_02_28_010000_add_code_banners_table', 8),
(131, 'igniter.local::2020_09_17_000300_create_reviews_table_or_rename', 9),
(132, 'igniter.local::2020_12_10_000300_update_reviews_table', 9),
(133, 'igniter.local::2021_01_02_000300_add_last_location_area_customers_table', 9),
(134, 'igniter.local::2021_09_06_010000_add_timestamps_to_reviews', 9),
(135, 'igniter.local::2021_11_18_010000_make_primary_key_bigint_all_tables', 9),
(136, 'igniter.local::2024_06_04_010000_rename_sale_type_sale_id_reviews', 9),
(137, 'igniter.local::2025_11_15_165912_add_indexes', 9),
(138, 'igniter.pages::2018_06_28_000300_create_pages_table', 10),
(139, 'igniter.pages::2019_11_28_000300_create_menus_table', 10),
(140, 'igniter.pages::2019_11_28_000400_alter_columns_on_pages_table', 10),
(141, 'igniter.pages::2021_03_31_000300_seed_menus_table', 10),
(142, 'igniter.pages::2021_09_06_010000_add_timestamps_to_pages', 10),
(143, 'igniter.pages::2021_10_20_010000_add_foreign_key_constraints_to_tables', 10),
(144, 'igniter.pages::2022_09_16_010000_change_page_content_to_medium_text', 10),
(145, 'igniter.pages::2023_01_28_010000_make_page_id_incremental', 10),
(146, 'igniter.payregister::2021_05_08_000300_seed_default_payment_gateways', 11),
(147, 'igniter.reservation::2022_09_15_000300_create_dining_areas_sections_tables_add_columns_table', 12),
(148, 'igniter.reservation::2023_07_01_000500_copy_location_options_to_settings', 12),
(149, 'igniter.reservation::2025_03_29_164012_remove_table_id_foreign_key', 12),
(150, 'igniter.reservation::2025_04_03_164012_make_telephone_on_reservations_nullable', 12),
(151, 'igniter.reservation::2025_05_15_164012_make_telephone_on_reservations_string', 12),
(152, 'igniter.reservation::2025_08_30_164012_make_status_id_on_reservations_integer', 12),
(153, 'igniter.reservation::2025_10_03_000000_add_indexes_to_dining_tables_and_areas', 12),
(154, 'igniter.socialite::2018_10_11_211028_create_socialite_providers_table', 13),
(155, 'igniter.socialite::2022_02_04_211028_add_user_type_column_socialite_providers_table', 13),
(156, 'igniter.socialite::2022_06_14_211028_increase_string_length', 13),
(157, 'igniter.user::2024_05_30_000400_add_user_id_assignable_logs', 14),
(158, 'igniter.user::2025_04_04_000400_make_password_nullable_on_admin_users_customers', 14),
(159, 'igniter.user::2025_06_01_000400_add_telephone_column_on_users', 14),
(160, 'igniter.user::2025_11_15_165912_add_indexes', 14);

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

--
-- Table structure for table `[[dbprefix]]notifications`
--

CREATE TABLE `[[dbprefix]]notifications` (
  `id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_id` bigint unsigned NOT NULL,
  `data` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `read_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `notifications_notifiable` (`notifiable_type`,`notifiable_id`),
  KEY `idx_notifications_notifiable_read` (`notifiable_type`,`notifiable_id`,`read_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]orders`
--

CREATE TABLE `[[dbprefix]]orders` (
  `order_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `customer_id` int DEFAULT NULL,
  `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(96) COLLATE utf8mb4_unicode_ci NOT NULL,
  `telephone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_id` int NOT NULL,
  `address_id` int DEFAULT NULL,
  `cart` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `total_items` int NOT NULL,
  `comment` text COLLATE utf8mb4_unicode_ci,
  `payment` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NOT NULL,
  `order_time` time NOT NULL,
  `order_date` date NOT NULL,
  `order_total` decimal(15,4) DEFAULT NULL,
  `status_id` int NOT NULL,
  `ip_address` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_agent` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `assignee_id` int DEFAULT NULL,
  `assignee_group_id` int unsigned DEFAULT NULL,
  `invoice_prefix` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_date` datetime DEFAULT NULL,
  `hash` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `processed` tinyint(1) DEFAULT NULL,
  `status_updated_at` datetime DEFAULT NULL,
  `assignee_updated_at` datetime DEFAULT NULL,
  `order_time_is_asap` tinyint(1) NOT NULL DEFAULT '0',
  `delivery_comment` text COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`order_id`),
  KEY `[[dbprefix]]orders_hash_index` (`hash`),
  KEY `idx_ti_orders_location_date_status` (`location_id`,`order_date`,`status_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]order_menus`
--

CREATE TABLE `[[dbprefix]]order_menus` (
  `order_menu_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` int NOT NULL,
  `menu_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` int NOT NULL,
  `price` decimal(15,4) DEFAULT NULL,
  `subtotal` decimal(15,4) DEFAULT NULL,
  `option_values` text COLLATE utf8mb4_unicode_ci,
  `comment` text COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`order_menu_id`),
  KEY `idx_ti_order_menus_order` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]order_menu_options`
--

CREATE TABLE `[[dbprefix]]order_menu_options` (
  `order_option_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` int NOT NULL,
  `order_option_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_option_price` decimal(15,4) DEFAULT NULL,
  `order_menu_id` int NOT NULL,
  `menu_option_id` int NOT NULL,
  `menu_option_value_id` int NOT NULL,
  `quantity` int DEFAULT '1',
  PRIMARY KEY (`order_option_id`),
  KEY `idx_ti_order_menu_options_order` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]order_totals`
--

CREATE TABLE `[[dbprefix]]order_totals` (
  `order_total_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` int unsigned NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` decimal(15,4) NOT NULL,
  `priority` tinyint(1) NOT NULL DEFAULT '0',
  `is_summable` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`order_total_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]pages`
--

CREATE TABLE `[[dbprefix]]pages` (
  `page_id` int NOT NULL AUTO_INCREMENT,
  `language_id` bigint unsigned NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `content` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `meta_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta_keywords` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NOT NULL,
  `status` tinyint(1) NOT NULL,
  `permalink_slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `layout` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `metadata` mediumtext COLLATE utf8mb4_unicode_ci,
  `priority` int DEFAULT NULL,
  PRIMARY KEY (`page_id`),
  KEY `[[dbprefix]]pages_language_id_foreign` (`language_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=4 ;

--
-- Dumping data for table `[[dbprefix]]pages`
--

INSERT INTO `[[dbprefix]]pages` VALUES
(1, 1, 'About Us', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', '', '', '[[regtime]]', '[[regtime]]', 1, 'about-us', 'static', '{"navigation":"0"}', NULL),
(2, 1, 'Policy', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', '', '', '[[regtime]]', '[[regtime]]', 1, 'policy', 'static', '{"navigation":"0"}', NULL),
(3, 1, 'Terms and Conditions', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', '', '', '[[regtime]]', '[[regtime]]', 1, 'terms-and-conditions', 'static', '{"navigation":"0"}', NULL);

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

--
-- Table structure for table `[[dbprefix]]password_resets`
--

CREATE TABLE `[[dbprefix]]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 `[[dbprefix]]password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]payments`
--

CREATE TABLE `[[dbprefix]]payments` (
  `payment_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  `class_name` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `data` json NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `priority` int NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NOT NULL,
  PRIMARY KEY (`payment_id`),
  UNIQUE KEY `[[dbprefix]]payments_code_unique` (`code`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=7 ;

--
-- Dumping data for table `[[dbprefix]]payments`
--

INSERT INTO `[[dbprefix]]payments` VALUES
(1, 'Cash On Delivery', 'cod', 'Igniter\\PayRegister\\Payments\\Cod', 'Pay with cash when you pick up your order or when is delivered', '[]', 1, 1, 1, '[[regtime]]', '[[regtime]]'),
(2, 'PayPal Express', 'paypalexpress', 'Igniter\\PayRegister\\Payments\\PaypalExpress', 'Securely pay using your PayPal account', '[]', 0, 0, 2, '[[regtime]]', '[[regtime]]'),
(3, 'Authorize.Net (AIM)', 'authorizenetaim', 'Igniter\\PayRegister\\Payments\\AuthorizeNetAim', 'Pay with your credit card via Authorize.Net', '[]', 0, 0, 3, '[[regtime]]', '[[regtime]]'),
(4, 'Stripe Payment', 'stripe', 'Igniter\\PayRegister\\Payments\\Stripe', 'Pay with your credit card using Stripe', '[]', 0, 0, 4, '[[regtime]]', '[[regtime]]'),
(5, 'Mollie Payment', 'mollie', 'Igniter\\PayRegister\\Payments\\Mollie', 'Pay with your credit card through Mollie', '[]', 0, 0, 5, '[[regtime]]', '[[regtime]]'),
(6, 'Square Payment', 'square', 'Igniter\\PayRegister\\Payments\\Square', 'Pay with your credit card using Square', '[]', 0, 0, 6, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]payment_logs`
--

CREATE TABLE `[[dbprefix]]payment_logs` (
  `payment_log_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` int NOT NULL,
  `payment_name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  `message` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `request` text COLLATE utf8mb4_unicode_ci,
  `response` text COLLATE utf8mb4_unicode_ci,
  `is_success` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NOT NULL,
  `payment_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_refundable` tinyint(1) NOT NULL DEFAULT '0',
  `refunded_at` datetime DEFAULT NULL,
  PRIMARY KEY (`payment_log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]payment_profiles`
--

CREATE TABLE `[[dbprefix]]payment_profiles` (
  `payment_profile_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `customer_id` int unsigned DEFAULT NULL,
  `payment_id` int unsigned DEFAULT NULL,
  `card_brand` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_last4` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `profile_data` text COLLATE utf8mb4_unicode_ci,
  `is_primary` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`payment_profile_id`),
  KEY `[[dbprefix]]payment_profiles_customer_id_index` (`customer_id`),
  KEY `[[dbprefix]]payment_profiles_payment_id_index` (`payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]personal_access_tokens`
--

CREATE TABLE `[[dbprefix]]personal_access_tokens` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint unsigned NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[dbprefix]]personal_access_tokens_token_unique` (`token`),
  KEY `[[dbprefix]]personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]request_logs`
--

CREATE TABLE `[[dbprefix]]request_logs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status_code` int DEFAULT NULL,
  `referrer` text COLLATE utf8mb4_unicode_ci,
  `count` int NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]reservations`
--

CREATE TABLE `[[dbprefix]]reservations` (
  `reservation_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_id` int NOT NULL,
  `table_id` int NOT NULL,
  `guest_num` int NOT NULL,
  `occasion_id` int DEFAULT NULL,
  `customer_id` int DEFAULT NULL,
  `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(96) COLLATE utf8mb4_unicode_ci NOT NULL,
  `telephone` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comment` text COLLATE utf8mb4_unicode_ci,
  `reserve_time` time NOT NULL,
  `reserve_date` date NOT NULL,
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NOT NULL,
  `assignee_id` int DEFAULT NULL,
  `assignee_group_id` int unsigned DEFAULT NULL,
  `notify` tinyint(1) DEFAULT NULL,
  `ip_address` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_agent` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status_id` bigint unsigned DEFAULT NULL,
  `hash` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `duration` int DEFAULT NULL,
  `processed` tinyint(1) DEFAULT NULL,
  `status_updated_at` datetime DEFAULT NULL,
  `assignee_updated_at` datetime DEFAULT NULL,
  `reserve_datetime` datetime GENERATED ALWAYS AS (addtime(`reserve_date`,`reserve_time`)) STORED,
  PRIMARY KEY (`reservation_id`),
  KEY `[[dbprefix]]reservations_location_id_table_id_index` (`location_id`,`table_id`),
  KEY `[[dbprefix]]reservations_hash_index` (`hash`),
  KEY `idx_reservations_datetime` (`reserve_datetime`),
  KEY `idx_reservations_time_filter` (`location_id`,`status_id`,`reserve_date`,`reserve_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]reservation_tables`
--

CREATE TABLE `[[dbprefix]]reservation_tables` (
  `reservation_id` int unsigned NOT NULL,
  `dining_table_id` bigint unsigned DEFAULT NULL,
  `table_id` int unsigned NOT NULL,
  UNIQUE KEY `reservation_dining_table_unique` (`reservation_id`,`dining_table_id`),
  KEY `reservation_id_index` (`reservation_id`),
  KEY `table_id_index` (`table_id`),
  KEY `idx_reservation_tables_res_table` (`reservation_id`,`dining_table_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `[[dbprefix]]settings`
--

CREATE TABLE `[[dbprefix]]settings` (
  `setting_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sort` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `item` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` text COLLATE utf8mb4_unicode_ci,
  `serialized` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`setting_id`),
  UNIQUE KEY `[[dbprefix]]settings_sort_item_unique` (`sort`,`item`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=42 ;

--
-- Dumping data for table `[[dbprefix]]settings`
--

INSERT INTO `[[dbprefix]]settings` VALUES
(1, 'config', 'site_logo', 'no_photo.png', NULL),
(2, 'config', 'timezone', 'Europe/London', NULL),
(3, 'config', 'detect_language', '0', NULL),
(4, 'prefs', 'supported_languages', 'a:1:{i:0;s:2:"en";}', NULL),
(5, 'config', 'allow_registration', '1', NULL),
(6, 'config', 'customer_group_id', '11', NULL),
(7, 'config', 'registration_email', 'a:1:{i:0;s:8:"customer";}', NULL),
(8, 'config', 'order_email', 'a:2:{i:0;s:8:"customer";i:1;s:5:"admin";}', NULL),
(9, 'config', 'reservation_email', 'a:2:{i:0;s:8:"customer";i:1;s:5:"admin";}', NULL),
(10, 'config', 'maps_api_key', '', NULL),
(11, 'config', 'distance_unit', 'mi', NULL),
(12, 'config', 'location_order', '0', NULL),
(13, 'config', 'location_order_email', '0', NULL),
(14, 'config', 'location_reserve_email', '0', NULL),
(15, 'config', 'default_order_status', '1', NULL),
(16, 'config', 'processing_order_status', 'a:3:{i:0;s:1:"2";i:1;s:1:"3";i:2;s:1:"4";}', NULL),
(17, 'config', 'completed_order_status', 'a:1:{i:0;s:1:"5";}', NULL),
(18, 'config', 'guest_order', '1', NULL),
(19, 'config', 'default_reservation_status', '8', NULL),
(20, 'config', 'confirmed_reservation_status', '6', NULL),
(21, 'config', 'canceled_order_status', '9', NULL),
(22, 'config', 'canceled_reservation_status', '7', NULL),
(23, 'config', 'tax_mode', '0', NULL),
(24, 'config', 'invoice_prefix', 'INV-{year}-00', NULL),
(25, 'config', 'protocol', 'log', NULL),
(26, 'config', 'smtp_host', 'smtp.mailgun.org', NULL),
(27, 'config', 'smtp_port', '587', NULL),
(28, 'config', 'smtp_user', '', NULL),
(29, 'config', 'smtp_pass', '', NULL),
(30, 'config', 'log_threshold', '1', NULL),
(31, 'config', 'permalink', '1', NULL),
(32, 'config', 'maintenance_mode', '0', NULL),
(33, 'config', 'maintenance_message', 'Site is under maintenance. Please check back later.', NULL),
(34, 'config', 'cache_mode', '0', NULL),
(35, 'config', 'cache_time', '0', NULL),
(36, 'prefs', 'default_themes', 'a:1:{s:4:"main";s:4:"demo";}', NULL),
(37, 'prefs', 'ti_setup', 'installed', NULL),
(38, 'config', 'site_name', '[[site_name]]', NULL),
(39, 'config', 'site_email', '[[admin_email]]', NULL),
(40, 'config', 'sender_name', '[[site_name]]', NULL),
(41, 'config', 'sender_email', '[[admin_email]]', NULL);

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

--
-- Table structure for table `[[dbprefix]]statuses`
--

CREATE TABLE `[[dbprefix]]statuses` (
  `status_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `status_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status_comment` text COLLATE utf8mb4_unicode_ci,
  `notify_customer` tinyint(1) DEFAULT NULL,
  `status_for` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status_color` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`status_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=10 ;

--
-- Dumping data for table `[[dbprefix]]statuses`
--

INSERT INTO `[[dbprefix]]statuses` VALUES
(1, 'Received', 'Your order has been received.', 1, 'order', '#686663', '[[regtime]]', '[[regtime]]'),
(2, 'Pending', 'Your order is pending', 1, 'order', '#f0ad4e', '[[regtime]]', '[[regtime]]'),
(3, 'Preparation', 'Your order is in the kitchen', 1, 'order', '#00c0ef', '[[regtime]]', '[[regtime]]'),
(4, 'Delivery', 'Your order will be with you shortly.', 0, 'order', '#00a65a', '[[regtime]]', '[[regtime]]'),
(5, 'Completed', '', 0, 'order', '#00a65a', '[[regtime]]', '[[regtime]]'),
(6, 'Confirmed', 'Your table reservation has been confirmed.', 0, 'reservation', '#00a65a', '[[regtime]]', '[[regtime]]'),
(7, 'Canceled', 'Your table reservation has been canceled.', 0, 'reservation', '#dd4b39', '[[regtime]]', '[[regtime]]'),
(8, 'Pending', 'Your table reservation is pending.', 1, 'reservation', '', '[[regtime]]', '[[regtime]]'),
(9, 'Canceled', '', 0, 'order', '#ea0b29', '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]status_history`
--

CREATE TABLE `[[dbprefix]]status_history` (
  `status_history_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `object_id` int NOT NULL,
  `object_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` int DEFAULT NULL,
  `status_id` int NOT NULL,
  `notify` tinyint(1) DEFAULT NULL,
  `comment` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NOT NULL,
  PRIMARY KEY (`status_history_id`),
  KEY `idx_status_history_object_created` (`object_type`,`object_id`,`created_at`),
  KEY `idx_status_history_object_status` (`object_type`,`object_id`,`status_history_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]stocks`
--

CREATE TABLE `[[dbprefix]]stocks` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_id` bigint unsigned NOT NULL,
  `stockable_id` bigint unsigned NOT NULL,
  `stockable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` bigint DEFAULT NULL,
  `low_stock_alert` tinyint(1) NOT NULL DEFAULT '0',
  `low_stock_threshold` int NOT NULL DEFAULT '0',
  `is_tracked` tinyint(1) NOT NULL DEFAULT '0',
  `out_of_stock_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `out_of_stock_until` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `low_stock_alert_sent` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `idx_stocks_type_id` (`stockable_type`,`stockable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]stock_history`
--

CREATE TABLE `[[dbprefix]]stock_history` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `stock_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `order_id` bigint unsigned DEFAULT NULL,
  `state` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` bigint NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `[[dbprefix]]stock_history_stock_id_foreign` (`stock_id`),
  KEY `[[dbprefix]]stock_history_order_id_foreign` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]tables`
--

CREATE TABLE `[[dbprefix]]tables` (
  `table_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `table_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `min_capacity` int NOT NULL,
  `max_capacity` int NOT NULL,
  `table_status` tinyint(1) NOT NULL,
  `extra_capacity` int NOT NULL DEFAULT '0',
  `is_joinable` tinyint(1) NOT NULL DEFAULT '1',
  `priority` int NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`table_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=15 ;

--
-- Dumping data for table `[[dbprefix]]tables`
--

INSERT INTO `[[dbprefix]]tables` VALUES
(1, 'Table 1', 3, 8, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(2, 'Table 2', 4, 8, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(3, 'Table 3', 5, 6, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(4, 'Table 4', 3, 8, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(5, 'Table 5', 3, 6, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(6, 'Table 6', 3, 6, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(7, 'Table 7', 3, 9, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(8, 'Table 8', 5, 7, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(9, 'Table 9', 4, 12, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(10, 'Table 10', 5, 12, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(11, 'Table 11', 5, 12, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(12, 'Table 12', 3, 7, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(13, 'Table 13', 2, 12, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]'),
(14, 'Table 14', 3, 8, 1, 0, 1, 0, '[[regtime]]', '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]themes`
--

CREATE TABLE `[[dbprefix]]themes` (
  `theme_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `version` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '0.0.1',
  `data` json NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`theme_id`),
  UNIQUE KEY `[[dbprefix]]themes_code_unique` (`code`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;

--
-- Dumping data for table `[[dbprefix]]themes`
--

INSERT INTO `[[dbprefix]]themes` VALUES
(1, 'Orange Theme', 'igniter-orange', 'Free Modern, Responsive and Clean TastyIgniter Theme based on Livewire and Bootstrap.', 'v4.1.8', '[]', 1, 1, NULL, '[[regtime]]');

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

--
-- Table structure for table `[[dbprefix]]users`
--

CREATE TABLE `[[dbprefix]]users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `[[dbprefix]]users_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `[[dbprefix]]working_hours`
--

CREATE TABLE `[[dbprefix]]working_hours` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `location_id` bigint unsigned NOT NULL,
  `type` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `weekday` int NOT NULL,
  `opening_time` time NOT NULL,
  `closing_time` time NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `[[dbprefix]]igniter_automation_rule_actions`
--
ALTER TABLE `[[dbprefix]]igniter_automation_rule_actions`
  ADD CONSTRAINT `[[dbprefix]]igniter_actions_automation_rule_id_foreign` FOREIGN KEY (`automation_rule_id`) REFERENCES `[[dbprefix]]igniter_automation_rules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `[[dbprefix]]igniter_automation_rule_conditions`
--
ALTER TABLE `[[dbprefix]]igniter_automation_rule_conditions`
  ADD CONSTRAINT `[[dbprefix]]igniter_conditions_automation_rule_id_foreign` FOREIGN KEY (`automation_rule_id`) REFERENCES `[[dbprefix]]igniter_automation_rules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `[[dbprefix]]pages`
--
ALTER TABLE `[[dbprefix]]pages`
  ADD CONSTRAINT `[[dbprefix]]pages_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `[[dbprefix]]languages` (`language_id`);

--
-- Constraints for table `[[dbprefix]]stock_history`
--
ALTER TABLE `[[dbprefix]]stock_history`
  ADD CONSTRAINT `[[dbprefix]]stock_history_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `[[dbprefix]]orders` (`order_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `[[dbprefix]]stock_history_stock_id_foreign` FOREIGN KEY (`stock_id`) REFERENCES `[[dbprefix]]stocks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

/*!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 */;
