
--
-- Table structure for table `barcodes`
--

CREATE TABLE `barcodes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `width` double(22,4) DEFAULT NULL,
  `height` double(22,4) DEFAULT NULL,
  `paper_width` double(22,4) DEFAULT NULL,
  `paper_height` double(22,4) DEFAULT NULL,
  `top_margin` double(22,4) DEFAULT NULL,
  `left_margin` double(22,4) DEFAULT NULL,
  `row_distance` double(22,4) DEFAULT NULL,
  `col_distance` double(22,4) DEFAULT NULL,
  `stickers_in_one_row` int DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `is_continuous` tinyint(1) NOT NULL DEFAULT '0',
  `stickers_in_one_sheet` int DEFAULT NULL,
  `business_id` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `barcodes_business_id_foreign` (`business_id`),
  CONSTRAINT `barcodes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `barcodes`
--

INSERT INTO `barcodes` VALUES (1,'20 Labels per Sheet','Sheet Size: 8.5\" x 11\", Label Size: 4\" x 1\", Labels per sheet: 20',4.0000,1.0000,8.5000,11.0000,0.5000,0.1250,0.0000,0.1875,2,0,0,20,NULL,'2017-12-18 06:13:44','2017-12-18 06:13:44'),(2,'30 Labels per sheet','Sheet Size: 8.5\" x 11\", Label Size: 2.625\" x 1\", Labels per sheet: 30',2.6250,1.0000,8.5000,11.0000,0.5000,0.1880,0.0000,0.1250,3,0,0,30,NULL,'2017-12-18 06:04:39','2017-12-18 06:10:40'),(3,'32 Labels per sheet','Sheet Size: 8.5\" x 11\", Label Size: 2\" x 1.25\", Labels per sheet: 32',2.0000,1.2500,8.5000,11.0000,0.5000,0.2500,0.0000,0.0000,4,0,0,32,NULL,'2017-12-18 05:55:40','2017-12-18 05:55:40'),(4,'40 Labels per sheet','Sheet Size: 8.5\" x 11\", Label Size: 2\" x 1\", Labels per sheet: 40',2.0000,1.0000,8.5000,11.0000,0.5000,0.2500,0.0000,0.0000,4,0,0,40,NULL,'2017-12-18 05:58:40','2017-12-18 05:58:40'),(5,'50 Labels per Sheet','Sheet Size: 8.5\" x 11\", Label Size: 1.5\" x 1\", Labels per sheet: 50',1.5000,1.0000,8.5000,11.0000,0.5000,0.5000,0.0000,0.0000,5,0,0,50,NULL,'2017-12-18 05:51:10','2017-12-18 05:51:10'),(6,'Continuous Rolls - 31.75mm x 25.4mm','Label Size: 31.75mm x 25.4mm, Gap: 3.18mm',1.2500,1.0000,1.2500,0.0000,0.1250,0.0000,0.1250,0.0000,1,0,1,NULL,NULL,'2017-12-18 05:51:10','2017-12-18 05:51:10');

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

CREATE TABLE `bookings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `contact_id` int unsigned NOT NULL,
  `waiter_id` int unsigned DEFAULT NULL,
  `table_id` int unsigned DEFAULT NULL,
  `correspondent_id` int DEFAULT NULL,
  `business_id` int unsigned NOT NULL,
  `location_id` int unsigned NOT NULL,
  `booking_start` datetime NOT NULL,
  `booking_end` datetime NOT NULL,
  `created_by` int unsigned NOT NULL,
  `booking_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `booking_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `bookings_contact_id_foreign` (`contact_id`),
  KEY `bookings_business_id_foreign` (`business_id`),
  KEY `bookings_created_by_foreign` (`created_by`),
  KEY `bookings_table_id_index` (`table_id`),
  KEY `bookings_waiter_id_index` (`waiter_id`),
  KEY `bookings_location_id_index` (`location_id`),
  KEY `bookings_booking_status_index` (`booking_status`),
  KEY `bookings_correspondent_id_index` (`correspondent_id`),
  CONSTRAINT `bookings_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  CONSTRAINT `bookings_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE,
  CONSTRAINT `bookings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `bookings` VALUES (1,1,NULL,NULL,1,1,1,'2021-09-16 08:53:00','2021-09-17 08:53:00',1,'waiting',NULL,'2021-09-15 13:53:37','2021-09-16 03:45:40'),(2,1,NULL,NULL,1,1,1,'2021-09-17 20:42:00','2021-09-27 20:43:00',1,'booked',NULL,'2021-09-16 01:43:11','2021-09-16 01:43:11'),(3,1,NULL,NULL,11,1,1,'2022-08-22 10:46:00','2022-08-22 10:46:00',1,'booked','test new booking','2022-08-22 10:46:49','2022-08-22 10:46:49'),(4,9,NULL,NULL,NULL,1,1,'2022-11-22 06:22:00','2022-11-23 06:22:00',1,'booked',NULL,'2022-11-22 06:22:54','2022-11-22 06:22:54');

--
-- Table structure for table `brands`
--

CREATE TABLE `brands` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` int unsigned NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `brands_business_id_foreign` (`business_id`),
  KEY `brands_created_by_foreign` (`created_by`),
  CONSTRAINT `brands_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  CONSTRAINT `brands_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=414 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `brands`
--

INSERT INTO `brands` VALUES (1,1,'PC','PC',1,NULL,'2021-10-20 00:44:36','2021-10-20 00:44:36'),(331,1,'AFIA',NULL,1,NULL,'2023-09-02 19:58:18','2023-09-02 19:58:18'),(332,1,'BOUNTY',NULL,1,NULL,'2023-09-02 19:58:18','2023-09-02 19:58:18'),(333,1,'RIZO',NULL,1,NULL,'2023-09-02 19:58:18','2023-09-02 19:58:18'),(334,1,'TOBLRONE',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(335,1,'SNICKERS',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(336,1,'KITKAT',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(337,1,'TWIX',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(338,1,'MALTESERS',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(339,1,'MARS',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(340,1,'DING DONG',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(341,1,'CORN FITS',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(342,1,'LAYS',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(343,1,'FAMILY BACK',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(344,1,'PRINGLES',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(345,1,'EXTRA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(346,1,'FRESHLY',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(347,1,'MAGIC',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(348,1,'FOREST',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(349,1,'HENZ',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(350,1,'TEASHOP',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(351,1,'KDD',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(352,1,'SAUDIA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(353,1,'NESTLE',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(354,1,'SWIZ',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(355,1,'NADA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(356,1,'SAYEED',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(357,1,'TARGET',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(358,1,'HOPIA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(359,1,'ALICAFE',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(360,1,'NESCAFE',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(361,1,'SULTANAH',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(362,1,'ZAMIL',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(363,1,'HANA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(364,1,'PEPSI',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(365,1,'MIRINDA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(366,1,'7UP',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(367,1,'COCO COLA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(368,1,'BISON',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(369,1,'RANI',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(370,1,'TROPICAL',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(371,1,'REDBUL',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(372,1,'MOUSSY',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(373,1,'BARBICAN',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(374,1,'MAKATI',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(375,1,'AXE',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(376,1,'CLEAR',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(377,1,'COLGATE',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(378,1,'HEAD & SHOULDER',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(379,1,'INFINITY',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(380,1,'JERGIN',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(381,1,'DESHI FOOD',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(382,1,'NIVEA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(383,1,'REXONA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(384,1,'PANTEEN',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(385,1,'SUPERMAX',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(386,1,'TARA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(387,1,'SIGNAL',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(388,1,'SENODYNE',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(389,1,'GILLETE',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(390,1,'DABUR',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(391,1,'VATIKA',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(392,1,'VICKES',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(393,1,'TRIO',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(394,1,'FABRIC',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(395,1,'DETTOL',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(396,1,'HERBAL',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(397,1,'PALMALL',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(398,1,'CHESTERFIELD',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(399,1,'WINSTION',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(400,1,'LM',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(401,1,'MALBORO',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(402,1,'GOLD LEAF',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(403,1,'IMITATION',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(404,1,'PANOSONIC',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(405,1,'CIGARETTES',NULL,1,NULL,'2023-09-02 19:58:19','2023-09-02 19:58:19'),(406,1,'PANASONIC',NULL,30,NULL,'2023-09-11 12:31:35','2023-09-11 12:31:35'),(407,1,'Al Ain',NULL,36,NULL,'2023-09-11 16:19:28','2023-09-11 16:19:28'),(408,1,'COLGATE',NULL,30,NULL,'2023-09-11 16:19:58','2023-09-11 16:19:58'),(409,1,'COLGATE',NULL,30,NULL,'2023-09-11 16:22:09','2023-09-11 16:22:09'),(410,1,'COLGATE',NULL,30,NULL,'2023-09-11 16:24:13','2023-09-11 16:24:13'),(411,1,'GILLETTE',NULL,30,NULL,'2023-09-12 10:21:21','2023-09-12 10:21:21'),(412,1,'LIPTON',NULL,30,NULL,'2023-09-13 09:53:37','2023-09-13 09:53:37'),(413,1,'ORAL B',NULL,30,NULL,'2023-09-16 09:48:38','2023-09-16 09:48:38');

--
-- Table structure for table `business`
--

CREATE TABLE `business` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_id` int unsigned NOT NULL,
  `start_date` date DEFAULT NULL,
  `tax_number_1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_label_1` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_number_2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_label_2` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code_label_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code_label_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `default_sales_tax` int unsigned DEFAULT NULL,
  `default_profit_percent` double(5,2) NOT NULL DEFAULT '0.00',
  `owner_id` int unsigned NOT NULL,
  `time_zone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Asia/Kolkata',
  `fy_start_month` tinyint NOT NULL DEFAULT '1',
  `accounting_method` enum('fifo','lifo','avco') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fifo',
  `default_sales_discount` decimal(5,2) DEFAULT NULL,
  `sell_price_tax` enum('includes','excludes') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'includes',
  `logo` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sku_prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `enable_product_expiry` tinyint(1) NOT NULL DEFAULT '0',
  `expiry_type` enum('add_expiry','add_manufacturing') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'add_expiry',
  `on_product_expiry` enum('keep_selling','stop_selling','auto_delete') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'keep_selling',
  `stop_selling_before` int NOT NULL COMMENT 'Stop selling expied item n days before expiry',
  `enable_tooltip` tinyint(1) NOT NULL DEFAULT '1',
  `purchase_in_diff_currency` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Allow purchase to be in different currency then the business currency',
  `purchase_currency_id` int unsigned DEFAULT NULL,
  `p_exchange_rate` decimal(20,3) NOT NULL DEFAULT '1.000',
  `transaction_edit_days` int unsigned NOT NULL DEFAULT '30',
  `stock_expiry_alert_days` int unsigned NOT NULL DEFAULT '30',
  `keyboard_shortcuts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `pos_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `woocommerce_api_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `woocommerce_wh_oc_secret` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `woocommerce_wh_ou_secret` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `woocommerce_wh_od_secret` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `woocommerce_wh_or_secret` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `essentials_settings` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `weighing_scale_setting` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'used to store the configuration of weighing scale',
  `enable_brand` tinyint(1) NOT NULL DEFAULT '1',
  `enable_category` tinyint(1) NOT NULL DEFAULT '1',
  `enable_sub_category` tinyint(1) NOT NULL DEFAULT '1',
  `enable_price_tax` tinyint(1) NOT NULL DEFAULT '1',
  `enable_purchase_status` tinyint(1) DEFAULT '1',
  `enable_lot_number` tinyint(1) NOT NULL DEFAULT '0',
  `default_unit` int DEFAULT NULL,
  `enable_sub_units` tinyint(1) NOT NULL DEFAULT '0',
  `enable_racks` tinyint(1) NOT NULL DEFAULT '0',
  `enable_row` tinyint(1) NOT NULL DEFAULT '0',
  `enable_position` tinyint(1) NOT NULL DEFAULT '0',
  `enable_editing_product_from_purchase` tinyint(1) NOT NULL DEFAULT '1',
  `sales_cmsn_agnt` enum('logged_in_user','user','cmsn_agnt') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `item_addition_method` tinyint(1) NOT NULL DEFAULT '1',
  `enable_inline_tax` tinyint(1) NOT NULL DEFAULT '1',
  `currency_symbol_placement` enum('before','after') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'before',
  `enabled_modules` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `date_format` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'm/d/Y',
  `time_format` enum('12','24') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '24',
  `currency_precision` tinyint NOT NULL DEFAULT '2',
  `quantity_precision` tinyint NOT NULL DEFAULT '2',
  `ref_no_prefixes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `theme_color` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `enable_rp` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `rp_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `amount_for_unit_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
  `min_order_total_for_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
  `max_rp_per_order` int DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `redeem_amount_per_unit_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
  `min_order_total_for_redeem` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
  `min_redeem_point` int DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `max_redeem_point` int DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `rp_expiry_period` int DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `rp_expiry_type` enum('month','year') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'year' COMMENT 'rp is the short form of reward points',
  `email_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `sms_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `custom_labels` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `common_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `business_owner_id_foreign` (`owner_id`),
  KEY `business_currency_id_foreign` (`currency_id`),
  KEY `business_default_sales_tax_foreign` (`default_sales_tax`),
  CONSTRAINT `business_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`),
  CONSTRAINT `business_default_sales_tax_foreign` FOREIGN KEY (`default_sales_tax`) REFERENCES `tax_rates` (`id`),
  CONSTRAINT `business_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `business`
--

