-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `nextappo_d2020`
--

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

--
-- Table structure for table `bookings`
--

CREATE TABLE `bookings` (
  `id` int(10) UNSIGNED NOT NULL,
  `deal_id` int(10) UNSIGNED DEFAULT NULL,
  `deal_quantity` double DEFAULT NULL,
  `coupon_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `date_time` datetime NOT NULL,
  `status` enum('pending','approved','in progress','completed','canceled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pending',
  `payment_gateway` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `original_amount` double(8,2) NOT NULL,
  `discount` double(8,2) NOT NULL,
  `coupon_discount` double DEFAULT NULL,
  `discount_percent` double NOT NULL,
  `tax_name` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tax_percent` double(8,2) DEFAULT NULL,
  `tax_amount` double(8,2) DEFAULT NULL,
  `amount_to_pay` double(8,2) NOT NULL,
  `payment_status` enum('pending','completed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pending',
  `source` varchar(191) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pos',
  `additional_notes` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `bookings`
--

INSERT INTO `bookings` (`id`, `deal_id`, `deal_quantity`, `coupon_id`, `user_id`, `date_time`, `status`, `payment_gateway`, `original_amount`, `discount`, `coupon_discount`, `discount_percent`, `tax_name`, `tax_percent`, `tax_amount`, `amount_to_pay`, `payment_status`, `source`, `additional_notes`, `created_at`, `updated_at`) VALUES
(1, NULL, NULL, NULL, 3, '2020-08-29 17:00:00', 'pending', 'cash', 25.00, 0.00, NULL, 0, 'GST', 18.00, 4.50, 29.50, 'pending', 'online', NULL, '2020-08-25 12:16:57', '2020-08-25 12:16:57'),
(2, NULL, NULL, NULL, 4, '2020-08-28 16:30:00', 'pending', 'cash', 25.00, 0.00, NULL, 0, 'GST', 18.00, 4.50, 29.50, 'pending', 'online', NULL, '2020-08-26 03:46:47', '2020-08-26 03:46:47');

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

--
-- Table structure for table `booking_items`
--

CREATE TABLE `booking_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `booking_id` int(10) UNSIGNED NOT NULL,
  `business_service_id` int(10) UNSIGNED NOT NULL,
  `quantity` tinyint(4) NOT NULL,
  `unit_price` double NOT NULL,
  `amount` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `booking_items`
--

INSERT INTO `booking_items` (`id`, `booking_id`, `business_service_id`, `quantity`, `unit_price`, `amount`, `created_at`, `updated_at`) VALUES
(1, 1, 2, 1, 25, 25, NULL, NULL),
(2, 2, 2, 1, 25, 25, NULL, NULL);

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

--
-- Table structure for table `booking_times`
--

CREATE TABLE `booking_times` (
  `id` int(10) UNSIGNED NOT NULL,
  `day` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `multiple_booking` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'yes',
  `max_booking` int(11) NOT NULL DEFAULT '0',
  `status` enum('enabled','disabled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'enabled',
  `slot_duration` int(11) NOT NULL DEFAULT '30',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `booking_times`
--

INSERT INTO `booking_times` (`id`, `day`, `start_time`, `end_time`, `multiple_booking`, `max_booking`, `status`, `slot_duration`, `created_at`, `updated_at`) VALUES
(1, 'monday', '10:00:00', '20:00:00', 'yes', 0, 'enabled', 30, NULL, NULL),
(2, 'tuesday', '10:00:00', '20:00:00', 'yes', 0, 'enabled', 30, NULL, NULL),
(3, 'wednesday', '10:00:00', '20:00:00', 'yes', 0, 'enabled', 30, NULL, NULL),
(4, 'thursday', '10:00:00', '20:00:00', 'yes', 0, 'enabled', 30, NULL, NULL),
(5, 'friday', '10:00:00', '20:00:00', 'yes', 0, 'enabled', 30, NULL, NULL),
(6, 'saturday', '10:00:00', '20:00:00', 'yes', 0, 'enabled', 30, NULL, NULL),
(7, 'sunday', '10:00:00', '20:00:00', 'yes', 0, 'enabled', 30, NULL, NULL);

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

--
-- Table structure for table `booking_user`
--

CREATE TABLE `booking_user` (
  `booking_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `business_services`
--

CREATE TABLE `business_services` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `slug` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `price` double(8,2) NOT NULL,
  `time` double(8,2) NOT NULL,
  `time_type` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `discount` double(8,2) NOT NULL,
  `discount_type` enum('percent','fixed') COLLATE utf8_unicode_ci NOT NULL,
  `category_id` int(10) UNSIGNED DEFAULT NULL,
  `location_id` int(10) UNSIGNED NOT NULL DEFAULT '1',
  `image` text COLLATE utf8_unicode_ci,
  `default_image` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` enum('active','deactive') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `business_services`
--

INSERT INTO `business_services` (`id`, `name`, `slug`, `description`, `price`, `time`, `time_type`, `discount`, `discount_type`, `category_id`, `location_id`, `image`, `default_image`, `status`, `created_at`, `updated_at`) VALUES
(2, 'Flu Vacination', 'flu-vacination', '<p>Flu occurs every year, usually\r\nin the winter, which is why it’s\r\nsometimes called seasonal flu.\r\nIt’s a highly infectious disease\r\nwith symptoms that come on\r\nvery quickly.\r\nColds are much less serious and\r\nusually start gradually with a\r\nstuffy or runny nose and a sore\r\nthroat. A bad bout of flu can be\r\nmuch worse than a heavy cold.\r\nThe most common symptoms\r\nof flu are fever, chills, headache,\r\naches and pains in the joints\r\nand muscles, and extreme\r\ntiredness. Healthy individuals\r\nusually recover within two\r\nto seven days, but for some\r\nthe disease can lead to\r\nhospitalisation, permanent\r\ndisability or even death.<br></p>', 25.00, 15.00, 'minutes', 0.00, 'percent', 1, 2, '[\"f1bf066f06ad2f58c028c79d20c6d1d7.jpg\"]', 'f1bf066f06ad2f58c028c79d20c6d1d7.jpg', 'active', '2020-08-24 13:13:49', '2020-08-24 13:14:01');

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

--
-- Table structure for table `business_service_user`
--

CREATE TABLE `business_service_user` (
  `business_service_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `slug` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` enum('active','deactive') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` (`id`, `name`, `slug`, `image`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Flu Vaccination', 'flu-vacination', NULL, 'active', '2020-08-24 10:59:10', '2020-08-24 10:59:10');

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

--
-- Table structure for table `company_settings`
--

CREATE TABLE `company_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `company_name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `company_email` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `company_phone` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `logo` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address` text COLLATE utf8_unicode_ci NOT NULL,
  `date_format` varchar(191) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Y-m-d',
  `time_format` varchar(191) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'h:i A',
  `website` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `timezone` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `locale` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `latitude` decimal(10,8) NOT NULL,
  `longitude` decimal(11,8) NOT NULL,
  `currency_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `purchase_code` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `supported_until` timestamp NULL DEFAULT NULL,
  `multi_task_user` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `booking_per_day` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `employee_selection` enum('enabled','disabled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'disabled',
  `disable_slot` enum('enabled','disabled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'disabled',
  `booking_time_type` enum('sum','avg','max','min') COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `company_settings`
--

INSERT INTO `company_settings` (`id`, `company_name`, `company_email`, `company_phone`, `logo`, `address`, `date_format`, `time_format`, `website`, `timezone`, `locale`, `latitude`, `longitude`, `currency_id`, `created_at`, `updated_at`, `purchase_code`, `supported_until`, `multi_task_user`, `booking_per_day`, `employee_selection`, `disable_slot`, `booking_time_type`) VALUES
(1, 'Next Appointments', 'company@example.com', '0333 777 8000', NULL, 'Jaipur, India', 'd-m-Y', 'h:i A', 'http://www.xyz.com', 'Europe/London', 'en', 26.91243360, 75.78727090, 1, NULL, '2020-08-24 13:34:24', 'envato-dev', NULL, NULL, NULL, 'disabled', 'disabled', 'sum');

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

--
-- Table structure for table `coupons`
--

CREATE TABLE `coupons` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `start_date_time` datetime DEFAULT NULL,
  `end_date_time` datetime DEFAULT NULL,
  `uses_limit` int(11) DEFAULT NULL,
  `used_time` int(11) DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `percent` int(11) DEFAULT NULL,
  `minimum_purchase_amount` int(11) NOT NULL DEFAULT '0',
  `days` text COLLATE utf8_unicode_ci,
  `status` enum('active','inactive','expire') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `description` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `coupon_users`
--

CREATE TABLE `coupon_users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `coupon_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `currencies`
--

CREATE TABLE `currencies` (
  `id` int(10) UNSIGNED NOT NULL,
  `currency_name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `currency_symbol` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `currency_code` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `currencies`
--

INSERT INTO `currencies` (`id`, `currency_name`, `currency_symbol`, `currency_code`, `created_at`, `updated_at`) VALUES
(1, 'US Dollars', '$', 'USD', '2020-08-24 09:28:29', '2020-08-24 09:28:29');

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

--
-- Table structure for table `deals`
--

CREATE TABLE `deals` (
  `id` int(10) UNSIGNED NOT NULL,
  `title` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `slug` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `deal_type` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `start_date_time` datetime DEFAULT NULL,
  `end_date_time` datetime DEFAULT NULL,
  `open_time` time NOT NULL,
  `close_time` time NOT NULL,
  `uses_limit` int(11) DEFAULT NULL,
  `used_time` int(11) DEFAULT NULL,
  `original_amount` double DEFAULT NULL,
  `deal_amount` double DEFAULT NULL,
  `days` text COLLATE utf8_unicode_ci,
  `image` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` enum('active','inactive','expire') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `description` text COLLATE utf8_unicode_ci,
  `discount_type` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `percentage` int(11) DEFAULT NULL,
  `deal_applied_on` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `max_order_per_customer` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `deal_items`
--

CREATE TABLE `deal_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `deal_id` int(10) UNSIGNED DEFAULT NULL,
  `business_service_id` int(10) UNSIGNED DEFAULT NULL,
  `quantity` tinyint(4) NOT NULL,
  `unit_price` double NOT NULL,
  `discount_amount` double NOT NULL,
  `total_amount` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `employee_groups`
--

CREATE TABLE `employee_groups` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` enum('active','deactive') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `employee_groups`
--

INSERT INTO `employee_groups` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Managers', 'active', '2020-08-24 11:26:19', '2020-08-24 11:26:19'),
(2, 'Staffs', 'active', '2020-08-24 11:26:30', '2020-08-24 11:26:30');

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

--
-- Table structure for table `employee_group_services`
--

CREATE TABLE `employee_group_services` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `employee_groups_id` int(10) UNSIGNED DEFAULT NULL,
  `business_service_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `front_theme_settings`
--

CREATE TABLE `front_theme_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `primary_color` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `secondary_color` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `custom_css` longtext COLLATE utf8_unicode_ci,
  `logo` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `front_theme_settings`
--

INSERT INTO `front_theme_settings` (`id`, `primary_color`, `secondary_color`, `custom_css`, `logo`, `created_at`, `updated_at`) VALUES
(1, '#414552', '#788AE2', NULL, NULL, NULL, NULL);

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

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

CREATE TABLE `languages` (
  `id` int(10) UNSIGNED NOT NULL,
  `language_code` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `language_name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `status` enum('enabled','disabled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'disabled',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `languages` (`id`, `language_code`, `language_name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'es', 'Spanish', 'disabled', '2020-08-24 09:28:29', '2020-08-24 09:28:29'),
(2, 'en', 'English', 'enabled', '2020-08-24 09:28:30', '2020-08-24 09:28:30');

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

--
-- Table structure for table `locations`
--

CREATE TABLE `locations` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `locations`
--

INSERT INTO `locations` (`id`, `name`, `created_at`, `updated_at`) VALUES
(2, 'Enfield', '2020-08-24 10:58:29', '2020-08-24 10:58:29'),
(3, 'DD,London', '2020-08-26 11:55:49', '2020-08-26 11:55:49');

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

--
-- Table structure for table `media`
--

CREATE TABLE `media` (
  `id` int(10) UNSIGNED NOT NULL,
  `file_name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

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

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

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

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_04_02_193005_create_translations_table', 1),
(2, '2014_10_12_000000_create_users_table', 1),
(3, '2014_10_12_100000_create_password_resets_table', 1),
(4, '2018_09_06_071923_create_categories_table', 1),
(5, '2018_09_11_093015_create_business_services_table', 1),
(6, '2018_09_11_173520_create_bookings_table', 1),
(7, '2018_09_11_174709_add_discount_column_serices_table', 1),
(8, '2018_09_11_184348_create_tax_settings_table', 1),
(9, '2018_09_12_151158_create_booking_times_table', 1),
(10, '2018_09_18_064516_add_mobile_column_users_table', 1),
(11, '2018_09_19_095300_add_status_column_categories_table', 1),
(12, '2018_09_19_095530_add_status_column_booking_services_table', 1),
(13, '2018_09_20_130124_create_currencies_table', 1),
(14, '2018_09_20_131417_create_company_settings_table', 1),
(15, '2018_09_25_112040_create_booking_items_table', 1),
(16, '2018_09_28_074544_add_columns_bookings_table', 1),
(17, '2018_10_03_182207_create_languages_table', 1),
(18, '2018_10_04_100225_add_spanish_language', 1),
(19, '2018_10_04_112244_create_smtp_settings_table', 1),
(20, '2018_10_08_122033_add_image_users_table', 1),
(21, '2018_10_09_121006_create_theme_settings_table', 1),
(22, '2018_10_15_123811_add_time_slot_duration_booing_times_table', 1),
(23, '2018_11_01_091108_add_is_admin_column_users_table', 1),
(24, '2018_11_02_052534_add_topbar_textcolor_column_theme_settings', 1),
(25, '2018_12_03_104905_change_tax_column_nullable_bookings_table', 1),
(26, '2018_12_19_192042_add_source_column_bookings_table', 1),
(27, '2018_12_20_115707_allow_soft_delete_user', 1),
(28, '2018_12_27_053940_create_payment_gateway_credential_table', 1),
(29, '2018_12_27_064431_create_payments_table', 1),
(30, '2019_01_03_192042_alter_credential_table', 1),
(31, '2019_01_31_111812_add_multiple_booking_column_booking_times_table', 1),
(32, '2019_02_10_075422_add_addition_notes_column_bookings_table', 1),
(33, '2019_04_08_053940_create_employee_groups_table', 1),
(34, '2019_04_08_075422_alter_user_employee_table', 1),
(35, '2019_04_08_085422_alter_booking_group_table', 1),
(36, '2019_08_06_104829_create_media_table', 1),
(37, '2019_08_08_071516_create_locations_table', 1),
(38, '2019_08_08_095010_add_location_id_column_in_business_services_table', 1),
(39, '2019_08_13_073129_update_settings_add_envato_key', 1),
(40, '2019_08_13_073129_update_settings_add_support_key', 1),
(41, '2019_08_14_093126_alter_booking_times_and_bookings_table', 1),
(42, '2019_08_14_121322_create_front_theme_settings_table', 1),
(43, '2019_08_27_043810_create_pages_table', 1),
(44, '2019_08_28_081847_update_smtp_setting_verified', 1),
(45, '2019_09_03_110646_add_slug_field_in_categories_and_business_services_table', 1),
(46, '2019_09_17_083105_create_sms_settings_table', 1),
(47, '2019_09_18_115145_add_mobile_verified_column_in_users_table', 1),
(48, '2019_09_23_064129_create_universal_search_table', 1),
(49, '2019_10_07_073041_add_status_column_in_languages_table', 1),
(50, '2019_10_14_084220_alter_foreign_key_in_business_services_table', 1),
(51, '2019_11_07_065036_alter_status_of_payments_table', 1),
(52, '2019_11_13_090143_add_date_and_time_format_columns_in_company_settings_table', 1),
(53, '2019_11_14_085440_add_unique_slugs_to_categories_and_services_tables', 1),
(54, '2019_11_14_121846_laratrust_setup_tables', 1),
(55, '2019_11_18_121633_create_modules_table', 1),
(56, '2019_11_25_043859_remove_is_admin_and_is_employee_columns_from_users_table', 1),
(57, '2019_11_25_092025_seed_booking_times_table', 1),
(58, '2019_11_26_092726_create_payments_for_pos_bookings', 1),
(59, '2019_11_27_065035_add_max_booking_column_in_booking_times_table', 1),
(60, '2019_11_28_075109_add_razorpay_details_in_payment_gateway_credentials_table', 1),
(61, '2019_12_02_085713_add_paypal_mode_column_in_payment_gateway_credentials_table', 1),
(62, '2019_12_02_112618_alter_status_column_in_bookings_table', 1),
(63, '2019_12_04_063825_run_permission_change_command', 1),
(64, '2019_12_04_071454_add_english_row_in_languages_table', 1),
(65, '2019_12_05_102158_add_default_image_column_in_business_services_table', 1),
(66, '2019_12_06_071155_alter_image_column_to_text_in_business_services_table', 1),
(67, '2019_12_12_083028_remove_pos_module_from_modules_table', 1),
(68, '2019_12_12_110226_add_show_payment_column_in_payment_gateway_credentials_table', 1),
(69, '2019_12_12_121633_create_coupons_table', 1),
(70, '2019_12_13_053737_add_custom_css_column_in_front_and_admin_theme_settings_tables', 1),
(71, '2019_12_13_081452_create_todo_items_table', 1),
(72, '2019_12_13_121633_create_coupon_users_table', 1),
(73, '2019_12_18_085713_add_coupon_id_column_in_bookings_table', 1),
(74, '2019_12_23_085713_remove_field_in_coupon_table', 1),
(75, '2020_01_16_084419_change_customers_to_employees_in_universal_searches_table', 1),
(76, '2020_02_03_123340_alter_foreign_key_in_company_settings_table', 1),
(77, '2020_03_02_121855_alter_employees_and_customers_in_universal_searches_table', 1),
(78, '2020_03_20_102434_create_booking_user_table', 1),
(79, '2020_03_21_130010_create_business_service_user_table', 1),
(80, '2020_03_23_083957_add_multi_task_user_to_company_settings', 1),
(81, '2020_04_03_122036_remove_employee_id_column_bookings_table', 1),
(82, '2020_04_10_155242_create_deals_table', 1),
(83, '2020_04_17_083036_add_deal_id_column_to_bookings_table', 1),
(84, '2020_04_17_083138_create_deal_items_table', 1),
(85, '2020_04_29_103926_add_slug_column_to_deal_table', 1),
(86, '2020_05_11_112146_add_booking_per_day_column_to_company_settings_table', 1),
(87, '2020_05_18_052041_add_employee_selection_column_to_company_settings_table', 1),
(88, '2020_05_28_061604_add_two_columns_to_company_settings_table', 1),
(89, '2020_06_02_031736_create_employee_group_services_table', 1),
(90, '2020_06_30_082856_add_7_columns_to_deals_table', 1),
(91, '2020_07_07_101959_create_coupon_and_deal_module', 1);

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

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

CREATE TABLE `modules` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `display_name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `modules` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'location', 'Location', 'modules.module.locationDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(2, 'category', 'Category', 'modules.module.categoryDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(3, 'business_service', 'Business Service', 'modules.module.businessServiceDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(4, 'customer', 'Customer', 'modules.module.customerDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(5, 'employee', 'Employee', 'modules.module.employeeDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(6, 'employee_group', 'Employee Group', 'modules.module.employeeGroupDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(7, 'coupon', 'Coupon', 'modules.module.couponDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(8, 'deal', 'Deal', 'modules.module.dealDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(9, 'booking', 'Booking', 'modules.module.bookingDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(10, 'report', 'Report', 'modules.module.reportDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(11, 'settings', 'Settings', 'modules.module.settingsDescription', '2020-08-24 09:28:30', '2020-08-24 09:28:30');

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

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

CREATE TABLE `pages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  `slug` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pages`
--

INSERT INTO `pages` (`id`, `title`, `content`, `slug`, `created_at`, `updated_at`) VALUES
(1, 'About Us', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 'about-us', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(2, 'Contact Us', '<h2>Contact Us</h2>\n\n                <p>How can we help you? We will try to get back to you as soon as possible.</p>', 'contact-us', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(3, 'How It Works', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 'how-it-works', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(4, 'Privacy Policy', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 'privacy-policy', '2020-08-24 09:28:30', '2020-08-24 09:28:30');

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

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` int(10) UNSIGNED NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `booking_id` int(10) UNSIGNED NOT NULL,
  `amount` double NOT NULL,
  `gateway` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `transaction_id` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` enum('completed','pending') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pending',
  `paid_on` datetime DEFAULT NULL,
  `customer_id` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `event_id` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` int(10) UNSIGNED NOT NULL,
  `module_id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `display_name` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `permissions`
--

INSERT INTO `permissions` (`id`, `module_id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES
(1, 1, 'create_location', 'Create Location', 'Create Location', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(2, 1, 'read_location', 'Read Location', 'Read Location', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(3, 1, 'update_location', 'Update Location', 'Update Location', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(4, 1, 'delete_location', 'Delete Location', 'Delete Location', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(5, 2, 'create_category', 'Create Category', 'Create Category', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(6, 2, 'read_category', 'Read Category', 'Read Category', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(7, 2, 'update_category', 'Update Category', 'Update Category', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(8, 2, 'delete_category', 'Delete Category', 'Delete Category', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(9, 3, 'create_business_service', 'Create Business Service', 'Create Business Service', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(10, 3, 'read_business_service', 'Read Business Service', 'Read Business Service', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(11, 3, 'update_business_service', 'Update Business Service', 'Update Business Service', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(12, 3, 'delete_business_service', 'Delete Business Service', 'Delete Business Service', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(13, 4, 'create_customer', 'Create Customer', 'Create Customer', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(14, 4, 'read_customer', 'Read Customer', 'Read Customer', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(15, 4, 'update_customer', 'Update Customer', 'Update Customer', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(16, 4, 'delete_customer', 'Delete Customer', 'Delete Customer', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(17, 5, 'create_employee', 'Create Employee', 'Create Employee', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(18, 5, 'read_employee', 'Read Employee', 'Read Employee', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(19, 5, 'update_employee', 'Update Employee', 'Update Employee', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(20, 5, 'delete_employee', 'Delete Employee', 'Delete Employee', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(21, 6, 'create_employee_group', 'Create Employee Group', 'Create Employee Group', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(22, 6, 'read_employee_group', 'Read Employee Group', 'Read Employee Group', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(23, 6, 'update_employee_group', 'Update Employee Group', 'Update Employee Group', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(24, 6, 'delete_employee_group', 'Delete Employee Group', 'Delete Employee Group', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(25, 7, 'create_coupon', 'Create Coupon', 'Create Coupon', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(26, 7, 'read_coupon', 'Read Coupon', 'Read Coupon', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(27, 7, 'update_coupon', 'Update Coupon', 'Update Coupon', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(28, 7, 'delete_coupon', 'Delete Coupon', 'Delete Coupon', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(29, 8, 'create_deal', 'Create Deal', 'Create Deal', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(30, 8, 'read_deal', 'Read Deal', 'Read Deal', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(31, 8, 'update_deal', 'Update Deal', 'Update Deal', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(32, 8, 'delete_deal', 'Delete Deal', 'Delete Deal', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(33, 9, 'create_booking', 'Create Booking', 'Create Booking', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(34, 9, 'read_booking', 'Read Booking', 'Read Booking', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(35, 9, 'update_booking', 'Update Booking', 'Update Booking', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(36, 9, 'delete_booking', 'Delete Booking', 'Delete Booking', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(37, 10, 'create_report', 'Create Report', 'Create Report', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(38, 10, 'read_report', 'Read Report', 'Read Report', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(39, 10, 'update_report', 'Update Report', 'Update Report', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(40, 10, 'delete_report', 'Delete Report', 'Delete Report', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(41, 11, 'manage_settings', 'Manage Settings', 'Manage Settings', '2020-08-24 09:28:30', '2020-08-24 09:28:30');

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

--
-- Table structure for table `permission_role`
--

CREATE TABLE `permission_role` (
  `permission_id` int(10) UNSIGNED NOT NULL,
  `role_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `permission_role`
--

INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 1),
(13, 1),
(14, 1),
(15, 1),
(16, 1),
(17, 1),
(18, 1),
(19, 1),
(20, 1),
(21, 1),
(22, 1),
(23, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 1),
(29, 1),
(30, 1),
(31, 1),
(32, 1),
(33, 1),
(34, 1),
(35, 1),
(36, 1),
(37, 1),
(38, 1),
(39, 1),
(40, 1),
(41, 1),
(34, 2),
(35, 2),
(34, 3),
(35, 3);

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

--
-- Table structure for table `permission_user`
--

CREATE TABLE `permission_user` (
  `permission_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `user_type` varchar(191) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

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

CREATE TABLE `roles` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `display_name` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'administrator', 'Administrator', 'Administrator', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(2, 'employee', 'Employee', 'Employee', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(3, 'customer', 'Customer', 'Customer', '2020-08-24 09:28:30', '2020-08-24 09:28:30');

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

--
-- Table structure for table `role_user`
--

CREATE TABLE `role_user` (
  `role_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `user_type` varchar(191) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `role_user`
--

INSERT INTO `role_user` (`role_id`, `user_id`, `user_type`) VALUES
(1, 1, 'App\\User'),
(3, 3, 'App\\User'),
(3, 4, 'App\\User');

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

--
-- Table structure for table `tax_settings`
--

CREATE TABLE `tax_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `tax_name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `percent` double(8,2) NOT NULL,
  `status` enum('active','deactive') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tax_settings`
--

INSERT INTO `tax_settings` (`id`, `tax_name`, `percent`, `status`, `created_at`, `updated_at`) VALUES
(1, 'GST', 18.00, 'active', '2020-08-24 09:28:29', '2020-08-24 09:28:29');

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

--
-- Table structure for table `theme_settings`
--

CREATE TABLE `theme_settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `primary_color` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `secondary_color` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `sidebar_bg_color` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `sidebar_text_color` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `topbar_text_color` varchar(191) COLLATE utf8_unicode_ci NOT NULL DEFAULT '#FFFFFF',
  `custom_css` longtext COLLATE utf8_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `theme_settings`
--

INSERT INTO `theme_settings` (`id`, `primary_color`, `secondary_color`, `sidebar_bg_color`, `sidebar_text_color`, `topbar_text_color`, `custom_css`, `created_at`, `updated_at`) VALUES
(1, '#414552', '#788AE2', '#FFFFFF', '#5C5C62', '#FFFFFF', NULL, NULL, NULL);

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

--
-- Table structure for table `todo_items`
--

CREATE TABLE `todo_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `title` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `status` enum('pending','completed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pending',
  `position` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `universal_searches`
--

CREATE TABLE `universal_searches` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `searchable_id` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `searchable_type` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `route_name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `universal_searches`
--

INSERT INTO `universal_searches` (`id`, `searchable_id`, `searchable_type`, `title`, `route_name`, `created_at`, `updated_at`) VALUES
(2, 'about-us', 'Page', 'About Us', 'admin.pages.edit', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(3, 'contact-us', 'Page', 'Contact Us', 'admin.pages.edit', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(4, 'how-it-works', 'Page', 'How It Works', 'admin.pages.edit', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(5, 'privacy-policy', 'Page', 'Privacy Policy', 'admin.pages.edit', '2020-08-24 09:28:30', '2020-08-24 09:28:30'),
(6, '2', 'Location', 'Enfield', 'admin.locations.edit', '2020-08-24 10:58:29', '2020-08-24 10:58:29'),
(7, '1', 'Category', 'Flu Vaccination', 'admin.categories.edit', '2020-08-24 10:59:10', '2020-08-24 10:59:10'),
(9, '3', 'Customer', 'John Doe', 'admin.customers.show', '2020-08-24 12:59:23', '2020-08-24 12:59:23'),
(10, '3', 'Customer', 'johndoe@gmail.com', 'admin.customers.show', '2020-08-24 12:59:23', '2020-08-24 12:59:23'),
(11, '2', 'Service', 'Flu Vacination', 'admin.business-services.edit', '2020-08-24 13:13:49', '2020-08-24 13:13:49'),
(12, '4', 'Customer', 'Bimal Dev', 'admin.customers.show', '2020-08-26 03:45:20', '2020-08-26 03:45:20'),
(13, '4', 'Customer', 'bimaldesigndirect@gmail.com', 'admin.customers.show', '2020-08-26 03:45:20', '2020-08-26 03:45:20'),
(14, '3', 'Location', 'DD,London', 'admin.locations.edit', '2020-08-26 11:55:49', '2020-08-26 11:55:49');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `bookings`
--
ALTER TABLE `bookings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bookings_user_id_foreign` (`user_id`),
  ADD KEY `bookings_coupon_id_foreign` (`coupon_id`),
  ADD KEY `bookings_deal_id_foreign` (`deal_id`);

--
-- Indexes for table `booking_items`
--
ALTER TABLE `booking_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `booking_items_booking_id_foreign` (`booking_id`),
  ADD KEY `booking_items_business_service_id_foreign` (`business_service_id`);

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

--
-- Indexes for table `booking_user`
--
ALTER TABLE `booking_user`
  ADD PRIMARY KEY (`booking_id`,`user_id`),
  ADD KEY `booking_user_user_id_foreign` (`user_id`);

--
-- Indexes for table `business_services`
--
ALTER TABLE `business_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `business_services_category_id_foreign` (`category_id`),
  ADD KEY `business_services_location_id_foreign` (`location_id`);

--
-- Indexes for table `business_service_user`
--
ALTER TABLE `business_service_user`
  ADD PRIMARY KEY (`business_service_id`,`user_id`),
  ADD KEY `business_service_user_user_id_foreign` (`user_id`);

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

--
-- Indexes for table `company_settings`
--
ALTER TABLE `company_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company_settings_currency_id_foreign` (`currency_id`);

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

--
-- Indexes for table `coupon_users`
--
ALTER TABLE `coupon_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `coupon_users_coupon_id_foreign` (`coupon_id`),
  ADD KEY `coupon_users_user_id_foreign` (`user_id`);

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

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

--
-- Indexes for table `deal_items`
--
ALTER TABLE `deal_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `deal_items_deal_id_foreign` (`deal_id`),
  ADD KEY `deal_items_business_service_id_foreign` (`business_service_id`);

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

--
-- Indexes for table `employee_group_services`
--
ALTER TABLE `employee_group_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_group_services_employee_groups_id_foreign` (`employee_groups_id`),
  ADD KEY `employee_group_services_business_service_id_foreign` (`business_service_id`);

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

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

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

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

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

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

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

--
-- Indexes for table `payments`
--
ALTER TABLE `payments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `payments_transaction_id_unique` (`transaction_id`),
  ADD UNIQUE KEY `payments_event_id_unique` (`event_id`),
  ADD KEY `payments_booking_id_foreign` (`booking_id`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_name_unique` (`name`);

--
-- Indexes for table `permission_role`
--
ALTER TABLE `permission_role`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `permission_role_role_id_foreign` (`role_id`);

--
-- Indexes for table `permission_user`
--
ALTER TABLE `permission_user`
  ADD PRIMARY KEY (`user_id`,`permission_id`,`user_type`),
  ADD KEY `permission_user_permission_id_foreign` (`permission_id`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roles_name_unique` (`name`);

--
-- Indexes for table `role_user`
--
ALTER TABLE `role_user`
  ADD PRIMARY KEY (`user_id`,`role_id`,`user_type`),
  ADD KEY `role_user_role_id_foreign` (`role_id`);

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `deals`
--
ALTER TABLE `deals`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `deal_items`
--
ALTER TABLE `deal_items`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

--
-- AUTO_INCREMENT for table `media`
--
ALTER TABLE `media`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

--
-- AUTO_INCREMENT for table `payments`
--
ALTER TABLE `payments`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `bookings`
--
ALTER TABLE `bookings`
  ADD CONSTRAINT `bookings_coupon_id_foreign` FOREIGN KEY (`coupon_id`) REFERENCES `coupons` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bookings_deal_id_foreign` FOREIGN KEY (`deal_id`) REFERENCES `deals` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bookings_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `booking_items`
--
ALTER TABLE `booking_items`
  ADD CONSTRAINT `booking_items_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `booking_items_business_service_id_foreign` FOREIGN KEY (`business_service_id`) REFERENCES `business_services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `booking_user`
--
ALTER TABLE `booking_user`
  ADD CONSTRAINT `booking_user_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `booking_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `business_services`
--
ALTER TABLE `business_services`
  ADD CONSTRAINT `business_services_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `business_services_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `business_service_user`
--
ALTER TABLE `business_service_user`
  ADD CONSTRAINT `business_service_user_business_service_id_foreign` FOREIGN KEY (`business_service_id`) REFERENCES `business_services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `business_service_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `company_settings`
--
ALTER TABLE `company_settings`
  ADD CONSTRAINT `company_settings_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `coupon_users`
--
ALTER TABLE `coupon_users`
  ADD CONSTRAINT `coupon_users_coupon_id_foreign` FOREIGN KEY (`coupon_id`) REFERENCES `coupons` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `coupon_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `deal_items`
--
ALTER TABLE `deal_items`
  ADD CONSTRAINT `deal_items_business_service_id_foreign` FOREIGN KEY (`business_service_id`) REFERENCES `business_services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `deal_items_deal_id_foreign` FOREIGN KEY (`deal_id`) REFERENCES `deals` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `employee_group_services`
--
ALTER TABLE `employee_group_services`
  ADD CONSTRAINT `employee_group_services_business_service_id_foreign` FOREIGN KEY (`business_service_id`) REFERENCES `business_services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `employee_group_services_employee_groups_id_foreign` FOREIGN KEY (`employee_groups_id`) REFERENCES `employee_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `payments`
--
ALTER TABLE `payments`
  ADD CONSTRAINT `payments_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `permission_role`
--
ALTER TABLE `permission_role`
  ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `permission_user`
--
ALTER TABLE `permission_user`
  ADD CONSTRAINT `permission_user_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `role_user`
--
ALTER TABLE `role_user`
  ADD CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

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