INSERT INTO `business` VALUES (1,'Saudi Catering and Contracting Company',101,'2021-01-01','300118775500003','VAT',NULL,NULL,NULL,NULL,NULL,NULL,NULL,20.00,1,'Asia/Riyadh',1,'fifo',0.00,'includes','1661526721_logo_new.png',NULL,0,'add_expiry','keep_selling',0,1,0,NULL,1.000,30,30,'{\"pos\":{\"express_checkout\":\"shift+e\",\"pay_n_ckeckout\":\"shift+p\",\"draft\":\"shift+d\",\"cancel\":\"shift+c\",\"recent_product_quantity\":\"f2\",\"weighing_scale\":null,\"edit_discount\":\"shift+i\",\"edit_order_tax\":\"shift+t\",\"add_payment_row\":\"shift+r\",\"finalize_payment\":\"shift+f\",\"add_new_product\":\"f4\"}}','{\"amount_rounding_method\":null,\"allow_overselling\":\"1\",\"is_pay_term_required\":\"1\",\"cmmsn_calculation_type\":\"invoice_value\",\"razor_pay_key_id\":null,\"razor_pay_key_secret\":null,\"stripe_public_key\":null,\"stripe_secret_key\":null,\"disable_draft\":\"1\",\"disable_express_checkout\":\"1\",\"hide_recent_trans\":\"1\",\"disable_credit_sale_button\":\"1\",\"cash_denominations\":null,\"enable_cash_denomination_on\":\"pos_screen\",\"disable_pay_checkout\":0,\"hide_product_suggestion\":0,\"disable_discount\":0,\"disable_order_tax\":0,\"is_pos_subtotal_editable\":0}',NULL,NULL,NULL,NULL,NULL,'{\"leave_ref_no_prefix\":null,\"leave_instructions\":null,\"payroll_ref_no_prefix\":null,\"essentials_todos_prefix\":null,\"grace_before_checkin\":null,\"grace_after_checkin\":null,\"grace_before_checkout\":null,\"grace_after_checkout\":null,\"allow_users_for_attendance\":1}','{\"label_prefix\":null,\"product_sku_length\":\"4\",\"qty_length\":\"3\",\"qty_length_decimal\":\"2\"}',1,1,1,1,1,0,NULL,1,0,0,0,1,NULL,1,1,'before','[\"purchases\",\"add_sale\",\"pos_sale\",\"stock_transfers\",\"stock_adjustment\",\"expenses\",\"account\",\"tables\",\"modifiers\",\"kitchen\"]','d-m-Y','12',2,2,'{\"purchase\":\"PO\",\"purchase_return\":null,\"purchase_requisition\":null,\"purchase_order\":null,\"stock_transfer\":\"ST\",\"stock_adjustment\":\"SA\",\"sell_return\":\"CN\",\"expense\":\"EP\",\"contacts\":\"CO\",\"purchase_payment\":\"PP\",\"sell_payment\":\"SP\",\"expense_payment\":null,\"business_location\":\"BL\",\"username\":null,\"subscription\":null,\"draft\":null,\"sales_order\":null}','black-light',NULL,0,NULL,1.0000,1.0000,NULL,1.0000,1.0000,NULL,NULL,NULL,'year','{\"mail_driver\":\"smtp\",\"mail_host\":null,\"mail_port\":null,\"mail_username\":null,\"mail_password\":null,\"mail_encryption\":null,\"mail_from_address\":null,\"mail_from_name\":null}','{\"sms_service\":\"other\",\"nexmo_key\":null,\"nexmo_secret\":null,\"nexmo_from\":null,\"twilio_sid\":null,\"twilio_token\":null,\"twilio_from\":null,\"url\":null,\"send_to_param_name\":\"to\",\"msg_param_name\":\"text\",\"request_method\":\"post\",\"header_1\":null,\"header_val_1\":null,\"header_2\":null,\"header_val_2\":null,\"header_3\":null,\"header_val_3\":null,\"param_1\":null,\"param_val_1\":null,\"param_2\":null,\"param_val_2\":null,\"param_3\":null,\"param_val_3\":null,\"param_4\":null,\"param_val_4\":null,\"param_5\":null,\"param_val_5\":null,\"param_6\":null,\"param_val_6\":null,\"param_7\":null,\"param_val_7\":null,\"param_8\":null,\"param_val_8\":null,\"param_9\":null,\"param_val_9\":null,\"param_10\":null,\"param_val_10\":null}','{\"payments\":{\"custom_pay_1\":\"BENIFIT PAY\",\"custom_pay_2\":null,\"custom_pay_3\":null,\"custom_pay_4\":null,\"custom_pay_5\":null,\"custom_pay_6\":null,\"custom_pay_7\":null},\"contact\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null,\"custom_field_6\":null,\"custom_field_7\":null,\"custom_field_8\":null,\"custom_field_9\":null,\"custom_field_10\":null},\"product\":{\"custom_field_1\":\"Arabic Name\",\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"location\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"user\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"purchase\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"purchase_shipping\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null},\"sell\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"shipping\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null},\"types_of_service\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null,\"custom_field_6\":null}}','{\"default_credit_limit\":null,\"default_datatable_page_entries\":\"25\"}',1,'2021-04-12 15:24:42','2023-09-24 16:39:30'),(2,'Cocodip Cafe',141,'2021-01-01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,25.00,10,'Asia/Bahrain',1,'fifo',NULL,'includes',NULL,NULL,0,'add_expiry','keep_selling',0,1,0,NULL,1.000,30,30,'{\"pos\":{\"express_checkout\":\"shift+e\",\"pay_n_ckeckout\":\"shift+p\",\"draft\":\"shift+d\",\"cancel\":\"shift+c\",\"edit_discount\":\"shift+i\",\"edit_order_tax\":\"shift+t\",\"add_payment_row\":\"shift+r\",\"finalize_payment\":\"shift+f\",\"recent_product_quantity\":\"f2\",\"add_new_product\":\"f4\"}}',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',1,1,1,1,1,0,NULL,0,0,0,0,1,NULL,1,0,'before','[\"purchases\",\"add_sale\",\"pos_sale\",\"stock_transfers\",\"stock_adjustment\",\"expenses\"]','m/d/Y','24',2,2,'{\"purchase\":\"PO\",\"stock_transfer\":\"ST\",\"stock_adjustment\":\"SA\",\"sell_return\":\"CN\",\"expense\":\"EP\",\"contacts\":\"CO\",\"purchase_payment\":\"PP\",\"sell_payment\":\"SP\",\"business_location\":\"BL\"}',NULL,1,0,NULL,1.0000,1.0000,NULL,1.0000,1.0000,NULL,NULL,NULL,'year',NULL,NULL,NULL,NULL,1,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(3,'test',141,'2022-01-11',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,25.00,12,'Asia/Riyadh',1,'fifo',NULL,'includes',NULL,NULL,0,'add_expiry','keep_selling',0,1,0,NULL,1.000,30,30,'{\"pos\":{\"express_checkout\":\"shift+e\",\"pay_n_ckeckout\":\"shift+p\",\"draft\":\"shift+d\",\"cancel\":\"shift+c\",\"edit_discount\":\"shift+i\",\"edit_order_tax\":\"shift+t\",\"add_payment_row\":\"shift+r\",\"finalize_payment\":\"shift+f\",\"recent_product_quantity\":\"f2\",\"add_new_product\":\"f4\"}}',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',1,1,1,1,1,0,NULL,0,0,0,0,1,NULL,1,0,'before','[\"purchases\",\"add_sale\",\"pos_sale\",\"stock_transfers\",\"stock_adjustment\",\"expenses\"]','m/d/Y','24',2,2,'{\"purchase\":\"PO\",\"stock_transfer\":\"ST\",\"stock_adjustment\":\"SA\",\"sell_return\":\"CN\",\"expense\":\"EP\",\"contacts\":\"CO\",\"purchase_payment\":\"PP\",\"sell_payment\":\"SP\",\"business_location\":\"BL\"}',NULL,NULL,0,NULL,1.0000,1.0000,NULL,1.0000,1.0000,NULL,NULL,NULL,'year',NULL,NULL,NULL,NULL,1,'2022-01-11 18:53:41','2022-01-11 18:53:41');

--
-- Table structure for table `business_locations`
--

CREATE TABLE `business_locations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int unsigned NOT NULL,
  `location_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `landmark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `state` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `city` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `zip_code` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `invoice_scheme_id` int unsigned NOT NULL,
  `invoice_layout_id` int unsigned NOT NULL,
  `sale_invoice_layout_id` int DEFAULT NULL,
  `selling_price_group_id` int DEFAULT NULL,
  `print_receipt_on_invoice` tinyint(1) DEFAULT '1',
  `receipt_printer_type` enum('browser','printer') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'browser',
  `printer_id` int DEFAULT NULL,
  `mobile` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `alternate_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `website` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `featured_products` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `default_payment_accounts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `custom_field1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `enable_kot` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `business_locations_business_id_index` (`business_id`),
  KEY `business_locations_invoice_scheme_id_foreign` (`invoice_scheme_id`),
  KEY `business_locations_invoice_layout_id_foreign` (`invoice_layout_id`),
  KEY `business_locations_sale_invoice_layout_id_index` (`sale_invoice_layout_id`),
  KEY `business_locations_selling_price_group_id_index` (`selling_price_group_id`),
  KEY `business_locations_receipt_printer_type_index` (`receipt_printer_type`),
  KEY `business_locations_printer_id_index` (`printer_id`),
  CONSTRAINT `business_locations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  CONSTRAINT `business_locations_invoice_layout_id_foreign` FOREIGN KEY (`invoice_layout_id`) REFERENCES `invoice_layouts` (`id`) ON DELETE CASCADE,
  CONSTRAINT `business_locations_invoice_scheme_id_foreign` FOREIGN KEY (`invoice_scheme_id`) REFERENCES `invoice_schemes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `business_locations`
--

INSERT INTO `business_locations` VALUES (1,1,'AD001','location 3','Test','KSA','Riyadh','Riyadh','909090',1,1,1,NULL,1,'printer',4,'7345653421',NULL,'test@adox.comm','www.adoxsolutions.com',NULL,0,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"is_enabled\":\"1\",\"account\":null},\"bank_transfer\":{\"is_enabled\":\"1\",\"account\":null},\"other\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_1\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2021-04-12 15:24:42','2023-07-25 18:11:57',NULL),(2,2,'BL0001','Cocodip Cafe','Budayyia','Bahrain','Manama','Manama','00973',2,2,2,NULL,1,'browser',NULL,'36630006','','','',NULL,1,'{\"cash\":{\"is_enabled\":1,\"account\":null},\"card\":{\"is_enabled\":1,\"account\":null},\"cheque\":{\"is_enabled\":1,\"account\":null},\"bank_transfer\":{\"is_enabled\":1,\"account\":null},\"other\":{\"is_enabled\":1,\"account\":null},\"custom_pay_1\":{\"is_enabled\":1,\"account\":null},\"custom_pay_2\":{\"is_enabled\":1,\"account\":null},\"custom_pay_3\":{\"is_enabled\":1,\"account\":null},\"custom_pay_4\":{\"is_enabled\":1,\"account\":null},\"custom_pay_5\":{\"is_enabled\":1,\"account\":null},\"custom_pay_6\":{\"is_enabled\":1,\"account\":null},\"custom_pay_7\":{\"is_enabled\":1,\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2021-04-18 05:28:38','2021-04-18 05:28:38',NULL),(3,1,'21332','Jacaranda Resturant','demo','Saudi Arabia','riyadh','demo','34641',1,1,1,0,1,'browser',4,NULL,NULL,'demo@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2021-10-05 14:00:34','2023-09-24 09:26:23',0),(4,3,'BL0001','test','test','India','Kerala','calicut','673522',3,3,3,NULL,1,'browser',NULL,'8997975','','','',NULL,1,'{\"cash\":{\"is_enabled\":1,\"account\":null},\"card\":{\"is_enabled\":1,\"account\":null},\"cheque\":{\"is_enabled\":1,\"account\":null},\"bank_transfer\":{\"is_enabled\":1,\"account\":null},\"other\":{\"is_enabled\":1,\"account\":null},\"custom_pay_1\":{\"is_enabled\":1,\"account\":null},\"custom_pay_2\":{\"is_enabled\":1,\"account\":null},\"custom_pay_3\":{\"is_enabled\":1,\"account\":null},\"custom_pay_4\":{\"is_enabled\":1,\"account\":null},\"custom_pay_5\":{\"is_enabled\":1,\"account\":null},\"custom_pay_6\":{\"is_enabled\":1,\"account\":null},\"custom_pay_7\":{\"is_enabled\":1,\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2022-01-11 18:53:41','2022-01-11 18:53:41',NULL),(5,1,'98424sdasd','restaurant 3','near juma masjid','India','Kerala','calicut','673522',1,1,1,0,1,'browser',NULL,'9090900',NULL,'supermarket@gmail.com',NULL,NULL,0,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"is_enabled\":\"1\",\"account\":null},\"bank_transfer\":{\"is_enabled\":\"1\",\"account\":null},\"other\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_1\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_2\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-04-05 05:43:46','2023-05-02 03:22:40',NULL),(6,1,'43298das','supermarket','near juma masjid','India','Kerala','calicut','673522',1,1,1,0,1,'browser',NULL,'9090900',NULL,'supermarket@gmail.com',NULL,NULL,0,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-04-05 05:43:52','2023-09-02 13:00:50',NULL),(7,1,'BL0005','Shaheen Restaurant','Shaeen','Saudi Arabia','Riyadh','Riyadh','12211',1,1,1,0,1,'browser',NULL,NULL,NULL,'denver@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-07-17 09:01:24','2023-09-24 10:31:15',0),(8,1,'BL0006','SBA Test Store 1','2340 Zaid Ibn Thabit, Al Malaz, 7994','Kingdom of Saudi Arabia','Riyadh','Riyadh','12831',1,1,4,0,1,'browser',NULL,NULL,NULL,'a.razak@gc-arabia.com','sba.co',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-08-10 10:47:57','2023-09-24 12:37:34',1),(9,1,'BL0007','SBA Test Store 2','2340 Zaid Ibn Thabit, Al Malaz, 7994,','Kingdom of Saudi Arabia','Riyadh','Riyadh','12831',1,1,1,0,1,'browser',NULL,NULL,NULL,'a.razak@gc-arabia.com',NULL,NULL,0,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"is_enabled\":\"1\",\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-08-10 10:49:13','2023-09-02 13:00:53',NULL),(10,1,'BL0008','SBA Test Resturant','2340 Zaid Ibn Thabit, Al Malaz, 7994,','Kingdom of Saudi Arabia','Dammam','Dammam','12461',1,1,1,0,1,'browser',NULL,NULL,NULL,'a.razak@gc-arabia.com',NULL,NULL,0,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"is_enabled\":\"1\",\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-08-10 10:50:06','2023-09-02 13:00:57',NULL),(11,1,'324364','Kingpin Resturant','Kingpin','Saudi Arabia','Dammam','Al Khobar','34741',1,1,1,0,1,'browser',NULL,'0138698100',NULL,'demo@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-08-22 10:40:10','2023-09-06 20:30:29',NULL),(12,1,'BL0010','Banyan Resturant',NULL,'demo','demo','demo','demo',1,1,1,0,1,'browser',NULL,NULL,NULL,'demo@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-08-28 10:23:38','2023-09-06 20:28:56',NULL),(13,1,'BL0011','Aramco Haradh Camp',NULL,'Kingdom of Saudi Arabia','Riyadh','Haradh','36969',1,1,4,5,1,'browser',NULL,NULL,NULL,NULL,'saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-09-02 14:09:04','2023-09-24 11:39:33',0),(14,1,'BL0012','Aramco Al Hawtah Camp','Hawtah','Kingdom of Saudi Arabia','Hawtah','Hawtah','12345',1,1,4,6,1,'browser',NULL,NULL,NULL,'hawtha@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-09-02 16:31:19','2023-09-24 11:38:29',0),(15,1,'BL0013','Mazalij','MAZALIJ','Kingdom of Saudi Arabia','MAZALIJ','MAZALIJ','213134',1,1,4,8,1,'browser',NULL,NULL,NULL,'MAZAJIJ@SAUDICATERING.NET','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-09-02 19:21:15','2023-09-24 11:38:01',0),(16,1,'BL0014','Khamis Mushayt','KHAMIS','Kingdom of Saudi Arabia','KHAMIS','KHAMIS','213412',1,1,4,9,1,'browser',NULL,NULL,NULL,'baekhamis@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-09-02 19:28:16','2023-09-24 11:43:16',0),(17,1,'BL0015','Saudi Comedat, Arar','Comedat','Kingdom of Saudi Arabia','Comedat','Comedat','12343',1,1,4,10,1,'browser',NULL,NULL,NULL,'comedat@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-09-02 19:39:34','2023-09-24 11:43:38',0),(18,1,'BL0016','BAE SAHARA RESTURANT','Sahara resturant','Kingdom of Saudi Arabia','SAHARA','SAHARA','13212',1,1,1,NULL,1,'browser',NULL,NULL,NULL,'sahara@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-09-02 20:01:46','2023-09-11 15:02:38',NULL),(19,1,'BL0017','TPDMU Canteen','TPDMU','Kingdom of Saudi Arabia','TPDMU','TPDMU','12343',1,1,1,NULL,1,'browser',NULL,NULL,NULL,'TPDMU@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"is_enabled\":\"1\",\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-09-02 20:18:56','2023-09-02 20:18:56',NULL),(20,1,'BL0018','IHV Shop, Taif','IHV Commissary','Kingdom of Saudi Arabia','IHV Commissary','IHV Commissary','23141',1,1,4,7,1,'browser',NULL,NULL,NULL,'sahara@saudicatering.net','saudicatering.net',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"account\":null},\"bank_transfer\":{\"account\":null},\"other\":{\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2023-09-04 19:43:16','2023-09-24 11:43:02',0);

--
-- Table structure for table `cash_denominations`
--

CREATE TABLE `cash_denominations` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `amount` decimal(22,4) NOT NULL,
  `total_count` int NOT NULL,
  `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cash_denominations_model_type_model_id_index` (`model_type`,`model_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cash_denominations`
--


--
-- Table structure for table `cash_register_transactions`
--

CREATE TABLE `cash_register_transactions` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `cash_register_id` int unsigned NOT NULL,
  `amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `pay_method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` enum('debit','credit') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `transaction_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cash_register_transactions_cash_register_id_foreign` (`cash_register_id`),
  KEY `cash_register_transactions_transaction_id_index` (`transaction_id`),
  KEY `cash_register_transactions_type_index` (`type`),
  KEY `cash_register_transactions_transaction_type_index` (`transaction_type`),
  CONSTRAINT `cash_register_transactions_cash_register_id_foreign` FOREIGN KEY (`cash_register_id`) REFERENCES `cash_registers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=768 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cash_register_transactions`
--

INSERT INTO `cash_register_transactions` VALUES (1,1,3000.0000,'cash','credit','initial',NULL,'2021-04-12 17:02:27','2021-04-12 17:02:27'),(2,1,8.5000,'cash','credit','sell',560,'2021-09-15 20:36:04','2021-09-15 20:36:04'),(3,1,14.0000,'cash','credit','sell',561,'2021-09-16 01:35:58','2021-09-16 01:35:58'),(4,1,44.5000,'cash','credit','sell',562,'2021-09-16 01:36:52','2021-09-16 01:36:52'),(5,1,7.0000,'cash','credit','sell',563,'2021-09-16 01:59:04','2021-09-16 01:59:04'),(6,1,1000.0000,'cash','credit','sell',564,'2021-09-16 05:49:00','2021-09-16 05:49:00'),(7,1,100.0000,'cash','credit','sell',565,'2021-09-16 05:52:00','2021-09-16 05:52:00'),(8,1,1000.0000,'cheque','credit','sell',565,'2021-09-16 05:52:00','2021-09-16 05:52:00'),(9,1,3510.5000,'cash','credit','sell',566,'2021-09-16 06:00:33','2021-09-16 06:00:33'),(10,1,3507.0000,'cash','credit','sell',567,'2021-09-16 14:18:05','2021-09-16 14:18:05'),(11,1,1000.0000,'card','credit','sell',568,'2021-09-16 14:19:20','2021-09-16 14:19:20'),(12,1,500.0000,'cash','credit','sell',568,'2021-09-16 14:19:20','2021-09-16 14:19:20'),(13,1,3.5000,'cash','credit','sell',569,'2021-10-05 14:03:45','2021-10-05 14:03:45'),(14,1,10.5000,'cash','credit','sell',571,'2021-10-05 23:45:33','2021-10-05 23:45:33'),(15,1,35.5000,'cash','credit','sell',572,'2021-10-05 23:52:28','2021-10-05 23:52:28'),(23,1,10.0000,'cash','debit','expense',622,'2022-08-22 10:06:57','2022-08-22 10:06:57'),(24,1,50.0000,'cash','debit','expense',623,'2022-08-22 10:08:04','2022-08-22 10:08:04'),(25,3,1000.0000,'cash','credit','initial',NULL,'2022-08-22 10:09:12','2022-08-22 10:09:12'),(28,3,400.0000,'cheque','debit','expense',626,'2022-08-22 10:12:53','2022-08-22 10:12:53'),(33,4,1000.0000,'cash','credit','initial',NULL,'2022-08-22 15:56:07','2022-08-22 15:56:07'),(42,5,1000.0000,'cash','credit','initial',NULL,'2023-05-08 03:31:34','2023-05-08 03:31:34'),(44,6,500.0000,'cash','credit','initial',NULL,'2023-05-08 03:42:10','2023-05-08 03:42:10'),(59,7,1000.0000,'cash','credit','initial',NULL,'2023-06-13 10:57:24','2023-06-13 10:57:24'),(67,8,1000.0000,'cash','credit','initial',NULL,'2023-06-14 08:24:58','2023-06-14 08:24:58'),(92,9,10.0000,'cash','credit','initial',NULL,'2023-07-17 09:17:18','2023-07-17 09:17:18'),(93,10,100.0000,'cash','credit','initial',NULL,'2023-07-19 12:29:55','2023-07-19 12:29:55'),(94,11,1000.0000,'cash','credit','initial',NULL,'2023-07-20 12:10:14','2023-07-20 12:10:14'),(155,12,1200.0000,'cash','credit','initial',NULL,'2023-07-29 09:18:15','2023-07-29 09:18:15'),(156,13,1200.0000,'cash','credit','initial',NULL,'2023-07-29 09:32:29','2023-07-29 09:32:29'),(158,14,500.0000,'cash','credit','initial',NULL,'2023-07-29 09:36:37','2023-07-29 09:36:37'),(163,15,1200.0000,'cash','credit','initial',NULL,'2023-07-29 11:09:36','2023-07-29 11:09:36'),(165,16,2350.0000,'cash','credit','initial',NULL,'2023-07-29 11:25:28','2023-07-29 11:25:28'),(166,17,1200.0000,'cash','credit','initial',NULL,'2023-07-29 11:27:28','2023-07-29 11:27:28'),(174,18,2000.0000,'cash','credit','initial',NULL,'2023-08-05 21:09:06','2023-08-05 21:09:06'),(185,19,1200.0000,'cash','credit','initial',NULL,'2023-08-06 08:45:21','2023-08-06 08:45:21'),(186,20,1200.0000,'cash','credit','initial',NULL,'2023-08-06 08:45:45','2023-08-06 08:45:45'),(189,21,2000.0000,'cash','credit','initial',NULL,'2023-08-06 08:55:14','2023-08-06 08:55:14'),(194,22,2000.0000,'cash','credit','initial',NULL,'2023-08-06 09:41:12','2023-08-06 09:41:12'),(198,23,2000.0000,'cash','credit','initial',NULL,'2023-08-09 16:32:51','2023-08-09 16:32:51'),(199,24,2000.0000,'cash','credit','initial',NULL,'2023-08-09 16:44:39','2023-08-09 16:44:39'),(202,25,1000.0000,'cash','credit','initial',NULL,'2023-08-09 16:48:54','2023-08-09 16:48:54'),(209,26,1300.0000,'cash','credit','initial',NULL,'2023-08-12 09:27:50','2023-08-12 09:27:50'),(217,28,500.0000,'cash','credit','initial',NULL,'2023-08-12 09:32:46','2023-08-12 09:32:46'),(218,29,1000.0000,'cash','credit','initial',NULL,'2023-08-12 09:46:03','2023-08-12 09:46:03'),(222,30,1000.0000,'cash','credit','initial',NULL,'2023-08-12 09:52:07','2023-08-12 09:52:07'),(237,33,1124.0000,'cash','credit','initial',NULL,'2023-08-13 09:37:59','2023-08-13 09:37:59'),(238,34,1000.0000,'cash','credit','initial',NULL,'2023-08-13 09:38:48','2023-08-13 09:38:48'),(241,35,1000.0000,'cash','credit','initial',NULL,'2023-08-13 11:00:04','2023-08-13 11:00:04'),(248,36,2000.0000,'cash','credit','initial',NULL,'2023-08-13 11:46:30','2023-08-13 11:46:30'),(249,37,3000.0000,'cash','credit','initial',NULL,'2023-08-14 09:23:01','2023-08-14 09:23:01'),(267,38,2000.0000,'cash','credit','initial',NULL,'2023-08-15 17:05:42','2023-08-15 17:05:42'),(280,39,2000.0000,'cash','credit','initial',NULL,'2023-08-19 15:46:10','2023-08-19 15:46:10'),(296,40,2000.0000,'cash','credit','initial',NULL,'2023-08-20 21:01:33','2023-08-20 21:01:33'),(300,41,500.0000,'cash','credit','initial',NULL,'2023-08-26 09:44:10','2023-08-26 09:44:10'),(306,42,2000.0000,'cash','credit','initial',NULL,'2023-09-02 12:13:33','2023-09-02 12:13:33'),(307,43,2000.0000,'cash','credit','initial',NULL,'2023-09-02 15:40:23','2023-09-02 15:40:23'),(311,44,2000.0000,'cash','credit','initial',NULL,'2023-09-02 15:58:32','2023-09-02 15:58:32'),(318,45,2232.0000,'cash','credit','initial',NULL,'2023-09-02 16:18:40','2023-09-02 16:18:40'),(320,46,435252.0000,'cash','credit','initial',NULL,'2023-09-02 16:19:11','2023-09-02 16:19:11'),(326,44,6.0000,'cash','credit','sell',1846,'2023-09-02 18:42:58','2023-09-02 18:42:58'),(327,44,51.0000,'card','credit','sell',1847,'2023-09-02 18:53:09','2023-09-02 18:53:09'),(328,44,12.0000,'card','credit','sell',1848,'2023-09-02 18:55:02','2023-09-02 18:55:02'),(329,44,19.0000,'cash','credit','sell',1849,'2023-09-02 18:55:31','2023-09-02 18:55:31'),(330,46,2.0000,'cash','credit','sell',1850,'2023-09-03 14:23:53','2023-09-03 14:23:53'),(331,46,4.0000,'card','credit','sell',1851,'2023-09-03 14:24:28','2023-09-03 14:24:28'),(332,46,23.0000,'card','credit','sell',1852,'2023-09-03 14:25:56','2023-09-03 14:25:56'),(333,47,2000.0000,'cash','credit','initial',NULL,'2023-09-03 14:41:43','2023-09-03 14:41:43'),(334,47,30.0000,'cash','credit','sell',1854,'2023-09-03 14:43:48','2023-09-03 14:43:48'),(335,47,-1.0000,'cash','credit','sell',1854,'2023-09-03 14:43:48','2023-09-03 14:43:48'),(336,47,1.0000,'cash','credit','sell',1855,'2023-09-03 14:44:36','2023-09-03 14:44:36'),(337,47,40.0000,'cash','credit','sell',1856,'2023-09-03 14:45:04','2023-09-03 14:45:04'),(338,47,18.0000,'card','credit','sell',1858,'2023-09-03 14:49:20','2023-09-03 14:49:20'),(339,47,20.0000,'cash','credit','sell',1859,'2023-09-03 14:50:16','2023-09-03 14:50:16'),(340,47,26.0000,'card','credit','sell',1859,'2023-09-03 14:50:16','2023-09-03 14:50:16'),(341,47,4.0000,'cash','credit','sell',1860,'2023-09-03 14:52:04','2023-09-03 14:52:04'),(342,47,16.0000,'cash','credit','sell',1863,'2023-09-05 09:19:23','2023-09-05 09:19:23'),(343,48,100.0000,'cash','credit','initial',NULL,'2023-09-05 09:21:44','2023-09-05 09:21:44'),(344,48,37.0000,'cash','credit','sell',1864,'2023-09-05 09:21:54','2023-09-05 09:21:54'),(345,48,24.0000,'cash','credit','sell',1866,'2023-09-05 16:09:15','2023-09-05 16:09:15'),(346,48,5.0000,'cash','credit','sell',1867,'2023-09-05 19:50:34','2023-09-05 19:50:34'),(347,48,13.0000,'cash','credit','sell',1868,'2023-09-06 08:44:03','2023-09-06 08:44:03'),(348,48,3.0000,'cash','credit','sell',1869,'2023-09-06 08:47:00','2023-09-06 08:47:00'),(349,48,16.0000,'cash','credit','sell',1870,'2023-09-06 08:52:02','2023-09-06 08:52:02'),(350,48,1.0000,'cash','credit','sell',1871,'2023-09-06 08:52:42','2023-09-06 08:52:42'),(351,48,1.0000,'cash','credit','sell',1872,'2023-09-06 08:54:19','2023-09-06 08:54:19'),(352,49,100.0000,'cash','credit','initial',NULL,'2023-09-06 09:23:53','2023-09-06 09:23:53'),(353,49,17.0000,'cash','credit','sell',1873,'2023-09-06 09:24:10','2023-09-06 09:24:10'),(354,49,4.0000,'cash','credit','sell',1877,'2023-09-06 10:48:46','2023-09-06 10:48:46'),(355,49,3.0000,'cash','credit','sell',1880,'2023-09-06 10:49:45','2023-09-06 10:49:45'),(356,49,2.0000,'cash','credit','sell',1895,'2023-09-06 14:00:43','2023-09-06 14:00:43'),(357,49,3.0000,'cash','credit','sell',1898,'2023-09-07 08:22:04','2023-09-07 08:22:04'),(358,50,100.0000,'cash','credit','initial',NULL,'2023-09-09 13:41:36','2023-09-09 13:41:36'),(359,50,62.0000,'cheque','credit','sell',1900,'2023-09-09 13:51:06','2023-09-09 13:51:06'),(360,44,15.0000,'card','credit','sell',1905,'2023-09-09 15:35:27','2023-09-09 15:35:27'),(361,44,8.0000,'cash','credit','sell',1906,'2023-09-09 15:38:25','2023-09-09 15:38:25'),(362,53,230.0000,'cash','credit','sell',1908,'2023-09-09 18:38:22','2023-09-09 18:38:22'),(363,53,14.0000,'card','credit','sell',1909,'2023-09-09 18:39:48','2023-09-09 18:39:48'),(364,53,35.0000,'cash','credit','sell',1910,'2023-09-09 18:42:42','2023-09-09 18:42:42'),(365,54,3.0000,'cash','credit','sell',1911,'2023-09-10 09:48:32','2023-09-10 09:48:32'),(366,54,3.0000,'cash','credit','sell',1912,'2023-09-10 09:50:40','2023-09-10 09:50:40'),(367,55,20.0100,'cash','credit','sell',1914,'2023-09-11 09:16:27','2023-09-11 09:16:27'),(368,55,50.9400,'cash','credit','sell',1916,'2023-09-11 09:26:46','2023-09-11 09:26:46'),(369,55,96.1600,'cash','credit','sell',1917,'2023-09-11 09:40:56','2023-09-11 09:40:56'),(370,55,40.0200,'cash','credit','sell',1918,'2023-09-11 09:41:16','2023-09-11 09:41:16'),(371,55,33.0000,'cash','credit','sell',1921,'2023-09-11 09:53:53','2023-09-11 09:53:53'),(372,55,5.0000,'cash','credit','sell',1922,'2023-09-11 10:01:17','2023-09-11 10:01:17'),(373,53,104.0000,'cash','credit','sell',1923,'2023-09-11 11:05:54','2023-09-11 11:05:54'),(374,55,5.0000,'cash','credit','sell',1924,'2023-09-11 11:16:08','2023-09-11 11:16:08'),(375,55,30.0000,'cash','credit','sell',1925,'2023-09-11 11:19:24','2023-09-11 11:19:24'),(376,55,18.0000,'cash','credit','sell',1926,'2023-09-11 14:24:59','2023-09-11 14:24:59'),(377,55,48.0000,'cash','credit','sell',1927,'2023-09-11 14:53:12','2023-09-11 14:53:12'),(378,55,122.0000,'cash','credit','sell',1928,'2023-09-11 14:55:30','2023-09-11 14:55:30'),(379,56,100.0000,'cash','credit','initial',NULL,'2023-09-11 14:56:13','2023-09-11 14:56:13'),(380,56,60.0400,'cash','credit','sell',1929,'2023-09-11 14:56:20','2023-09-11 14:56:20'),(381,56,15.0000,'cash','credit','sell',1930,'2023-09-11 14:59:39','2023-09-11 14:59:39'),(382,56,11.0000,'cash','credit','sell',1931,'2023-09-11 15:00:20','2023-09-11 15:00:20'),(383,56,-1.0000,'cash','credit','sell',1931,'2023-09-11 15:00:20','2023-09-11 15:00:20'),(384,50,141.0400,'cash','credit','sell',1932,'2023-09-11 15:03:00','2023-09-11 15:03:00'),(385,50,7.8400,'cash','credit','sell',1933,'2023-09-11 15:03:42','2023-09-11 15:03:42'),(386,50,13.7000,'cash','credit','sell',1934,'2023-09-11 15:04:11','2023-09-11 15:04:11'),(387,54,78.4000,'cash','credit','sell',1935,'2023-09-11 15:08:47','2023-09-11 15:08:47'),(388,50,2.0000,'cash','credit','sell',1936,'2023-09-11 15:08:50','2023-09-11 15:08:50'),(389,56,5.0000,'cash','credit','sell',1937,'2023-09-11 15:09:09','2023-09-11 15:09:09'),(390,50,2.0000,'cash','credit','sell',1938,'2023-09-11 15:09:53','2023-09-11 15:09:53'),(391,44,4.6000,'cash','credit','sell',1939,'2023-09-11 15:11:08','2023-09-11 15:11:08'),(392,53,24.0300,'cash','credit','sell',1940,'2023-09-11 15:11:28','2023-09-11 15:11:28'),(393,54,1.2000,'cash','credit','sell',1941,'2023-09-11 15:12:20','2023-09-11 15:12:20'),(394,56,20.0000,'cash','credit','sell',1942,'2023-09-11 15:13:18','2023-09-11 15:13:18'),(395,52,14.8000,'cash','credit','sell',1943,'2023-09-11 15:13:21','2023-09-11 15:13:21'),(396,52,24.4000,'cash','credit','sell',1944,'2023-09-11 15:13:49','2023-09-11 15:13:49'),(397,50,4.0000,'cash','credit','sell',1945,'2023-09-11 15:14:05','2023-09-11 15:14:05'),(398,56,25.0000,'cash','credit','sell',1946,'2023-09-11 15:14:26','2023-09-11 15:14:26'),(399,53,30.0000,'cash','credit','sell',1947,'2023-09-11 15:15:11','2023-09-11 15:15:11'),(400,54,1.4000,'cash','credit','sell',1948,'2023-09-11 15:15:43','2023-09-11 15:15:43'),(401,52,5.0000,'cash','credit','sell',1949,'2023-09-11 15:16:13','2023-09-11 15:16:13'),(402,57,3000.0000,'cash','credit','initial',NULL,'2023-09-11 15:24:20','2023-09-11 15:24:20'),(403,57,87.0000,'cash','credit','sell',1950,'2023-09-11 15:24:29','2023-09-11 15:24:29'),(404,56,20.0000,'cash','credit','sell',1951,'2023-09-11 15:29:14','2023-09-11 15:29:14'),(405,56,50.0000,'cash','credit','sell',1952,'2023-09-12 09:41:12','2023-09-12 09:41:12'),(406,56,-50.0000,'cash','credit','sell',1952,'2023-09-12 09:41:12','2023-09-12 09:41:12'),(407,50,4.7800,'cash','credit','sell',1953,'2023-09-12 16:17:57','2023-09-12 16:17:57'),(408,50,3.4600,'cash','credit','sell',1954,'2023-09-12 16:37:00','2023-09-12 16:37:00'),(409,56,15.0000,'cash','credit','sell',1958,'2023-09-13 08:39:11','2023-09-13 08:39:11'),(410,56,10.0000,'cash','credit','sell',1964,'2023-09-13 08:43:48','2023-09-13 08:43:48'),(411,56,12.0000,'cash','credit','sell',1964,'2023-09-13 08:43:48','2023-09-13 08:43:48'),(412,56,5.0000,'cash','credit','sell',1966,'2023-09-13 08:45:08','2023-09-13 08:45:08'),(413,56,53.0000,'cash','credit','sell',1969,'2023-09-13 10:55:54','2023-09-13 10:55:54'),(414,58,1000.0000,'cash','credit','initial',NULL,'2023-09-13 14:42:46','2023-09-13 14:42:46'),(415,58,12.5000,'card','credit','sell',1970,'2023-09-13 14:44:38','2023-09-13 14:44:38'),(416,58,13.5000,'cash','credit','sell',1971,'2023-09-13 14:48:25','2023-09-13 14:48:25'),(422,53,25.3900,'cash','credit','sell',1980,'2023-09-17 10:11:42','2023-09-17 10:11:42'),(423,60,100.0000,'cash','credit','initial',NULL,'2023-09-17 10:21:54','2023-09-17 10:21:54'),(424,50,1.9200,'cash','credit','sell',1981,'2023-09-17 10:28:36','2023-09-17 10:28:36'),(425,61,1000.0000,'cash','credit','initial',NULL,'2023-09-17 10:30:16','2023-09-17 10:30:16'),(426,62,2000.0000,'cash','credit','initial',NULL,'2023-09-17 10:41:53','2023-09-17 10:41:53'),(427,62,4.7800,'cash','credit','sell',1982,'2023-09-17 10:42:01','2023-09-17 10:42:01'),(428,63,2000.0000,'cash','credit','initial',NULL,'2023-09-17 10:49:51','2023-09-17 10:49:51'),(429,61,4.0300,'cash','credit','sell',1985,'2023-09-17 12:26:12','2023-09-17 12:26:12'),(430,53,2.0100,'cash','credit','sell',1986,'2023-09-17 13:20:05','2023-09-17 13:20:05'),(431,53,37.9500,'cash','credit','sell',1987,'2023-09-17 13:41:02','2023-09-17 13:41:02'),(432,53,13.8000,'card','credit','sell',1988,'2023-09-17 14:37:48','2023-09-17 14:37:48'),(433,53,21.1500,'cash','credit','sell',1989,'2023-09-17 14:38:23','2023-09-17 14:38:23'),(434,53,58.0800,'card','credit','sell',1991,'2023-09-17 14:38:59','2023-09-17 14:38:59'),(435,61,37.9500,'cash','credit','sell',1992,'2023-09-17 15:45:28','2023-09-17 15:45:28'),(436,61,37.9500,'cash','credit','sell',1993,'2023-09-17 15:46:05','2023-09-17 15:46:05'),(437,61,37.9500,'cash','credit','sell',1994,'2023-09-17 15:50:08','2023-09-17 15:50:08'),(438,61,3.4500,'cash','credit','sell',1999,'2023-09-17 16:11:33','2023-09-17 16:11:33'),(439,64,37.9500,'cash','credit','sell',2000,'2023-09-17 16:13:32','2023-09-17 16:13:32'),(440,64,1.1500,'cash','credit','sell',2001,'2023-09-17 16:15:50','2023-09-17 16:15:50'),(441,65,1000.0000,'cash','credit','initial',NULL,'2023-09-18 10:21:20','2023-09-18 10:21:20'),(442,66,100.0000,'cash','credit','initial',NULL,'2023-09-18 10:24:57','2023-09-18 10:24:57'),(443,67,10.0000,'cash','credit','initial',NULL,'2023-09-18 10:33:19','2023-09-18 10:33:19'),(444,67,27.6000,'cash','credit','sell',2004,'2023-09-18 10:33:29','2023-09-18 10:33:29'),(445,67,3.1700,'cash','credit','sell',2005,'2023-09-18 10:39:26','2023-09-18 10:39:26'),(446,67,2.7600,'cash','credit','sell',2006,'2023-09-18 10:52:57','2023-09-18 10:52:57'),(447,67,8.2800,'cash','credit','sell',2007,'2023-09-18 10:53:25','2023-09-18 10:53:25'),(448,67,2.7600,'cash','credit','sell',2008,'2023-09-18 10:53:51','2023-09-18 10:53:51'),(449,68,2000.0000,'cash','credit','initial',NULL,'2023-09-18 11:36:09','2023-09-18 11:36:09'),(450,56,41.0000,'cash','credit','sell',2009,'2023-09-18 13:27:12','2023-09-18 13:27:12'),(451,69,1000.0000,'cash','credit','initial',NULL,'2023-09-18 13:38:47','2023-09-18 13:38:47'),(452,70,10.0000,'cash','credit','initial',NULL,'2023-09-18 14:28:02','2023-09-18 14:28:02'),(453,70,2.7600,'cash','credit','sell',2011,'2023-09-18 14:28:08','2023-09-18 14:28:08'),(454,70,2.7600,'cash','credit','sell',2012,'2023-09-18 14:33:59','2023-09-18 14:33:59'),(455,70,2.7600,'cash','credit','sell',2013,'2023-09-18 14:34:30','2023-09-18 14:34:30'),(456,70,2.7600,'cash','credit','sell',2014,'2023-09-18 15:41:39','2023-09-18 15:41:39'),(457,70,30.3600,'cash','credit','sell',2015,'2023-09-18 15:43:12','2023-09-18 15:43:12'),(458,70,30.3600,'cash','credit','sell',2016,'2023-09-18 15:47:49','2023-09-18 15:47:49'),(459,70,30.3600,'cash','credit','sell',2017,'2023-09-18 15:51:03','2023-09-18 15:51:03'),(460,70,2.7600,'cash','credit','sell',2018,'2023-09-18 15:52:02','2023-09-18 15:52:02'),(461,68,3.2900,'cash','credit','sell',2019,'2023-09-18 16:57:10','2023-09-18 16:57:10'),(462,68,1.1500,'card','credit','sell',2020,'2023-09-18 16:57:43','2023-09-18 16:57:43'),(463,70,34.9100,'cash','credit','sell',2023,'2023-09-18 21:53:07','2023-09-18 21:53:07'),(464,70,49.4500,'cash','credit','sell',2024,'2023-09-18 21:54:45','2023-09-18 21:54:45'),(465,71,1000.0000,'cash','credit','initial',NULL,'2023-09-18 23:04:00','2023-09-18 23:04:00'),(466,72,100.0000,'cash','credit','initial',NULL,'2023-09-18 23:07:04','2023-09-18 23:07:04'),(467,72,42.5000,'cash','credit','sell',2025,'2023-09-18 23:07:52','2023-09-18 23:07:52'),(468,73,1000.0000,'cash','credit','initial',NULL,'2023-09-18 23:10:48','2023-09-18 23:10:48'),(469,73,28.9000,'cash','credit','sell',2026,'2023-09-18 23:11:50','2023-09-18 23:11:50'),(470,73,6.5500,'cash','credit','sell',2021,'2023-09-18 23:12:17','2023-09-18 23:12:17'),(471,74,122.0000,'cash','credit','initial',NULL,'2023-09-18 23:24:35','2023-09-18 23:24:35'),(472,75,12121.0000,'cash','credit','initial',NULL,'2023-09-18 23:34:19','2023-09-18 23:34:19'),(473,76,10.0000,'cash','credit','initial',NULL,'2023-09-19 07:38:13','2023-09-19 07:38:13'),(477,76,57.9600,'cash','credit','sell',2032,'2023-09-19 08:48:46','2023-09-19 08:48:46'),(478,77,6.2000,'cash','credit','sell',2033,'2023-09-19 09:16:48','2023-09-19 09:16:48'),(479,77,3.4500,'card','credit','sell',2035,'2023-09-19 09:29:06','2023-09-19 09:29:06'),(480,76,30.3600,'cash','credit','sell',2038,'2023-09-19 11:41:33','2023-09-19 11:41:33'),(481,76,30.3600,'cash','credit','sell',2039,'2023-09-19 11:42:21','2023-09-19 11:42:21'),(482,76,30.3600,'cash','credit','sell',2040,'2023-09-19 11:43:07','2023-09-19 11:43:07'),(483,76,30.3600,'cash','credit','sell',2041,'2023-09-19 11:51:48','2023-09-19 11:51:48'),(484,76,2.7600,'cash','credit','sell',2042,'2023-09-19 11:53:10','2023-09-19 11:53:10'),(485,76,30.3600,'cash','credit','sell',2043,'2023-09-19 11:56:00','2023-09-19 11:56:00'),(486,76,30.3600,'cash','credit','sell',2044,'2023-09-19 12:00:58','2023-09-19 12:00:58'),(487,76,30.3600,'cash','credit','sell',2045,'2023-09-19 12:12:45','2023-09-19 12:12:45'),(488,76,30.3600,'cash','credit','sell',2046,'2023-09-19 12:17:05','2023-09-19 12:17:05'),(489,77,1.7500,'cash','credit','sell',2047,'2023-09-19 13:20:48','2023-09-19 13:20:48'),(490,77,1.7500,'cash','credit','sell',2048,'2023-09-19 13:24:29','2023-09-19 13:24:29'),(491,76,30.3600,'cash','credit','sell',2049,'2023-09-19 14:10:34','2023-09-19 14:10:34'),(492,76,176.6400,'cash','credit','sell',2050,'2023-09-19 14:29:10','2023-09-19 14:29:10'),(493,76,30.3600,'cash','credit','sell',2051,'2023-09-19 14:29:28','2023-09-19 14:29:28'),(494,76,30.3600,'cash','credit','sell',2052,'2023-09-19 14:30:02','2023-09-19 14:30:02'),(495,76,30.3600,'cash','credit','sell',2053,'2023-09-19 14:30:47','2023-09-19 14:30:47'),(496,76,30.3600,'cash','credit','sell',2054,'2023-09-19 14:31:06','2023-09-19 14:31:06'),(497,76,30.3600,'cash','credit','sell',2055,'2023-09-19 14:33:28','2023-09-19 14:33:28'),(498,80,1000.0000,'cash','credit','initial',NULL,'2023-09-19 14:55:26','2023-09-19 14:55:26'),(499,81,1000.0000,'cash','credit','initial',NULL,'2023-09-19 14:56:11','2023-09-19 14:56:11'),(500,82,100.0000,'cash','credit','initial',NULL,'2023-09-19 14:59:31','2023-09-19 14:59:31'),(501,83,1000.0000,'cash','credit','initial',NULL,'2023-09-19 15:00:45','2023-09-19 15:00:45'),(502,84,1000.0000,'cash','credit','initial',NULL,'2023-09-19 15:01:21','2023-09-19 15:01:21'),(503,85,1000.0000,'cash','credit','initial',NULL,'2023-09-19 15:02:15','2023-09-19 15:02:15'),(504,86,1000.0000,'cash','credit','initial',NULL,'2023-09-19 15:04:48','2023-09-19 15:04:48'),(505,87,1000.0000,'cash','credit','initial',NULL,'2023-09-19 15:07:08','2023-09-19 15:07:08'),(506,88,100.0000,'cash','credit','initial',NULL,'2023-09-19 15:17:34','2023-09-19 15:17:34'),(507,87,52.1500,'cash','credit','sell',2056,'2023-09-19 15:18:49','2023-09-19 15:18:49'),(508,87,32.6000,'cash','credit','sell',2057,'2023-09-19 15:24:18','2023-09-19 15:24:18'),(509,87,32.6000,'cash','credit','sell',2058,'2023-09-19 15:26:04','2023-09-19 15:26:04'),(510,87,11.7500,'cash','credit','sell',2059,'2023-09-19 15:40:23','2023-09-19 15:40:23'),(511,89,343124.0000,'cash','credit','initial',NULL,'2023-09-19 15:40:44','2023-09-19 15:40:44'),(512,89,33.1200,'cash','credit','sell',2060,'2023-09-19 15:40:51','2023-09-19 15:40:51'),(514,90,10.0000,'cash','credit','initial',NULL,'2023-09-19 15:54:11','2023-09-19 15:54:11'),(516,91,6.0400,'cash','credit','sell',2063,'2023-09-19 16:08:27','2023-09-19 16:08:27'),(517,91,2.8800,'cash','credit','sell',2064,'2023-09-19 16:16:38','2023-09-19 16:16:38'),(518,93,30.0000,'cash','credit','sell',2067,'2023-09-20 12:21:57','2023-09-20 12:21:57'),(519,93,5.0000,'cash','credit','sell',1972,'2023-09-20 12:23:16','2023-09-20 12:23:16'),(520,93,30.0000,'cash','credit','sell',1968,'2023-09-20 12:24:15','2023-09-20 12:24:15'),(521,93,49.0000,'card','credit','sell',1968,'2023-09-20 12:24:15','2023-09-20 12:24:15'),(522,93,20.0000,'cash','credit','sell',2068,'2023-09-20 12:26:25','2023-09-20 12:26:25'),(523,93,20.0000,'card','credit','sell',2068,'2023-09-20 12:26:25','2023-09-20 12:26:25'),(524,93,30.0000,'cash','credit','sell',2069,'2023-09-20 12:59:36','2023-09-20 12:59:36'),(525,93,48.0000,'card','credit','sell',2069,'2023-09-20 12:59:36','2023-09-20 12:59:36'),(526,94,37.9500,'cash','credit','sell',2070,'2023-09-20 13:38:42','2023-09-20 13:38:42'),(529,95,2000.0000,'cash','credit','initial',NULL,'2023-09-20 14:33:00','2023-09-20 14:33:00'),(530,95,10.0000,'card','credit','sell',2027,'2023-09-20 14:50:40','2023-09-20 14:50:40'),(531,95,60.9500,'cash','credit','sell',2022,'2023-09-20 14:51:46','2023-09-20 14:51:46'),(532,95,1.7300,'cash','credit','sell',2028,'2023-09-20 14:52:09','2023-09-20 14:52:09'),(533,96,100.0000,'cash','credit','initial',NULL,'2023-09-20 18:30:57','2023-09-20 18:30:57'),(534,96,12.5000,'cash','credit','sell',2075,'2023-09-20 18:34:42','2023-09-20 18:34:42'),(535,96,4.0000,'cash','credit','sell',2076,'2023-09-20 18:35:34','2023-09-20 18:35:34'),(536,96,9.5000,'card','credit','sell',2079,'2023-09-20 19:27:30','2023-09-20 19:27:30'),(537,95,3.7500,'card','credit','sell',2080,'2023-09-20 19:51:44','2023-09-20 19:51:44'),(538,97,200.0000,'cash','credit','initial',NULL,'2023-09-20 20:29:14','2023-09-20 20:29:14'),(539,97,19.0000,'cash','credit','sell',2081,'2023-09-20 20:50:55','2023-09-20 20:50:55'),(540,97,30.5000,'card','credit','sell',2082,'2023-09-20 20:51:25','2023-09-20 20:51:25'),(541,97,63.0000,'card','credit','sell',2083,'2023-09-20 21:05:20','2023-09-20 21:05:20'),(542,98,200.0000,'cash','credit','initial',NULL,'2023-09-20 21:09:11','2023-09-20 21:09:11'),(545,99,500.0000,'cash','credit','initial',NULL,'2023-09-21 10:11:39','2023-09-21 10:11:39'),(546,100,1000.0000,'cash','credit','initial',NULL,'2023-09-21 11:49:22','2023-09-21 11:49:22'),(547,100,3.0000,'card','credit','sell',2087,'2023-09-21 11:50:09','2023-09-21 11:50:09'),(548,100,9.5000,'cash','credit','sell',2088,'2023-09-21 11:51:46','2023-09-21 11:51:46'),(549,100,10.5000,'cash','credit','sell',2089,'2023-09-21 11:54:18','2023-09-21 11:54:18'),(550,100,6.0000,'card','credit','sell',2090,'2023-09-21 12:00:22','2023-09-21 12:00:22'),(551,100,27.0000,'cash','credit','sell',2091,'2023-09-21 12:04:12','2023-09-21 12:04:12'),(552,102,22.2000,'card','credit','sell',2092,'2023-09-21 13:17:24','2023-09-21 13:17:24'),(553,102,10.0000,'cash','credit','sell',2092,'2023-09-21 13:17:24','2023-09-21 13:17:24'),(556,102,38.0000,'cash','credit','sell',2099,'2023-09-21 16:19:03','2023-09-21 16:19:03'),(557,102,10.0000,'cash','credit','sell',2100,'2023-09-21 16:27:06','2023-09-21 16:27:06'),(558,102,-1.9500,'cash','credit','sell',2100,'2023-09-21 16:27:06','2023-09-21 16:27:06'),(559,104,1000.0000,'cash','credit','initial',NULL,'2023-09-21 18:30:52','2023-09-21 18:30:52'),(560,104,130.5000,'cash','credit','sell',2101,'2023-09-21 18:34:33','2023-09-21 18:34:33'),(561,104,10.0000,'cash','credit','sell',2103,'2023-09-21 18:39:48','2023-09-21 18:39:48'),(562,104,7.5000,'card','credit','sell',2103,'2023-09-21 18:39:48','2023-09-21 18:39:48'),(563,105,100.0000,'cash','credit','initial',NULL,'2023-09-21 18:41:50','2023-09-21 18:41:50'),(564,106,1000.0000,'cash','credit','initial',NULL,'2023-09-21 18:52:29','2023-09-21 18:52:29'),(565,106,16.5000,'cash','credit','sell',2102,'2023-09-21 19:05:37','2023-09-21 19:05:37'),(566,106,10.0000,'cash','credit','sell',2104,'2023-09-21 19:18:06','2023-09-21 19:18:06'),(567,106,10.5000,'cash','credit','sell',2105,'2023-09-21 19:18:20','2023-09-21 19:18:20'),(568,106,8.0000,'cash','credit','sell',2106,'2023-09-21 19:18:31','2023-09-21 19:18:31'),(569,106,6.0000,'cash','credit','sell',2107,'2023-09-21 19:18:42','2023-09-21 19:18:42'),(570,107,100.0000,'cash','credit','initial',NULL,'2023-09-22 16:04:16','2023-09-22 16:04:16'),(571,107,10.0000,'card','credit','sell',2108,'2023-09-22 16:07:20','2023-09-22 16:07:20'),(572,107,16.0000,'card','credit','sell',2109,'2023-09-22 16:09:34','2023-09-22 16:09:34'),(573,107,13.0000,'card','credit','sell',2110,'2023-09-22 16:11:12','2023-09-22 16:11:12'),(574,107,17.5000,'card','credit','sell',2111,'2023-09-22 16:15:43','2023-09-22 16:15:43'),(575,107,27.0000,'cash','credit','sell',2112,'2023-09-22 16:17:20','2023-09-22 16:17:20'),(576,107,12.0000,'cash','credit','sell',2113,'2023-09-22 16:18:45','2023-09-22 16:18:45'),(577,107,120.0000,'card','credit','sell',2114,'2023-09-22 16:20:27','2023-09-22 16:20:27'),(578,107,35.5000,'cash','credit','sell',2115,'2023-09-22 16:20:56','2023-09-22 16:20:56'),(579,107,16.5000,'card','credit','sell',2116,'2023-09-22 16:37:00','2023-09-22 16:37:00'),(580,107,7.0000,'cash','credit','sell',2117,'2023-09-22 16:39:02','2023-09-22 16:39:02'),(581,93,38.0000,'cash','credit','sell',2118,'2023-09-23 10:03:57','2023-09-23 10:03:57'),(582,109,172.0000,'cash','credit','sell',2119,'2023-09-23 10:05:13','2023-09-23 10:05:13'),(583,110,1000.0000,'cash','credit','initial',NULL,'2023-09-23 11:18:59','2023-09-23 11:18:59'),(584,111,1000.0000,'cash','credit','initial',NULL,'2023-09-23 11:31:02','2023-09-23 11:31:02'),(586,112,2000.0000,'cash','credit','initial',NULL,'2023-09-23 11:35:31','2023-09-23 11:35:31'),(587,91,92.0000,'cash','credit','sell',2122,'2023-09-23 11:50:52','2023-09-23 11:50:52'),(588,91,101.2000,'cash','credit','sell',2123,'2023-09-23 11:51:47','2023-09-23 11:51:47'),(589,91,82.8000,'cash','credit','sell',2124,'2023-09-23 11:53:02','2023-09-23 11:53:02'),(590,91,88.5500,'card','credit','sell',2125,'2023-09-23 11:53:50','2023-09-23 11:53:50'),(591,91,62.1000,'card','credit','sell',2126,'2023-09-23 11:54:21','2023-09-23 11:54:21'),(592,91,110.4000,'card','credit','sell',2128,'2023-09-23 11:59:45','2023-09-23 11:59:45'),(593,113,100.0000,'cash','credit','initial',NULL,'2023-09-23 12:00:04','2023-09-23 12:00:04'),(597,91,104.6500,'cash','credit','sell',2132,'2023-09-23 12:20:50','2023-09-23 12:20:50'),(598,91,66.7000,'cash','credit','sell',2133,'2023-09-23 12:21:11','2023-09-23 12:21:11'),(599,91,118.4500,'cash','credit','sell',2134,'2023-09-23 12:21:31','2023-09-23 12:21:31'),(600,109,15.0000,'cash','credit','sell',2135,'2023-09-23 12:42:03','2023-09-23 12:42:03'),(601,109,5.0000,'cash','credit','sell',2136,'2023-09-23 12:43:16','2023-09-23 12:43:16'),(602,114,212.0000,'cash','credit','sell',2137,'2023-09-23 12:47:38','2023-09-23 12:47:38'),(603,114,45.0000,'cash','credit','sell',2138,'2023-09-23 12:48:14','2023-09-23 12:48:14'),(604,116,100.0000,'cash','credit','initial',NULL,'2023-09-23 12:56:35','2023-09-23 12:56:35'),(605,115,10.0000,'cash','credit','sell',1959,'2023-09-23 13:17:25','2023-09-23 13:17:25'),(606,116,23.0000,'cash','credit','sell',2143,'2023-09-23 15:56:31','2023-09-23 15:56:31'),(607,116,20.0000,'card','credit','sell',2144,'2023-09-23 15:57:38','2023-09-23 15:57:38'),(608,116,21.5000,'card','credit','sell',2145,'2023-09-23 16:12:56','2023-09-23 16:12:56'),(609,116,19.5000,'cash','credit','sell',2146,'2023-09-23 16:38:21','2023-09-23 16:38:21'),(610,116,13.0000,'cash','credit','sell',2147,'2023-09-23 16:39:00','2023-09-23 16:39:00'),(611,116,25.5000,'cash','credit','sell',2148,'2023-09-23 16:39:47','2023-09-23 16:39:47'),(612,116,14.0000,'cash','credit','sell',2149,'2023-09-23 17:30:15','2023-09-23 17:30:15'),(613,116,15.0000,'cash','credit','sell',2150,'2023-09-23 17:30:35','2023-09-23 17:30:35'),(614,116,22.5000,'card','credit','sell',2151,'2023-09-23 18:23:09','2023-09-23 18:23:09'),(615,116,18.5000,'cash','credit','sell',2152,'2023-09-23 18:23:37','2023-09-23 18:23:37'),(616,116,9.5000,'card','credit','sell',2153,'2023-09-23 18:24:07','2023-09-23 18:24:07'),(617,116,15.5000,'cash','credit','sell',2154,'2023-09-23 18:25:11','2023-09-23 18:25:11'),(618,116,270.0000,'card','credit','sell',2155,'2023-09-23 18:37:52','2023-09-23 18:37:52'),(619,99,12.0000,'card','credit','sell',2158,'2023-09-24 08:58:24','2023-09-24 08:58:24'),(620,119,100.0000,'cash','credit','initial',NULL,'2023-09-24 11:35:24','2023-09-24 11:35:24'),(622,120,2000.0000,'cash','credit','initial',NULL,'2023-09-24 12:01:48','2023-09-24 12:01:48'),(623,120,11.0400,'cash','credit','sell',2164,'2023-09-24 12:04:48','2023-09-24 12:04:48'),(624,120,5.5200,'cash','credit','sell',2165,'2023-09-24 12:17:05','2023-09-24 12:17:05'),(625,120,11.0400,'cash','credit','sell',2166,'2023-09-24 12:22:19','2023-09-24 12:22:19'),(626,120,8.2800,'cash','credit','sell',2167,'2023-09-24 12:28:09','2023-09-24 12:28:09'),(627,120,5.5200,'cash','credit','sell',2168,'2023-09-24 12:29:39','2023-09-24 12:29:39'),(628,120,2.7600,'cash','credit','sell',2169,'2023-09-24 12:30:41','2023-09-24 12:30:41'),(629,121,10.0000,'cash','credit','initial',NULL,'2023-09-24 12:31:49','2023-09-24 12:31:49'),(630,121,2.7600,'cash','credit','sell',2170,'2023-09-24 12:31:56','2023-09-24 12:31:56'),(631,122,1000.0000,'cash','credit','initial',NULL,'2023-09-24 12:32:07','2023-09-24 12:32:07'),(632,122,2.7600,'cash','credit','sell',2171,'2023-09-24 12:32:35','2023-09-24 12:32:35'),(633,123,1000.0000,'cash','credit','initial',NULL,'2023-09-24 12:33:48','2023-09-24 12:33:48'),(634,123,8.2800,'cash','credit','sell',2172,'2023-09-24 12:34:02','2023-09-24 12:34:02'),(635,124,1000.0000,'cash','credit','initial',NULL,'2023-09-24 12:34:53','2023-09-24 12:34:53'),(636,121,2.7600,'cash','credit','sell',2173,'2023-09-24 12:35:19','2023-09-24 12:35:19'),(637,125,1000.0000,'cash','credit','initial',NULL,'2023-09-24 12:35:40','2023-09-24 12:35:40'),(638,125,5.5200,'cash','credit','sell',2174,'2023-09-24 12:35:51','2023-09-24 12:35:51'),(639,121,2.7600,'cash','credit','sell',2175,'2023-09-24 12:36:06','2023-09-24 12:36:06'),(640,121,2.7600,'cash','credit','sell',2176,'2023-09-24 12:38:17','2023-09-24 12:38:17'),(641,126,100.0000,'cash','credit','initial',NULL,'2023-09-24 12:48:33','2023-09-24 12:48:33'),(642,126,8.2800,'cash','credit','sell',2177,'2023-09-24 12:48:44','2023-09-24 12:48:44'),(643,127,100.0000,'cash','credit','initial',NULL,'2023-09-24 12:53:17','2023-09-24 12:53:17'),(644,127,2.7600,'cash','credit','sell',2178,'2023-09-24 12:53:27','2023-09-24 12:53:27'),(645,127,2.7600,'cash','credit','sell',2179,'2023-09-24 12:53:48','2023-09-24 12:53:48'),(646,128,100.0000,'cash','credit','initial',NULL,'2023-09-24 12:54:00','2023-09-24 12:54:00'),(647,128,2.7600,'cash','credit','sell',2180,'2023-09-24 12:54:07','2023-09-24 12:54:07'),(648,128,2.7600,'cash','credit','sell',2181,'2023-09-24 12:54:18','2023-09-24 12:54:18'),(649,128,8.2800,'cash','credit','sell',2182,'2023-09-24 12:54:50','2023-09-24 12:54:50'),(650,128,5.5200,'cash','credit','sell',2183,'2023-09-24 12:55:37','2023-09-24 12:55:37'),(651,128,8.2800,'cash','credit','sell',2184,'2023-09-24 12:56:51','2023-09-24 12:56:51'),(652,128,5.5200,'cash','credit','sell',2185,'2023-09-24 12:58:00','2023-09-24 12:58:00'),(653,127,8.2800,'cash','credit','sell',2186,'2023-09-24 12:58:44','2023-09-24 12:58:44'),(654,127,5.5200,'cash','credit','sell',2187,'2023-09-24 13:01:37','2023-09-24 13:01:37'),(655,128,2.7600,'cash','credit','sell',2188,'2023-09-24 13:03:01','2023-09-24 13:03:01'),(656,129,1.0000,'cash','credit','initial',NULL,'2023-09-24 13:13:01','2023-09-24 13:13:01'),(657,129,2.7600,'cash','credit','sell',2189,'2023-09-24 13:13:08','2023-09-24 13:13:08'),(658,130,100.0000,'cash','credit','initial',NULL,'2023-09-24 13:16:32','2023-09-24 13:16:32'),(659,130,8.2800,'cash','credit','sell',2190,'2023-09-24 13:16:41','2023-09-24 13:16:41'),(660,130,8.2800,'cash','credit','sell',2191,'2023-09-24 13:16:59','2023-09-24 13:16:59'),(661,130,11.0400,'cash','credit','sell',2192,'2023-09-24 13:17:48','2023-09-24 13:17:48'),(662,130,5.5200,'cash','credit','sell',2193,'2023-09-24 13:23:21','2023-09-24 13:23:21'),(663,119,20.5000,'cash','credit','sell',2194,'2023-09-24 14:10:56','2023-09-24 14:10:56'),(664,119,24.0000,'card','credit','sell',2195,'2023-09-24 14:11:16','2023-09-24 14:11:16'),(665,112,10.9500,'cash','credit','sell',2074,'2023-09-24 16:05:31','2023-09-24 16:05:31'),(666,112,36.8900,'cash','credit','sell',2196,'2023-09-24 16:09:26','2023-09-24 16:09:26'),(667,101,16.1000,'cash','credit','sell',2197,'2023-09-24 16:30:08','2023-09-24 16:30:08'),(668,132,24.1500,'cash','credit','sell',2198,'2023-09-24 16:32:31','2023-09-24 16:32:31'),(669,117,5.1700,'cash','credit','sell',2200,'2023-09-24 18:33:39','2023-09-24 18:33:39'),(670,117,5.1700,'cash','credit','sell',2201,'2023-09-24 18:34:10','2023-09-24 18:34:10'),(671,117,91.0000,'cash','credit','sell',2202,'2023-09-24 18:35:03','2023-09-24 18:35:03'),(672,134,100.0000,'cash','credit','initial',NULL,'2023-09-24 19:15:09','2023-09-24 19:15:09'),(673,134,2.7600,'cash','credit','sell',2203,'2023-09-24 19:17:41','2023-09-24 19:17:41'),(674,134,5.5200,'cash','credit','sell',2204,'2023-09-24 19:19:11','2023-09-24 19:19:11'),(675,134,2.7600,'cash','credit','sell',2205,'2023-09-24 19:31:51','2023-09-24 19:31:51'),(676,134,2.7600,'cash','credit','sell',2206,'2023-09-24 19:33:53','2023-09-24 19:33:53'),(677,134,2.7600,'cash','credit','sell',2207,'2023-09-24 19:34:54','2023-09-24 19:34:54'),(678,134,5.5200,'cash','credit','sell',2208,'2023-09-24 19:36:14','2023-09-24 19:36:14'),(679,134,5.5200,'cash','credit','sell',2209,'2023-09-24 19:37:34','2023-09-24 19:37:34'),(680,134,5.5200,'cash','credit','sell',2210,'2023-09-24 19:39:02','2023-09-24 19:39:02'),(681,134,2.7600,'cash','credit','sell',2211,'2023-09-24 19:44:50','2023-09-24 19:44:50'),(682,134,2.7600,'cash','credit','sell',2212,'2023-09-24 19:46:50','2023-09-24 19:46:50'),(683,134,2.7600,'cash','credit','sell',2213,'2023-09-24 19:47:55','2023-09-24 19:47:55'),(684,134,2.7600,'cash','credit','sell',2214,'2023-09-24 19:49:30','2023-09-24 19:49:30'),(685,134,2.7600,'cash','credit','sell',2215,'2023-09-24 19:54:19','2023-09-24 19:54:19'),(686,134,5.5200,'cash','credit','sell',2216,'2023-09-24 19:55:12','2023-09-24 19:55:12'),(687,134,2.7600,'cash','credit','sell',2217,'2023-09-24 19:57:51','2023-09-24 19:57:51'),(688,134,2.7600,'cash','credit','sell',2218,'2023-09-24 19:58:56','2023-09-24 19:58:56'),(689,134,2.7600,'cash','credit','sell',2219,'2023-09-24 20:02:03','2023-09-24 20:02:03'),(690,134,2.7600,'cash','credit','sell',2220,'2023-09-24 20:05:51','2023-09-24 20:05:51'),(691,134,5.5200,'cash','credit','sell',2221,'2023-09-24 20:06:35','2023-09-24 20:06:35'),(692,134,2.7600,'cash','credit','sell',2222,'2023-09-24 20:07:48','2023-09-24 20:07:48'),(693,134,2.7600,'cash','credit','sell',2223,'2023-09-24 20:09:27','2023-09-24 20:09:27'),(694,134,5.5200,'cash','credit','sell',2224,'2023-09-24 20:10:47','2023-09-24 20:10:47'),(695,134,2.7600,'cash','credit','sell',2225,'2023-09-24 20:11:33','2023-09-24 20:11:33'),(696,134,5.5200,'cash','credit','sell',2226,'2023-09-24 20:12:22','2023-09-24 20:12:22'),(697,134,2.7600,'cash','credit','sell',2227,'2023-09-24 20:55:58','2023-09-24 20:55:58'),(698,135,11.7500,'cash','credit','sell',2228,'2023-09-24 22:21:22','2023-09-24 22:21:22'),(699,134,2.7600,'cash','credit','sell',2229,'2023-09-24 22:25:35','2023-09-24 22:25:35'),(700,134,2.7600,'cash','credit','sell',2230,'2023-09-24 23:10:24','2023-09-24 23:10:24'),(701,134,2.7600,'cash','credit','sell',2231,'2023-09-24 23:11:19','2023-09-24 23:11:19'),(702,134,2.7600,'cash','credit','sell',2232,'2023-09-24 23:12:50','2023-09-24 23:12:50'),(703,134,5.5200,'cash','credit','sell',2233,'2023-09-24 23:14:08','2023-09-24 23:14:08'),(704,134,2.7600,'cash','credit','sell',2234,'2023-09-24 23:15:20','2023-09-24 23:15:20'),(705,134,2.7600,'cash','credit','sell',2235,'2023-09-24 23:17:19','2023-09-24 23:17:19'),(706,134,2.7600,'cash','credit','sell',2236,'2023-09-24 23:18:13','2023-09-24 23:18:13'),(707,134,2.7600,'cash','credit','sell',2237,'2023-09-24 23:18:53','2023-09-24 23:18:53'),(708,134,2.7600,'cash','credit','sell',2238,'2023-09-24 23:19:36','2023-09-24 23:19:36'),(709,134,2.7600,'cash','credit','sell',2239,'2023-09-24 23:20:31','2023-09-24 23:20:31'),(710,134,5.5200,'cash','credit','sell',2240,'2023-09-24 23:21:43','2023-09-24 23:21:43'),(711,134,2.7600,'cash','credit','sell',2241,'2023-09-24 23:24:06','2023-09-24 23:24:06'),(712,134,5.5200,'cash','credit','sell',2242,'2023-09-24 23:24:29','2023-09-24 23:24:29'),(713,134,19.3200,'cash','credit','sell',2243,'2023-09-24 23:25:04','2023-09-24 23:25:04'),(714,134,22.0800,'cash','credit','sell',2244,'2023-09-24 23:25:26','2023-09-24 23:25:26'),(715,134,13.8000,'cash','credit','sell',2245,'2023-09-24 23:25:40','2023-09-24 23:25:40'),(716,134,5.5200,'cash','credit','sell',2246,'2023-09-24 23:27:50','2023-09-24 23:27:50'),(717,134,2.7600,'cash','credit','sell',2247,'2023-09-24 23:46:30','2023-09-24 23:46:30'),(718,137,13.2000,'cash','credit','sell',2302,'2023-09-25 09:11:46','2023-09-25 09:11:46'),(719,138,1816.7400,'cash','credit','initial',NULL,'2023-09-25 09:14:44','2023-09-25 09:14:44'),(720,134,2.7600,'cash','credit','sell',2303,'2023-09-25 09:19:11','2023-09-25 09:19:11'),(721,134,2.7600,'cash','credit','sell',2304,'2023-09-25 09:19:58','2023-09-25 09:19:58'),(722,134,2.7600,'cash','credit','sell',2305,'2023-09-25 09:20:41','2023-09-25 09:20:41'),(723,91,37.9500,'cash','credit','sell',2306,'2023-09-25 09:21:11','2023-09-25 09:21:11'),(724,91,37.9500,'cash','credit','sell',2307,'2023-09-25 09:22:14','2023-09-25 09:22:14'),(725,130,8.2800,'cash','credit','sell',2308,'2023-09-25 10:04:40','2023-09-25 10:04:40'),(726,139,100.0000,'cash','credit','initial',NULL,'2023-09-25 10:05:12','2023-09-25 10:05:12'),(727,139,8.2800,'cash','credit','sell',2309,'2023-09-25 10:05:27','2023-09-25 10:05:27'),(728,139,5.5200,'cash','credit','sell',2310,'2023-09-25 10:06:24','2023-09-25 10:06:24'),(729,139,5.5200,'cash','credit','sell',2311,'2023-09-25 10:08:17','2023-09-25 10:08:17'),(730,140,1000.0000,'cash','credit','initial',NULL,'2023-09-25 10:08:56','2023-09-25 10:08:56'),(731,140,8.2800,'cash','credit','sell',2312,'2023-09-25 10:09:02','2023-09-25 10:09:02'),(732,141,1000.0000,'cash','credit','initial',NULL,'2023-09-25 10:10:07','2023-09-25 10:10:07'),(733,141,8.2800,'cash','credit','sell',2313,'2023-09-25 10:10:14','2023-09-25 10:10:14'),(734,134,5.5200,'cash','credit','sell',2314,'2023-09-25 10:10:50','2023-09-25 10:10:50'),(735,137,9.1500,'cash','credit','sell',2315,'2023-09-25 10:12:06','2023-09-25 10:12:06'),(736,141,8.2800,'cash','credit','sell',2316,'2023-09-25 10:12:49','2023-09-25 10:12:49'),(737,141,8.2800,'cash','credit','sell',2317,'2023-09-25 10:30:33','2023-09-25 10:30:33'),(738,119,100.0000,'cash','credit','sell',2318,'2023-09-25 10:45:39','2023-09-25 10:45:39'),(739,119,-64.0000,'cash','credit','sell',2318,'2023-09-25 10:45:39','2023-09-25 10:45:39'),(740,119,46.0000,'card','credit','sell',2319,'2023-09-25 11:15:48','2023-09-25 11:15:48'),(741,141,5.5200,'cash','credit','sell',2320,'2023-09-25 11:35:14','2023-09-25 11:35:14'),(742,119,6.0000,'card','credit','sell',2321,'2023-09-25 12:38:07','2023-09-25 12:38:07'),(743,119,9.0000,'cash','credit','sell',2322,'2023-09-25 12:39:32','2023-09-25 12:39:32'),(744,119,8.0000,'cash','credit','sell',2323,'2023-09-25 12:41:51','2023-09-25 12:41:51'),(745,142,1000.0000,'cash','credit','initial',NULL,'2023-09-25 12:45:45','2023-09-25 12:45:45'),(746,143,1500.0000,'cash','credit','initial',NULL,'2023-09-25 13:35:10','2023-09-25 13:35:10'),(747,143,28.0000,'cash','credit','sell',2324,'2023-09-25 13:36:01','2023-09-25 13:36:01'),(748,144,1500.0000,'cash','credit','initial',NULL,'2023-09-25 13:39:13','2023-09-25 13:39:13'),(749,144,66.0000,'cash','credit','sell',2325,'2023-09-25 13:44:12','2023-09-25 13:44:12'),(750,145,214.0000,'cash','credit','sell',2326,'2023-09-25 13:51:45','2023-09-25 13:51:45'),(751,146,500.0000,'cash','credit','initial',NULL,'2023-09-25 13:55:23','2023-09-25 13:55:23'),(752,146,393.0000,'cash','credit','sell',2327,'2023-09-25 13:55:38','2023-09-25 13:55:38'),(753,147,500.0000,'cash','credit','initial',NULL,'2023-09-25 14:03:56','2023-09-25 14:03:56'),(754,147,66.0000,'cash','credit','sell',2328,'2023-09-25 14:04:13','2023-09-25 14:04:13'),(755,147,124.0000,'cash','credit','sell',2329,'2023-09-25 14:04:37','2023-09-25 14:04:37'),(756,147,26.0000,'cash','credit','sell',2330,'2023-09-25 14:04:54','2023-09-25 14:04:54'),(757,148,500.0000,'cash','credit','initial',NULL,'2023-09-25 14:16:55','2023-09-25 14:16:55'),(758,149,100.0000,'cash','credit','initial',NULL,'2023-09-25 14:26:45','2023-09-25 14:26:45'),(759,150,10.0000,'cash','credit','initial',NULL,'2023-09-25 15:06:56','2023-09-25 15:06:56'),(760,150,39.1000,'cash','credit','sell',2333,'2023-09-25 15:11:09','2023-09-25 15:11:09'),(761,149,7.5000,'cash','credit','sell',2334,'2023-09-25 15:11:33','2023-09-25 15:11:33'),(762,138,69.2500,'card','credit','sell',2335,'2023-09-25 15:13:19','2023-09-25 15:13:19'),(763,150,39.1000,'cash','credit','sell',2336,'2023-09-25 15:14:31','2023-09-25 15:14:31'),(764,150,2.7600,'cash','credit','sell',2337,'2023-09-25 15:15:01','2023-09-25 15:15:01'),(765,150,39.1000,'cash','credit','sell',2338,'2023-09-25 15:15:15','2023-09-25 15:15:15'),(766,150,39.1000,'cash','credit','sell',2339,'2023-09-25 15:17:25','2023-09-25 15:17:25'),(767,150,39.1000,'cash','credit','sell',2340,'2023-09-25 15:17:59','2023-09-25 15:17:59');

--
-- Table structure for table `cash_registers`
--

CREATE TABLE `cash_registers` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int unsigned NOT NULL,
  `location_id` int DEFAULT NULL,
  `user_id` int unsigned DEFAULT NULL,
  `status` enum('close','open') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open',
  `closed_at` datetime DEFAULT NULL,
  `closing_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `total_card_slips` int NOT NULL DEFAULT '0',
  `total_cheques` int NOT NULL DEFAULT '0',
  `denominations` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `closing_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cash_registers_business_id_foreign` (`business_id`),
  KEY `cash_registers_user_id_foreign` (`user_id`),
  KEY `cash_registers_location_id_index` (`location_id`),
  CONSTRAINT `cash_registers_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  CONSTRAINT `cash_registers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=151 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cash_registers`
--

INSERT INTO `cash_registers` VALUES (1,1,1,1,'close','2022-08-22 10:08:58',11799.5000,1,1,NULL,NULL,'2021-04-12 17:02:00','2022-08-22 10:08:58'),(2,2,2,10,'open',NULL,0.0000,0,0,NULL,NULL,'2021-04-20 19:32:00','2021-04-20 19:32:45'),(3,1,1,1,'close','2022-08-22 10:28:06',1060.0000,1,1,NULL,NULL,'2022-08-22 10:09:00','2022-08-22 10:28:06'),(4,1,1,1,'close','2023-06-10 10:31:20',1130.1700,0,0,NULL,NULL,'2022-08-22 15:56:00','2023-06-10 10:31:20'),(5,1,6,14,'close','2023-05-08 09:11:51',1091.2200,0,0,NULL,NULL,'2023-05-08 03:31:00','2023-05-08 03:41:51'),(6,1,6,14,'close','2023-09-19 00:03:02',500.0000,0,0,NULL,NULL,'2023-05-08 03:42:00','2023-09-19 00:03:02'),(7,1,3,1,'close','2023-07-29 09:16:56',3739.2400,4,0,NULL,NULL,'2023-06-13 10:57:00','2023-07-29 09:16:56'),(8,1,3,15,'close','2023-09-19 00:03:09',1000.0000,0,0,NULL,NULL,'2023-06-14 08:24:00','2023-09-19 00:03:09'),(9,1,6,18,'close','2023-09-19 00:03:17',10.0000,0,0,NULL,NULL,'2023-07-17 09:17:00','2023-09-19 00:03:17'),(10,1,6,20,'close','2023-07-29 09:32:23',590.0700,2,0,NULL,NULL,'2023-07-19 12:29:00','2023-07-29 09:32:23'),(11,1,3,19,'close','2023-09-19 00:02:55',1000.0000,0,0,NULL,NULL,'2023-07-20 12:10:00','2023-09-19 00:02:55'),(12,1,6,1,'close','2023-08-06 08:48:37',1259.7200,0,0,NULL,NULL,'2023-07-29 09:18:00','2023-08-06 08:48:37'),(13,1,6,20,'close','2023-07-29 09:33:03',1217.9100,0,0,NULL,NULL,'2023-07-29 09:32:00','2023-07-29 09:33:03'),(14,1,6,20,'close','2023-07-29 11:09:24',513.8100,1,0,NULL,NULL,'2023-07-29 09:36:00','2023-07-29 11:09:24'),(15,1,6,20,'close','2023-07-29 11:10:31',1200.0000,1,0,NULL,NULL,'2023-07-29 11:09:00','2023-07-29 11:10:31'),(16,1,6,20,'close','2023-07-29 11:25:51',2350.0000,0,0,NULL,NULL,'2023-07-29 11:25:00','2023-07-29 11:25:51'),(17,1,6,20,'close','2023-08-02 14:42:56',1349.5600,1,0,NULL,NULL,'2023-07-29 11:27:00','2023-08-02 14:42:56'),(18,1,6,20,'close','2023-08-06 08:43:00',2234.6600,3,0,NULL,NULL,'2023-08-05 21:09:00','2023-08-06 08:43:00'),(19,1,6,20,'close','2023-08-06 08:45:38',1200.0000,0,0,NULL,NULL,'2023-08-06 08:45:00','2023-08-06 08:45:38'),(20,1,6,20,'close','2023-08-06 08:54:58',1247.0200,0,0,NULL,NULL,'2023-08-06 08:45:00','2023-08-06 08:54:58'),(21,1,6,20,'close','2023-08-12 09:27:43',2507.9800,0,0,NULL,NULL,'2023-08-06 08:55:00','2023-08-12 09:27:43'),(22,1,NULL,1,'close','2023-08-12 09:19:08',2042.9900,0,0,NULL,NULL,'2023-08-06 09:41:00','2023-08-12 09:19:08'),(23,1,3,21,'close','2023-08-09 16:44:19',2000.0000,0,0,NULL,NULL,'2023-08-09 16:32:00','2023-08-09 16:44:19'),(24,1,3,21,'close','2023-08-09 16:47:52',2014.4000,0,0,NULL,NULL,'2023-08-09 16:44:00','2023-08-09 16:47:52'),(25,1,3,21,'close','2023-08-09 16:57:55',1020.6000,0,0,NULL,NULL,'2023-08-09 16:48:00','2023-08-09 16:57:55'),(26,1,6,20,'close','2023-08-12 09:31:03',1786.7800,0,0,NULL,NULL,'2023-08-12 09:27:00','2023-08-12 09:31:03'),(27,1,6,20,'close','2023-08-12 09:32:06',9.4000,0,0,NULL,NULL,'2023-08-12 09:31:00','2023-08-12 09:32:06'),(28,1,3,1,'close','2023-08-12 09:51:59',515.4100,0,0,NULL,NULL,'2023-08-12 09:32:00','2023-08-12 09:51:59'),(29,1,6,20,'close','2023-08-12 09:46:54',1088.3400,0,0,NULL,NULL,'2023-08-12 09:46:00','2023-08-12 09:46:54'),(30,1,NULL,1,'close','2023-08-12 10:26:10',1078.3830,0,0,NULL,NULL,'2023-08-12 09:52:00','2023-08-12 10:26:10'),(31,1,8,1,'close','2023-08-13 09:35:08',442.6800,0,0,NULL,NULL,'2023-08-12 10:26:00','2023-08-13 09:35:08'),(32,1,6,20,'close','2023-09-19 00:03:57',0.0000,0,0,NULL,NULL,'2023-08-12 11:17:00','2023-09-19 00:03:57'),(33,1,8,1,'close','2023-08-13 09:38:19',1124.0000,0,0,NULL,NULL,'2023-08-13 09:37:00','2023-08-13 09:38:19'),(34,1,6,1,'close','2023-08-13 10:43:53',1769.2200,0,0,NULL,NULL,'2023-08-13 09:38:00','2023-08-13 10:43:53'),(35,1,6,1,'close','2023-08-13 11:46:09',1910.8400,0,0,NULL,NULL,'2023-08-13 11:00:00','2023-08-13 11:46:09'),(36,1,6,1,'close','2023-08-15 17:05:15',3905.0700,2,0,NULL,NULL,'2023-08-13 11:46:00','2023-08-15 17:05:15'),(37,1,8,21,'close','2023-09-19 00:03:43',3000.0000,0,0,NULL,NULL,'2023-08-14 09:23:00','2023-09-19 00:03:43'),(38,1,6,1,'close','2023-08-19 15:42:39',2204.6000,0,0,NULL,NULL,'2023-08-15 17:05:00','2023-08-19 15:42:39'),(39,1,6,1,'close','2023-08-20 21:01:13',2410.4400,1,0,NULL,NULL,'2023-08-19 15:46:00','2023-08-20 21:01:13'),(40,1,6,1,'close','2023-08-26 09:43:59',2074.0000,0,0,NULL,NULL,'2023-08-20 21:01:00','2023-08-26 09:43:59'),(41,1,8,1,'close','2023-09-02 12:09:23',500.0000,0,0,NULL,NULL,'2023-08-26 09:44:00','2023-09-02 12:09:23'),(42,1,6,1,'close','2023-09-02 15:39:42',2000.0000,0,0,NULL,NULL,'2023-09-02 12:13:00','2023-09-02 15:39:42'),(43,1,13,1,'close','2023-09-02 15:55:16',2008.0000,2,0,NULL,NULL,'2023-09-02 15:40:00','2023-09-02 15:55:16'),(44,1,13,25,'close','2023-09-18 11:36:01',2037.6000,3,0,NULL,NULL,'2023-09-02 15:58:00','2023-09-18 11:36:01'),(45,1,13,1,'close','2023-09-02 16:19:02',2242.0000,0,0,NULL,NULL,'2023-09-02 16:18:00','2023-09-02 16:19:02'),(46,1,8,1,'close','2023-09-03 14:28:05',435254.0000,2,0,NULL,NULL,'2023-09-02 16:19:00','2023-09-03 14:28:05'),(47,1,8,1,'close','2023-09-05 09:21:07',2110.0000,2,0,NULL,NULL,'2023-09-03 14:41:00','2023-09-05 09:21:07'),(48,1,8,1,'close','2023-09-06 09:23:45',200.0000,0,0,NULL,NULL,'2023-09-05 09:21:00','2023-09-06 09:23:45'),(49,1,8,1,'close','2023-09-09 12:37:27',129.0000,0,0,NULL,NULL,'2023-09-06 09:23:00','2023-09-09 12:37:27'),(50,1,8,1,'close','2023-09-17 10:35:18',280.7400,0,1,NULL,NULL,'2023-09-09 13:41:00','2023-09-17 10:35:18'),(51,1,15,30,'close','2023-09-19 00:03:29',4.4400,1,0,NULL,NULL,'2023-09-09 16:08:00','2023-09-19 00:03:29'),(52,1,14,28,'close','2023-09-19 00:06:00',44.2000,0,0,NULL,NULL,'2023-09-09 16:20:00','2023-09-19 00:06:00'),(53,1,16,32,'close','2023-09-18 13:38:39',509.5300,3,0,NULL,NULL,'2023-09-09 16:39:00','2023-09-18 13:38:39'),(54,1,17,34,'close','2023-09-19 00:05:30',87.0000,0,0,NULL,NULL,'2023-09-10 09:46:00','2023-09-19 00:05:30'),(55,1,18,36,'close','2023-09-11 14:56:03',468.1300,0,0,NULL,NULL,'2023-09-11 09:13:00','2023-09-11 14:56:03'),(56,1,18,36,'close','2023-09-19 00:05:43',391.0400,0,0,NULL,NULL,'2023-09-11 14:56:00','2023-09-19 00:05:43'),(57,1,3,40,'close','2023-09-17 10:21:39',3087.0000,0,0,NULL,NULL,'2023-09-11 15:24:00','2023-09-17 10:21:39'),(58,1,19,38,'close','2023-09-19 00:05:00',1013.5000,1,0,NULL,NULL,'2023-09-13 14:42:00','2023-09-19 00:05:00'),(59,1,3,48,'close','2023-09-19 00:05:15',0.0000,0,0,NULL,NULL,'2023-09-17 09:22:00','2023-09-19 00:05:15'),(60,1,20,40,'close','2023-09-17 10:22:01',100.0000,0,0,NULL,NULL,'2023-09-17 10:21:00','2023-09-17 10:22:01'),(61,1,20,40,'close','2023-09-17 16:13:11',1121.3300,0,0,NULL,NULL,'2023-09-17 10:30:00','2023-09-17 16:13:11'),(62,1,13,1,'close','2023-09-17 10:49:36',2004.7800,0,0,NULL,NULL,'2023-09-17 10:41:00','2023-09-17 10:49:36'),(63,1,13,1,'close','2023-09-17 10:51:04',2000.0000,0,0,NULL,NULL,'2023-09-17 10:49:00','2023-09-17 10:51:04'),(64,1,20,40,'close','2023-09-19 00:04:46',39.1000,0,0,NULL,NULL,'2023-09-17 16:13:00','2023-09-19 00:04:46'),(65,1,13,1,'close','2023-09-18 10:24:25',1000.0000,0,0,NULL,NULL,'2023-09-18 10:21:00','2023-09-18 10:24:25'),(66,1,13,1,'close','2023-09-18 10:26:17',100.0000,0,0,NULL,NULL,'2023-09-18 10:24:00','2023-09-18 10:26:17'),(67,1,8,23,'close','2023-09-19 00:04:29',54.5700,0,0,NULL,NULL,'2023-09-18 10:33:00','2023-09-19 00:04:29'),(68,1,13,25,'close','2023-09-18 22:30:33',2003.2900,1,0,NULL,NULL,'2023-09-18 11:36:00','2023-09-18 22:30:33'),(69,1,16,32,'close','2023-09-19 00:04:15',1000.0000,0,0,NULL,NULL,'2023-09-18 13:38:00','2023-09-19 00:04:15'),(70,1,8,1,'close','2023-09-18 23:05:24',199.2400,0,0,NULL,NULL,'2023-09-18 14:28:00','2023-09-18 23:05:24'),(71,1,13,25,'close','2023-09-18 23:04:58',1000.0000,0,0,NULL,NULL,'2023-09-18 23:04:00','2023-09-18 23:04:58'),(72,1,13,1,'close','2023-09-18 23:08:20',142.5000,0,0,NULL,NULL,'2023-09-18 23:07:00','2023-09-18 23:08:20'),(73,1,13,25,'close','2023-09-18 23:12:45',1035.4500,0,0,NULL,NULL,'2023-09-18 23:10:00','2023-09-18 23:12:45'),(74,1,14,1,'close','2023-09-18 23:25:18',122.0000,0,0,NULL,NULL,'2023-09-18 23:24:00','2023-09-18 23:25:18'),(75,1,16,1,'close','2023-09-18 23:35:23',12121.0000,0,0,NULL,NULL,'2023-09-18 23:34:00','2023-09-18 23:35:23'),(76,1,8,1,'close','2023-09-19 14:55:06',672.4000,0,0,NULL,NULL,'2023-09-19 07:38:00','2023-09-19 14:55:06'),(77,1,14,28,'close','2023-09-19 14:58:08',9.7000,1,0,NULL,NULL,'2023-09-19 09:02:00','2023-09-19 14:58:08'),(78,1,16,32,'close','2023-09-19 14:57:43',0.0000,0,0,NULL,NULL,'2023-09-19 09:50:00','2023-09-19 14:57:43'),(79,1,20,40,'close','2023-09-19 14:58:20',0.0000,0,0,NULL,NULL,'2023-09-19 13:52:00','2023-09-19 14:58:20'),(80,1,20,1,'close','2023-09-19 14:55:52',1000.0000,0,0,NULL,NULL,'2023-09-19 14:55:00','2023-09-19 14:55:52'),(81,1,16,1,'close','2023-09-19 14:58:35',1000.0000,0,0,NULL,NULL,'2023-09-19 14:56:00','2023-09-19 14:58:35'),(82,1,20,1,'close','2023-09-19 14:59:53',100.0000,0,0,NULL,NULL,'2023-09-19 14:59:00','2023-09-19 14:59:53'),(83,1,20,1,'close','2023-09-19 15:01:10',1000.0000,0,0,NULL,NULL,'2023-09-19 15:00:00','2023-09-19 15:01:10'),(84,1,16,1,'close','2023-09-19 15:01:37',1000.0000,0,0,NULL,NULL,'2023-09-19 15:01:00','2023-09-19 15:01:37'),(85,1,16,1,'close','2023-09-19 15:03:42',1000.0000,0,0,NULL,NULL,'2023-09-19 15:02:00','2023-09-19 15:03:42'),(86,1,20,1,'close','2023-09-19 15:06:55',1000.0000,0,0,NULL,NULL,'2023-09-19 15:04:00','2023-09-19 15:06:55'),(87,1,16,1,'close','2023-09-19 15:40:35',1229.1000,0,0,NULL,NULL,'2023-09-19 15:07:00','2023-09-19 15:40:35'),(88,1,8,1,'close','2023-09-19 15:40:35',1229.1000,0,0,NULL,NULL,'2023-09-19 15:17:00','2023-09-19 15:40:35'),(89,1,8,1,'close','2023-09-19 15:46:07',343187.4800,0,0,NULL,NULL,'2023-09-19 15:40:00','2023-09-19 15:46:07'),(90,1,8,1,'close','2023-09-23 11:43:41',40.3600,0,0,NULL,NULL,'2023-09-19 15:54:00','2023-09-23 11:43:41'),(91,1,16,32,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-19 16:08:00','2023-09-19 16:08:03'),(92,1,15,30,'close','2023-09-21 15:40:04',84.1200,1,0,NULL,NULL,'2023-09-20 09:24:00','2023-09-21 15:40:04'),(93,1,18,36,'close','2023-09-23 10:04:32',153.0000,3,0,NULL,NULL,'2023-09-20 12:13:00','2023-09-23 10:04:32'),(94,1,17,34,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-20 13:38:00','2023-09-20 13:38:25'),(95,1,13,25,'close','2023-09-23 11:35:18',2062.6800,2,0,NULL,NULL,'2023-09-20 14:33:00','2023-09-23 11:35:18'),(96,1,19,38,'close','2023-09-20 20:28:19',116.5000,1,0,NULL,NULL,'2023-09-20 18:30:00','2023-09-20 20:28:19'),(97,1,19,38,'close','2023-09-20 21:07:18',219.0000,2,0,NULL,NULL,'2023-09-20 20:29:00','2023-09-20 21:07:18'),(98,1,19,38,'close','2023-09-20 21:15:37',200.0000,0,0,NULL,NULL,'2023-09-20 21:09:00','2023-09-20 21:15:37'),(99,1,7,41,'close','2023-09-24 14:59:33',500.0000,1,0,NULL,NULL,'2023-09-21 10:11:00','2023-09-24 14:59:33'),(100,1,19,38,'close','2023-09-21 12:07:26',1047.0000,2,0,NULL,NULL,'2023-09-21 11:49:00','2023-09-21 12:07:26'),(101,1,20,40,'close','2023-09-24 16:30:44',16.1000,0,0,NULL,NULL,'2023-09-21 12:37:00','2023-09-24 16:30:44'),(102,1,14,28,'close','2023-09-24 22:20:48',56.0500,1,0,NULL,NULL,'2023-09-21 13:16:00','2023-09-24 22:20:48'),(103,1,15,30,'close','2023-09-22 21:44:26',0.0000,0,0,NULL,NULL,'2023-09-21 15:47:00','2023-09-22 21:44:26'),(104,1,19,38,'close','2023-09-21 18:41:00',1140.5000,1,0,NULL,NULL,'2023-09-21 18:30:00','2023-09-21 18:41:00'),(105,1,19,38,'close','2023-09-21 18:51:21',100.0000,0,0,NULL,NULL,'2023-09-21 18:41:00','2023-09-21 18:51:21'),(106,1,19,38,'close','2023-09-22 16:04:02',1051.0000,0,0,NULL,NULL,'2023-09-21 18:52:00','2023-09-22 16:04:02'),(107,1,19,38,'close','2023-09-22 21:02:25',181.5000,6,0,NULL,NULL,'2023-09-22 16:04:00','2023-09-22 21:02:25'),(108,1,15,30,'close','2023-09-23 10:50:46',0.0000,0,0,NULL,NULL,'2023-09-23 09:14:00','2023-09-23 10:50:46'),(109,1,18,36,'close','2023-09-23 12:46:44',192.0000,0,0,NULL,NULL,'2023-09-23 10:04:00','2023-09-23 12:46:44'),(110,1,15,30,'close','2023-09-23 11:20:00',1000.0000,0,0,NULL,NULL,'2023-09-23 11:18:00','2023-09-23 11:20:00'),(111,1,15,30,'close','2023-09-23 11:31:24',1049.6300,0,0,NULL,NULL,'2023-09-23 11:31:00','2023-09-23 11:31:24'),(112,1,13,25,'close','2023-09-25 15:10:24',2047.8400,0,0,NULL,NULL,'2023-09-23 11:35:00','2023-09-25 15:10:24'),(113,1,15,30,'close','2023-09-23 12:10:33',235.0000,0,0,NULL,NULL,'2023-09-23 12:00:00','2023-09-23 12:10:33'),(114,1,18,36,'close','2023-09-23 12:48:35',257.0000,0,0,NULL,NULL,'2023-09-23 12:46:00','2023-09-23 12:48:35'),(115,1,18,36,'close','2023-09-23 13:18:51',10.0000,0,0,NULL,NULL,'2023-09-23 12:50:00','2023-09-23 13:18:51'),(116,1,19,38,'close','2023-09-23 18:39:27',244.0000,5,0,NULL,NULL,'2023-09-23 12:56:00','2023-09-23 18:39:27'),(117,1,18,36,'close','2023-09-25 13:34:31',101.3400,0,0,NULL,NULL,'2023-09-23 13:19:00','2023-09-25 13:34:31'),(118,1,15,30,'close','2023-09-25 07:47:22',0.0000,0,0,NULL,NULL,'2023-09-24 09:56:00','2023-09-25 07:47:22'),(119,1,19,38,'close','2023-09-25 12:44:33',173.5000,3,0,NULL,NULL,'2023-09-24 11:35:00','2023-09-25 12:44:33'),(120,1,8,23,'close','2023-09-24 12:31:41',2044.1600,0,0,NULL,NULL,'2023-09-24 12:01:00','2023-09-24 12:31:41'),(121,1,8,1,'close','2023-09-24 12:50:44',21.0400,0,0,NULL,NULL,'2023-09-24 12:31:00','2023-09-24 12:50:44'),(122,1,8,23,'close','2023-09-24 12:32:55',1002.7600,0,0,NULL,NULL,'2023-09-24 12:32:00','2023-09-24 12:32:55'),(123,1,8,23,'close','2023-09-24 12:34:26',1008.2800,0,0,NULL,NULL,'2023-09-24 12:33:00','2023-09-24 12:34:26'),(124,1,8,23,'close','2023-09-24 12:35:03',1000.0000,0,0,NULL,NULL,'2023-09-24 12:34:00','2023-09-24 12:35:03'),(125,1,8,23,'close','2023-09-24 12:40:23',1005.5200,0,0,NULL,NULL,'2023-09-24 12:35:00','2023-09-24 12:40:23'),(126,1,8,23,'close','2023-09-24 12:49:02',108.2800,0,0,NULL,NULL,'2023-09-24 12:48:00','2023-09-24 12:49:02'),(127,1,8,1,'close','2023-09-24 13:15:51',119.3200,0,0,NULL,NULL,'2023-09-24 12:53:00','2023-09-24 13:15:51'),(128,1,8,23,'close','2023-09-24 13:12:21',135.8800,0,0,NULL,NULL,'2023-09-24 12:54:00','2023-09-24 13:12:21'),(129,1,8,23,'close','2023-09-24 13:14:45',3.7600,0,0,NULL,NULL,'2023-09-24 13:13:00','2023-09-24 13:14:45'),(130,1,8,23,'close','2023-09-25 10:05:02',141.4000,0,0,NULL,NULL,'2023-09-24 13:16:00','2023-09-25 10:05:02'),(131,1,7,41,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-24 15:06:00','2023-09-24 15:06:24'),(132,1,20,40,'close','2023-09-24 16:32:53',24.1500,0,0,NULL,NULL,'2023-09-24 16:32:00','2023-09-24 16:32:53'),(133,1,20,40,'close','2023-09-24 17:12:22',0.0000,0,0,NULL,NULL,'2023-09-24 17:11:00','2023-09-24 17:12:22'),(134,1,8,1,'close','2023-09-25 14:12:37',315.2800,0,0,NULL,NULL,'2023-09-24 19:15:00','2023-09-25 14:12:37'),(135,1,14,28,'close','2023-09-24 22:21:45',11.7500,0,0,NULL,NULL,'2023-09-24 22:21:00','2023-09-24 22:21:45'),(136,1,15,30,'close','2023-09-25 09:14:03',0.0000,0,0,NULL,NULL,'2023-09-25 08:55:00','2023-09-25 09:14:03'),(137,1,14,28,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-25 09:10:00','2023-09-25 09:10:28'),(138,1,15,30,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-25 09:14:00','2023-09-25 09:14:44'),(139,1,8,23,'close','2023-09-25 10:08:27',119.3200,0,0,NULL,NULL,'2023-09-25 10:05:00','2023-09-25 10:08:27'),(140,1,8,23,'close','2023-09-25 10:09:13',1008.2800,0,0,NULL,NULL,'2023-09-25 10:08:00','2023-09-25 10:09:13'),(141,1,8,23,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-25 10:10:00','2023-09-25 10:10:07'),(142,1,19,38,'close','2023-09-25 12:46:36',1000.0000,0,0,NULL,NULL,'2023-09-25 12:45:00','2023-09-25 12:46:36'),(143,1,18,36,'close','2023-09-25 13:36:57',1528.0000,0,0,NULL,NULL,'2023-09-25 13:35:00','2023-09-25 13:36:57'),(144,1,18,36,'close','2023-09-25 13:49:30',1566.0000,0,0,NULL,NULL,'2023-09-25 13:39:00','2023-09-25 13:49:30'),(145,1,18,36,'close','2023-09-25 13:52:24',214.0000,0,0,NULL,NULL,'2023-09-25 13:49:00','2023-09-25 13:52:24'),(146,1,18,36,'close','2023-09-25 13:57:59',893.0000,0,0,NULL,NULL,'2023-09-25 13:55:00','2023-09-25 13:57:59'),(147,1,18,36,'close','2023-09-25 14:10:31',716.0000,0,0,NULL,NULL,'2023-09-25 14:03:00','2023-09-25 14:10:31'),(148,1,18,36,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-25 14:16:00','2023-09-25 14:16:55'),(149,1,19,38,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-25 14:26:00','2023-09-25 14:26:45'),(150,1,8,1,'open',NULL,0.0000,0,0,NULL,NULL,'2023-09-25 15:06:00','2023-09-25 15:06:56');

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

CREATE TABLE `categories` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int unsigned NOT NULL,
  `short_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` int NOT NULL,
  `created_by` int unsigned NOT NULL,
  `woocommerce_cat_id` int DEFAULT NULL,
  `category_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `slug` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `categories_business_id_foreign` (`business_id`),
  KEY `categories_created_by_foreign` (`created_by`),
  KEY `categories_parent_id_index` (`parent_id`),
  CONSTRAINT `categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  CONSTRAINT `categories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=149 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `categories` VALUES (1,'Creative Designer',1,NULL,0,1,NULL,'hrm_designation',NULL,NULL,NULL,'2021-04-12 17:31:18','2021-04-12 17:31:18'),(2,'Programmer',1,NULL,0,1,NULL,'hrm_designation',NULL,NULL,NULL,'2021-04-12 17:31:30','2021-04-12 17:31:30'),(3,'Executive',1,NULL,0,1,NULL,'hrm_designation',NULL,NULL,NULL,'2021-04-12 17:31:53','2021-04-12 17:31:53'),(4,'Accounts and Finance Manager',1,NULL,0,1,NULL,'hrm_designation',NULL,NULL,NULL,'2021-04-12 17:32:21','2021-04-12 17:32:21'),(5,'General Manager',1,NULL,0,1,NULL,'hrm_designation',NULL,NULL,NULL,'2021-04-12 17:32:33','2021-04-12 17:32:33'),(6,'Networking',1,NULL,0,1,NULL,'hrm_department',NULL,NULL,NULL,'2021-04-12 17:32:54','2021-04-12 17:32:54'),(7,'Software development',1,NULL,0,1,NULL,'hrm_department',NULL,NULL,NULL,'2021-04-12 17:33:11','2021-04-12 17:33:11'),(8,'Executive',1,NULL,0,1,NULL,'hrm_department',NULL,NULL,'2021-04-12 17:34:21','2021-04-12 17:33:44','2021-04-12 17:34:21'),(9,'Accounts and Finance Manager',1,NULL,0,1,NULL,'hrm_department',NULL,NULL,'2021-04-12 17:34:17','2021-04-12 17:34:10','2021-04-12 17:34:17'),(10,'Webdesign',1,NULL,0,1,NULL,'hrm_department',NULL,NULL,NULL,'2021-04-12 17:35:14','2021-04-12 17:35:14'),(11,'COFFEE',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(12,'CREPE',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(13,'MILKSHAKE',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(14,'ICE-CREAM',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(15,'JUICES',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(16,'MOJITO',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(17,'PANCAKE',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(18,'PLATTER',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(19,'POFFERS',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(20,'WAFFLES',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(21,'CAKE',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(22,'WAFFLE-STICK',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(23,'Mocktail',2,NULL,0,10,NULL,'product',NULL,NULL,NULL,'2021-04-20 19:45:50','2021-04-20 19:45:50'),(67,'Hot Beverages',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2022-08-19 10:30:58','2022-08-19 10:30:58'),(68,'Chinese Indian Fusion Specials',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2022-08-19 10:30:58','2022-08-19 10:30:58'),(69,'Shakes',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2022-08-19 10:30:58','2022-08-19 10:30:58'),(70,'Broasted',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2022-08-19 10:30:58','2022-08-19 10:30:58'),(71,'Burger',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2022-08-19 10:30:58','2022-08-19 10:30:58'),(72,'Starter',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2022-08-19 10:30:58','2022-08-19 10:30:58'),(73,'Wraps',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2022-08-19 10:30:58','2022-08-19 10:30:58'),(74,'Chips',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:37:46','2023-09-02 14:37:46'),(75,'Bakery Biscuits Cookies Tuna',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:37:48','2023-09-02 14:37:48'),(76,'CHOCOLATE',1,NULL,75,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:14','2023-09-02 14:37:49','2023-09-24 09:07:14'),(77,'Beverages Juices Cheese',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:37:51','2023-09-02 14:37:51'),(78,'ICE CREAM',1,NULL,77,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:37:52','2023-09-02 14:37:52'),(79,'Chocolates Chewing gum',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:37:58','2023-09-02 14:37:58'),(80,'FUSHIYA-LUSSINE-MIXED',1,NULL,75,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:02','2023-09-02 14:38:02'),(81,'Nuts',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:04','2023-09-02 14:38:04'),(82,'NUTS SEEDS',1,NULL,81,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:05','2023-09-02 14:38:05'),(83,'Fuchsia',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:07','2023-09-02 14:38:07'),(84,'BEER&JUICE',1,NULL,77,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:07','2023-09-02 14:38:10','2023-09-24 09:07:07'),(85,'BREAD & TUNA',1,NULL,75,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:51','2023-09-02 14:38:12','2023-09-24 09:07:51'),(86,'Sugar Tea Coffee',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:20','2023-09-02 14:38:20'),(87,'TEA-COFFEE',1,NULL,86,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:21','2023-09-02 14:38:21'),(88,'Cosmetics Groccery Cleaning',1,NULL,0,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:46','2023-09-02 14:38:22','2023-09-24 09:07:46'),(89,'OTHERS',1,NULL,88,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:22','2023-09-02 14:38:22'),(90,'COSMETIC',1,NULL,88,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:40','2023-09-02 14:38:24','2023-09-24 09:07:40'),(91,'Medicine',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:35','2023-09-02 14:38:35'),(92,'CLOTHS MOBILE ACCES',1,NULL,88,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:27','2023-09-02 14:38:37','2023-09-24 09:07:27'),(93,'none',1,NULL,75,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:43','2023-09-02 14:38:43'),(94,'ENERGY&SOFT DRINKS',1,NULL,77,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:55','2023-09-02 14:38:49','2023-09-24 09:07:55'),(95,'BISCUIT-NOODULS',1,NULL,75,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:38:54','2023-09-02 14:38:54'),(96,'Soft Energy Drink Ice Tea Shani',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:39:12','2023-09-02 14:39:12'),(97,'Cigarettes',1,NULL,0,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:36','2023-09-02 14:42:04','2023-09-24 09:07:36'),(98,'CIGARATE',1,NULL,97,1,NULL,'product',NULL,NULL,'2023-09-24 09:07:20','2023-09-02 14:42:04','2023-09-24 09:07:20'),(99,'BISCUIT',1,NULL,75,1,NULL,'product',NULL,NULL,NULL,'2023-09-02 14:51:30','2023-09-02 14:51:30'),(100,'Monday Meals',1,'Monday',0,1,NULL,'product',NULL,NULL,NULL,'2023-09-09 15:41:15','2023-09-09 15:41:15'),(101,'Dental products',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:33:41','2023-09-10 09:33:41'),(102,'DENTAL PRODUCT',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:48:35','2023-09-10 09:48:35'),(103,'CHOCOLATES',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:49:12','2023-09-10 09:49:12'),(104,'SHAVING PRODUCTS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:49:49','2023-09-10 09:49:49'),(105,'COSMETIC PRODUCTS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:50:30','2023-09-10 09:50:30'),(106,'GROCERY PRODUCTS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:51:02','2023-09-10 09:51:02'),(107,'BEVERAGES PRODUCT',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:51:54','2023-09-10 09:51:54'),(108,'MENS CLOTHINGS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:53:11','2023-09-10 09:53:11'),(109,'CIGARETTE',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:53:40','2023-09-10 09:53:40'),(110,'POTATO CHIPS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-10 09:54:42','2023-09-10 09:54:42'),(111,'Main Course',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 10:24:23','2023-09-11 10:24:23'),(112,'Coffee',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 10:26:35','2023-09-11 10:26:35'),(113,'Breakfast',1,NULL,0,36,NULL,'product',NULL,NULL,'2023-09-24 09:06:56','2023-09-11 10:29:54','2023-09-24 09:06:56'),(114,'Sweet',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 11:31:45','2023-09-11 11:31:45'),(115,'Pasta',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 11:34:51','2023-09-11 11:34:51'),(116,'Pizza',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 11:39:26','2023-09-11 11:39:26'),(117,'Sizzlers',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 11:46:28','2023-09-11 11:46:28'),(118,'Grilled',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 11:48:45','2023-09-11 11:48:45'),(119,'Sandwich',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 11:53:33','2023-09-11 11:53:33'),(120,'Salads',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 11:55:12','2023-09-11 11:55:12'),(121,'Kids Corner',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 11:58:51','2023-09-11 11:58:51'),(122,'Soups',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:06:25','2023-09-11 12:06:25'),(123,'Extra',1,NULL,0,36,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:11:30','2023-09-11 12:11:30'),(124,'SHAMPOO',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:18:00','2023-09-11 12:18:00'),(125,'ENERGY DRINKS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:18:56','2023-09-11 12:18:56'),(126,'PAIN BALM',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:20:38','2023-09-11 12:20:38'),(127,'CHEWING GUM',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:22:11','2023-09-11 12:22:11'),(128,'NUTS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:22:37','2023-09-11 12:22:37'),(129,'POTATO CHIPS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:24:42','2023-09-11 12:24:42'),(130,'LIGHTERS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:25:08','2023-09-11 12:25:08'),(131,'BISCUITS',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:25:53','2023-09-11 12:25:53'),(132,'BATTERY',1,NULL,0,30,NULL,'product',NULL,NULL,'2023-09-13 08:58:10','2023-09-11 12:26:16','2023-09-13 08:58:10'),(133,'CHICKEN NOODLES',1,NULL,0,30,NULL,'product',NULL,NULL,NULL,'2023-09-11 12:26:42','2023-09-11 12:26:42'),(134,'FROZEN ITEMS',1,NULL,0,32,NULL,'product',NULL,NULL,NULL,'2023-09-19 13:24:01','2023-09-19 13:24:01'),(135,'1ST-WEEK-MONDAY',1,NULL,0,41,NULL,'product',NULL,NULL,NULL,'2023-09-21 10:12:49','2023-09-24 16:41:58'),(136,'1ST-WEEK-TUESDAY',1,NULL,0,41,NULL,'product',NULL,NULL,NULL,'2023-09-21 10:15:00','2023-09-24 16:42:45'),(137,'1ST-WEEK-WEDNESDAY',1,NULL,0,41,NULL,'product',NULL,NULL,NULL,'2023-09-21 10:15:21','2023-09-24 16:42:59'),(138,'1ST-WEEK-THURSDAY',1,NULL,0,41,NULL,'product',NULL,NULL,NULL,'2023-09-21 10:15:33','2023-09-24 16:43:13'),(139,'SUNDAY',1,NULL,0,41,NULL,'product',NULL,NULL,NULL,'2023-09-21 10:15:46','2023-09-21 10:15:46'),(140,'SOUP',1,NULL,135,41,NULL,'product',NULL,NULL,NULL,'2023-09-21 10:17:38','2023-09-21 10:17:38'),(141,'SWEET',1,NULL,135,41,NULL,'product',NULL,NULL,NULL,'2023-09-21 10:18:30','2023-09-21 10:18:30'),(142,'New Sample Category',1,'NCS',0,30,NULL,'product',NULL,NULL,NULL,'2023-09-23 11:18:41','2023-09-23 11:18:41'),(143,'Beverages (Soft Drinks)',1,NULL,0,38,NULL,'product',NULL,NULL,NULL,'2023-09-23 16:53:59','2023-09-23 16:53:59'),(144,'Hot Beverages',1,NULL,0,38,NULL,'product',NULL,NULL,NULL,'2023-09-23 16:54:24','2023-09-23 16:54:24'),(145,'Lunch & Dinner',1,NULL,0,38,NULL,'product',NULL,NULL,NULL,'2023-09-23 16:55:13','2023-09-23 16:55:13'),(146,'BREAKFAST',1,NULL,0,41,NULL,'product',NULL,NULL,NULL,'2023-09-24 09:04:25','2023-09-24 09:04:25'),(147,'SOFT DRINKS',1,NULL,0,1,NULL,'product',NULL,NULL,NULL,'2023-09-24 09:20:31','2023-09-24 09:20:31'),(148,'Breakfast',1,NULL,0,38,NULL,'product',NULL,NULL,'2023-09-24 11:48:19','2023-09-24 11:47:30','2023-09-24 11:48:19');

--
-- Table structure for table `categorizables`
--

CREATE TABLE `categorizables` (
  `category_id` int NOT NULL,
  `categorizable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `categorizable_id` bigint unsigned NOT NULL,
  KEY `categorizables_categorizable_type_categorizable_id_index` (`categorizable_type`,`categorizable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `categorizables`
--


--
-- Table structure for table `category_locations`
--

CREATE TABLE `category_locations` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `category_id` int DEFAULT NULL,
  `location_id` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `category_locations`
--

INSERT INTO `category_locations` VALUES (1,105,8),(4,75,13),(5,77,13),(6,134,16),(8,107,18),(10,71,18),(11,112,18),(12,121,18),(13,111,18),(14,115,18),(15,116,18),(16,120,18),(17,119,18),(18,117,18),(19,122,18),(20,72,18),(21,114,18),(26,139,7),(27,140,7),(28,141,7),(29,123,18),(30,118,18),(31,99,15),(32,142,15),(33,113,18),(34,113,19),(35,143,19),(36,144,19),(37,145,19),(42,147,7),(43,148,19),(48,135,7),(49,136,7),(50,137,7),(51,138,7),(52,146,19);

--
-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int unsigned NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `supplier_business_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `first_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `middle_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
  `tax_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address_line_1` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `address_line_2` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `zip_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `mobile` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `landline` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `alternate_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pay_term_number` int DEFAULT NULL,
  `pay_term_type` enum('days','months') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `credit_limit` decimal(22,4) DEFAULT NULL,
  `created_by` int unsigned NOT NULL,
  `balance` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `total_rp` int NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `total_rp_used` int NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `total_rp_expired` int NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `shipping_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `shipping_custom_field_details` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_export` tinyint(1) NOT NULL DEFAULT '0',
  `export_custom_field_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_5` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_6` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `position` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `customer_group_id` int DEFAULT NULL,
  `custom_field1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field5` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field6` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field7` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field8` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field9` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field10` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `contacts_business_id_foreign` (`business_id`),
  KEY `contacts_created_by_foreign` (`created_by`),
  KEY `contacts_type_index` (`type`),
  KEY `contacts_contact_status_index` (`contact_status`),
  CONSTRAINT `contacts_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  CONSTRAINT `contacts_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `contacts`
--

INSERT INTO `contacts` VALUES (1,1,'customer',NULL,'walk in customer',NULL,'walk in customer',NULL,NULL,NULL,'CO0001','inactive',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'12345456',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,1,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-04-12 15:24:42','2023-07-26 06:32:13'),(2,1,'supplier','We First Trading','Mr Shibu  ','Mr','Shibu',NULL,NULL,'shibu@wefirsttrading.com','CO0002','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0097339944111',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-04-14 15:41:21','2021-04-13 09:31:34','2021-04-14 15:41:21'),(3,1,'both','Qasr Al Shabab','Mr Ram Mohan  ','Mr','Ram Mohan',NULL,NULL,'fc@classicenvelopes.com','CO0003','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'973 399 60 166',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-09-15 13:51:36','2021-04-13 09:36:34','2021-09-15 13:51:36'),(4,1,'both','We First Trading','Mr Shibu  ','Mr','Shibu',NULL,NULL,'shibu@wefirsttrading.com','CO0004','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0097339944111',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-09-15 13:52:55','2021-04-13 09:40:19','2021-09-15 13:52:55'),(5,1,'both','ALBAIT LIGHTING','Mr SAMEER  ','Mr','SAMEER',NULL,NULL,NULL,'CO0005','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0097336222384',NULL,NULL,NULL,NULL,NULL,6,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-09-15 13:51:44','2021-04-14 15:34:57','2021-09-15 13:51:44'),(6,1,'supplier','Credit Card',' Credit Card  ',NULL,'Credit Card',NULL,NULL,NULL,'CO0006','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3333333',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-04-14 15:45:34','2021-04-14 15:45:34'),(7,2,'customer',NULL,'Walk-In Customer',NULL,NULL,NULL,NULL,NULL,'CO0001','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,0.0000,10,0.0000,0,0,0,1,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(8,1,'supplier',NULL,'supplier supplier supplier supplier','supplier','supplier','supplier','supplier',NULL,'a','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'454534',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-09-16 01:41:36','2021-09-16 01:41:36'),(9,1,'customer',NULL,'jahana sherin',NULL,'jahana',NULL,'sherin','jahanajagu@gmail.com','CO0008','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'07356735285',NULL,NULL,NULL,NULL,10000.0000,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-09-16 05:48:53','2021-09-16 05:50:34'),(10,3,'customer',NULL,'Walk-In Customer',NULL,NULL,NULL,NULL,NULL,'CO0001','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,0.0000,12,0.0000,0,0,0,1,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(11,1,'customer','army contracting','test',NULL,'test',NULL,NULL,NULL,'kmk09','inactive','555555','abcd','abcd','abcd','test',NULL,'abcd',NULL,'123123123',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-23 13:30:04','2023-03-17 09:33:56','2023-09-23 13:30:04'),(12,1,'customer',NULL,'Mr Test User','Mr','Test','User',NULL,'test@test.com','CO0010','inactive',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'11223344',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-06-13 11:12:34','2023-07-17 08:56:51'),(13,1,'customer',NULL,'Mr test user2','Mr','test','user2',NULL,'test@gmail.com','CO0011','inactive',NULL,'calicut','Kerala','India','Test','Test City',NULL,NULL,'0000000',NULL,NULL,1,'months',1000.0000,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-06-13 11:31:16','2023-07-17 08:56:57'),(14,1,'supplier',NULL,'test jahana',NULL,'test',NULL,'jahana','jahanajagu@gmail.com','CO0012','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4356735285',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-07-11 12:40:03','2023-07-11 12:40:03'),(15,1,'supplier','Effective Hands I أيدي فعالة','',NULL,NULL,NULL,NULL,NULL,'CO0013','active','00000000001111234444444444',NULL,NULL,NULL,'Effective Hands I أيدي فعالة','Effective Hands I أيدي فعالة',NULL,NULL,'054658992',NULL,NULL,30,'days',NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-09 17:01:19','2023-08-09 17:09:32'),(16,1,'supplier','Central Stores','',NULL,NULL,NULL,NULL,NULL,'CO0014','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'5486135831',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-12 17:06:17','2023-08-12 17:06:17'),(17,1,'supplier','almirash','',NULL,NULL,NULL,NULL,NULL,'05525','active','303568862',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'025','556','556',NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-17 21:42:02','2023-08-17 21:42:02'),(18,1,'customer',NULL,'',NULL,NULL,NULL,NULL,NULL,'CO0016','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'45523634',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-03 15:53:29','2023-09-03 15:53:29'),(19,1,'customer','Aramco Total','',NULL,NULL,NULL,NULL,NULL,'CO0017','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'453633',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-03 15:54:05','2023-09-03 15:54:05'),(20,1,'customer',NULL,'mr test sgv','mr','test',NULL,'sgv',NULL,'CO0018','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'12345678',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-06 08:42:15','2023-09-06 08:42:15'),(21,1,'customer',NULL,'Table 1',NULL,'Table 1',NULL,NULL,NULL,'CO0019','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'5553636363',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-09 13:46:07','2023-09-09 13:46:07'),(22,1,'customer',NULL,'kazi AR',NULL,'kazi AR',NULL,NULL,NULL,'CO0020','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'565981553',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-09 15:35:27','2023-09-09 15:35:27'),(23,1,'supplier','DAIRY','',NULL,NULL,NULL,NULL,NULL,'ARSAN','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0500523691',NULL,NULL,NULL,NULL,NULL,32,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-23 11:38:55','2023-09-17 10:37:01','2023-09-23 11:38:55'),(24,1,'supplier',NULL,'MR FEROZ KHAN AHMED','MR','FEROZ','KHAN','AHMED','FEROZ@YAHOO.COM','FEROZ','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-17','0509661243','017034562','0523659874',NULL,NULL,NULL,32,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-23 11:39:03','2023-09-17 11:19:23','2023-09-23 11:39:03'),(25,1,'customer','ENGIE','',NULL,NULL,NULL,NULL,NULL,'0500636987','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0500636987','0172368575','0523659874',NULL,NULL,NULL,32,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-17 13:07:00','2023-09-17 13:07:00'),(26,1,'customer',NULL,'mr sameer ahamed','mr','sameer',NULL,'ahamed',NULL,'CO0024','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'123456789',NULL,NULL,NULL,NULL,NULL,40,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-17 15:54:38','2023-09-17 15:54:38'),(27,1,'customer','engie','',NULL,NULL,NULL,NULL,NULL,'VAT :123456788','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'123456789',NULL,NULL,NULL,NULL,NULL,40,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-17 15:56:23','2023-09-17 15:56:23'),(28,1,'customer','ENGIE SOLUTIONS COMPANY LTD','',NULL,NULL,NULL,NULL,NULL,'CO0026','active','3000049768500003',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0127240099',NULL,NULL,NULL,NULL,NULL,40,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-17 16:24:29','2023-09-17 16:24:29'),(29,1,'customer','ARAMCO HAWTHA','',NULL,NULL,NULL,NULL,NULL,'CO0027','active','320587896342',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1234567890',NULL,NULL,NULL,NULL,NULL,28,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-19 09:19:47','2023-09-19 09:19:47'),(30,1,'customer','ARAMCO HAWTHA','',NULL,NULL,NULL,NULL,NULL,'CO0028','active','320587896342',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1234567890',NULL,NULL,NULL,NULL,NULL,28,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-19 09:22:26','2023-09-19 09:22:26'),(31,1,'supplier','DRY FOOD','',NULL,NULL,NULL,NULL,'FEROZ@YAHOO.COM','OPTC','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0581019420',NULL,'0523659874',NULL,NULL,NULL,32,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-19 09:42:22','2023-09-19 09:42:22'),(32,1,'supplier','TASTY FOOD','',NULL,NULL,NULL,NULL,'FEROZ@YAHOO.COM',NULL,'active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0536352895','0172368575','0523659874',NULL,NULL,NULL,32,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-20 10:03:45','2023-09-23 11:41:12'),(33,1,'supplier','COCA COLA CO','',NULL,NULL,NULL,NULL,'FEROZ@YAHOO.COM',NULL,'active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0536965481','017040655','0509658745',NULL,NULL,NULL,32,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-20 10:41:38','2023-09-23 11:40:55'),(34,1,'supplier','Rafa Al-Tamayuz Trading Est','',NULL,NULL,NULL,NULL,NULL,'CO0032','active','311471399500003',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0572106454',NULL,NULL,NULL,NULL,NULL,25,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-20 14:35:44','2023-09-20 14:35:44'),(35,1,'supplier','RUBA ALSHAMEL FOR TRADING','',NULL,NULL,NULL,NULL,NULL,'CO0033','active','3111166210500003','TAIF','TAIF','SAUDI ARABIA',NULL,NULL,NULL,NULL,'0500920319',NULL,NULL,NULL,NULL,NULL,40,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-21 12:40:00','2023-09-21 12:40:00'),(36,1,'supplier','AL SHOWESH TRADING EST','',NULL,NULL,NULL,NULL,NULL,'CO0034','active','300214669700003','TAIF','TAIF','SAUDI ARABIA',NULL,NULL,NULL,NULL,'0127253740','0127253740',NULL,NULL,NULL,NULL,40,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-21 13:55:58','2023-09-21 13:55:58'),(37,1,'customer','Saudi Catering & Contracting Company (Haradh Camp)','',NULL,NULL,NULL,NULL,NULL,'CO0035','active','300118775500003','Haradh','Haradh','Kingdom of Saudi Arabia','Aramco Haradh Camp',NULL,NULL,NULL,'6747765576',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-23 13:25:18','2023-09-23 13:35:59'),(38,1,'customer','Saudi Catering & Contracting Company','',NULL,NULL,NULL,NULL,NULL,'CO0036','active','300118775500003','Hawtah','Hawtah','Kingdom of Saudi Arabia','Aramco Hawtah Camp',NULL,NULL,NULL,'342354325',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-23 13:30:11','2023-09-23 13:28:22','2023-09-23 13:30:11'),(39,1,'customer','Saudi Catering & Contracting Company (Hawtah Camp)','',NULL,NULL,NULL,NULL,NULL,'CO0037','active','300118775500003','Hawtah','Hawtah','Kingdom of Saudi Arabia','Aramco Hawtah Camp',NULL,NULL,NULL,'56363636',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-23 13:34:12','2023-09-23 13:34:12'),(40,1,'customer','HARADH COMMUNITY','',NULL,NULL,NULL,NULL,NULL,'CO0038','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'5761008',NULL,NULL,NULL,NULL,NULL,25,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-23 16:52:15','2023-09-23 16:52:15'),(41,1,'supplier','AL MARAI COMPANY','',NULL,NULL,NULL,NULL,NULL,'CO0039','active','300055335610003','TAIF','TAIF','SAUDI ARABIA',NULL,NULL,NULL,NULL,'0548904383','0127429770',NULL,NULL,NULL,NULL,40,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-24 16:38:09','2023-09-24 16:38:09');

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

CREATE TABLE `currencies` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `symbol` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `thousand_separator` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `decimal_separator` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `currencies` VALUES (1,'Albania','Leke','ALL','Lek',',','.',NULL,NULL),(2,'America','Dollars','USD','$',',','.',NULL,NULL),(3,'Afghanistan','Afghanis','AF','؋',',','.',NULL,NULL),(4,'Argentina','Pesos','ARS','$',',','.',NULL,NULL),(5,'Aruba','Guilders','AWG','ƒ',',','.',NULL,NULL),(6,'Australia','Dollars','AUD','$',',','.',NULL,NULL),(7,'Azerbaijan','New Manats','AZ','ман',',','.',NULL,NULL),(8,'Bahamas','Dollars','BSD','$',',','.',NULL,NULL),(9,'Barbados','Dollars','BBD','$',',','.',NULL,NULL),(10,'Belarus','Rubles','BYR','p.',',','.',NULL,NULL),(11,'Belgium','Euro','EUR','€',',','.',NULL,NULL),(12,'Beliz','Dollars','BZD','BZ$',',','.',NULL,NULL),(13,'Bermuda','Dollars','BMD','$',',','.',NULL,NULL),(14,'Bolivia','Bolivianos','BOB','$b',',','.',NULL,NULL),(15,'Bosnia and Herzegovina','Convertible Marka','BAM','KM',',','.',NULL,NULL),(16,'Botswana','Pula\'s','BWP','P',',','.',NULL,NULL),(17,'Bulgaria','Leva','BG','лв',',','.',NULL,NULL),(18,'Brazil','Reais','BRL','R$',',','.',NULL,NULL),(19,'Britain [United Kingdom]','Pounds','GBP','£',',','.',NULL,NULL),(20,'Brunei Darussalam','Dollars','BND','$',',','.',NULL,NULL),(21,'Cambodia','Riels','KHR','៛',',','.',NULL,NULL),(22,'Canada','Dollars','CAD','$',',','.',NULL,NULL),(23,'Cayman Islands','Dollars','KYD','$',',','.',NULL,NULL),(24,'Chile','Pesos','CLP','$',',','.',NULL,NULL),(25,'China','Yuan Renminbi','CNY','¥',',','.',NULL,NULL),(26,'Colombia','Pesos','COP','$',',','.',NULL,NULL),(27,'Costa Rica','Colón','CRC','₡',',','.',NULL,NULL),(28,'Croatia','Kuna','HRK','kn',',','.',NULL,NULL),(29,'Cuba','Pesos','CUP','₱',',','.',NULL,NULL),(30,'Cyprus','Euro','EUR','€','.',',',NULL,NULL),(31,'Czech Republic','Koruny','CZK','Kč',',','.',NULL,NULL),(32,'Denmark','Kroner','DKK','kr',',','.',NULL,NULL),(33,'Dominican Republic','Pesos','DOP ','RD$',',','.',NULL,NULL),(34,'East Caribbean','Dollars','XCD','$',',','.',NULL,NULL),(35,'Egypt','Pounds','EGP','£',',','.',NULL,NULL),(36,'El Salvador','Colones','SVC','$',',','.',NULL,NULL),(37,'England [United Kingdom]','Pounds','GBP','£',',','.',NULL,NULL),(38,'Euro','Euro','EUR','€','.',',',NULL,NULL),(39,'Falkland Islands','Pounds','FKP','£',',','.',NULL,NULL),(40,'Fiji','Dollars','FJD','$',',','.',NULL,NULL),(41,'France','Euro','EUR','€','.',',',NULL,NULL),(42,'Ghana','Cedis','GHS','¢',',','.',NULL,NULL),(43,'Gibraltar','Pounds','GIP','£',',','.',NULL,NULL),(44,'Greece','Euro','EUR','€','.',',',NULL,NULL),(45,'Guatemala','Quetzales','GTQ','Q',',','.',NULL,NULL),(46,'Guernsey','Pounds','GGP','£',',','.',NULL,NULL),(47,'Guyana','Dollars','GYD','$',',','.',NULL,NULL),(48,'Holland [Netherlands]','Euro','EUR','€','.',',',NULL,NULL),(49,'Honduras','Lempiras','HNL','L',',','.',NULL,NULL),(50,'Hong Kong','Dollars','HKD','$',',','.',NULL,NULL),(51,'Hungary','Forint','HUF','Ft',',','.',NULL,NULL),(52,'Iceland','Kronur','ISK','kr',',','.',NULL,NULL),(53,'India','Rupees','INR','₹',',','.',NULL,NULL),(54,'Indonesia','Rupiahs','IDR','Rp',',','.',NULL,NULL),(55,'Iran','Rials','IRR','﷼',',','.',NULL,NULL),(56,'Ireland','Euro','EUR','€','.',',',NULL,NULL),(57,'Isle of Man','Pounds','IMP','£',',','.',NULL,NULL),(58,'Israel','New Shekels','ILS','₪',',','.',NULL,NULL),(59,'Italy','Euro','EUR','€','.',',',NULL,NULL),(60,'Jamaica','Dollars','JMD','J$',',','.',NULL,NULL),(61,'Japan','Yen','JPY','¥',',','.',NULL,NULL),(62,'Jersey','Pounds','JEP','£',',','.',NULL,NULL),(63,'Kazakhstan','Tenge','KZT','лв',',','.',NULL,NULL),(64,'Korea [North]','Won','KPW','₩',',','.',NULL,NULL),(65,'Korea [South]','Won','KRW','₩',',','.',NULL,NULL),(66,'Kyrgyzstan','Soms','KGS','лв',',','.',NULL,NULL),(67,'Laos','Kips','LAK','₭',',','.',NULL,NULL),(68,'Latvia','Lati','LVL','Ls',',','.',NULL,NULL),(69,'Lebanon','Pounds','LBP','£',',','.',NULL,NULL),(70,'Liberia','Dollars','LRD','$',',','.',NULL,NULL),(71,'Liechtenstein','Switzerland Francs','CHF','CHF',',','.',NULL,NULL),(72,'Lithuania','Litai','LTL','Lt',',','.',NULL,NULL),(73,'Luxembourg','Euro','EUR','€','.',',',NULL,NULL),(74,'Macedonia','Denars','MKD','ден',',','.',NULL,NULL),(75,'Malaysia','Ringgits','MYR','RM',',','.',NULL,NULL),(76,'Malta','Euro','EUR','€','.',',',NULL,NULL),(77,'Mauritius','Rupees','MUR','₨',',','.',NULL,NULL),(78,'Mexico','Pesos','MXN','$',',','.',NULL,NULL),(79,'Mongolia','Tugriks','MNT','₮',',','.',NULL,NULL),(80,'Mozambique','Meticais','MZ','MT',',','.',NULL,NULL),(81,'Namibia','Dollars','NAD','$',',','.',NULL,NULL),(82,'Nepal','Rupees','NPR','₨',',','.',NULL,NULL),(83,'Netherlands Antilles','Guilders','ANG','ƒ',',','.',NULL,NULL),(84,'Netherlands','Euro','EUR','€','.',',',NULL,NULL),(85,'New Zealand','Dollars','NZD','$',',','.',NULL,NULL),(86,'Nicaragua','Cordobas','NIO','C$',',','.',NULL,NULL),(87,'Nigeria','Nairas','NGN','₦',',','.',NULL,NULL),(88,'North Korea','Won','KPW','₩',',','.',NULL,NULL),(89,'Norway','Krone','NOK','kr',',','.',NULL,NULL),(90,'Oman','Rials','OMR','﷼',',','.',NULL,NULL),(91,'Pakistan','Rupees','PKR','₨',',','.',NULL,NULL),(92,'Panama','Balboa','PAB','B/.',',','.',NULL,NULL),(93,'Paraguay','Guarani','PYG','Gs',',','.',NULL,NULL),(94,'Peru','Nuevos Soles','PE','S/.',',','.',NULL,NULL),(95,'Philippines','Pesos','PHP','Php',',','.',NULL,NULL),(96,'Poland','Zlotych','PL','zł',',','.',NULL,NULL),(97,'Qatar','Rials','QAR','﷼',',','.',NULL,NULL),(98,'Romania','New Lei','RO','lei',',','.',NULL,NULL),(99,'Russia','Rubles','RUB','руб',',','.',NULL,NULL),(100,'Saint Helena','Pounds','SHP','£',',','.',NULL,NULL),(101,'Saudi Arabia','Riyals','SAR','﷼',',','.',NULL,NULL),(102,'Serbia','Dinars','RSD','Дин.',',','.',NULL,NULL),(103,'Seychelles','Rupees','SCR','₨',',','.',NULL,NULL),(104,'Singapore','Dollars','SGD','$',',','.',NULL,NULL),(105,'Slovenia','Euro','EUR','€','.',',',NULL,NULL),(106,'Solomon Islands','Dollars','SBD','$',',','.',NULL,NULL),(107,'Somalia','Shillings','SOS','S',',','.',NULL,NULL),(108,'South Africa','Rand','ZAR','R',',','.',NULL,NULL),(109,'South Korea','Won','KRW','₩',',','.',NULL,NULL),(110,'Spain','Euro','EUR','€','.',',',NULL,NULL),(111,'Sri Lanka','Rupees','LKR','₨',',','.',NULL,NULL),(112,'Sweden','Kronor','SEK','kr',',','.',NULL,NULL),(113,'Switzerland','Francs','CHF','CHF',',','.',NULL,NULL),(114,'Suriname','Dollars','SRD','$',',','.',NULL,NULL),(115,'Syria','Pounds','SYP','£',',','.',NULL,NULL),(116,'Taiwan','New Dollars','TWD','NT$',',','.',NULL,NULL),(117,'Thailand','Baht','THB','฿',',','.',NULL,NULL),(118,'Trinidad and Tobago','Dollars','TTD','TT$',',','.',NULL,NULL),(119,'Turkey','Lira','TRY','TL',',','.',NULL,NULL),(120,'Turkey','Liras','TRL','£',',','.',NULL,NULL),(121,'Tuvalu','Dollars','TVD','$',',','.',NULL,NULL),(122,'Ukraine','Hryvnia','UAH','₴',',','.',NULL,NULL),(123,'United Kingdom','Pounds','GBP','£',',','.',NULL,NULL),(124,'United States of America','Dollars','USD','$',',','.',NULL,NULL),(125,'Uruguay','Pesos','UYU','$U',',','.',NULL,NULL),(126,'Uzbekistan','Sums','UZS','лв',',','.',NULL,NULL),(127,'Vatican City','Euro','EUR','€','.',',',NULL,NULL),(128,'Venezuela','Bolivares Fuertes','VEF','Bs',',','.',NULL,NULL),(129,'Vietnam','Dong','VND','₫',',','.',NULL,NULL),(130,'Yemen','Rials','YER','﷼',',','.',NULL,NULL),(131,'Zimbabwe','Zimbabwe Dollars','ZWD','Z$',',','.',NULL,NULL),(132,'Iraq','Iraqi dinar','IQD','د.ع',',','.',NULL,NULL),(133,'Kenya','Kenyan shilling','KES','KSh',',','.',NULL,NULL),(134,'Bangladesh','Taka','BDT','৳',',','.',NULL,NULL),(135,'Algerie','Algerian dinar','DZD','د.ج',' ','.',NULL,NULL),(136,'United Arab Emirates','United Arab Emirates dirham','AED','د.إ',',','.',NULL,NULL),(137,'Uganda','Uganda shillings','UGX','USh',',','.',NULL,NULL),(138,'Tanzania','Tanzanian shilling','TZS','TSh',',','.',NULL,NULL),(139,'Angola','Kwanza','AOA','Kz',',','.',NULL,NULL),(140,'Kuwait','Kuwaiti dinar','KWD','KD',',','.',NULL,NULL),(141,'Bahrain','Bahraini dinar','BHD','BD',',','.',NULL,NULL);

--
-- Table structure for table `customer_groups`
--

CREATE TABLE `customer_groups` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(5,2) NOT NULL,
  `price_calculation_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'percentage',
  `selling_price_group_id` int DEFAULT NULL,
  `created_by` int unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `customer_groups_business_id_foreign` (`business_id`),
  KEY `customer_groups_created_by_index` (`created_by`),
  KEY `customer_groups_price_calculation_type_index` (`price_calculation_type`),
  KEY `customer_groups_selling_price_group_id_index` (`selling_price_group_id`),
  CONSTRAINT `customer_groups_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `customer_groups`
--


--
-- Table structure for table `dashboard_configurations`
--

CREATE TABLE `dashboard_configurations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int unsigned NOT NULL,
  `created_by` int NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `color` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dashboard_configurations_business_id_foreign` (`business_id`),
  CONSTRAINT `dashboard_configurations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dashboard_configurations`
--


--
-- Table structure for table `discount_variations`
--

CREATE TABLE `discount_variations` (
  `discount_id` int NOT NULL,
  `variation_id` int NOT NULL,
  KEY `discount_variations_discount_id_index` (`discount_id`),
  KEY `discount_variations_variation_id_index` (`variation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `discount_variations`
--


--
-- Table structure for table `discounts`
--

CREATE TABLE `discounts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int NOT NULL,
  `brand_id` int DEFAULT NULL,
  `category_id` int DEFAULT NULL,
  `location_id` int DEFAULT NULL,
  `priority` int DEFAULT NULL,
  `discount_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `discount_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `starts_at` datetime DEFAULT NULL,
  `ends_at` datetime DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `spg` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Applicable in specified selling price group only. Use of applicable_in_spg column is discontinued',
  `applicable_in_cg` tinyint(1) DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `discounts_business_id_index` (`business_id`),
  KEY `discounts_brand_id_index` (`brand_id`),
  KEY `discounts_category_id_index` (`category_id`),
  KEY `discounts_location_id_index` (`location_id`),
  KEY `discounts_priority_index` (`priority`),
  KEY `discounts_spg_index` (`spg`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `discounts`
--


--
-- Table structure for table `document_and_notes`
--

CREATE TABLE `document_and_notes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `notable_id` int NOT NULL,
  `notable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `heading` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_private` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `document_and_notes_business_id_index` (`business_id`),
  KEY `document_and_notes_notable_id_index` (`notable_id`),
  KEY `document_and_notes_created_by_index` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `document_and_notes`
--


--
-- Table structure for table `essentials_allowances_and_deductions`
--

CREATE TABLE `essentials_allowances_and_deductions` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` enum('allowance','deduction') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` decimal(22,4) NOT NULL,
  `amount_type` enum('fixed','percent') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `applicable_date` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `essentials_allowances_and_deductions_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_allowances_and_deductions`
--


--
-- Table structure for table `essentials_attendances`
--

CREATE TABLE `essentials_attendances` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `business_id` int NOT NULL,
  `clock_in_time` datetime DEFAULT NULL,
  `clock_out_time` datetime DEFAULT NULL,
  `essentials_shift_id` int DEFAULT NULL,
  `ip_address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `clock_in_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `clock_out_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `essentials_attendances_user_id_index` (`user_id`),
  KEY `essentials_attendances_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_attendances`
--


--
-- Table structure for table `essentials_document_shares`
--

CREATE TABLE `essentials_document_shares` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `document_id` int NOT NULL,
  `value_type` enum('user','role') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_document_shares`
--


--
-- Table structure for table `essentials_documents`
--

CREATE TABLE `essentials_documents` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `user_id` int NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_documents`
--


--
-- Table structure for table `essentials_holidays`
--

CREATE TABLE `essentials_holidays` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `business_id` int NOT NULL,
  `location_id` int DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `essentials_holidays_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_holidays`
--


--
-- Table structure for table `essentials_leave_types`
--

CREATE TABLE `essentials_leave_types` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `leave_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `max_leave_count` int DEFAULT NULL,
  `leave_count_interval` enum('month','year') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `business_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `essentials_leave_types_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_leave_types`
--


--
-- Table structure for table `essentials_leaves`
--

CREATE TABLE `essentials_leaves` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `essentials_leave_type_id` int DEFAULT NULL,
  `business_id` int NOT NULL,
  `user_id` int NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `ref_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` enum('pending','approved','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `essentials_leaves_essentials_leave_type_id_index` (`essentials_leave_type_id`),
  KEY `essentials_leaves_business_id_index` (`business_id`),
  KEY `essentials_leaves_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_leaves`
--


--
-- Table structure for table `essentials_messages`
--

CREATE TABLE `essentials_messages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `user_id` int NOT NULL,
  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_messages`
--


--
-- Table structure for table `essentials_reminders`
--

CREATE TABLE `essentials_reminders` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `user_id` int NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `time` time NOT NULL,
  `repeat` enum('one_time','every_day','every_week','every_month') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_reminders`
--


--
-- Table structure for table `essentials_shifts`
--

CREATE TABLE `essentials_shifts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` enum('fixed_shift','flexible_shift') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fixed_shift',
  `business_id` int NOT NULL,
  `start_time` time DEFAULT NULL,
  `end_time` time DEFAULT NULL,
  `holidays` text CHARACTER SET utf8mb4 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;

--
-- Dumping data for table `essentials_shifts`
--


--
-- Table structure for table `essentials_to_dos`
--

CREATE TABLE `essentials_to_dos` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `task` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `task_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `estimated_hours` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `priority` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `essentials_to_dos_status_index` (`status`),
  KEY `essentials_to_dos_priority_index` (`priority`),
  KEY `essentials_to_dos_created_by_index` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_to_dos`
--


--
-- Table structure for table `essentials_todo_comments`
--

CREATE TABLE `essentials_todo_comments` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `task_id` int NOT NULL,
  `comment_by` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `essentials_todo_comments_task_id_index` (`task_id`),
  KEY `essentials_todo_comments_comment_by_index` (`comment_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_todo_comments`
--


--
-- Table structure for table `essentials_todos_users`
--

CREATE TABLE `essentials_todos_users` (
  `todo_id` int NOT NULL,
  `user_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_todos_users`
--


--
-- Table structure for table `essentials_user_allowance_and_deductions`
--

CREATE TABLE `essentials_user_allowance_and_deductions` (
  `user_id` int NOT NULL,
  `allowance_deduction_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_user_allowance_and_deductions`
--


--
-- Table structure for table `essentials_user_shifts`
--

CREATE TABLE `essentials_user_shifts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `essentials_shift_id` int NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `essentials_user_shifts`
--


--
-- Table structure for table `expense_categories`
--

CREATE TABLE `expense_categories` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int unsigned NOT NULL,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `expense_categories_business_id_foreign` (`business_id`),
  CONSTRAINT `expense_categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `expense_categories`
--


--
-- Table structure for table `group_sub_taxes`
--

CREATE TABLE `group_sub_taxes` (
  `group_tax_id` int unsigned NOT NULL,
  `tax_id` int unsigned NOT NULL,
  KEY `group_sub_taxes_group_tax_id_foreign` (`group_tax_id`),
  KEY `group_sub_taxes_tax_id_foreign` (`tax_id`),
  CONSTRAINT `group_sub_taxes_group_tax_id_foreign` FOREIGN KEY (`group_tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
  CONSTRAINT `group_sub_taxes_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `group_sub_taxes`
--


--
-- Table structure for table `invoice_layouts`
--

CREATE TABLE `invoice_layouts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `header_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `invoice_no_prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quotation_no_prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_heading` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line5` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_heading_not_paid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_heading_paid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quotation_heading` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_total_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `discount_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `round_off_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_due_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paid_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_client_id` tinyint(1) NOT NULL DEFAULT '0',
  `client_id_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `client_tax_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date_time_format` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_time` tinyint(1) NOT NULL DEFAULT '1',
  `show_brand` tinyint(1) NOT NULL DEFAULT '0',
  `show_sku` tinyint(1) NOT NULL DEFAULT '1',
  `show_cat_code` tinyint(1) NOT NULL DEFAULT '1',
  `show_expiry` tinyint(1) NOT NULL DEFAULT '0',
  `show_lot` tinyint(1) NOT NULL DEFAULT '0',
  `show_image` tinyint(1) NOT NULL DEFAULT '0',
  `show_sale_description` tinyint(1) NOT NULL DEFAULT '0',
  `sales_person_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_sales_person` tinyint(1) NOT NULL DEFAULT '0',
  `table_product_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_qty_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_unit_price_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_subtotal_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cat_code_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `logo` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_logo` tinyint(1) NOT NULL DEFAULT '0',
  `show_business_name` tinyint(1) NOT NULL DEFAULT '0',
  `show_location_name` tinyint(1) NOT NULL DEFAULT '1',
  `show_landmark` tinyint(1) NOT NULL DEFAULT '1',
  `show_city` tinyint(1) NOT NULL DEFAULT '1',
  `show_state` tinyint(1) NOT NULL DEFAULT '1',
  `show_zip_code` tinyint(1) NOT NULL DEFAULT '1',
  `show_country` tinyint(1) NOT NULL DEFAULT '1',
  `show_mobile_number` tinyint(1) NOT NULL DEFAULT '1',
  `show_alternate_number` tinyint(1) NOT NULL DEFAULT '0',
  `show_email` tinyint(1) NOT NULL DEFAULT '0',
  `show_tax_1` tinyint(1) NOT NULL DEFAULT '1',
  `show_tax_2` tinyint(1) NOT NULL DEFAULT '0',
  `show_barcode` tinyint(1) NOT NULL DEFAULT '0',
  `show_payments` tinyint(1) NOT NULL DEFAULT '0',
  `show_customer` tinyint(1) NOT NULL DEFAULT '0',
  `customer_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `commission_agent_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_commission_agent` tinyint(1) NOT NULL DEFAULT '0',
  `show_reward_point` tinyint(1) NOT NULL DEFAULT '0',
  `highlight_color` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `footer_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `module_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `common_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `business_id` int unsigned NOT NULL,
  `show_letter_head` tinyint(1) NOT NULL DEFAULT '0',
  `letter_head` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_qr_code` tinyint(1) NOT NULL DEFAULT '0',
  `qr_code_fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `design` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'classic',
  `cn_heading` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cn = credit note',
  `cn_no_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cn_amount_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_tax_headings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `show_previous_bal` tinyint(1) NOT NULL DEFAULT '0',
  `prev_bal_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `change_return_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_custom_fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `contact_custom_fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `location_custom_fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `invoice_layouts_business_id_foreign` (`business_id`),
  CONSTRAINT `invoice_layouts_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `invoice_layouts`
--

INSERT INTO `invoice_layouts` VALUES (1,'Default',NULL,'Invoice No',NULL,'Invoice',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Subtotal','Discount','Vat','Total',NULL,'Total Due','Total Paid',0,NULL,'Customer vat number','Date',NULL,1,0,1,1,0,0,0,1,NULL,0,'Product','Qty','Unit Price','Subtotal',NULL,'1618238776_Letter header.png',1,1,1,1,1,0,1,0,1,0,0,1,0,1,1,1,'Customer',NULL,0,0,'#000000',NULL,'{\"tables\":{\"table_label\":null}}','{\"proforma_heading\":null,\"sales_order_heading\":null,\"due_date_label\":\"Due Date\",\"show_due_date\":\"1\",\"total_quantity_label\":null,\"item_discount_label\":null,\"discounted_unit_price_label\":null,\"show_product_description\":\"1\",\"total_items_label\":null,\"show_total_in_words\":\"1\",\"num_to_word_format\":\"international\",\"tax_summary_label\":null,\"zatca_qr\":\"1\"}',1,1,0,NULL,1,'[\"business_name\",\"address\",\"tax_1\",\"invoice_no\",\"invoice_datetime\",\"subtotal\",\"total_amount\",\"total_tax\",\"customer_name\",\"invoice_url\"]','slim',NULL,NULL,NULL,'[\"VAT @15%\",null,null,null]',0,'Total Due',NULL,'[\"product_custom_field1\"]',NULL,NULL,'2021-04-12 15:24:42','2023-09-19 15:25:50'),(2,'Default',NULL,'Invoice No.',NULL,'Invoice',NULL,NULL,NULL,NULL,NULL,'','',NULL,'Subtotal','Discount','Tax','Total',NULL,'Total Due','Total Paid',0,NULL,NULL,'Date',NULL,1,0,1,1,0,0,0,0,NULL,0,'Product','Quantity','Unit Price','Subtotal',NULL,NULL,0,0,1,1,1,1,1,1,1,0,0,1,0,0,1,1,'Customer',NULL,0,0,'#000000','',NULL,NULL,1,2,0,NULL,0,NULL,'classic',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(3,'Default',NULL,'Invoice No.',NULL,'Invoice',NULL,NULL,NULL,NULL,NULL,'','',NULL,'Subtotal','Discount','Tax','Total',NULL,'Total Due','Total Paid',0,NULL,NULL,'Date',NULL,1,0,1,1,0,0,0,0,NULL,0,'Product','Quantity','Unit Price','Subtotal',NULL,NULL,0,0,1,1,1,1,1,1,1,0,0,1,0,0,1,1,'Customer',NULL,0,0,'#000000','',NULL,NULL,1,3,0,NULL,0,NULL,'classic',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(4,'Transfer Layout',NULL,'Store Transfer No.','Quotation number',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Quotation','Subtotal','Discount',NULL,'Total','Round Off','Due','Total paid',0,NULL,NULL,'Date',NULL,1,0,1,0,0,0,0,0,NULL,0,'Product','Quantity','Unit Price','Subtotal','HSN',NULL,0,0,1,1,0,0,0,1,0,0,0,0,0,0,1,1,'Customer','Commission Agent',0,0,'#000000',NULL,'{\"tables\":{\"table_label\":\"Table\"}}','{\"proforma_heading\":\"Proforma invoice\",\"sales_order_heading\":\"Sales Order\",\"due_date_label\":\"Due Date\",\"total_quantity_label\":\"Total Quantity\",\"item_discount_label\":\"Discount\",\"discounted_unit_price_label\":\"Price after discount\",\"total_items_label\":null,\"num_to_word_format\":\"international\",\"tax_summary_label\":null}',0,1,0,NULL,0,NULL,'slim2','Credit Note','Reference No','Credit Amount',NULL,0,NULL,'Change Return',NULL,NULL,NULL,'2023-09-24 00:14:22','2023-09-24 11:46:25');

--
-- Table structure for table `invoice_schemes`
--

CREATE TABLE `invoice_schemes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `scheme_type` enum('blank','year') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `start_number` int DEFAULT NULL,
  `invoice_count` int NOT NULL DEFAULT '0',
  `total_digits` int DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `transfer` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `invoice_schemes_business_id_foreign` (`business_id`),
  KEY `invoice_schemes_scheme_type_index` (`scheme_type`),
  CONSTRAINT `invoice_schemes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `invoice_schemes`
--

INSERT INTO `invoice_schemes` VALUES (1,1,'Default','year',NULL,1,664,4,1,'2021-04-12 15:24:42','2023-09-25 15:17:59',NULL),(2,2,'Default','blank','',1,0,4,1,'2021-04-18 05:28:38','2021-04-18 05:28:38',NULL),(3,3,'Default','blank','',1,0,4,1,'2022-01-11 18:53:41','2022-01-11 18:53:41',NULL),(5,1,'Sale Invoice','blank',NULL,1,15,4,0,'2023-09-02 00:33:27','2023-09-25 14:43:56',1);

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

CREATE TABLE `media` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `uploaded_by` int DEFAULT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `woocommerce_media_id` int DEFAULT NULL,
  `model_media_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `model_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `media_model_type_model_id_index` (`model_type`,`model_id`),
  KEY `media_business_id_index` (`business_id`),
  KEY `media_uploaded_by_index` (`uploaded_by`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `media`
--

INSERT INTO `media` VALUES (1,1,'1631684233_507119618_blank.png',NULL,1,'App\\User',NULL,NULL,1,'2021-09-15 13:37:13','2021-09-15 13:37:13');

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

CREATE TABLE `migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=362 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `migrations` VALUES (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_password_resets_table',1),(3,'2016_06_01_000001_create_oauth_auth_codes_table',1),(4,'2016_06_01_000002_create_oauth_access_tokens_table',1),(5,'2016_06_01_000003_create_oauth_refresh_tokens_table',1),(6,'2016_06_01_000004_create_oauth_clients_table',1),(7,'2016_06_01_000005_create_oauth_personal_access_clients_table',1),(8,'2017_07_05_071953_create_currencies_table',1),(9,'2017_07_05_073658_create_business_table',1),(10,'2017_07_22_075923_add_business_id_users_table',1),(11,'2017_07_23_113209_create_brands_table',1),(12,'2017_07_26_083429_create_permission_tables',1),(13,'2017_07_26_110000_create_tax_rates_table',1),(14,'2017_07_26_122313_create_units_table',1),(15,'2017_07_27_075706_create_contacts_table',1),(16,'2017_08_04_071038_create_categories_table',1),(17,'2017_08_08_115903_create_products_table',1),(18,'2017_08_09_061616_create_variation_templates_table',1),(19,'2017_08_09_061638_create_variation_value_templates_table',1),(20,'2017_08_10_061146_create_product_variations_table',1),(21,'2017_08_10_061216_create_variations_table',1),(22,'2017_08_19_054827_create_transactions_table',1),(23,'2017_08_31_073533_create_purchase_lines_table',1),(24,'2017_10_15_064638_create_transaction_payments_table',1),(25,'2017_10_31_065621_add_default_sales_tax_to_business_table',1),(26,'2017_11_20_051930_create_table_group_sub_taxes',1),(27,'2017_11_20_063603_create_transaction_sell_lines',1),(28,'2017_11_21_064540_create_barcodes_table',1),(29,'2017_11_23_181237_create_invoice_schemes_table',1),(30,'2017_12_25_122822_create_business_locations_table',1),(31,'2017_12_25_160253_add_location_id_to_transactions_table',1),(32,'2017_12_25_163227_create_variation_location_details_table',1),(33,'2018_01_04_115627_create_sessions_table',1),(34,'2018_01_05_112817_create_invoice_layouts_table',1),(35,'2018_01_06_112303_add_invoice_scheme_id_and_invoice_layout_id_to_business_locations',1),(36,'2018_01_08_104124_create_expense_categories_table',1),(37,'2018_01_08_123327_modify_transactions_table_for_expenses',1),(38,'2018_01_09_111005_modify_payment_status_in_transactions_table',1),(39,'2018_01_09_111109_add_paid_on_column_to_transaction_payments_table',1),(40,'2018_01_25_172439_add_printer_related_fields_to_business_locations_table',1),(41,'2018_01_27_184322_create_printers_table',1),(42,'2018_01_30_181442_create_cash_registers_table',1),(43,'2018_01_31_125836_create_cash_register_transactions_table',1),(44,'2018_02_07_173326_modify_business_table',1),(45,'2018_02_08_105425_add_enable_product_expiry_column_to_business_table',1),(46,'2018_02_08_111027_add_expiry_period_and_expiry_period_type_columns_to_products_table',1),(47,'2018_02_08_131118_add_mfg_date_and_exp_date_purchase_lines_table',1),(48,'2018_02_08_155348_add_exchange_rate_to_transactions_table',1),(49,'2018_02_09_124945_modify_transaction_payments_table_for_contact_payments',1),(50,'2018_02_12_113640_create_transaction_sell_lines_purchase_lines_table',1),(51,'2018_02_12_114605_add_quantity_sold_in_purchase_lines_table',1),(52,'2018_02_13_183323_alter_decimal_fields_size',1),(53,'2018_02_14_161928_add_transaction_edit_days_to_business_table',1),(54,'2018_02_15_161032_add_document_column_to_transactions_table',1),(55,'2018_02_17_124709_add_more_options_to_invoice_layouts',1),(56,'2018_02_19_111517_add_keyboard_shortcut_column_to_business_table',1),(57,'2018_02_19_121537_stock_adjustment_move_to_transaction_table',1),(58,'2018_02_20_165505_add_is_direct_sale_column_to_transactions_table',1),(59,'2018_02_21_105329_create_system_table',1),(60,'2018_02_23_100549_version_1_2',1),(61,'2018_02_23_125648_add_enable_editing_sp_from_purchase_column_to_business_table',1),(62,'2018_02_26_103612_add_sales_commission_agent_column_to_business_table',1),(63,'2018_02_26_130519_modify_users_table_for_sales_cmmsn_agnt',1),(64,'2018_02_26_134500_add_commission_agent_to_transactions_table',1),(65,'2018_02_27_121422_add_item_addition_method_to_business_table',1),(66,'2018_02_27_170232_modify_transactions_table_for_stock_transfer',1),(67,'2018_03_05_153510_add_enable_inline_tax_column_to_business_table',1),(68,'2018_03_06_210206_modify_product_barcode_types',1),(69,'2018_03_13_181541_add_expiry_type_to_business_table',1),(70,'2018_03_16_113446_product_expiry_setting_for_business',1),(71,'2018_03_19_113601_add_business_settings_options',1),(72,'2018_03_26_125334_add_pos_settings_to_business_table',1),(73,'2018_03_26_165350_create_customer_groups_table',1),(74,'2018_03_27_122720_customer_group_related_changes_in_tables',1),(75,'2018_03_29_110138_change_tax_field_to_nullable_in_business_table',1),(76,'2018_03_29_115502_add_changes_for_sr_number_in_products_and_sale_lines_table',1),(77,'2018_03_29_134340_add_inline_discount_fields_in_purchase_lines',1),(78,'2018_03_31_140921_update_transactions_table_exchange_rate',1),(79,'2018_04_03_103037_add_contact_id_to_contacts_table',1),(80,'2018_04_03_122709_add_changes_to_invoice_layouts_table',1),(81,'2018_04_09_135320_change_exchage_rate_size_in_business_table',1),(82,'2018_04_17_123122_add_lot_number_to_business',1),(83,'2018_04_17_160845_add_product_racks_table',1),(84,'2018_04_20_182015_create_res_tables_table',1),(85,'2018_04_24_105246_restaurant_fields_in_transaction_table',1),(86,'2018_04_24_114149_add_enabled_modules_business_table',1),(87,'2018_04_24_133704_add_modules_fields_in_invoice_layout_table',1),(88,'2018_04_27_132653_quotation_related_change',1),(89,'2018_05_02_104439_add_date_format_and_time_format_to_business',1),(90,'2018_05_02_111939_add_sell_return_to_transaction_payments',1),(91,'2018_05_14_114027_add_rows_positions_for_products',1),(92,'2018_05_14_125223_add_weight_to_products_table',1),(93,'2018_05_14_164754_add_opening_stock_permission',1),(94,'2018_05_15_134729_add_design_to_invoice_layouts',1),(95,'2018_05_16_183307_add_tax_fields_invoice_layout',1),(96,'2018_05_18_191956_add_sell_return_to_transaction_table',1),(97,'2018_05_21_131349_add_custom_fileds_to_contacts_table',1),(98,'2018_05_21_131607_invoice_layout_fields_for_sell_return',1),(99,'2018_05_21_131949_add_custom_fileds_and_website_to_business_locations_table',1),(100,'2018_05_22_123527_create_reference_counts_table',1),(101,'2018_05_22_154540_add_ref_no_prefixes_column_to_business_table',1),(102,'2018_05_24_132620_add_ref_no_column_to_transaction_payments_table',1),(103,'2018_05_24_161026_add_location_id_column_to_business_location_table',1),(104,'2018_05_25_180603_create_modifiers_related_table',1),(105,'2018_05_29_121714_add_purchase_line_id_to_stock_adjustment_line_table',1),(106,'2018_05_31_114645_add_res_order_status_column_to_transactions_table',1),(107,'2018_06_05_103530_rename_purchase_line_id_in_stock_adjustment_lines_table',1),(108,'2018_06_05_111905_modify_products_table_for_modifiers',1),(109,'2018_06_06_110524_add_parent_sell_line_id_column_to_transaction_sell_lines_table',1),(110,'2018_06_07_152443_add_is_service_staff_to_roles_table',1),(111,'2018_06_07_182258_add_image_field_to_products_table',1),(112,'2018_06_13_133705_create_bookings_table',1),(113,'2018_06_15_173636_add_email_column_to_contacts_table',1),(114,'2018_06_27_182835_add_superadmin_related_fields_business',1),(115,'2018_07_10_101913_add_custom_fields_to_products_table',1),(116,'2018_07_17_103434_add_sales_person_name_label_to_invoice_layouts_table',1),(117,'2018_07_17_163920_add_theme_skin_color_column_to_business_table',1),(118,'2018_07_24_160319_add_lot_no_line_id_to_transaction_sell_lines_table',1),(119,'2018_07_25_110004_add_show_expiry_and_show_lot_colums_to_invoice_layouts_table',1),(120,'2018_07_25_172004_add_discount_columns_to_transaction_sell_lines_table',1),(121,'2018_07_26_124720_change_design_column_type_in_invoice_layouts_table',1),(122,'2018_07_26_170424_add_unit_price_before_discount_column_to_transaction_sell_line_table',1),(123,'2018_07_28_103614_add_credit_limit_column_to_contacts_table',1),(124,'2018_08_08_110755_add_new_payment_methods_to_transaction_payments_table',1),(125,'2018_08_08_122225_modify_cash_register_transactions_table_for_new_payment_methods',1),(126,'2018_08_14_104036_add_opening_balance_type_to_transactions_table',1),(127,'2018_09_04_155900_create_accounts_table',1),(128,'2018_09_06_114438_create_selling_price_groups_table',1),(129,'2018_09_06_154057_create_variation_group_prices_table',1),(130,'2018_09_07_102413_add_permission_to_access_default_selling_price',1),(131,'2018_09_07_134858_add_selling_price_group_id_to_transactions_table',1),(132,'2018_09_10_112448_update_product_type_to_single_if_null_in_products_table',1),(133,'2018_09_10_152703_create_account_transactions_table',1),(134,'2018_09_10_173656_add_account_id_column_to_transaction_payments_table',1),(135,'2018_09_19_123914_create_notification_templates_table',1),(136,'2018_09_22_110504_add_sms_and_email_settings_columns_to_business_table',1),(137,'2018_09_24_134942_add_lot_no_line_id_to_stock_adjustment_lines_table',1),(138,'2018_09_26_105557_add_transaction_payments_for_existing_expenses',1),(139,'2018_09_27_111609_modify_transactions_table_for_purchase_return',1),(140,'2018_09_27_131154_add_quantity_returned_column_to_purchase_lines_table',1),(141,'2018_10_02_131401_add_return_quantity_column_to_transaction_sell_lines_table',1),(142,'2018_10_03_104918_add_qty_returned_column_to_transaction_sell_lines_purchase_lines_table',1),(143,'2018_10_03_185947_add_default_notification_templates_to_database',1),(144,'2018_10_09_153105_add_business_id_to_transaction_payments_table',1),(145,'2018_10_16_135229_create_permission_for_sells_and_purchase',1),(146,'2018_10_22_114441_add_columns_for_variable_product_modifications',1),(147,'2018_10_22_134428_modify_variable_product_data',1),(148,'2018_10_30_181558_add_table_tax_headings_to_invoice_layout',1),(149,'2018_10_31_122619_add_pay_terms_field_transactions_table',1),(150,'2018_10_31_161328_add_new_permissions_for_pos_screen',1),(151,'2018_10_31_174752_add_access_selected_contacts_only_to_users_table',1),(152,'2018_10_31_175627_add_user_contact_access',1),(153,'2018_10_31_180559_add_auto_send_sms_column_to_notification_templates_table',1),(154,'2018_11_02_171949_change_card_type_column_to_varchar_in_transaction_payments_table',1),(155,'2018_11_08_105621_add_role_permissions',1),(156,'2018_11_26_114135_add_is_suspend_column_to_transactions_table',1),(157,'2018_11_28_104410_modify_units_table_for_multi_unit',1),(158,'2018_11_28_170952_add_sub_unit_id_to_purchase_lines_and_sell_lines',1),(159,'2018_11_29_115918_add_primary_key_in_system_table',1),(160,'2018_12_03_185546_add_product_description_column_to_products_table',1),(161,'2018_12_06_114937_modify_system_table_and_users_table',1),(162,'2018_12_13_160007_add_custom_fields_display_options_to_invoice_layouts_table',1),(163,'2018_12_14_103307_modify_system_table',1),(164,'2018_12_18_133837_add_prev_balance_due_columns_to_invoice_layouts_table',1),(165,'2018_12_18_170656_add_invoice_token_column_to_transaction_table',1),(166,'2018_12_20_133639_add_date_time_format_column_to_invoice_layouts_table',1),(167,'2018_12_21_120659_add_recurring_invoice_fields_to_transactions_table',1),(168,'2018_12_24_154933_create_notifications_table',1),(169,'2019_01_08_112015_add_document_column_to_transaction_payments_table',1),(170,'2019_01_10_124645_add_account_permission',1),(171,'2019_01_16_125825_add_subscription_no_column_to_transactions_table',1),(172,'2019_01_28_111647_add_order_addresses_column_to_transactions_table',1),(173,'2019_02_13_173821_add_is_inactive_column_to_products_table',1),(174,'2019_02_19_103118_create_discounts_table',1),(175,'2019_02_21_120324_add_discount_id_column_to_transaction_sell_lines_table',1),(176,'2019_02_21_134324_add_permission_for_discount',1),(177,'2019_03_04_170832_add_service_staff_columns_to_transaction_sell_lines_table',1),(178,'2019_03_09_102425_add_sub_type_column_to_transactions_table',1),(179,'2019_03_09_124457_add_indexing_transaction_sell_lines_purchase_lines_table',1),(180,'2019_03_12_120336_create_activity_log_table',1),(181,'2019_03_15_132925_create_media_table',1),(182,'2019_05_08_130339_add_indexing_to_parent_id_in_transaction_payments_table',1),(183,'2019_05_10_132311_add_missing_column_indexing',1),(184,'2019_05_14_091812_add_show_image_column_to_invoice_layouts_table',1),(185,'2019_05_25_104922_add_view_purchase_price_permission',1),(186,'2019_06_17_103515_add_profile_informations_columns_to_users_table',1),(187,'2019_06_18_135524_add_permission_to_view_own_sales_only',1),(188,'2019_06_19_112058_add_database_changes_for_reward_points',1),(189,'2019_06_28_133732_change_type_column_to_string_in_transactions_table',1),(190,'2019_07_13_111420_add_is_created_from_api_column_to_transactions_table',1),(191,'2019_07_15_165136_add_fields_for_combo_product',1),(192,'2019_07_19_103446_add_mfg_quantity_used_column_to_purchase_lines_table',1),(193,'2019_07_22_152649_add_not_for_selling_in_product_table',1),(194,'2019_07_29_185351_add_show_reward_point_column_to_invoice_layouts_table',1),(195,'2019_08_08_162302_add_sub_units_related_fields',1),(196,'2019_08_26_133419_update_price_fields_decimal_point',1),(197,'2019_09_02_160054_remove_location_permissions_from_roles',1),(198,'2019_09_03_185259_add_permission_for_pos_screen',1),(199,'2019_09_04_163141_add_location_id_to_cash_registers_table',1),(200,'2019_09_04_184008_create_types_of_services_table',1),(201,'2019_09_06_131445_add_types_of_service_fields_to_transactions_table',1),(202,'2019_09_09_134810_add_default_selling_price_group_id_column_to_business_locations_table',1),(203,'2019_09_12_105616_create_product_locations_table',1),(204,'2019_09_17_122522_add_custom_labels_column_to_business_table',1),(205,'2019_09_18_164319_add_shipping_fields_to_transactions_table',1),(206,'2019_09_19_170927_close_all_active_registers',1),(207,'2019_09_23_161906_add_media_description_cloumn_to_media_table',1),(208,'2019_10_18_155633_create_account_types_table',1),(209,'2019_10_22_163335_add_common_settings_column_to_business_table',1),(210,'2019_10_29_132521_add_update_purchase_status_permission',1),(211,'2019_11_09_110522_add_indexing_to_lot_number',1),(212,'2019_11_19_170824_add_is_active_column_to_business_locations_table',1),(213,'2019_11_21_162913_change_quantity_field_types_to_decimal',1),(214,'2019_11_25_160340_modify_categories_table_for_polymerphic_relationship',1),(215,'2019_12_02_105025_create_warranties_table',1),(216,'2019_12_03_180342_add_common_settings_field_to_invoice_layouts_table',1),(217,'2019_12_05_183955_add_more_fields_to_users_table',1),(218,'2019_12_06_174904_add_change_return_label_column_to_invoice_layouts_table',1),(219,'2019_12_11_121307_add_draft_and_quotation_list_permissions',1),(220,'2019_12_12_180126_copy_expense_total_to_total_before_tax',1),(221,'2019_12_19_181412_make_alert_quantity_field_nullable_on_products_table',1),(222,'2019_12_25_173413_create_dashboard_configurations_table',1),(223,'2020_01_08_133506_create_document_and_notes_table',1),(224,'2020_01_09_113252_add_cc_bcc_column_to_notification_templates_table',1),(225,'2020_01_16_174818_add_round_off_amount_field_to_transactions_table',1),(226,'2020_01_28_162345_add_weighing_scale_settings_in_business_settings_table',1),(227,'2020_02_18_172447_add_import_fields_to_transactions_table',1),(228,'2020_03_13_135844_add_is_active_column_to_selling_price_groups_table',1),(229,'2020_03_16_115449_add_contact_status_field_to_contacts_table',1),(230,'2020_03_26_124736_add_allow_login_column_in_users_table',1),(231,'2020_04_13_154150_add_feature_products_column_to_business_loactions',1),(232,'2020_04_15_151802_add_user_type_to_users_table',1),(233,'2020_04_22_153905_add_subscription_repeat_on_column_to_transactions_table',1),(234,'2020_04_28_111436_add_shipping_address_to_contacts_table',1),(235,'2020_06_01_094654_add_max_sale_discount_column_to_users_table',1),(236,'2020_06_12_162245_modify_contacts_table',1),(237,'2020_06_22_103104_change_recur_interval_default_to_one',1),(238,'2020_07_09_174621_add_balance_field_to_contacts_table',1),(239,'2020_07_23_104933_change_status_column_to_varchar_in_transaction_table',1),(240,'2020_09_07_171059_change_completed_stock_transfer_status_to_final',1),(241,'2020_09_21_123224_modify_booking_status_column_in_bookings_table',1),(242,'2020_09_22_121639_create_discount_variations_table',1),(243,'2020_10_05_121550_modify_business_location_table_for_invoice_layout',1),(244,'2020_10_16_175726_set_status_as_received_for_opening_stock',1),(245,'2020_10_23_170823_add_for_group_tax_column_to_tax_rates_table',1),(246,'2020_11_04_130940_add_more_custom_fields_to_contacts_table',1),(247,'2020_11_10_152841_add_cash_register_permissions',1),(248,'2020_11_17_164041_modify_type_column_to_varchar_in_contacts_table',1),(249,'2020_12_18_181447_add_shipping_custom_fields_to_transactions_table',1),(250,'2020_12_22_164303_add_sub_status_column_to_transactions_table',1),(251,'2020_12_24_153050_add_custom_fields_to_transactions_table',1),(252,'2020_12_28_105403_add_whatsapp_text_column_to_notification_templates_table',1),(253,'2020_12_29_165925_add_model_document_type_to_media_table',1),(254,'2021_02_08_175632_add_contact_number_fields_to_users_table',1),(255,'2021_02_11_172217_add_indexing_for_multiple_columns',1),(256,'2021_02_23_122043_add_more_columns_to_customer_groups_table',1),(257,'2021_02_24_175551_add_print_invoice_permission_to_all_roles',1),(258,'2018_06_27_185405_create_packages_table',2),(259,'2018_06_28_182803_create_subscriptions_table',2),(260,'2018_07_17_182021_add_rows_to_system_table',2),(261,'2018_07_19_131721_add_options_to_packages_table',2),(262,'2018_08_17_155534_add_min_termination_alert_days',2),(263,'2018_08_28_105945_add_business_based_username_settings_to_system_table',2),(264,'2018_08_30_105906_add_superadmin_communicator_logs_table',2),(265,'2018_11_02_130636_add_custom_permissions_to_packages_table',2),(266,'2018_11_05_161848_add_more_fields_to_packages_table',2),(267,'2018_12_10_124621_modify_system_table_values_null_default',2),(268,'2019_05_10_135434_add_missing_database_column_indexes',2),(269,'2019_08_16_115300_create_superadmin_frontend_pages_table',2),(270,'2018_10_01_151252_create_documents_table',3),(271,'2018_10_02_151803_create_document_shares_table',3),(272,'2018_10_09_134558_create_reminders_table',3),(273,'2018_11_16_170756_create_to_dos_table',3),(274,'2019_02_22_120329_essentials_messages',3),(275,'2019_02_22_161513_add_message_permissions',3),(276,'2019_03_29_164339_add_essentials_version_to_system_table',3),(277,'2019_05_17_153306_create_essentials_leave_types_table',3),(278,'2019_05_17_175921_create_essentials_leaves_table',3),(279,'2019_05_21_154517_add_essentials_settings_columns_to_business_table',3),(280,'2019_05_21_181653_create_table_essentials_attendance',3),(281,'2019_05_30_110049_create_essentials_payrolls_table',3),(282,'2019_06_04_105723_create_essentials_holidays_table',3),(283,'2019_06_28_134217_add_payroll_columns_to_transactions_table',3),(284,'2019_08_26_103520_add_approve_leave_permission',3),(285,'2019_08_27_103724_create_essentials_allowance_and_deduction_table',3),(286,'2019_08_27_105236_create_essentials_user_allowances_and_deductions',3),(287,'2019_09_20_115906_add_more_columns_to_essentials_to_dos_table',3),(288,'2019_09_23_120439_create_essentials_todo_comments_table',3),(289,'2019_12_05_170724_add_hrm_columns_to_users_table',3),(290,'2019_12_09_105809_add_allowance_and_deductions_permission',3),(291,'2020_03_28_152838_create_essentials_shift_table',3),(292,'2020_03_30_162029_create_user_shifts_table',3),(293,'2020_03_31_134558_add_shift_id_to_attendance_table',3),(294,'2018_10_10_110400_add_module_version_to_system_table',4),(295,'2018_10_10_122845_add_woocommerce_api_settings_to_business_table',4),(296,'2018_10_10_162041_add_woocommerce_category_id_to_categories_table',4),(297,'2018_10_11_173839_create_woocommerce_sync_logs_table',4),(298,'2018_10_16_123522_add_woocommerce_tax_rate_id_column_to_tax_rates_table',4),(299,'2018_10_23_111555_add_woocommerce_attr_id_column_to_variation_templates_table',4),(300,'2018_12_03_163945_add_woocommerce_permissions',4),(301,'2019_02_18_154414_change_woocommerce_sync_logs_table',4),(302,'2019_04_19_174129_add_disable_woocommerce_sync_column_to_products_table',4),(303,'2019_06_08_132440_add_woocommerce_wh_oc_secret_column_to_business_table',4),(304,'2019_10_01_171828_add_woocommerce_media_id_columns',4),(305,'2019_11_12_163135_create_projects_table',5),(306,'2019_11_12_164431_create_project_members_table',5),(307,'2019_11_14_112230_create_project_tasks_table',5),(308,'2019_11_14_112258_create_project_task_members_table',5),(309,'2019_11_18_154617_create_project_task_comments_table',5),(310,'2019_11_19_134807_create_project_time_logs_table',5),(311,'2019_12_11_102549_add_more_fields_in_transactions_table',5),(312,'2019_12_11_102735_create_invoice_lines_table',5),(313,'2020_01_07_172852_add_project_permissions',5),(314,'2020_01_08_115422_add_project_module_version_to_system_table',5),(315,'2020_07_10_114514_set_location_id_on_existing_invoice',5),(316,'2020_08_18_123107_add_connector_module_version_to_system_table',6),(317,'2021_03_03_162021_add_purchase_order_columns_to_purchase_lines_and_transactions_table',7),(318,'2021_03_11_120229_add_sales_order_columns',7),(319,'2021_03_16_120705_add_business_id_to_activity_log_table',7),(320,'2021_03_16_153427_add_code_columns_to_business_table',7),(321,'2021_03_18_173308_add_account_details_column_to_accounts_table',7),(322,'2021_03_18_183119_add_prefer_payment_account_columns_to_transactions_table',7),(323,'2021_03_22_120810_add_more_types_of_service_custom_fields',7),(324,'2021_03_24_183132_add_shipping_export_custom_field_details_to_contacts_table',7),(325,'2021_03_25_170715_add_export_custom_fields_info_to_transactions_table',7),(326,'2021_04_15_063449_add_denominations_column_to_cash_registers_table',7),(327,'2021_05_22_083426_add_indexing_to_account_transactions_table',7),(328,'2021_07_08_065808_add_additional_expense_columns_to_transaction_table',7),(329,'2021_07_13_082918_add_qr_code_columns_to_invoice_layouts_table',7),(330,'2021_07_21_061615_add_fields_to_show_commission_agent_in_invoice_layout',7),(331,'2021_08_13_105549_add_crm_contact_id_to_users_table',7),(332,'2021_08_25_114932_add_payment_link_fields_to_transaction_payments_table',8),(333,'2021_09_01_063110_add_spg_column_to_discounts_table',8),(334,'2021_09_03_061528_modify_cash_register_transactions_table',8),(335,'2021_10_05_061658_add_source_column_to_transactions_table',9),(336,'2021_12_16_121851_add_parent_id_column_to_expense_categories_table',9),(337,'2022_04_14_075120_add_payment_type_column_to_transaction_payments_table',9),(338,'2022_04_21_083327_create_cash_denominations_table',9),(339,'2022_05_10_055307_add_delivery_date_column_to_transactions_table',9),(340,'2022_06_13_123135_add_currency_precision_and_quantity_precision_fields_to_business_table',9),(341,'2022_06_28_133342_add_secondary_unit_columns_to_products_sell_line_purchase_lines_tables',9),(342,'2022_07_13_114307_create_purchase_requisition_related_columns',9),(343,'2022_08_25_132707_add_service_staff_timer_fields_to_products_and_users_table',9),(344,'2023_01_28_114255_add_letter_head_column_to_invoice_layouts_table',9),(345,'2023_02_11_161510_add_event_column_to_activity_log_table',9),(346,'2023_02_11_161511_add_batch_uuid_column_to_activity_log_table',9),(347,'2023_03_02_170312_add_provider_to_oauth_clients_table',9),(348,'2023_07_02_160136_create_printjobs_table',10),(349,'2023_07_03_145832_add_outer_product_in_product_table',10),(350,'2023_07_04_185011_add_column_in_print_jobs_table',10),(351,'2023_07_04_185613_add_created_by_column_in_print_jobs_table',10),(352,'2023_07_05_174956_add_outer_variant_id_to_product',10),(353,'2023_07_05_185205_add_is_outer_to_transaction_lines',10),(354,'2023_07_08_155151_create_printjob_product_table',10),(355,'2023_07_08_155506_add_kot_status',10),(356,'2023_07_09_203549_add_kot_printername',11),(357,'2023_08_21_140221_add_zatca_status_in_transaction_table',11),(358,'2023_09_16_120619_create_categroy_location_table',12),(359,'2023_09_16_120619_create_zatca_failure_log_table',13),(360,'2023_09_23_200249_create_transfer_column_in_invoice_schemes',13),(361,'2023_09_24_011342_add_col_enable_kot',13);

--
-- Table structure for table `model_has_permissions`
--

CREATE TABLE `model_has_permissions` (
  `permission_id` int unsigned NOT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  KEY `model_has_permissions_model_type_model_id_index` (`model_type`,`model_id`),
  CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_permissions`
--

INSERT INTO `model_has_permissions` VALUES (82,'App\\User',2),(82,'App\\User',3),(80,'App\\User',6),(80,'App\\User',7),(80,'App\\User',8),(80,'App\\User',9),(80,'App\\User',11),(107,'App\\User',13),(110,'App\\User',14),(110,'App\\User',15),(111,'App\\User',16),(107,'App\\User',17),(110,'App\\User',18),(107,'App\\User',19),(110,'App\\User',20),(124,'App\\User',21),(80,'App\\User',22),(124,'App\\User',23),(136,'App\\User',24),(137,'App\\User',25),(137,'App\\User',26),(137,'App\\User',27),(138,'App\\User',28),(138,'App\\User',29),(141,'App\\User',30),(141,'App\\User',31),(142,'App\\User',32),(142,'App\\User',33),(143,'App\\User',34),(143,'App\\User',35),(144,'App\\User',36),(144,'App\\User',37),(147,'App\\User',37),(145,'App\\User',38),(145,'App\\User',39),(147,'App\\User',40),(111,'App\\User',41),(136,'App\\User',42),(135,'App\\User',43),(135,'App\\User',44),(107,'App\\User',45),(111,'App\\User',46),(136,'App\\User',47),(107,'App\\User',48);

--
-- Table structure for table `model_has_roles`
--

CREATE TABLE `model_has_roles` (
  `role_id` int unsigned NOT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  KEY `model_has_roles_model_type_model_id_index` (`model_type`,`model_id`),
  CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_roles`
--

INSERT INTO `model_has_roles` VALUES (1,'App\\User',1),(3,'App\\User',2),(3,'App\\User',3),(3,'App\\User',6),(3,'App\\User',7),(3,'App\\User',8),(3,'App\\User',9),(4,'App\\User',10),(1,'App\\User',11),(6,'App\\User',12),(1,'App\\User',13),(1,'App\\User',14),(3,'App\\User',15),(8,'App\\User',16),(3,'App\\User',17),(3,'App\\User',18),(3,'App\\User',19),(3,'App\\User',20),(8,'App\\User',21),(1,'App\\User',22),(9,'App\\User',23),(9,'App\\User',24),(3,'App\\User',25),(3,'App\\User',26),(9,'App\\User',27),(9,'App\\User',28),(3,'App\\User',29),(10,'App\\User',30),(3,'App\\User',31),(9,'App\\User',32),(3,'App\\User',33),(9,'App\\User',34),(3,'App\\User',35),(9,'App\\User',36),(3,'App\\User',37),(9,'App\\User',38),(3,'App\\User',39),(3,'App\\User',40),(9,'App\\User',41),(3,'App\\User',42),(9,'App\\User',43),(3,'App\\User',44),(3,'App\\User',45),(3,'App\\User',46),(9,'App\\User',47),(9,'App\\User',48);

--
-- Table structure for table `notification_templates`
--

CREATE TABLE `notification_templates` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_id` int NOT NULL,
  `template_for` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `sms_body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `whatsapp_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `subject` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cc` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bcc` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `auto_send` tinyint(1) NOT NULL DEFAULT '0',
  `auto_send_sms` tinyint(1) NOT NULL DEFAULT '0',
  `auto_send_wa_notif` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `notification_templates`
--

INSERT INTO `notification_templates` VALUES (1,1,'new_sale','<p>Dear {contact_name},</p>\n\n                    <p>Your invoice number is {invoice_number}<br />\n                    Total amount: {total_amount}<br />\n                    Paid amount: {received_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(2,1,'payment_received','<p>Dear {contact_name},</p>\n\n                <p>We have received a payment of {received_amount}</p>\n\n                <p>{business_logo}</p>','Dear {contact_name}, We have received a payment of {received_amount}. {business_name}',NULL,'Payment Received, from {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(3,1,'payment_reminder','<p>Dear {contact_name},</p>\n\n                    <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n                    <p>{business_logo}</p>','Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}',NULL,'Payment Reminder, from {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(4,1,'new_booking','<p>Dear {contact_name},</p>\n\n                    <p>Your booking is confirmed</p>\n\n                    <p>Date: {start_time} to {end_time}</p>\n\n                    <p>Table: {table}</p>\n\n                    <p>Location: {location}</p>\n\n                    <p>{business_logo}</p>','Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}',NULL,'Booking Confirmed - {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(5,1,'new_order','<p>Dear {contact_name},</p>\n\n                    <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}',NULL,'New Order, from {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(6,1,'payment_paid','<p>Dear {contact_name},</p>\n\n                    <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n                    Kindly note it down.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','We have paid amount {paid_amount} again invoice number {order_ref_number}.\n                    Kindly note it down. {business_name}',NULL,'Payment Paid, from {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(7,1,'items_received','<p>Dear {contact_name},</p>\n\n                    <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}',NULL,'Items received, from {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(8,1,'items_pending','<p>Dear {contact_name},<br />\n                    This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}',NULL,'Items Pending, from {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(9,1,'new_quotation','<p>Dear {contact_name},</p>\n\n                    <p>Your quotation number is {invoice_number}<br />\n                    Total amount: {total_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2021-04-12 15:24:42','2021-04-12 15:24:42'),(10,2,'new_sale','<p>Dear {contact_name},</p>\n\n                    <p>Your invoice number is {invoice_number}<br />\n                    Total amount: {total_amount}<br />\n                    Paid amount: {received_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(11,2,'payment_received','<p>Dear {contact_name},</p>\n\n                <p>We have received a payment of {received_amount}</p>\n\n                <p>{business_logo}</p>','Dear {contact_name}, We have received a payment of {received_amount}. {business_name}',NULL,'Payment Received, from {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(12,2,'payment_reminder','<p>Dear {contact_name},</p>\n\n                    <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n                    <p>{business_logo}</p>','Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}',NULL,'Payment Reminder, from {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(13,2,'new_booking','<p>Dear {contact_name},</p>\n\n                    <p>Your booking is confirmed</p>\n\n                    <p>Date: {start_time} to {end_time}</p>\n\n                    <p>Table: {table}</p>\n\n                    <p>Location: {location}</p>\n\n                    <p>{business_logo}</p>','Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}',NULL,'Booking Confirmed - {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(14,2,'new_order','<p>Dear {contact_name},</p>\n\n                    <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}',NULL,'New Order, from {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(15,2,'payment_paid','<p>Dear {contact_name},</p>\n\n                    <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n                    Kindly note it down.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','We have paid amount {paid_amount} again invoice number {order_ref_number}.\n                    Kindly note it down. {business_name}',NULL,'Payment Paid, from {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(16,2,'items_received','<p>Dear {contact_name},</p>\n\n                    <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}',NULL,'Items received, from {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(17,2,'items_pending','<p>Dear {contact_name},<br />\n                    This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}',NULL,'Items Pending, from {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(18,2,'new_quotation','<p>Dear {contact_name},</p>\n\n                    <p>Your quotation number is {invoice_number}<br />\n                    Total amount: {total_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2021-04-18 05:28:38','2021-04-18 05:28:38'),(19,3,'new_sale','<p>Dear {contact_name},</p>\n\n                    <p>Your invoice number is {invoice_number}<br />\n                    Total amount: {total_amount}<br />\n                    Paid amount: {received_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(20,3,'payment_received','<p>Dear {contact_name},</p>\n\n                <p>We have received a payment of {received_amount}</p>\n\n                <p>{business_logo}</p>','Dear {contact_name}, We have received a payment of {received_amount}. {business_name}',NULL,'Payment Received, from {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(21,3,'payment_reminder','<p>Dear {contact_name},</p>\n\n                    <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n                    <p>{business_logo}</p>','Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}',NULL,'Payment Reminder, from {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(22,3,'new_booking','<p>Dear {contact_name},</p>\n\n                    <p>Your booking is confirmed</p>\n\n                    <p>Date: {start_time} to {end_time}</p>\n\n                    <p>Table: {table}</p>\n\n                    <p>Location: {location}</p>\n\n                    <p>{business_logo}</p>','Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}',NULL,'Booking Confirmed - {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(23,3,'new_order','<p>Dear {contact_name},</p>\n\n                    <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}',NULL,'New Order, from {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(24,3,'payment_paid','<p>Dear {contact_name},</p>\n\n                    <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n                    Kindly note it down.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','We have paid amount {paid_amount} again invoice number {order_ref_number}.\n                    Kindly note it down. {business_name}',NULL,'Payment Paid, from {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(25,3,'items_received','<p>Dear {contact_name},</p>\n\n                    <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}',NULL,'Items received, from {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(26,3,'items_pending','<p>Dear {contact_name},<br />\n                    This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>','This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}',NULL,'Items Pending, from {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41'),(27,3,'new_quotation','<p>Dear {contact_name},</p>\n\n                    <p>Your quotation number is {invoice_number}<br />\n                    Total amount: {total_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2022-01-11 18:53:41','2022-01-11 18:53:41');

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

CREATE TABLE `notifications` (
  `id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_id` bigint unsigned NOT NULL,
  `data` text CHARACTER SET utf8mb4 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_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `notifications` VALUES ('28afb980-f75b-4272-bdf8-401a97b39698','Modules\\Essentials\\Notifications\\PayrollNotification','App\\User',2,'{\"month\":\"04\",\"year\":\"2021\",\"ref_no\":\"2021\\/0001\",\"action\":\"created\",\"created_by\":1}',NULL,'2021-04-12 17:41:15','2021-04-12 17:41:15'),('4ef37d3c-96ac-4544-a80d-cc18d1240c60','Modules\\Essentials\\Notifications\\PayrollNotification','App\\User',6,'{\"month\":\"03\",\"year\":\"2021\",\"ref_no\":\"2021\\/0003\",\"action\":\"updated\",\"created_by\":1}',NULL,'2021-04-13 11:10:07','2021-04-13 11:10:07'),('7b57e573-bb32-4a6d-9e41-67801a578429','Modules\\Essentials\\Notifications\\PayrollNotification','App\\User',3,'{\"month\":\"04\",\"year\":\"2021\",\"ref_no\":\"2021\\/0002\",\"action\":\"created\",\"created_by\":1}',NULL,'2021-04-13 09:08:39','2021-04-13 09:08:39'),('860da801-68d9-41f9-9937-372f2428610d','Modules\\Project\\Notifications\\NewProjectAssignedNotification','App\\User',7,'{\"project_id\":2}','2021-04-14 10:32:08','2021-04-14 10:27:34','2021-04-14 10:32:08'),('cdb97eee-86b8-4911-9856-2aafdb224c8d','Modules\\Essentials\\Notifications\\PayrollNotification','App\\User',6,'{\"month\":\"03\",\"year\":\"2021\",\"ref_no\":\"2021\\/0003\",\"action\":\"created\",\"created_by\":1}',NULL,'2021-04-13 11:09:23','2021-04-13 11:09:23');

--
-- Table structure for table `oauth_access_tokens`
--

CREATE TABLE `oauth_access_tokens` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint DEFAULT NULL,
  `client_id` int unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `scopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `revoked` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `expires_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_access_tokens_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_access_tokens`
--

INSERT INTO `oauth_access_tokens` VALUES ('f9a2bb3e03cf7b21855b1f15ad4742a3f3ca82c662679e143c49375a8941e0f572c599b3efaac1e4',1,3,NULL,'[]',0,'2021-04-12 20:17:35','2021-04-12 20:17:35','2022-04-12 20:17:35');

--
-- Table structure for table `oauth_auth_codes`
--

CREATE TABLE `oauth_auth_codes` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint NOT NULL,
  `client_id` int unsigned NOT NULL,
  `scopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_auth_codes`
--


--
-- Table structure for table `oauth_clients`
--

CREATE TABLE `oauth_clients` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint DEFAULT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `secret` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `provider` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `redirect` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `personal_access_client` tinyint(1) NOT NULL,
  `password_client` tinyint(1) NOT NULL,
  `revoked` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_clients_user_id_index` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_clients`
--

INSERT INTO `oauth_clients` VALUES (1,NULL,'Silverlogin Personal Access Client','Z3B6ojZ0TVJfpyMUWMFISqfXc4cftPOxvyUaoso0',NULL,'http://localhost',1,0,0,'2021-04-12 15:08:07','2021-04-12 15:08:07'),(2,NULL,'Silverlogin Password Grant Client','NC3JCpjBWjLhDaGTEYq27rQdonKPMP2m7qY1O0FX',NULL,'http://localhost',0,1,0,'2021-04-12 15:08:07','2021-04-12 15:08:07'),(3,1,'silverloginapp','s1cm2EyeaCrTeNzB48JgDV31lidjPl0k11Vb4dky',NULL,'http://localhost',0,1,0,'2021-04-12 17:40:28','2021-04-12 17:40:28'),(4,NULL,'Silverlogin Personal Access Client','LuU6jXkFovorXbNFzi2fH1TyC0XSDrLyWmIffxlv',NULL,'http://localhost',1,0,0,'2021-04-12 17:40:36','2021-04-12 17:40:36'),(5,NULL,'Silverlogin Password Grant Client','qcKCbsAqEx7PNRuqH7rwSNMG46qDWtIFXG6X0iHH',NULL,'http://localhost',0,1,0,'2021-04-12 17:40:36','2021-04-12 17:40:36'),(6,1,'mewpos','9Ttxl3fTyXW1v44oP0NTcQy7TC0jqJcoGQ57A1CK',NULL,'http://localhost',0,1,0,'2021-05-16 14:58:16','2021-05-16 14:58:16');

--
-- Table structure for table `oauth_personal_access_clients`
--

CREATE TABLE `oauth_personal_access_clients` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `client_id` int unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_personal_access_clients_client_id_index` (`client_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `oauth_personal_access_clients` VALUES (1,1,'2021-04-12 15:08:07','2021-04-12 15:08:07'),(2,4,'2021-04-12 17:40:36','2021-04-12 17:40:36');

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

CREATE TABLE `oauth_refresh_tokens` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `access_token_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_refresh_tokens`
--

INSERT INTO `oauth_refresh_tokens` VALUES ('99098c733af39c90e85aa32ee67f9e846571648961f19c3dbdda5c671c0a6cff0b8cfd7b1f5248c7','f9a2bb3e03cf7b21855b1f15ad4742a3f3ca82c662679e143c49375a8941e0f572c599b3efaac1e4',0,'2022-04-12 20:17:35');

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

CREATE TABLE `packages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_count` int NOT NULL COMMENT 'No. of Business Locations, 0 = infinite option.',
  `user_count` int NOT NULL,
  `product_count` int NOT NULL,
  `bookings` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Enable/Disable bookings',
  `kitchen` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Enable/Disable kitchen',
  `order_screen` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Enable/Disable order_screen',
  `tables` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Enable/Disable tables',
  `invoice_count` int NOT NULL,
  `interval` enum('days','months','years') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `interval_count` int NOT NULL,
  `trial_days` int NOT NULL,
  `price` decimal(22,4) NOT NULL,
  `custom_permissions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `sort_order` int NOT NULL DEFAULT '0',
  `is_active` tinyint(1) NOT NULL,
  `is_private` tinyint(1) NOT NULL DEFAULT '0',
  `is_one_time` tinyint(1) NOT NULL DEFAULT '0',
  `enable_custom_link` tinyint(1) NOT NULL DEFAULT '0',
  `custom_link` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_link_text` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `packages` VALUES (1,'Basic Single Location','Basic Single Location',1,0,0,0,0,0,0,0,'years',1,10,50.0000,'',1,1,1,0,0,0,'','',NULL,'2021-04-12 17:01:29','2021-04-12 17:01:29'),(2,'Multi Package','Multi',0,0,0,0,0,0,0,0,'years',1,0,0.0000,'{\"connector_module\":\"1\"}',1,1,1,0,0,0,'','',NULL,'2021-04-18 05:32:47','2021-04-18 05:32:47');

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

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

--
-- Dumping data for table `password_resets`
--

INSERT INTO `password_resets` VALUES ('info@webdesignbahrain.com','$2y$10$k.7bUpRgV8lVrXigL2JU6e1qptznjIeIE3mpyb6GtLaFfc9GccvXm','2021-04-14 17:05:53');

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

CREATE TABLE `permissions` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=160 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `permissions` VALUES (1,'profit_loss_report.view','web','2021-04-12 15:21:06',NULL),(2,'direct_sell.access','web','2021-04-12 15:21:06',NULL),(3,'product.opening_stock','web','2021-04-12 15:21:14','2021-04-12 15:21:14'),(4,'crud_all_bookings','web','2021-04-12 15:21:18','2021-04-12 15:21:18'),(5,'crud_own_bookings','web','2021-04-12 15:21:18','2021-04-12 15:21:18'),(6,'access_default_selling_price','web','2021-04-12 15:21:22','2021-04-12 15:21:22'),(7,'purchase.payments','web','2021-04-12 15:21:23','2021-04-12 15:21:23'),(8,'sell.payments','web','2021-04-12 15:21:23','2021-04-12 15:21:23'),(9,'edit_product_price_from_sale_screen','web','2021-04-12 15:21:24','2021-04-12 15:21:24'),(10,'edit_product_discount_from_sale_screen','web','2021-04-12 15:21:24','2021-04-12 15:21:24'),(11,'roles.view','web','2021-04-12 15:21:25','2021-04-12 15:21:25'),(12,'roles.create','web','2021-04-12 15:21:26','2021-04-12 15:21:26'),(13,'roles.update','web','2021-04-12 15:21:26','2021-04-12 15:21:26'),(14,'roles.delete','web','2021-04-12 15:21:26','2021-04-12 15:21:26'),(15,'account.access','web','2021-04-12 15:21:30','2021-04-12 15:21:30'),(16,'discount.access','web','2021-04-12 15:21:32','2021-04-12 15:21:32'),(17,'view_purchase_price','web','2021-04-12 15:21:40','2021-04-12 15:21:40'),(18,'view_own_sell_only','web','2021-04-12 15:21:41','2021-04-12 15:21:41'),(19,'edit_product_discount_from_pos_screen','web','2021-04-12 15:21:46','2021-04-12 15:21:46'),(20,'edit_product_price_from_pos_screen','web','2021-04-12 15:21:46','2021-04-12 15:21:46'),(21,'access_shipping','web','2021-04-12 15:21:48','2021-04-12 15:21:48'),(22,'purchase.update_status','web','2021-04-12 15:21:48','2021-04-12 15:21:48'),(23,'list_drafts','web','2021-04-12 15:21:50','2021-04-12 15:21:50'),(24,'list_quotations','web','2021-04-12 15:21:50','2021-04-12 15:21:50'),(25,'view_cash_register','web','2021-04-12 15:21:56','2021-04-12 15:21:56'),(26,'close_cash_register','web','2021-04-12 15:21:56','2021-04-12 15:21:56'),(27,'print_invoice','web','2021-04-12 15:22:02','2021-04-12 15:22:02'),(28,'user.view','web','2021-04-12 15:22:03',NULL),(29,'user.create','web','2021-04-12 15:22:03',NULL),(30,'user.update','web','2021-04-12 15:22:03',NULL),(31,'user.delete','web','2021-04-12 15:22:03',NULL),(32,'supplier.view','web','2021-04-12 15:22:03',NULL),(33,'supplier.create','web','2021-04-12 15:22:03',NULL),(34,'supplier.update','web','2021-04-12 15:22:03',NULL),(35,'supplier.delete','web','2021-04-12 15:22:03',NULL),(36,'customer.view','web','2021-04-12 15:22:03',NULL),(37,'customer.create','web','2021-04-12 15:22:03',NULL),(38,'customer.update','web','2021-04-12 15:22:03',NULL),(39,'customer.delete','web','2021-04-12 15:22:03',NULL),(40,'product.view','web','2021-04-12 15:22:03',NULL),(41,'product.create','web','2021-04-12 15:22:03',NULL),(42,'product.update','web','2021-04-12 15:22:03',NULL),(43,'product.delete','web','2021-04-12 15:22:03',NULL),(44,'purchase.view','web','2021-04-12 15:22:03',NULL),(45,'purchase.create','web','2021-04-12 15:22:03',NULL),(46,'purchase.update','web','2021-04-12 15:22:03',NULL),(47,'purchase.delete','web','2021-04-12 15:22:03',NULL),(48,'sell.view','web','2021-04-12 15:22:03',NULL),(49,'sell.create','web','2021-04-12 15:22:03',NULL),(50,'sell.update','web','2021-04-12 15:22:03',NULL),(51,'sell.delete','web','2021-04-12 15:22:03',NULL),(52,'purchase_n_sell_report.view','web','2021-04-12 15:22:03',NULL),(53,'contacts_report.view','web','2021-04-12 15:22:03',NULL),(54,'stock_report.view','web','2021-04-12 15:22:03',NULL),(55,'tax_report.view','web','2021-04-12 15:22:03',NULL),(56,'trending_product_report.view','web','2021-04-12 15:22:03',NULL),(57,'register_report.view','web','2021-04-12 15:22:03',NULL),(58,'sales_representative.view','web','2021-04-12 15:22:03',NULL),(59,'expense_report.view','web','2021-04-12 15:22:03',NULL),(60,'business_settings.access','web','2021-04-12 15:22:03',NULL),(61,'barcode_settings.access','web','2021-04-12 15:22:03',NULL),(62,'invoice_settings.access','web','2021-04-12 15:22:03',NULL),(63,'brand.view','web','2021-04-12 15:22:03',NULL),(64,'brand.create','web','2021-04-12 15:22:03',NULL),(65,'brand.update','web','2021-04-12 15:22:03',NULL),(66,'brand.delete','web','2021-04-12 15:22:03',NULL),(67,'tax_rate.view','web','2021-04-12 15:22:03',NULL),(68,'tax_rate.create','web','2021-04-12 15:22:03',NULL),(69,'tax_rate.update','web','2021-04-12 15:22:03',NULL),(70,'tax_rate.delete','web','2021-04-12 15:22:03',NULL),(71,'unit.view','web','2021-04-12 15:22:03',NULL),(72,'unit.create','web','2021-04-12 15:22:03',NULL),(73,'unit.update','web','2021-04-12 15:22:03',NULL),(74,'unit.delete','web','2021-04-12 15:22:03',NULL),(75,'category.view','web','2021-04-12 15:22:03',NULL),(76,'category.create','web','2021-04-12 15:22:03',NULL),(77,'category.update','web','2021-04-12 15:22:03',NULL),(78,'category.delete','web','2021-04-12 15:22:03',NULL),(79,'expense.access','web','2021-04-12 15:22:03',NULL),(80,'access_all_locations','web','2021-04-12 15:22:03',NULL),(81,'dashboard.data','web','2021-04-12 15:22:03',NULL),(82,'location.1','web','2021-04-12 15:24:42','2021-04-12 15:24:42'),(83,'essentials.create_message','web','2021-04-12 13:34:36','2021-04-12 13:34:36'),(84,'essentials.view_message','web','2021-04-12 13:34:36','2021-04-12 13:34:36'),(85,'essentials.approve_leave','web','2021-04-12 13:34:37','2021-04-12 13:34:37'),(86,'essentials.assign_todos','web','2021-04-12 13:34:38','2021-04-12 13:34:38'),(87,'essentials.add_allowance_and_deduction','web','2021-04-12 13:34:39','2021-04-12 13:34:39'),(88,'woocommerce.syc_categories','web','2021-04-12 13:35:48','2021-04-12 13:35:48'),(89,'woocommerce.sync_products','web','2021-04-12 13:35:48','2021-04-12 13:35:48'),(90,'woocommerce.sync_orders','web','2021-04-12 13:35:48','2021-04-12 13:35:48'),(91,'woocommerce.map_tax_rates','web','2021-04-12 13:35:48','2021-04-12 13:35:48'),(92,'woocommerce.access_woocommerce_api_settings','web','2021-04-12 13:35:48','2021-04-12 13:35:48'),(93,'project.create_project','web','2021-04-12 15:03:13','2021-04-12 15:03:13'),(94,'project.edit_project','web','2021-04-12 15:03:13','2021-04-12 15:03:13'),(95,'project.delete_project','web','2021-04-12 15:03:13','2021-04-12 15:03:13'),(96,'supplier.view_own','web','2021-04-13 09:00:25','2021-04-13 09:00:25'),(97,'customer.view_own','web','2021-04-13 09:00:25','2021-04-13 09:00:25'),(98,'access_sell_return','web','2021-04-13 09:00:25','2021-04-13 09:00:25'),(99,'edit_invoice_number','web','2021-04-13 09:00:25','2021-04-13 09:00:25'),(100,'access_own_shipping','web','2021-04-13 09:00:25','2021-04-13 09:00:25'),(101,'view_own_purchase','web','2021-04-14 15:51:43','2021-04-14 15:51:43'),(102,'direct_sell.delete','web','2021-04-14 15:51:43','2021-04-14 15:51:43'),(103,'view_commission_agent_sell','web','2021-04-14 15:51:43','2021-04-14 15:51:43'),(104,'access_commission_agent_shipping','web','2021-04-14 15:51:43','2021-04-14 15:51:43'),(105,'view_product_stock_value','web','2021-04-14 15:51:43','2021-04-14 15:51:43'),(106,'location.2','web','2021-04-18 05:28:38','2021-04-18 05:28:38'),(107,'location.3','web','2021-10-05 14:00:34','2021-10-05 14:00:34'),(108,'location.4','web','2022-01-11 18:53:41','2022-01-11 18:53:41'),(109,'location.5','web','2023-04-05 05:43:46','2023-04-05 05:43:46'),(110,'location.6','web','2023-04-05 05:43:52','2023-04-05 05:43:52'),(111,'location.7','web','2023-07-17 09:01:24','2023-07-17 09:01:24'),(112,'edit_purchase_payment','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(113,'delete_purchase_payment','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(114,'view_paid_sells_only','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(115,'view_due_sells_only','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(116,'view_partial_sells_only','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(117,'view_overdue_sells_only','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(118,'direct_sell.update','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(119,'edit_sell_payment','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(120,'delete_sell_payment','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(121,'access_types_of_service','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(122,'access_own_sell_return','web','2023-07-17 09:03:25','2023-07-17 09:03:25'),(123,'edit_pos_payment','web','2023-07-29 09:28:12','2023-07-29 09:28:12'),(124,'location.8','web','2023-08-10 10:47:57','2023-08-10 10:47:57'),(125,'location.9','web','2023-08-10 10:49:14','2023-08-10 10:49:14'),(126,'location.10','web','2023-08-10 10:50:06','2023-08-10 10:50:06'),(127,'access_pending_shipments_only','web','2023-08-12 17:00:28','2023-08-12 17:00:28'),(128,'access_printers','web','2023-08-12 17:00:28','2023-08-12 17:00:28'),(129,'expense.add','web','2023-08-12 17:00:28','2023-08-12 17:00:28'),(130,'expense.edit','web','2023-08-12 17:00:28','2023-08-12 17:00:28'),(131,'expense.delete','web','2023-08-12 17:00:28','2023-08-12 17:00:28'),(132,'view_own_expense','web','2023-08-12 17:00:28','2023-08-12 17:00:28'),(133,'selling_price_group.1','web','2023-08-20 12:41:17','2023-08-20 12:41:17'),(134,'selling_price_group.2','web','2023-08-20 12:41:34','2023-08-20 12:41:34'),(135,'location.11','web','2023-08-22 10:40:10','2023-08-22 10:40:10'),(136,'location.12','web','2023-08-28 10:23:38','2023-08-28 10:23:38'),(137,'location.13','web','2023-09-02 14:09:04','2023-09-02 14:09:04'),(138,'location.14','web','2023-09-02 16:31:19','2023-09-02 16:31:19'),(139,'selling_price_group.3','web','2023-09-02 16:41:56','2023-09-02 16:41:56'),(140,'selling_price_group.4','web','2023-09-02 16:48:43','2023-09-02 16:48:43'),(141,'location.15','web','2023-09-02 19:21:15','2023-09-02 19:21:15'),(142,'location.16','web','2023-09-02 19:28:16','2023-09-02 19:28:16'),(143,'location.17','web','2023-09-02 19:39:34','2023-09-02 19:39:34'),(144,'location.18','web','2023-09-02 20:01:46','2023-09-02 20:01:46'),(145,'location.19','web','2023-09-02 20:18:56','2023-09-02 20:18:56'),(146,'selling_price_group.5','web','2023-09-03 14:14:58','2023-09-03 14:14:58'),(147,'location.20','web','2023-09-04 19:43:16','2023-09-04 19:43:16'),(148,'customer_irrespective_of_sell','web','2023-09-10 08:40:01','2023-09-10 08:40:01'),(149,'selling_price_group.6','web','2023-09-17 21:36:38','2023-09-17 21:36:38'),(150,'selling_price_group.7','web','2023-09-17 21:37:08','2023-09-17 21:37:08'),(151,'selling_price_group.8','web','2023-09-17 21:37:23','2023-09-17 21:37:23'),(152,'selling_price_group.9','web','2023-09-17 21:38:18','2023-09-17 21:38:18'),(153,'selling_price_group.10','web','2023-09-17 21:42:16','2023-09-17 21:42:16'),(154,'selling_price_group.11','web','2023-09-19 11:11:39','2023-09-19 11:11:39'),(155,'selling_price_group.12','web','2023-09-24 09:23:55','2023-09-24 09:23:55'),(156,'selling_price_group.13','web','2023-09-24 09:24:25','2023-09-24 09:24:25'),(157,'selling_price_group.14','web','2023-09-24 09:24:44','2023-09-24 09:24:44'),(158,'selling_price_group.15','web','2023-09-24 09:25:04','2023-09-24 09:25:04'),(159,'selling_price_group.16','web','2023-09-24 09:25:21','2023-09-24 09:25:21');

--
