-- Table structure for table `company_referral_payments`
--

CREATE TABLE `company_referral_payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_referral_id` bigint unsigned NOT NULL,
  `company_router_invoice_payment_id` int NOT NULL,
  `user_id` int DEFAULT NULL,
  `payment_mode_id` bigint unsigned NOT NULL,
  `transaction_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_referral_payments_company_referral_id_foreign` (`company_referral_id`),
  KEY `company_referral_payments_payment_mode_id_foreign` (`payment_mode_id`),
  CONSTRAINT `company_referral_payments_company_referral_id_foreign` FOREIGN KEY (`company_referral_id`) REFERENCES `company_referrals` (`id`) ON DELETE CASCADE,
  CONSTRAINT `company_referral_payments_payment_mode_id_foreign` FOREIGN KEY (`payment_mode_id`) REFERENCES `payment_modes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_referral_payments`
--


--
-- Table structure for table `company_referrals`
--

CREATE TABLE `company_referrals` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` bigint unsigned NOT NULL,
  `referrer_id` int NOT NULL,
  `percentage_commission` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_referrals_company_id_foreign` (`company_id`),
  CONSTRAINT `company_referrals_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_referrals`
--


--
-- Table structure for table `company_router_customers`
--

CREATE TABLE `company_router_customers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_router_id` bigint unsigned NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_router_customers_company_router_id_foreign` (`company_router_id`),
  CONSTRAINT `company_router_customers_company_router_id_foreign` FOREIGN KEY (`company_router_id`) REFERENCES `company_routers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_router_customers`
--

INSERT INTO `company_router_customers` VALUES (1,2,'7E:A5:C8:0E:3C:6A','255763752350','2025-08-05 18:59:16','2025-08-20 05:38:54',NULL),(2,2,'5A:DD:D5:00:65:24','255693311437','2025-08-05 19:03:34','2025-08-14 20:20:44',NULL),(3,2,'56:4C:02:FD:0F:0B','255672040034','2025-08-07 18:53:51','2025-08-30 18:22:28',NULL),(4,2,'5E:32:CC:C1:11:35','255617595193','2025-08-08 15:56:01','2025-08-08 15:56:01',NULL),(5,2,'D4:67:D3:E3:17:BD','255656056606','2025-08-09 11:05:16','2025-08-09 11:05:16',NULL),(6,2,'76:B4:55:80:75:CE','255618250327','2025-08-11 19:33:35','2025-08-28 19:09:11',NULL),(7,2,'Silas','0796230626','2025-08-17 08:18:10','2025-08-17 08:18:10',NULL),(8,2,'Wankrew','0792222222','2025-08-17 13:16:10','2025-08-17 13:16:10',NULL),(9,2,'Admin','0723232334','2025-08-17 14:00:15','2025-08-17 14:00:15',NULL),(10,2,'Admin','0723232323','2025-08-17 14:05:10','2025-08-17 14:05:10',NULL),(11,2,'njovu','0763752350','2025-08-17 14:08:43','2025-08-17 14:08:43',NULL),(12,2,'EA:58:A4:7A:3F:40','255746278281','2025-08-17 15:44:23','2025-08-17 15:44:23',NULL),(13,2,'30:FC:EB:7A:0C:90','255758728802','2025-08-19 09:09:34','2025-08-20 19:16:07',NULL),(14,2,'62:06:D0:8C:47:36','255673093138','2025-08-19 17:48:08','2025-08-19 17:48:08',NULL),(15,2,'E6:12:A3:41:F4:AD','255746184273','2025-08-19 20:41:06','2025-08-19 20:41:06',NULL),(16,2,'14:9F:3C:6B:96:77','255783709549','2025-08-20 10:01:10','2025-08-20 10:01:10',NULL),(17,2,'F2:50:95:0B:4B:27','255747101974','2025-08-20 13:10:29','2025-08-20 13:10:29',NULL),(18,2,'Faith','0712050835','2025-08-20 14:09:02','2025-08-20 14:09:02',NULL),(19,2,'5A:22:D6:25:36:E9','255616535743','2025-08-20 18:26:13','2025-08-20 18:26:13',NULL),(20,2,'3E:A5:2D:34:21:C5','255617223653','2025-08-20 20:00:36','2025-08-24 08:24:28',NULL),(21,2,'BE:FD:23:A1:58:ED','255654966625','2025-08-21 06:30:08','2025-08-21 06:30:08',NULL),(22,2,'D6:12:9E:9D:91:0E','255625284273','2025-08-21 19:38:06','2025-08-21 19:38:06',NULL),(23,2,'0A:00:F5:20:D1:35','255769211401','2025-08-21 20:22:20','2025-08-21 20:22:20',NULL),(24,2,'FE:96:EF:57:F0:70','255714840147','2025-08-22 17:26:43','2025-08-22 17:26:43',NULL),(25,2,'F2:65:ED:BF:19:CD','255785162610','2025-08-22 20:56:29','2025-08-22 20:56:29',NULL),(26,2,'0A:00:F5:20:D1:35','255629671401','2025-08-22 22:46:53','2025-08-22 22:46:53',NULL),(27,2,'4E:ED:DD:40:F3:A1','255792736886','2025-08-23 09:26:25','2025-08-23 09:26:25',NULL),(28,2,'A6:85:AC:A3:94:CF','255742925839','2025-08-24 09:30:08','2025-08-24 09:30:08',NULL),(29,2,'BE:B3:CB:9E:09:DC','255769039595','2025-08-24 21:25:55','2025-08-28 21:15:26',NULL),(30,2,'66:BB:53:AB:22:4E','255715060369','2025-08-25 17:22:24','2025-08-29 12:32:59',NULL),(31,2,'42:B6:CB:A6:FE:13','255774422687','2025-08-25 17:32:30','2025-08-25 17:32:30',NULL),(32,2,'0E:06:50:49:08:C6','255775514233','2025-08-25 19:15:59','2025-08-25 19:15:59',NULL),(33,2,'5A:22:D6:25:36:E9','255767631761','2025-08-26 14:51:15','2025-08-26 14:51:15',NULL),(34,6,'Mwamba','123456','2025-08-26 17:28:39','2025-08-26 17:28:39',NULL),(35,2,'02:C0:AF:A7:33:40','255761933535','2025-08-26 20:37:23','2025-08-28 21:38:06',NULL),(36,2,'F2:94:94:28:61:0A','255685827717','2025-08-26 21:17:04','2025-08-26 21:17:04',NULL),(37,5,'maleko','0713277244','2025-08-26 21:46:05','2025-08-26 21:46:05',NULL),(38,5,'magwila','0785949091','2025-08-26 21:53:10','2025-08-26 21:53:10',NULL),(39,5,'luta','0789880287','2025-08-26 21:58:54','2025-08-26 21:58:54',NULL),(40,5,'gilbert','0715807200','2025-08-26 22:02:34','2025-08-26 22:02:34',NULL),(41,6,'A2:ED:93:63:1B:07','255781995838','2025-08-27 10:46:41','2025-08-27 10:46:41',NULL),(42,6,'C2:14:39:F6:BE:64','255767506018','2025-08-27 10:48:07','2025-08-27 10:48:07',NULL),(43,2,'2E:1A:C2:11:77:57','255786509766','2025-08-28 13:09:31','2025-08-28 13:09:31',NULL),(44,2,'FA:EE:D5:8C:58:74','255687691491','2025-08-28 15:53:52','2025-08-28 15:53:52',NULL),(45,2,'daniel','0657745566','2025-08-29 05:36:04','2025-08-29 05:36:04',NULL),(46,2,'munisi','0784354707','2025-08-29 05:38:44','2025-08-29 05:38:44',NULL),(47,2,'ndunguru','0763462201','2025-08-29 05:41:06','2025-08-29 05:41:06',NULL),(48,2,'2E:02:FF:6E:4D:83','255622713224','2025-08-29 12:02:21','2025-08-29 12:02:21',NULL),(49,2,'BE:B3:CB:9E:09:DC','255625387323','2025-08-29 12:46:55','2025-08-29 12:46:55',NULL),(50,2,'52:79:1D:E2:BB:02','255768091773','2025-08-29 13:16:58','2025-08-30 07:18:53',NULL),(51,7,'8E:E0:2B:0F:11:26','255754578434','2025-08-29 20:53:37','2025-08-29 20:53:37',NULL),(52,2,'7E:5E:FC:92:8D:6E','255656397070','2025-08-30 08:01:52','2025-08-30 08:01:52',NULL),(53,2,'26:FF:4F:81:B9:CD','255794449030','2025-08-30 09:12:33','2025-08-30 09:12:33',NULL),(54,2,'62:98:4F:47:C4:C9','255656537308','2025-08-30 11:39:29','2025-08-30 11:39:29',NULL),(55,2,'E2:CA:F4:73:20:C8','255747433974','2025-08-30 16:26:16','2025-08-30 16:26:16',NULL);

--
-- Table structure for table `company_router_interfaces`
--

CREATE TABLE `company_router_interfaces` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_router_id` bigint unsigned NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_router_interfaces_company_router_id_foreign` (`company_router_id`),
  CONSTRAINT `company_router_interfaces_company_router_id_foreign` FOREIGN KEY (`company_router_id`) REFERENCES `company_routers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_router_interfaces`
--

INSERT INTO `company_router_interfaces` VALUES (9,2,'ether1',1,'2025-08-05 17:44:20','2025-08-05 17:44:20',NULL),(10,2,'ether3',1,'2025-08-05 17:44:20','2025-08-05 17:44:20',NULL),(11,2,'ether4',1,'2025-08-05 17:44:20','2025-08-05 17:44:20',NULL),(12,2,'ether5',1,'2025-08-05 17:44:20','2025-08-05 17:44:20',NULL),(13,2,'bridge',1,'2025-08-05 17:44:20','2025-08-05 17:44:20',NULL),(14,2,'lo',1,'2025-08-05 17:44:20','2025-08-05 17:44:20',NULL),(15,2,'ovpn-out1',1,'2025-08-05 17:44:20','2025-08-05 17:44:20',NULL),(25,5,'ether1',1,'2025-08-26 18:11:46','2025-08-26 18:11:46',NULL),(26,5,'ether3',1,'2025-08-26 18:11:46','2025-08-26 18:11:46',NULL),(27,5,'ether4',1,'2025-08-26 18:11:46','2025-08-26 18:11:46',NULL),(28,5,'ether5',1,'2025-08-26 18:11:46','2025-08-26 18:11:46',NULL),(29,5,'bridge',1,'2025-08-26 18:11:46','2025-08-26 18:11:46',NULL),(30,5,'ovpn-out1',1,'2025-08-26 18:11:46','2025-08-26 18:11:46',NULL),(31,7,'ether1',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(32,7,'ether2',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(33,7,'ether3',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(34,7,'ether5',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(35,7,'ether6',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(36,7,'ether7',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(37,7,'ether8',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(38,7,'sfp1',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(39,7,'bridge',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(40,7,'lo',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(41,7,'ovpn-out1',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL),(42,7,'wifi1',1,'2025-08-29 20:13:38','2025-08-29 20:13:38',NULL);

--
-- Table structure for table `company_router_invoice_payments`
--

CREATE TABLE `company_router_invoice_payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `router_invoice_id` int NOT NULL,
  `grouped_transaction_id` bigint unsigned NOT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `commission_amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_router_invoice_payments_grouped_transaction_id_foreign` (`grouped_transaction_id`),
  CONSTRAINT `company_router_invoice_payments_grouped_transaction_id_foreign` FOREIGN KEY (`grouped_transaction_id`) REFERENCES `grouped_transactions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_router_invoice_payments`
--

INSERT INTO `company_router_invoice_payments` VALUES (1,6,1,21000.00,0.00,'2025-08-28 06:42:22','2025-08-28 06:42:22',NULL);

--
-- Table structure for table `company_router_invoices`
--

CREATE TABLE `company_router_invoices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_router_id` bigint unsigned NOT NULL,
  `from_date` timestamp NOT NULL,
  `to_date` timestamp NOT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `status` int NOT NULL DEFAULT '0' COMMENT '0=pending, 1=paid',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_router_invoices_company_router_id_foreign` (`company_router_id`),
  CONSTRAINT `company_router_invoices_company_router_id_foreign` FOREIGN KEY (`company_router_id`) REFERENCES `company_routers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_router_invoices`
--

INSERT INTO `company_router_invoices` VALUES (2,'1052P9',2,'2025-08-04 22:00:00','2025-09-04 22:00:00',1000.00,0,'2025-08-05 16:56:56','2025-08-28 13:27:33','2025-08-28 13:27:33'),(5,'L3POA9',5,'2025-08-17 22:00:00','2025-09-17 22:00:00',21000.00,0,'2025-08-18 17:15:11','2025-08-28 06:45:33',NULL),(6,'UMORD7',6,'2025-08-25 22:00:00','2025-09-25 22:00:00',21000.00,1,'2025-08-26 13:06:13','2025-08-28 06:42:22',NULL),(7,'LIM5SR',7,'2025-08-28 22:00:00','2025-09-28 22:00:00',21000.00,0,'2025-08-29 19:10:58','2025-08-29 19:10:58',NULL),(8,'UA4N6X',8,'2025-08-29 22:00:00','2025-09-29 22:00:00',21000.00,0,'2025-08-30 06:58:45','2025-08-30 06:58:45',NULL);

--
-- Table structure for table `company_routers`
--

CREATE TABLE `company_routers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_id` bigint unsigned NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ip_address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `public_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `api_port` int NOT NULL DEFAULT '8728',
  `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `subscription_amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `expiry_date` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `customer_care_phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `online_status` int NOT NULL DEFAULT '1' COMMENT '0=offline, 1=online',
  `online_status_counter` int NOT NULL DEFAULT '0',
  `file_location` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_frequency_id` bigint unsigned DEFAULT NULL,
  `next_transaction_date` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `hotspot_anti_sharing_enabled` int NOT NULL DEFAULT '0' COMMENT '0=no, 1=yes',
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active, 2=expired',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `company_routers_ip_address_unique` (`ip_address`),
  UNIQUE KEY `company_routers_public_ip_unique` (`public_ip`),
  KEY `company_routers_company_id_foreign` (`company_id`),
  KEY `company_routers_transaction_frequency_id_foreign` (`transaction_frequency_id`),
  CONSTRAINT `company_routers_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  CONSTRAINT `company_routers_transaction_frequency_id_foreign` FOREIGN KEY (`transaction_frequency_id`) REFERENCES `transaction_frequencies` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_routers`
--

INSERT INTO `company_routers` VALUES (2,'GI6BYT',8,'Ngoni Net 1','50.50.50.2','161.97.174.20:16758','ngoni',8728,'48DWVF',0.00,'2025-08-05','0716583413',1,0,NULL,1,'2025-08-05',1,1,'2025-08-05 16:56:56','2025-08-30 22:14:09',NULL),(5,'YE6B2O',8,'Ngoni Net 2','50.50.50.5','161.97.174.20:11566','heritage',8728,'0HAWV2',21000.00,'2025-08-26','0763752350',0,0,NULL,NULL,NULL,1,1,'2025-08-18 17:15:11','2025-08-29 13:49:33',NULL),(6,'83WYM2',11,'Mwamba','50.50.50.6','161.97.174.20:18680','heritage',8728,'5ZISPW',21000.00,'2025-09-28','0786000803',0,3,'flash',NULL,NULL,1,1,'2025-08-26 13:06:13','2025-08-30 20:24:10',NULL),(7,'O37YGC',13,'La Zungu','50.50.50.7','161.97.174.20:18875','heritage',8728,'6ZNHLJ',21000.00,'2025-08-29','0754578434',0,3,NULL,NULL,NULL,0,2,'2025-08-29 19:10:58','2025-08-29 21:02:10',NULL),(8,'9N2EL1',14,'MwendoKasi','50.50.50.8',NULL,'heritage',8728,'heritage@2025',21000.00,'2025-08-30','0696849400',0,3,NULL,NULL,NULL,0,2,'2025-08-30 06:58:45','2025-08-30 08:39:34',NULL);

--
-- Table structure for table `company_service_plans`
--

CREATE TABLE `company_service_plans` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_id` bigint unsigned NOT NULL,
  `service_plan_id` bigint unsigned NOT NULL,
  `company_router_id` bigint unsigned DEFAULT NULL,
  `company_ip_pool_id` int DEFAULT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `download_limit` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `download_scale` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `upload_limit` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `upload_scale` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `burst_download_limit` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `burst_download_scale` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `burst_time` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shared_users` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
  `valid_for` decimal(8,2) NOT NULL DEFAULT '1.00',
  `plan_validity_type_id` int DEFAULT NULL,
  `cost` decimal(8,2) NOT NULL DEFAULT '0.00',
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_service_plans_company_id_foreign` (`company_id`),
  KEY `company_service_plans_service_plan_id_foreign` (`service_plan_id`),
  KEY `company_service_plans_company_router_id_foreign` (`company_router_id`),
  CONSTRAINT `company_service_plans_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  CONSTRAINT `company_service_plans_company_router_id_foreign` FOREIGN KEY (`company_router_id`) REFERENCES `company_routers` (`id`) ON DELETE CASCADE,
  CONSTRAINT `company_service_plans_service_plan_id_foreign` FOREIGN KEY (`service_plan_id`) REFERENCES `service_plans` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_service_plans`
--

INSERT INTO `company_service_plans` VALUES (6,'F3L651',8,1,2,3,'1 Hour','5','M','5','M',NULL,NULL,NULL,'1',1.00,2,210.00,1,'2025-08-05 17:49:04','2025-08-15 23:19:41',NULL),(7,'YPH8AG',8,1,2,3,'3 Hours','3','M','2','M',NULL,NULL,NULL,'1',6.00,2,300.00,1,'2025-08-05 17:49:42','2025-08-08 19:55:28',NULL),(8,'RN5IOU',8,1,2,3,'12 Hours','3','M','3','M',NULL,NULL,NULL,'1',12.00,2,500.00,1,'2025-08-05 17:50:05','2025-08-28 22:28:21',NULL),(9,'SHZN7L',8,1,2,3,'24 Hours','3','M','3','M',NULL,NULL,NULL,'1',24.00,2,1000.00,1,'2025-08-05 17:50:21','2025-08-28 22:30:53',NULL),(10,'ICA7K6',8,1,2,3,'7 Day','3','M','3','M',NULL,NULL,NULL,'1',7.00,3,5000.00,1,'2025-08-08 19:52:48','2025-08-18 21:00:20',NULL),(22,'X8D2C0',8,2,2,4,'Kiboko','10','M','10','M',NULL,NULL,NULL,'1',30.00,3,40000.00,1,'2025-08-11 10:11:00','2025-08-11 10:11:00',NULL),(23,'Q3R0VS',8,1,2,3,'Mwezi','3','M','3','M',NULL,NULL,NULL,'1',30.00,3,15000.00,1,'2025-08-14 20:43:56','2025-08-15 18:44:13',NULL),(24,'48IY1U',8,1,2,3,'3 days','03','M','03','M',NULL,NULL,NULL,'1',3.00,3,2500.00,1,'2025-08-14 20:45:13','2025-08-14 20:45:13',NULL),(25,'OP0VN1',8,3,2,NULL,'6mbps/6mbps','3','M','3','M',NULL,NULL,NULL,'1',1.00,3,2000.00,1,'2025-08-19 20:17:59','2025-08-19 20:17:59',NULL),(26,'S3H0WT',8,1,2,3,'2 week','03','M','03','M',NULL,NULL,NULL,'1',14.00,3,7000.00,1,'2025-08-20 11:02:58','2025-08-20 11:02:58',NULL),(27,'0X5KNQ',11,1,6,6,'Ndovu','3','M','3','M',NULL,NULL,NULL,'50',30.00,1,500.00,1,'2025-08-26 17:07:49','2025-08-26 18:55:14','2025-08-26 18:55:14'),(28,'6KXBQV',11,1,6,6,'Chui','5','M','5','M',NULL,NULL,NULL,'1',24.00,2,10000.00,1,'2025-08-26 17:14:36','2025-08-26 18:55:46','2025-08-26 18:55:46'),(29,'X1OSK4',11,1,6,6,'Chui','5','M','5','M',NULL,NULL,NULL,'1',24.00,2,10000.00,1,'2025-08-26 17:14:44','2025-08-26 17:15:12','2025-08-26 17:15:12'),(30,'LTR62D',11,2,6,7,'5 Mbps','5','M','5','M',NULL,NULL,NULL,'1',30.00,3,10000.00,1,'2025-08-26 17:24:27','2025-08-26 21:41:08','2025-08-26 21:41:08'),(31,'R6Z9YE',8,1,5,8,'saa 1','3','M','3','M',NULL,NULL,NULL,'1',1.00,2,210.00,1,'2025-08-26 18:34:22','2025-08-26 18:35:41',NULL),(32,'LHSBZ6',8,1,5,8,'12h','3','M','3','M',NULL,NULL,NULL,'1',12.00,2,500.00,1,'2025-08-26 18:35:06','2025-08-26 18:35:06',NULL),(33,'Z1QWMR',8,1,5,8,'3 days','3','M','3','M',NULL,NULL,NULL,'1',3.00,3,2500.00,1,'2025-08-26 18:36:38','2025-08-26 18:36:38',NULL),(34,'PDSZU1',8,1,5,8,'24hs','3','M','3','M',NULL,NULL,NULL,'1',24.00,2,1000.00,1,'2025-08-26 18:37:51','2025-08-26 18:37:51',NULL),(35,'Y2XKDT',8,1,5,8,'7days','03','M','05','M',NULL,NULL,NULL,'1',7.00,3,5000.00,1,'2025-08-26 18:38:54','2025-08-26 18:38:54',NULL),(36,'LOYQE0',8,1,5,8,'2 weeks','3','M','3','M',NULL,NULL,NULL,'1',14.00,3,8000.00,1,'2025-08-26 18:40:14','2025-08-26 18:40:14',NULL),(37,'04YOGN',8,1,5,8,'30 days','3','M','5','M',NULL,NULL,NULL,'1',30.00,3,20000.00,1,'2025-08-26 18:41:01','2025-08-26 18:41:01',NULL),(38,'YEW603',11,1,6,6,'Masaa 6','100','M','100','M',NULL,NULL,NULL,'1',6.00,2,500.00,1,'2025-08-26 18:56:38','2025-08-28 12:57:08',NULL),(39,'F21X6R',11,1,6,6,'Masaa 24','150','M','150','M',NULL,NULL,NULL,'1',24.00,2,1000.00,1,'2025-08-26 18:58:52','2025-08-28 12:57:25',NULL),(40,'2PGTOV',11,1,6,6,'Siku 7','100','M','100','M',NULL,NULL,NULL,'1',7.00,3,5000.00,1,'2025-08-26 19:00:05','2025-08-28 12:57:46',NULL),(41,'BT1SFP',8,2,5,9,'flash','10','M','10','M',NULL,NULL,NULL,'1',30.00,3,40000.00,1,'2025-08-26 19:37:31','2025-08-26 19:37:31',NULL),(42,'C7SJTZ',8,2,5,9,'swala','5','M','5','M',NULL,NULL,NULL,'1',30.00,3,20000.00,1,'2025-08-26 19:38:42','2025-08-26 19:38:42',NULL),(43,'R4CLS6',13,1,7,10,'Pipi','2','M','5','M',NULL,NULL,NULL,'1',30.00,1,200.00,1,'2025-08-29 20:46:28','2025-08-29 20:46:28',NULL);

--
-- Table structure for table `company_sms`
--

CREATE TABLE `company_sms` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` bigint unsigned NOT NULL,
  `sms_units` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_sms_company_id_foreign` (`company_id`),
  CONSTRAINT `company_sms_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_sms`
--


--
-- Table structure for table `company_sms_provider_entities`
--

CREATE TABLE `company_sms_provider_entities` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_sms_provider_id` bigint unsigned NOT NULL,
  `requirement_id` int NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_sms_provider_entities_company_sms_provider_id_foreign` (`company_sms_provider_id`),
  CONSTRAINT `company_sms_provider_entities_company_sms_provider_id_foreign` FOREIGN KEY (`company_sms_provider_id`) REFERENCES `company_sms_providers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_sms_provider_entities`
--


--
-- Table structure for table `company_sms_providers`
--

CREATE TABLE `company_sms_providers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` bigint unsigned NOT NULL,
  `sms_provider_id` bigint unsigned NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_sms_providers_company_id_foreign` (`company_id`),
  KEY `company_sms_providers_sms_provider_id_foreign` (`sms_provider_id`),
  CONSTRAINT `company_sms_providers_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  CONSTRAINT `company_sms_providers_sms_provider_id_foreign` FOREIGN KEY (`sms_provider_id`) REFERENCES `sms_providers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_sms_providers`
--


--
-- Table structure for table `company_sms_templates`
--

CREATE TABLE `company_sms_templates` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` int DEFAULT NULL,
  `sms_template_type_id` bigint unsigned NOT NULL,
  `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '0' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_sms_templates_sms_template_type_id_foreign` (`sms_template_type_id`),
  CONSTRAINT `company_sms_templates_sms_template_type_id_foreign` FOREIGN KEY (`sms_template_type_id`) REFERENCES `sms_template_types` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_sms_templates`
--

INSERT INTO `company_sms_templates` VALUES (1,0,1,'Dear [name], your internet plan is expiring in [expiry_days] day(s). Kindly make the payment at your earliest convenience to avoid service interruptions. Pay via paybill - [paybill] and account number [account_number]',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(2,0,2,'Dear [name], your invoice for [month] amounting to Ksh [balance] has been generated. Please pay via paybill - [paybill] and account number [account_number]',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(3,0,3,'Hello [name], this is to confirm that we have received your payment of Ksh [amount] for [month]. Your current balance as of now is Ksh [balance]',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(4,0,4,'Dear [name], this is a reminder that your payment of Ksh [balance] for [month] is due. Kindly make the payment at your earliest convenience to avoid service interruptions. Pay via paybill - [paybill] and account number [account_number]',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(5,0,5,'Dear [name], your payment of Ksh [balance] for [month] is overdue. Please settle the outstanding amount immediately to avoid service disruption. Pay via paybill - [paybill] and account number [account_number]',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(6,0,6,'Hello [name], due to an overdue balance of [balance], your service has been disconnected. To restore the services, please pay Ksh [balance] to paybill - [paybill] using account number [account_number]',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(7,0,7,'Hello [name], we are excited to have you on board! Your subscription to [internet_plan] is now active. If you have any questions, feel free to contact us. Thank you',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(8,0,8,'Hello [name], we are excited to have you on board! Your subscription to [internet_plan] is now active. If you have any questions, feel free to contact us.',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(9,0,9,'Dear [name], your request to change your plan to [internet_plan] has been processed successfully. Your new plan is now active. Contact us if you need assistance.',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(10,0,10,'Dear [name], we will be performing maintenance on 1st Jan 2025 from 09:30am to 11:30am. Service may be temporarily affected. Thank you for your patience.',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(11,0,11,'Dear [name], we are aware of an ongoing service disruption in your area. Our team is investigating and will restore service as soon as possible.',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(12,0,12,'Greetings, thank you for purchasing [plan] plan worthy [amount]. Please use [username] as the username and [password] as your password to reconnect yourself. Your subscription expires at [expiry_date].',1,'2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(13,8,11,'Dear [name], we are aware of an ongoing service disruption in your area. Our team is investigating and will restore service as soon as possible.',1,'2025-08-22 21:17:08','2025-08-22 21:17:08',NULL),(14,8,12,'Greetings, thank you for purchasing [plan] plan worthy [amount]. Please use [username] as the username and [password] as your password to reconnect yourself. Your subscription expires at [expiry_date].',1,'2025-08-22 21:20:09','2025-08-22 21:20:09',NULL),(15,11,1,'Dear [name], your internet plan is expiring in [expiry_days] day(s). Kindly make the payment at your earliest convenience to avoid service interruptions. Pay via paybill - [paybill] and account number [account_number]',1,'2025-08-26 17:26:06','2025-08-26 17:26:06',NULL),(16,13,12,'Greetings, thank you for purchasing [plan] plan worthy [amount]. Please use [username] as the username and [password] as your password to reconnect yourself. Your subscription expires at [expiry_date].',1,'2025-08-29 22:04:52','2025-08-29 22:04:52',NULL),(17,13,11,'Dear [name], we are aware of an ongoing service disruption in your area. Our team is investigating and will restore service as soon as possible.',1,'2025-08-29 22:05:13','2025-08-29 22:05:13',NULL),(18,13,10,'Dear [name], we will be performing maintenance on 1st Jan 2025 from 09:30am to 11:30am. Service may be temporarily affected. Thank you for your patience.',1,'2025-08-29 22:05:34','2025-08-29 22:05:34',NULL),(19,13,9,'Dear [name], your request to change your plan to [internet_plan] has been processed successfully. Your new plan is now active. Contact us if you need assistance.',1,'2025-08-29 22:06:16','2025-08-29 22:06:16',NULL),(20,13,8,'Hello [name], we are excited to have you on board! Your subscription to [internet_plan] is now active. If you have any questions, feel free to contact us.',1,'2025-08-29 22:06:24','2025-08-29 22:06:24',NULL),(21,13,7,'Hello [name], we are excited to have you on board! Your subscription to [internet_plan] is now active. If you have any questions, feel free to contact us. Thank you',1,'2025-08-29 22:06:29','2025-08-29 22:06:29',NULL),(22,13,6,'Hello [name], due to an overdue balance of [balance], your service has been disconnected. To restore the services, please pay Ksh [balance] to paybill - [paybill] using account number [account_number]',1,'2025-08-29 22:06:35','2025-08-29 22:06:35',NULL),(23,13,5,'Dear [name], your payment of Ksh [balance] for [month] is overdue. Please settle the outstanding amount immediately to avoid service disruption. Pay via paybill - [paybill] and account number [account_number]',1,'2025-08-29 22:06:40','2025-08-29 22:06:40',NULL),(24,13,4,'Dear [name], this is a reminder that your payment of Ksh [balance] for [month] is due. Kindly make the payment at your earliest convenience to avoid service interruptions. Pay via paybill - [paybill] and account number [account_number]',1,'2025-08-29 22:06:46','2025-08-29 22:06:46',NULL),(25,13,3,'Hello [name], this is to confirm that we have received your payment of Ksh [amount] for [month]. Your current balance as of now is Ksh [balance]',1,'2025-08-29 22:06:51','2025-08-29 22:06:51',NULL),(26,13,2,'Dear [name], your invoice for [month] amounting to Ksh [balance] has been generated. Please pay via paybill - [paybill] and account number [account_number]',1,'2025-08-29 22:07:00','2025-08-29 22:07:00',NULL),(27,13,1,'Dear [name], your internet plan is expiring in [expiry_days] day(s). Kindly make the payment at your earliest convenience to avoid service interruptions. Pay via paybill - [paybill] and account number [account_number]',1,'2025-08-29 22:07:07','2025-08-29 22:07:07',NULL);

--
-- Table structure for table `company_sms_usages`
--

CREATE TABLE `company_sms_usages` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` bigint unsigned NOT NULL,
  `sms_units` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_sms_usages_company_id_foreign` (`company_id`),
  CONSTRAINT `company_sms_usages_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_sms_usages`
--


--
-- Table structure for table `company_static_pages`
--

CREATE TABLE `company_static_pages` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `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 `company_static_pages`
--


--
-- Table structure for table `company_users`
--

CREATE TABLE `company_users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_users_company_id_foreign` (`company_id`),
  KEY `company_users_user_id_foreign` (`user_id`),
  CONSTRAINT `company_users_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  CONSTRAINT `company_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_users`
--

INSERT INTO `company_users` VALUES (8,8,15,1,'2025-08-05 16:56:56','2025-08-05 16:56:56',NULL),(11,11,20,1,'2025-08-26 13:06:13','2025-08-26 13:06:13',NULL),(14,13,22,1,'2025-08-29 19:10:58','2025-08-29 19:10:58',NULL),(15,14,23,1,'2025-08-30 06:58:45','2025-08-30 06:58:45',NULL);

--
-- Table structure for table `company_whatsapp_scans`
--

CREATE TABLE `company_whatsapp_scans` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` int DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_whatsapp_scans`
--


--
-- Table structure for table `customers`
--

CREATE TABLE `customers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int NOT NULL DEFAULT '0' COMMENT '0=pending, 1=sent',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `customers`
--

INSERT INTO `customers` VALUES (1,'+2547222222222',NULL,NULL,NULL,0,'2025-08-11 23:41:45','2025-08-11 23:41:59','2025-08-11 23:41:59'),(2,NULL,NULL,NULL,NULL,0,'2025-08-11 23:43:58','2025-08-26 13:45:45',NULL);

--
-- Table structure for table `director_share_incomes`
--

CREATE TABLE `director_share_incomes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `director_share_id` bigint unsigned NOT NULL,
  `grouped_transaction_id` bigint unsigned NOT NULL,
  `percentage_amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `settled_status` int NOT NULL DEFAULT '0' COMMENT '0=pending, 1=sent',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `director_share_incomes_director_share_id_foreign` (`director_share_id`),
  KEY `director_share_incomes_grouped_transaction_id_foreign` (`grouped_transaction_id`),
  CONSTRAINT `director_share_incomes_director_share_id_foreign` FOREIGN KEY (`director_share_id`) REFERENCES `director_shares` (`id`) ON DELETE CASCADE,
  CONSTRAINT `director_share_incomes_grouped_transaction_id_foreign` FOREIGN KEY (`grouped_transaction_id`) REFERENCES `grouped_transactions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `director_share_incomes`
--

INSERT INTO `director_share_incomes` VALUES (1,1,1,50.00,10500.00,0,'2025-08-28 06:42:22','2025-08-28 06:42:22',NULL);

--
-- Table structure for table `director_share_payment_accounts`
--

CREATE TABLE `director_share_payment_accounts` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `director_share_id` bigint unsigned NOT NULL,
  `payment_method_id` bigint unsigned NOT NULL,
  `bank_id` bigint unsigned DEFAULT NULL,
  `phone_account_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `director_share_payment_accounts_director_share_id_foreign` (`director_share_id`),
  KEY `director_share_payment_accounts_payment_method_id_foreign` (`payment_method_id`),
  KEY `director_share_payment_accounts_bank_id_foreign` (`bank_id`),
  CONSTRAINT `director_share_payment_accounts_bank_id_foreign` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`) ON DELETE CASCADE,
  CONSTRAINT `director_share_payment_accounts_director_share_id_foreign` FOREIGN KEY (`director_share_id`) REFERENCES `director_shares` (`id`) ON DELETE CASCADE,
  CONSTRAINT `director_share_payment_accounts_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `director_share_payment_accounts`
--


--
-- Table structure for table `director_shares`
--

CREATE TABLE `director_shares` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `names` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `percentage_amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `status` int NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `director_shares`
--

INSERT INTO `director_shares` VALUES (1,'DS001','Jared Maera','+254716100572','maerajared12@gmail.com',50.00,1,'2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(2,'DS002','Dennis Bogonko','+254720579706','bogonkomokaya92@gmail.com',30.00,1,'2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(3,'DS003','Jaem Net','0716327828','info@jaemnet.com',20.00,1,'2025-08-03 19:10:08','2025-08-03 19:10:08',NULL);

--
-- Table structure for table `escrow_transactions`
--

CREATE TABLE `escrow_transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_id` int DEFAULT NULL,
  `company_router_id` int DEFAULT NULL,
  `payment_mode_id` bigint unsigned NOT NULL,
  `phone_used` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `checkout_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `account_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `escrow_transactions_payment_mode_id_foreign` (`payment_mode_id`),
  CONSTRAINT `escrow_transactions_payment_mode_id_foreign` FOREIGN KEY (`payment_mode_id`) REFERENCES `payment_modes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `escrow_transactions`
--


--
-- Table structure for table `expenses`
--

CREATE TABLE `expenses` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `expenses`
--


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

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

--
-- Dumping data for table `failed_jobs`
--


--
-- Table structure for table `failed_transactions`
--

CREATE TABLE `failed_transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `payment_mode_id` bigint unsigned NOT NULL,
  `checkout_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `failed_transactions_payment_mode_id_foreign` (`payment_mode_id`),
  CONSTRAINT `failed_transactions_payment_mode_id_foreign` FOREIGN KEY (`payment_mode_id`) REFERENCES `payment_modes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `failed_transactions`
--


--
-- Table structure for table `grouped_transactions`
--

CREATE TABLE `grouped_transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transaction_type` int NOT NULL DEFAULT '1' COMMENT '1=invoice, 2=sms',
  `unit_sms_price` decimal(8,2) NOT NULL DEFAULT '0.00',
  `provider_sms_price` decimal(8,2) NOT NULL DEFAULT '0.00',
  `company_id` bigint unsigned NOT NULL,
  `company_router_id` int DEFAULT NULL,
  `user_id` int DEFAULT NULL,
  `payment_mode_id` bigint unsigned NOT NULL,
  `phone_used` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `checkout_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `account_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `grouped_transactions_company_id_foreign` (`company_id`),
  KEY `grouped_transactions_payment_mode_id_foreign` (`payment_mode_id`),
  CONSTRAINT `grouped_transactions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  CONSTRAINT `grouped_transactions_payment_mode_id_foreign` FOREIGN KEY (`payment_mode_id`) REFERENCES `payment_modes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `grouped_transactions`
--

INSERT INTO `grouped_transactions` VALUES (1,'8I42E6',1,0.00,0.00,11,6,1,2,NULL,'THR178AWB',21000.00,NULL,NULL,'2025-08-28 06:42:22','2025-08-28 06:42:22',NULL);

--
-- Table structure for table `ip_prefix_lengths`
--

CREATE TABLE `ip_prefix_lengths` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `prefix` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ip_prefix_lengths`
--

INSERT INTO `ip_prefix_lengths` VALUES (1,'8 (16,777,214 IPs)','8','2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(2,'12 (1,048,574 IPs)','12','2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(3,'16 (65,534 IPs)','16','2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(4,'20 (4,094 IPs)','20','2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(5,'24 (254 IPs)','24','2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(6,'28 (14 IPs)','28','2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(7,'30 (2 IPs)','30','2025-08-03 19:10:09','2025-08-03 19:10:09',NULL),(8,'32 (1 IP)','32','2025-08-03 19:10:09','2025-08-03 19:10:09',NULL);

--
-- Table structure for table `job_batches`
--

CREATE TABLE `job_batches` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `total_jobs` int NOT NULL,
  `pending_jobs` int NOT NULL,
  `failed_jobs` int NOT NULL,
  `failed_job_ids` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `options` mediumtext COLLATE utf8mb4_unicode_ci,
  `cancelled_at` int DEFAULT NULL,
  `created_at` int NOT NULL,
  `finished_at` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `job_batches`
--


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

CREATE TABLE `jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `attempts` tinyint unsigned NOT NULL,
  `reserved_at` int unsigned DEFAULT NULL,
  `available_at` int unsigned NOT NULL,
  `created_at` int unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `jobs_queue_index` (`queue`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `jobs`
--

INSERT INTO `jobs` VALUES (1,'default','{\"uuid\":\"864014d8-f513-419a-9600-d560ff7ae7a8\",\"displayName\":\"App\\\\Jobs\\\\SendMessages\",\"job\":\"Illuminate\\\\Queue\\\\CallQueuedHandler@call\",\"maxTries\":null,\"maxExceptions\":null,\"failOnTimeout\":false,\"backoff\":null,\"timeout\":null,\"retryUntil\":null,\"data\":{\"commandName\":\"App\\\\Jobs\\\\SendMessages\",\"command\":\"O:21:\\\"App\\\\Jobs\\\\SendMessages\\\":2:{s:10:\\\"\\u0000*\\u0000payload\\\";a:6:{s:9:\\\"sessionId\\\";i:0;s:15:\\\"message_mode_id\\\";s:1:\\\"1\\\";s:7:\\\"company\\\";i:0;s:7:\\\"message\\\";s:114:\\\"Dear Ben, your invoice for Aug amounting to Ksh  has been generated. Please pay via paybill -  and account number \\\";s:8:\\\"filename\\\";s:0:\\\"\\\";s:5:\\\"phone\\\";s:7:\\\"0745678\\\";}s:5:\\\"delay\\\";O:13:\\\"Carbon\\\\Carbon\\\":3:{s:4:\\\"date\\\";s:26:\\\"2025-08-12 10:53:44.362541\\\";s:13:\\\"timezone_type\\\";i:3;s:8:\\\"timezone\\\";s:14:\\\"Africa\\/Nairobi\\\";}}\"}}',0,NULL,1754985224,1754985204),(2,'default','{\"uuid\":\"c1587e1d-4d6f-4586-a6fc-24955aded68a\",\"displayName\":\"App\\\\Jobs\\\\SendMessages\",\"job\":\"Illuminate\\\\Queue\\\\CallQueuedHandler@call\",\"maxTries\":null,\"maxExceptions\":null,\"failOnTimeout\":false,\"backoff\":null,\"timeout\":null,\"retryUntil\":null,\"data\":{\"commandName\":\"App\\\\Jobs\\\\SendMessages\",\"command\":\"O:21:\\\"App\\\\Jobs\\\\SendMessages\\\":2:{s:10:\\\"\\u0000*\\u0000payload\\\";a:6:{s:9:\\\"sessionId\\\";i:0;s:15:\\\"message_mode_id\\\";s:1:\\\"1\\\";s:7:\\\"company\\\";i:0;s:7:\\\"message\\\";s:116:\\\"Dear Erick, your invoice for Aug amounting to Ksh  has been generated. Please pay via paybill -  and account number \\\";s:8:\\\"filename\\\";s:0:\\\"\\\";s:5:\\\"phone\\\";s:10:\\\"0763752350\\\";}s:5:\\\"delay\\\";O:13:\\\"Carbon\\\\Carbon\\\":3:{s:4:\\\"date\\\";s:26:\\\"2025-08-12 10:53:44.495011\\\";s:13:\\\"timezone_type\\\";i:3;s:8:\\\"timezone\\\";s:14:\\\"Africa\\/Nairobi\\\";}}\"}}',0,NULL,1754985224,1754985204),(3,'default','{\"uuid\":\"64d42b36-cefe-4579-a9d1-6a9025ea9ee1\",\"displayName\":\"App\\\\Jobs\\\\SendMessages\",\"job\":\"Illuminate\\\\Queue\\\\CallQueuedHandler@call\",\"maxTries\":null,\"maxExceptions\":null,\"failOnTimeout\":false,\"backoff\":null,\"timeout\":null,\"retryUntil\":null,\"data\":{\"commandName\":\"App\\\\Jobs\\\\SendMessages\",\"command\":\"O:21:\\\"App\\\\Jobs\\\\SendMessages\\\":2:{s:10:\\\"\\u0000*\\u0000payload\\\";a:6:{s:9:\\\"sessionId\\\";i:0;s:15:\\\"message_mode_id\\\";s:1:\\\"3\\\";s:7:\\\"company\\\";O:18:\\\"App\\\\Models\\\\Company\\\":31:{s:13:\\\"\\u0000*\\u0000connection\\\";s:5:\\\"mysql\\\";s:8:\\\"\\u0000*\\u0000table\\\";s:9:\\\"companies\\\";s:13:\\\"\\u0000*\\u0000primaryKey\\\";s:2:\\\"id\\\";s:10:\\\"\\u0000*\\u0000keyType\\\";s:3:\\\"int\\\";s:12:\\\"incrementing\\\";b:1;s:7:\\\"\\u0000*\\u0000with\\\";a:0:{}s:12:\\\"\\u0000*\\u0000withCount\\\";a:0:{}s:19:\\\"preventsLazyLoading\\\";b:0;s:10:\\\"\\u0000*\\u0000perPage\\\";i:15;s:6:\\\"exists\\\";b:1;s:18:\\\"wasRecentlyCreated\\\";b:0;s:28:\\\"\\u0000*\\u0000escapeWhenCastingToString\\\";b:0;s:13:\\\"\\u0000*\\u0000attributes\\\";a:16:{s:2:\\\"id\\\";i:13;s:6:\\\"ref_no\\\";s:6:\\\"9BYRSA\\\";s:7:\\\"user_id\\\";i:22;s:4:\\\"name\\\";s:18:\\\"La Zungu Creations\\\";s:5:\\\"phone\\\";s:10:\\\"0754578434\\\";s:5:\\\"email\\\";s:21:\\\"karnsinkazy@gmail.com\\\";s:11:\\\"box_address\\\";N;s:8:\\\"location\\\";s:9:\\\"Daresalam\\\";s:8:\\\"latitude\\\";N;s:9:\\\"longitude\\\";N;s:4:\\\"logo\\\";s:45:\\\"kJuzfMRNZoWZd9KwMsXAjfFMIgCv3hHbEVRw9HWq.webp\\\";s:24:\\\"subscription_expiry_date\\\";N;s:6:\\\"status\\\";i:1;s:10:\\\"created_at\\\";s:19:\\\"2025-08-29 21:10:58\\\";s:10:\\\"updated_at\\\";s:19:\\\"2025-08-29 22:20:17\\\";s:10:\\\"deleted_at\\\";N;}s:11:\\\"\\u0000*\\u0000original\\\";a:16:{s:2:\\\"id\\\";i:13;s:6:\\\"ref_no\\\";s:6:\\\"9BYRSA\\\";s:7:\\\"user_id\\\";i:22;s:4:\\\"name\\\";s:18:\\\"La Zungu Creations\\\";s:5:\\\"phone\\\";s:10:\\\"0754578434\\\";s:5:\\\"email\\\";s:21:\\\"karnsinkazy@gmail.com\\\";s:11:\\\"box_address\\\";N;s:8:\\\"location\\\";s:9:\\\"Daresalam\\\";s:8:\\\"latitude\\\";N;s:9:\\\"longitude\\\";N;s:4:\\\"logo\\\";s:45:\\\"kJuzfMRNZoWZd9KwMsXAjfFMIgCv3hHbEVRw9HWq.webp\\\";s:24:\\\"subscription_expiry_date\\\";N;s:6:\\\"status\\\";i:1;s:10:\\\"created_at\\\";s:19:\\\"2025-08-29 21:10:58\\\";s:10:\\\"updated_at\\\";s:19:\\\"2025-08-29 22:20:17\\\";s:10:\\\"deleted_at\\\";N;}s:10:\\\"\\u0000*\\u0000changes\\\";a:0:{}s:8:\\\"\\u0000*\\u0000casts\\\";a:1:{s:10:\\\"deleted_at\\\";s:8:\\\"datetime\\\";}s:17:\\\"\\u0000*\\u0000classCastCache\\\";a:0:{}s:21:\\\"\\u0000*\\u0000attributeCastCache\\\";a:0:{}s:13:\\\"\\u0000*\\u0000dateFormat\\\";N;s:10:\\\"\\u0000*\\u0000appends\\\";a:0:{}s:19:\\\"\\u0000*\\u0000dispatchesEvents\\\";a:0:{}s:14:\\\"\\u0000*\\u0000observables\\\";a:0:{}s:12:\\\"\\u0000*\\u0000relations\\\";a:2:{s:21:\\\"companyPaymentAccount\\\";O:32:\\\"App\\\\Models\\\\CompanyPaymentAccount\\\":31:{s:13:\\\"\\u0000*\\u0000connection\\\";s:5:\\\"mysql\\\";s:8:\\\"\\u0000*\\u0000table\\\";s:24:\\\"company_payment_accounts\\\";s:13:\\\"\\u0000*\\u0000primaryKey\\\";s:2:\\\"id\\\";s:10:\\\"\\u0000*\\u0000keyType\\\";s:3:\\\"int\\\";s:12:\\\"incrementing\\\";b:1;s:7:\\\"\\u0000*\\u0000with\\\";a:0:{}s:12:\\\"\\u0000*\\u0000withCount\\\";a:0:{}s:19:\\\"preventsLazyLoading\\\";b:0;s:10:\\\"\\u0000*\\u0000perPage\\\";i:15;s:6:\\\"exists\\\";b:1;s:18:\\\"wasRecentlyCreated\\\";b:0;s:28:\\\"\\u0000*\\u0000escapeWhenCastingToString\\\";b:0;s:13:\\\"\\u0000*\\u0000attributes\\\";a:9:{s:2:\\\"id\\\";i:5;s:10:\\\"company_id\\\";i:13;s:17:\\\"company_router_id\\\";i:7;s:6:\\\"ref_no\\\";s:6:\\\"HI023B\\\";s:14:\\\"selcom_api_key\\\";s:86:\\\"ivnQEneyuX6VgUKFkbMKyEbtCYzPtM6Xzxdf3jp-sCus-jJtJxMjQUY10awhjrAN3RG1wNlM7OhbT3U55h2P9w\\\";s:6:\\\"status\\\";i:1;s:10:\\\"created_at\\\";s:19:\\\"2025-08-29 22:27:58\\\";s:10:\\\"updated_at\\\";s:19:\\\"2025-08-29 22:27:58\\\";s:10:\\\"deleted_at\\\";N;}s:11:\\\"\\u0000*\\u0000original\\\";a:9:{s:2:\\\"id\\\";i:5;s:10:\\\"company_id\\\";i:13;s:17:\\\"company_router_id\\\";i:7;s:6:\\\"ref_no\\\";s:6:\\\"HI023B\\\";s:14:\\\"selcom_api_key\\\";s:86:\\\"ivnQEneyuX6VgUKFkbMKyEbtCYzPtM6Xzxdf3jp-sCus-jJtJxMjQUY10awhjrAN3RG1wNlM7OhbT3U55h2P9w\\\";s:6:\\\"status\\\";i:1;s:10:\\\"created_at\\\";s:19:\\\"2025-08-29 22:27:58\\\";s:10:\\\"updated_at\\\";s:19:\\\"2025-08-29 22:27:58\\\";s:10:\\\"deleted_at\\\";N;}s:10:\\\"\\u0000*\\u0000changes\\\";a:0:{}s:8:\\\"\\u0000*\\u0000casts\\\";a:1:{s:10:\\\"deleted_at\\\";s:8:\\\"datetime\\\";}s:17:\\\"\\u0000*\\u0000classCastCache\\\";a:0:{}s:21:\\\"\\u0000*\\u0000attributeCastCache\\\";a:0:{}s:13:\\\"\\u0000*\\u0000dateFormat\\\";N;s:10:\\\"\\u0000*\\u0000appends\\\";a:0:{}s:19:\\\"\\u0000*\\u0000dispatchesEvents\\\";a:0:{}s:14:\\\"\\u0000*\\u0000observables\\\";a:0:{}s:12:\\\"\\u0000*\\u0000relations\\\";a:0:{}s:10:\\\"\\u0000*\\u0000touches\\\";a:0:{}s:10:\\\"timestamps\\\";b:1;s:13:\\\"usesUniqueIds\\\";b:0;s:9:\\\"\\u0000*\\u0000hidden\\\";a:0:{}s:10:\\\"\\u0000*\\u0000visible\\\";a:0:{}s:11:\\\"\\u0000*\\u0000fillable\\\";a:5:{i:0;s:10:\\\"company_id\\\";i:1;s:17:\\\"company_router_id\\\";i:2;s:6:\\\"ref_no\\\";i:3;s:14:\\\"selcom_api_key\\\";i:4;s:6:\\\"status\\\";}s:10:\\\"\\u0000*\\u0000guarded\\\";a:1:{i:0;s:1:\\\"*\\\";}s:16:\\\"\\u0000*\\u0000forceDeleting\\\";b:0;}s:18:\\\"companySmsProvider\\\";N;}s:10:\\\"\\u0000*\\u0000touches\\\";a:0:{}s:10:\\\"timestamps\\\";b:1;s:13:\\\"usesUniqueIds\\\";b:0;s:9:\\\"\\u0000*\\u0000hidden\\\";a:0:{}s:10:\\\"\\u0000*\\u0000visible\\\";a:0:{}s:11:\\\"\\u0000*\\u0000fillable\\\";a:12:{i:0;s:6:\\\"ref_no\\\";i:1;s:7:\\\"user_id\\\";i:2;s:4:\\\"name\\\";i:3;s:5:\\\"phone\\\";i:4;s:5:\\\"email\\\";i:5;s:11:\\\"box_address\\\";i:6;s:8:\\\"location\\\";i:7;s:8:\\\"latitude\\\";i:8;s:9:\\\"longitude\\\";i:9;s:4:\\\"logo\\\";i:10;s:24:\\\"subscription_expiry_date\\\";i:11;s:6:\\\"status\\\";}s:10:\\\"\\u0000*\\u0000guarded\\\";a:1:{i:0;s:1:\\\"*\\\";}s:16:\\\"\\u0000*\\u0000forceDeleting\\\";b:0;}s:7:\\\"message\\\";s:222:\\\"Dear 8E:E0:2B:0F:11:26, this is a reminder that your payment of Ksh 0 for Aug is due. Kindly make the payment at your earliest convenience to avoid service interruptions. Pay via paybill - 4157595 and account number W8HE0K\\\";s:8:\\\"filename\\\";s:0:\\\"\\\";s:5:\\\"phone\\\";s:12:\\\"255754578434\\\";}s:5:\\\"delay\\\";O:13:\\\"Carbon\\\\Carbon\\\":3:{s:4:\\\"date\\\";s:26:\\\"2025-08-29 22:59:45.162308\\\";s:13:\\\"timezone_type\\\";i:3;s:8:\\\"timezone\\\";s:14:\\\"Africa\\/Nairobi\\\";}}\"}}',0,NULL,1756497585,1756497565),(4,'default','{\"uuid\":\"23c926f7-33f5-4a4c-a3a8-c2226baf8731\",\"displayName\":\"App\\\\Jobs\\\\SendMessages\",\"job\":\"Illuminate\\\\Queue\\\\CallQueuedHandler@call\",\"maxTries\":null,\"maxExceptions\":null,\"failOnTimeout\":false,\"backoff\":null,\"timeout\":null,\"retryUntil\":null,\"data\":{\"commandName\":\"App\\\\Jobs\\\\SendMessages\",\"command\":\"O:21:\\\"App\\\\Jobs\\\\SendMessages\\\":2:{s:10:\\\"\\u0000*\\u0000payload\\\";a:6:{s:9:\\\"sessionId\\\";i:0;s:15:\\\"message_mode_id\\\";s:1:\\\"3\\\";s:7:\\\"company\\\";O:18:\\\"App\\\\Models\\\\Company\\\":31:{s:13:\\\"\\u0000*\\u0000connection\\\";s:5:\\\"mysql\\\";s:8:\\\"\\u0000*\\u0000table\\\";s:9:\\\"companies\\\";s:13:\\\"\\u0000*\\u0000primaryKey\\\";s:2:\\\"id\\\";s:10:\\\"\\u0000*\\u0000keyType\\\";s:3:\\\"int\\\";s:12:\\\"incrementing\\\";b:1;s:7:\\\"\\u0000*\\u0000with\\\";a:0:{}s:12:\\\"\\u0000*\\u0000withCount\\\";a:0:{}s:19:\\\"preventsLazyLoading\\\";b:0;s:10:\\\"\\u0000*\\u0000perPage\\\";i:15;s:6:\\\"exists\\\";b:1;s:18:\\\"wasRecentlyCreated\\\";b:0;s:28:\\\"\\u0000*\\u0000escapeWhenCastingToString\\\";b:0;s:13:\\\"\\u0000*\\u0000attributes\\\";a:16:{s:2:\\\"id\\\";i:13;s:6:\\\"ref_no\\\";s:6:\\\"9BYRSA\\\";s:7:\\\"user_id\\\";i:22;s:4:\\\"name\\\";s:18:\\\"La Zungu Creations\\\";s:5:\\\"phone\\\";s:10:\\\"0754578434\\\";s:5:\\\"email\\\";s:21:\\\"karnsinkazy@gmail.com\\\";s:11:\\\"box_address\\\";N;s:8:\\\"location\\\";s:9:\\\"Daresalam\\\";s:8:\\\"latitude\\\";N;s:9:\\\"longitude\\\";N;s:4:\\\"logo\\\";s:45:\\\"kJuzfMRNZoWZd9KwMsXAjfFMIgCv3hHbEVRw9HWq.webp\\\";s:24:\\\"subscription_expiry_date\\\";N;s:6:\\\"status\\\";i:1;s:10:\\\"created_at\\\";s:19:\\\"2025-08-29 21:10:58\\\";s:10:\\\"updated_at\\\";s:19:\\\"2025-08-29 22:20:17\\\";s:10:\\\"deleted_at\\\";N;}s:11:\\\"\\u0000*\\u0000original\\\";a:16:{s:2:\\\"id\\\";i:13;s:6:\\\"ref_no\\\";s:6:\\\"9BYRSA\\\";s:7:\\\"user_id\\\";i:22;s:4:\\\"name\\\";s:18:\\\"La Zungu Creations\\\";s:5:\\\"phone\\\";s:10:\\\"0754578434\\\";s:5:\\\"email\\\";s:21:\\\"karnsinkazy@gmail.com\\\";s:11:\\\"box_address\\\";N;s:8:\\\"location\\\";s:9:\\\"Daresalam\\\";s:8:\\\"latitude\\\";N;s:9:\\\"longitude\\\";N;s:4:\\\"logo\\\";s:45:\\\"kJuzfMRNZoWZd9KwMsXAjfFMIgCv3hHbEVRw9HWq.webp\\\";s:24:\\\"subscription_expiry_date\\\";N;s:6:\\\"status\\\";i:1;s:10:\\\"created_at\\\";s:19:\\\"2025-08-29 21:10:58\\\";s:10:\\\"updated_at\\\";s:19:\\\"2025-08-29 22:20:17\\\";s:10:\\\"deleted_at\\\";N;}s:10:\\\"\\u0000*\\u0000changes\\\";a:0:{}s:8:\\\"\\u0000*\\u0000casts\\\";a:1:{s:10:\\\"deleted_at\\\";s:8:\\\"datetime\\\";}s:17:\\\"\\u0000*\\u0000classCastCache\\\";a:0:{}s:21:\\\"\\u0000*\\u0000attributeCastCache\\\";a:0:{}s:13:\\\"\\u0000*\\u0000dateFormat\\\";N;s:10:\\\"\\u0000*\\u0000appends\\\";a:0:{}s:19:\\\"\\u0000*\\u0000dispatchesEvents\\\";a:0:{}s:14:\\\"\\u0000*\\u0000observables\\\";a:0:{}s:12:\\\"\\u0000*\\u0000relations\\\";a:2:{s:21:\\\"companyPaymentAccount\\\";O:32:\\\"App\\\\Models\\\\CompanyPaymentAccount\\\":31:{s:13:\\\"\\u0000*\\u0000connection\\\";s:5:\\\"mysql\\\";s:8:\\\"\\u0000*\\u0000table\\\";s:24:\\\"company_payment_accounts\\\";s:13:\\\"\\u0000*\\u0000primaryKey\\\";s:2:\\\"id\\\";s:10:\\\"\\u0000*\\u0000keyType\\\";s:3:\\\"int\\\";s:12:\\\"incrementing\\\";b:1;s:7:\\\"\\u0000*\\u0000with\\\";a:0:{}s:12:\\\"\\u0000*\\u0000withCount\\\";a:0:{}s:19:\\\"preventsLazyLoading\\\";b:0;s:10:\\\"\\u0000*\\u0000perPage\\\";i:15;s:6:\\\"exists\\\";b:1;s:18:\\\"wasRecentlyCreated\\\";b:0;s:28:\\\"\\u0000*\\u0000escapeWhenCastingToString\\\";b:0;s:13:\\\"\\u0000*\\u0000attributes\\\";a:9:{s:2:\\\"id\\\";i:5;s:10:\\\"company_id\\\";i:13;s:17:\\\"company_router_id\\\";i:7;s:6:\\\"ref_no\\\";s:6:\\\"HI023B\\\";s:14:\\\"selcom_api_key\\\";s:86:\\\"ivnQEneyuX6VgUKFkbMKyEbtCYzPtM6Xzxdf3jp-sCus-jJtJxMjQUY10awhjrAN3RG1wNlM7OhbT3U55h2P9w\\\";s:6:\\\"status\\\";i:1;s:10:\\\"created_at\\\";s:19:\\\"2025-08-29 22:27:58\\\";s:10:\\\"updated_at\\\";s:19:\\\"2025-08-29 22:27:58\\\";s:10:\\\"deleted_at\\\";N;}s:11:\\\"\\u0000*\\u0000original\\\";a:9:{s:2:\\\"id\\\";i:5;s:10:\\\"company_id\\\";i:13;s:17:\\\"company_router_id\\\";i:7;s:6:\\\"ref_no\\\";s:6:\\\"HI023B\\\";s:14:\\\"selcom_api_key\\\";s:86:\\\"ivnQEneyuX6VgUKFkbMKyEbtCYzPtM6Xzxdf3jp-sCus-jJtJxMjQUY10awhjrAN3RG1wNlM7OhbT3U55h2P9w\\\";s:6:\\\"status\\\";i:1;s:10:\\\"created_at\\\";s:19:\\\"2025-08-29 22:27:58\\\";s:10:\\\"updated_at\\\";s:19:\\\"2025-08-29 22:27:58\\\";s:10:\\\"deleted_at\\\";N;}s:10:\\\"\\u0000*\\u0000changes\\\";a:0:{}s:8:\\\"\\u0000*\\u0000casts\\\";a:1:{s:10:\\\"deleted_at\\\";s:8:\\\"datetime\\\";}s:17:\\\"\\u0000*\\u0000classCastCache\\\";a:0:{}s:21:\\\"\\u0000*\\u0000attributeCastCache\\\";a:0:{}s:13:\\\"\\u0000*\\u0000dateFormat\\\";N;s:10:\\\"\\u0000*\\u0000appends\\\";a:0:{}s:19:\\\"\\u0000*\\u0000dispatchesEvents\\\";a:0:{}s:14:\\\"\\u0000*\\u0000observables\\\";a:0:{}s:12:\\\"\\u0000*\\u0000relations\\\";a:0:{}s:10:\\\"\\u0000*\\u0000touches\\\";a:0:{}s:10:\\\"timestamps\\\";b:1;s:13:\\\"usesUniqueIds\\\";b:0;s:9:\\\"\\u0000*\\u0000hidden\\\";a:0:{}s:10:\\\"\\u0000*\\u0000visible\\\";a:0:{}s:11:\\\"\\u0000*\\u0000fillable\\\";a:5:{i:0;s:10:\\\"company_id\\\";i:1;s:17:\\\"company_router_id\\\";i:2;s:6:\\\"ref_no\\\";i:3;s:14:\\\"selcom_api_key\\\";i:4;s:6:\\\"status\\\";}s:10:\\\"\\u0000*\\u0000guarded\\\";a:1:{i:0;s:1:\\\"*\\\";}s:16:\\\"\\u0000*\\u0000forceDeleting\\\";b:0;}s:18:\\\"companySmsProvider\\\";N;}s:10:\\\"\\u0000*\\u0000touches\\\";a:0:{}s:10:\\\"timestamps\\\";b:1;s:13:\\\"usesUniqueIds\\\";b:0;s:9:\\\"\\u0000*\\u0000hidden\\\";a:0:{}s:10:\\\"\\u0000*\\u0000visible\\\";a:0:{}s:11:\\\"\\u0000*\\u0000fillable\\\";a:12:{i:0;s:6:\\\"ref_no\\\";i:1;s:7:\\\"user_id\\\";i:2;s:4:\\\"name\\\";i:3;s:5:\\\"phone\\\";i:4;s:5:\\\"email\\\";i:5;s:11:\\\"box_address\\\";i:6;s:8:\\\"location\\\";i:7;s:8:\\\"latitude\\\";i:8;s:9:\\\"longitude\\\";i:9;s:4:\\\"logo\\\";i:10;s:24:\\\"subscription_expiry_date\\\";i:11;s:6:\\\"status\\\";}s:10:\\\"\\u0000*\\u0000guarded\\\";a:1:{i:0;s:1:\\\"*\\\";}s:16:\\\"\\u0000*\\u0000forceDeleting\\\";b:0;}s:7:\\\"message\\\";s:138:\\\"Dear , we are aware of an ongoing service disruption in your area. Our team is investigating and will restore service as soon as possible.\\\";s:8:\\\"filename\\\";s:0:\\\"\\\";s:5:\\\"phone\\\";s:12:\\\"255754578434\\\";}s:5:\\\"delay\\\";O:13:\\\"Carbon\\\\Carbon\\\":3:{s:4:\\\"date\\\";s:26:\\\"2025-08-30 09:57:04.938817\\\";s:13:\\\"timezone_type\\\";i:3;s:8:\\\"timezone\\\";s:14:\\\"Africa\\/Nairobi\\\";}}\"}}',0,NULL,1756537024,1756537004);

--
-- Table structure for table `message_modes`
--

CREATE TABLE `message_modes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `message_modes`
--

INSERT INTO `message_modes` VALUES (1,'SMS',1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(2,'Email',1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(3,'WhatsApp',1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL);

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

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

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

INSERT INTO `migrations` VALUES (1,'0001_01_01_000000_create_users_table',1),(2,'0001_01_01_000001_create_cache_table',1),(3,'0001_01_01_000002_create_jobs_table',1),(4,'2024_12_31_100452_create_permission_tables',1),(5,'2024_12_31_100952_create_companies_table',1),(6,'2024_12_31_100953_create_payment_types_table',1),(7,'2024_12_31_100954_create_transaction_frequencies_table',1),(8,'2024_12_31_101150_create_company_users_table',1),(9,'2024_12_31_101616_create_service_plans_table',1),(10,'2024_12_31_101618_create_plan_validity_types_table',1),(11,'2024_12_31_101619_create_company_routers_table',1),(12,'2024_12_31_101857_create_company_ip_pools_table',1),(13,'2024_12_31_101858_create_company_service_plans_table',1),(14,'2024_12_31_174557_create_user_verification_codes_table',1),(15,'2024_12_31_181637_create_notifications_table',1),(16,'2024_12_31_213650_create_message_modes_table',1),(17,'2024_12_31_221743_create_sms_providers_table',1),(18,'2024_12_31_221919_create_sms_requirements_table',1),(19,'2024_12_31_221940_create_sms_provider_requirements_table',1),(20,'2024_12_31_221957_create_company_sms_providers_table',1),(21,'2024_12_31_222005_create_company_sms_provider_entities_table',1),(22,'2025_01_01_122817_create_company_email_configurations_table',1),(23,'2025_01_01_173315_create_company_customers_table',1),(24,'2025_01_02_125417_create_company_prepaid_vouchers_table',1),(25,'2025_01_03_162401_create_company_prepaid_users_table',1),(26,'2025_01_03_162402_create_payment_modes_table',1),(27,'2025_01_03_163433_create_company_grouped_transactions_table',1),(28,'2025_01_08_121255_create_company_bulk_messages_table',1),(29,'2025_01_08_213530_create_banks_table',1),(30,'2025_01_08_213531_create_payment_methods_table',1),(32,'2025_01_21_025009_create_company_static_pages_table',1),(33,'2025_01_22_020910_create_personal_access_tokens_table',1),(34,'2025_01_22_021305_create_failed_transactions_table',1),(35,'2025_01_22_022710_create_company_customer_service_plans_table',1),(36,'2025_01_22_151114_create_company_customer_invoices_table',1),(37,'2025_01_22_151543_create_company_customer_invoice_payments_table',1),(38,'2025_01_22_230339_create_grouped_transactions_table',1),(39,'2025_01_22_233047_create_company_router_invoices_table',1),(40,'2025_01_22_233054_create_company_router_invoice_payments_table',1),(41,'2025_01_24_174649_create_company_customer_service_plan_previous_debt_payments_table',1),(42,'2025_01_27_232712_create_company_referrals_table',1),(43,'2025_01_28_001754_create_company_referral_payments_table',1),(44,'2025_02_04_180817_create_company_escrow_transactions_table',1),(45,'2025_02_12_105715_create_paid_users_table',1),(46,'2025_02_16_144236_create_company_sms_table',1),(47,'2025_02_16_144254_create_company_sms_usages_table',1),(48,'2025_02_16_144918_create_expenses_table',1),(49,'2025_02_23_220746_create_customers_table',1),(50,'2025_02_24_231040_create_out_messages_table',1),(51,'2025_03_04_160220_create_company_router_interfaces_table',1),(52,'2025_03_08_213801_create_escrow_transactions_table',1),(53,'2025_03_08_213802_create_director_shares_table',1),(54,'2025_03_11_190100_create_outgoing_transactions_table',1),(55,'2025_03_13_115203_create_sms_template_types_table',1),(56,'2025_03_13_115729_create_company_sms_templates_table',1),(57,'2025_03_18_003524_create_company_customer_invoice_notify_rates_table',1),(58,'2025_03_20_010357_create_company_inventories_table',1),(59,'2025_03_20_124540_create_company_whatsapp_scans_table',1),(60,'2025_03_30_212850_create_potential_customers_table',1),(61,'2025_04_02_002642_create_paybill_transactions_table',1),(62,'2025_04_04_041618_create_director_share_incomes_table',1),(63,'2025_05_04_131513_create_b2b_outgoing_transaction_charges_table',1),(64,'2025_05_04_210449_create_outgoing_transaction_entities_table',1),(65,'2025_05_05_120828_create_temporary_grouped_transactions_table',1),(66,'2025_05_06_214708_create_b2c_outgoing_transaction_charges_table',1),(67,'2025_05_22_121943_create_tickets_table',1),(68,'2025_05_23_090344_create_ip_prefix_lengths_table',1),(69,'2025_05_25_122209_add_group_to_permissions_table',1),(70,'2025_06_02_232726_create_director_share_payment_accounts_table',1),(71,'2025_06_08_143800_create_company_router_customers_table',1),(72,'2025_07_04_013141_create_company_customer_service_plan_installation_items_table',1),(73,'2025_07_04_013148_create_company_customer_service_plan_installation_item_payments_table',1),(74,'2025_07_09_032524_create_client_to_be_disconnecteds_table',1),(77,'2025_08_01_223540_create_temporary_transaction_checks_table',2),(78,'2025_01_08_213816_create_company_payment_accounts_table',3);

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

CREATE TABLE `model_has_permissions` (
  `permission_id` bigint unsigned NOT NULL,
  `model_type` varchar(191) 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_id_model_type_index` (`model_id`,`model_type`),
  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 (1,'App\\Models\\User',2),(1,'App\\Models\\User',3),(1,'App\\Models\\User',4),(1,'App\\Models\\User',5),(1,'App\\Models\\User',6),(1,'App\\Models\\User',7),(1,'App\\Models\\User',8),(1,'App\\Models\\User',9),(1,'App\\Models\\User',10),(1,'App\\Models\\User',11),(1,'App\\Models\\User',12),(1,'App\\Models\\User',13),(1,'App\\Models\\User',14),(1,'App\\Models\\User',15),(1,'App\\Models\\User',16),(1,'App\\Models\\User',17),(1,'App\\Models\\User',18),(1,'App\\Models\\User',19),(1,'App\\Models\\User',20),(1,'App\\Models\\User',21),(1,'App\\Models\\User',22),(1,'App\\Models\\User',23);

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

CREATE TABLE `model_has_roles` (
  `role_id` bigint unsigned NOT NULL,
  `model_type` varchar(191) 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_id_model_type_index` (`model_id`,`model_type`),
  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\\Models\\User',1),(2,'App\\Models\\User',2),(2,'App\\Models\\User',3),(2,'App\\Models\\User',4),(2,'App\\Models\\User',5),(2,'App\\Models\\User',6),(2,'App\\Models\\User',7),(2,'App\\Models\\User',8),(2,'App\\Models\\User',9),(2,'App\\Models\\User',10),(2,'App\\Models\\User',11),(2,'App\\Models\\User',12),(2,'App\\Models\\User',13),(2,'App\\Models\\User',14),(2,'App\\Models\\User',15),(2,'App\\Models\\User',16),(1,'App\\Models\\User',17),(1,'App\\Models\\User',18),(1,'App\\Models\\User',19),(2,'App\\Models\\User',20),(2,'App\\Models\\User',21),(2,'App\\Models\\User',22),(2,'App\\Models\\User',23);

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

CREATE TABLE `notifications` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` int DEFAULT NULL,
  `user_id` int DEFAULT NULL,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '0' COMMENT '0=pending, 1=read',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3878 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `notifications` VALUES (3846,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 2 is offline. Please check it out.',1,'2025-08-29 07:09:07','2025-08-29 08:20:04'),(3847,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 2 is back online.',1,'2025-08-29 07:12:06','2025-08-29 08:20:21'),(3848,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-29 07:41:04','2025-08-29 07:58:11'),(3849,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 2 is offline. Please check it out.',1,'2025-08-29 09:05:05','2025-08-29 13:47:20'),(3850,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 2 is back online.',1,'2025-08-29 09:14:03','2025-08-29 13:47:28'),(3851,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 1 is offline. Please check it out.',1,'2025-08-29 11:01:08','2025-08-29 14:23:53'),(3852,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 1 is back online.',1,'2025-08-29 11:05:03','2025-08-29 14:25:59'),(3853,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 2 is offline. Please check it out.',1,'2025-08-29 13:04:06','2025-08-29 13:47:58'),(3854,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',1,'2025-08-29 18:39:08','2025-08-30 10:59:50'),(3855,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-29 18:42:07','2025-08-29 19:04:38'),(3856,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',1,'2025-08-29 19:11:08','2025-08-30 08:13:04'),(3857,13,NULL,'Mikrotik Router Down','⚠️ Hi Kazungu, your mikrotik router - Router7 is offline. Please check it out.',1,'2025-08-29 19:13:08','2025-08-29 21:50:57'),(3858,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-29 19:14:07','2025-08-30 10:59:50'),(3859,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',1,'2025-08-29 20:26:08','2025-08-30 10:59:50'),(3860,13,NULL,'Mikrotik Router Down','⚠️ Hi Kazungu, your mikrotik router - La Zungu is offline. Please check it out.',1,'2025-08-29 21:02:10','2025-08-29 21:51:13'),(3861,14,NULL,'Mikrotik Router Down','⚠️ Hi Alex, your mikrotik router - Router8 is offline. Please check it out.',0,'2025-08-30 07:01:16','2025-08-30 07:01:16'),(3862,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-30 07:45:08','2025-08-30 10:59:50'),(3863,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',1,'2025-08-30 09:21:09','2025-08-30 10:59:50'),(3864,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-30 09:24:08','2025-08-30 10:59:50'),(3865,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',1,'2025-08-30 09:40:10','2025-08-30 10:59:50'),(3866,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-30 09:43:08','2025-08-30 10:59:50'),(3867,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 1 is offline. Please check it out.',1,'2025-08-30 11:00:10','2025-08-30 13:24:22'),(3868,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 1 is back online.',1,'2025-08-30 11:05:06','2025-08-30 15:14:17'),(3869,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',1,'2025-08-30 12:23:09','2025-08-30 19:16:12'),(3870,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-30 12:56:08','2025-08-30 19:16:03'),(3871,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',1,'2025-08-30 18:40:10','2025-08-30 19:16:50'),(3872,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-30 18:44:09','2025-08-30 19:16:39'),(3873,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',1,'2025-08-30 18:48:09','2025-08-30 19:16:35'),(3874,11,NULL,'Mikrotik Router Up','✅ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is back online.',1,'2025-08-30 18:51:09','2025-08-30 19:16:55'),(3875,11,NULL,'Mikrotik Router Down','⚠️ Hi Mwamba Cosmetics, your mikrotik router - Mwamba is offline. Please check it out.',0,'2025-08-30 20:24:10','2025-08-30 20:24:10'),(3876,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 1 is offline. Please check it out.',0,'2025-08-30 22:11:11','2025-08-30 22:11:11'),(3877,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 1 is back online.',0,'2025-08-30 22:14:09','2025-08-30 22:14:09');

--
-- Table structure for table `out_messages`
--

CREATE TABLE `out_messages` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `message_mode_id` bigint unsigned NOT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `filename` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `out_messages_message_mode_id_foreign` (`message_mode_id`),
  CONSTRAINT `out_messages_message_mode_id_foreign` FOREIGN KEY (`message_mode_id`) REFERENCES `message_modes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `out_messages`
--


--
-- Table structure for table `outgoing_transaction_entities`
--

CREATE TABLE `outgoing_transaction_entities` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `outgoing_transaction_id` int NOT NULL,
  `company_grouped_transaction_id` int NOT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `outgoing_transaction_entities`
--

INSERT INTO `outgoing_transaction_entities` VALUES (1,1,3,210.00,'2025-08-05 19:03:36','2025-08-05 19:03:36',NULL),(2,2,4,210.00,'2025-08-06 20:02:48','2025-08-06 20:02:48',NULL),(3,3,5,1000.00,'2025-08-07 18:53:54','2025-08-07 18:53:54',NULL),(4,4,6,500.00,'2025-08-08 15:56:03','2025-08-08 15:56:03',NULL),(5,5,7,1000.00,'2025-08-09 11:05:18','2025-08-09 11:05:18',NULL),(6,6,8,500.00,'2025-08-09 13:37:14','2025-08-09 13:37:14',NULL),(7,7,9,1000.00,'2025-08-09 15:21:56','2025-08-09 15:21:56',NULL),(8,8,10,1000.00,'2025-08-10 19:09:47','2025-08-10 19:09:47',NULL),(9,9,11,1000.00,'2025-08-11 18:56:22','2025-08-11 18:56:22',NULL),(10,10,12,1000.00,'2025-08-11 19:33:37','2025-08-11 19:33:37',NULL),(11,11,13,210.00,'2025-08-14 20:20:46','2025-08-14 20:20:46',NULL),(12,12,14,1000.00,'2025-08-16 06:35:15','2025-08-16 06:35:15',NULL);

--
-- Table structure for table `outgoing_transactions`
--

CREATE TABLE `outgoing_transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_router_id` int DEFAULT NULL,
  `director_share_id` int DEFAULT NULL,
  `company_customer_invocie_id` int DEFAULT NULL,
  `user_id` int DEFAULT NULL,
  `transaction_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `recipient` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci,
  `checkout_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `outgoing_transactions`
--

INSERT INTO `outgoing_transactions` VALUES (1,'GA8S5U',2,NULL,NULL,NULL,'0964383972',210.00,'123456','Money sent to 123456 on account number 123456 ','514066','2025-08-05 19:03:36','2025-08-05 19:03:36',NULL),(2,'7YL9KT',2,NULL,NULL,NULL,'0964774233',210.00,'123456','Money sent to 123456 on account number 123456 ','151783','2025-08-06 20:02:48','2025-08-06 20:02:48',NULL),(3,'K9BH8E',2,NULL,NULL,NULL,'1307377571',1000.00,'123456','Money sent to 123456 on account number 123456 ','788624','2025-08-07 18:53:54','2025-08-07 18:53:54',NULL),(4,'8EPQ27',2,NULL,NULL,NULL,'1308639764',500.00,'123456','Money sent to 123456 on account number 123456 ','762516','2025-08-08 15:56:03','2025-08-08 15:56:03',NULL),(5,'OZP260',2,NULL,NULL,NULL,'1309788641',1000.00,'123456','Money sent to 123456 on account number 123456 ','465166','2025-08-09 11:05:18','2025-08-09 11:05:18',NULL),(6,'0ME2JD',2,NULL,NULL,NULL,'1309940132',500.00,'123456','Money sent to 123456 on account number 123456 ','320618','2025-08-09 13:37:14','2025-08-09 13:37:14',NULL),(7,'JU3FQ6',2,NULL,NULL,NULL,'1310045490',1000.00,'123456','Money sent to 123456 on account number 123456 ','184295','2025-08-09 15:21:56','2025-08-09 15:21:56',NULL),(8,'R0PHAV',2,NULL,NULL,NULL,'1311713416',1000.00,'123456','Money sent to 123456 on account number 123456 ','792168','2025-08-10 19:09:47','2025-08-10 19:09:47',NULL),(9,'Y4CP6J',2,NULL,NULL,NULL,'1313139026',1000.00,'123456','Money sent to 123456 on account number 123456 ','431003','2025-08-11 18:56:22','2025-08-11 18:56:22',NULL),(10,'58RHPU',2,NULL,NULL,NULL,'1313175196',1000.00,'123456','Money sent to 123456 on account number 123456 ','021868','2025-08-11 19:33:37','2025-08-11 19:33:37',NULL),(11,'E4FVO2',2,NULL,NULL,NULL,'0967592079',210.00,'123456','Money sent to 123456 on account number 123456 ','118106','2025-08-14 20:20:46','2025-08-14 20:20:46',NULL),(12,'1CKLJO',2,NULL,NULL,NULL,'1319598138',1000.00,'123456','Money sent to 123456 on account number 123456 ','580259','2025-08-16 06:35:15','2025-08-16 06:35:15',NULL);

--
-- Table structure for table `paid_users`
--

CREATE TABLE `paid_users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_router_id` bigint unsigned DEFAULT NULL,
  `company_grouped_transaction_id` int DEFAULT NULL,
  `mac_address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `message` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `paid_users_company_router_id_foreign` (`company_router_id`),
  CONSTRAINT `paid_users_company_router_id_foreign` FOREIGN KEY (`company_router_id`) REFERENCES `company_routers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `paid_users`
--


--
-- Table structure for table `password_reset_tokens`
--

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

--
-- Dumping data for table `password_reset_tokens`
--


--
-- Table structure for table `paybill_transactions`
--

CREATE TABLE `paybill_transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payment_mode_id` bigint unsigned NOT NULL,
  `phone_used` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `checkout_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `account_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `paybill_transactions_payment_mode_id_foreign` (`payment_mode_id`),
  CONSTRAINT `paybill_transactions_payment_mode_id_foreign` FOREIGN KEY (`payment_mode_id`) REFERENCES `payment_modes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `paybill_transactions`
--


--
-- Table structure for table `payment_methods`
--

CREATE TABLE `payment_methods` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_methods`
--

INSERT INTO `payment_methods` VALUES (1,'0001','Selcom',1,'2025-08-03 19:10:06','2025-08-03 19:10:06',NULL);

--
-- Table structure for table `payment_modes`
--

CREATE TABLE `payment_modes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_modes`
--

INSERT INTO `payment_modes` VALUES (1,'0001','M-PESA',1,'2025-08-03 19:10:05','2025-08-03 19:10:05',NULL),(2,'0002','M-PESA (Manually)',1,'2025-08-03 19:10:05','2025-08-03 19:10:05',NULL),(3,'0003','Cash',1,'2025-08-03 19:10:05','2025-08-03 19:10:05',NULL);

--
-- Table structure for table `payment_types`
--

CREATE TABLE `payment_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_types`
--

INSERT INTO `payment_types` VALUES (1,'Fixed Amount','2025-08-03 19:10:01','2025-08-03 19:10:01',NULL),(2,'Commission Based','2025-08-03 19:10:01','2025-08-03 19:10:01',NULL);

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

CREATE TABLE `permissions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `group` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `permissions` VALUES (1,'Administer Company',NULL,'web','2025-08-03 19:10:01','2025-08-03 19:10:01'),(2,'Staff',NULL,'web','2025-08-03 19:10:01','2025-08-03 19:10:01');

--
-- Table structure for table `personal_access_tokens`
--

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

--
-- Dumping data for table `personal_access_tokens`
--


--
-- Table structure for table `plan_validity_types`
--

CREATE TABLE `plan_validity_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `entity` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `plan_validity_types`
--

INSERT INTO `plan_validity_types` VALUES (1,'0001','Minutes','m','2025-08-03 19:10:02','2025-08-03 19:10:02',NULL),(2,'0002','Hours','h','2025-08-03 19:10:02','2025-08-03 19:10:02',NULL),(3,'0003','Days','d','2025-08-03 19:10:02','2025-08-03 19:10:02',NULL);

--
-- Table structure for table `potential_customers`
--

CREATE TABLE `potential_customers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_id` int DEFAULT NULL,
  `names` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` longtext 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 `potential_customers`
--


--
-- Table structure for table `role_has_permissions`
--

CREATE TABLE `role_has_permissions` (
  `permission_id` bigint unsigned NOT NULL,
  `role_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`permission_id`,`role_id`),
  KEY `role_has_permissions_role_id_foreign` (`role_id`),
  CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  CONSTRAINT `role_has_permissions_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 `role_has_permissions`
--


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

CREATE TABLE `roles` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `roles` VALUES (1,'Administrator','web','2025-08-03 19:10:01','2025-08-03 19:10:01'),(2,'Client','web','2025-08-03 19:10:01','2025-08-03 19:10:01'),(3,'Referrer','web','2025-08-03 19:10:01','2025-08-03 19:10:01');

--
-- Table structure for table `service_plans`
--

CREATE TABLE `service_plans` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `service_plans`
--

INSERT INTO `service_plans` VALUES (1,'0001','Hotspot Plans',1,'2025-08-03 19:10:02','2025-08-03 19:10:02',NULL),(2,'0002','PPPoE Plans',1,'2025-08-03 19:10:02','2025-08-03 19:10:02',NULL),(3,'0003','Static Plans',1,'2025-08-03 19:10:02','2025-08-03 19:10:02',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_agent` text COLLATE utf8mb4_unicode_ci,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_activity` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sessions_user_id_index` (`user_id`),
  KEY `sessions_last_activity_index` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sessions`
--

INSERT INTO `sessions` VALUES ('3PyaFNGW2N3IIU8QqeMLydqdPmFJ0p1pgZwQigDQ',15,'41.59.137.123','Mozilla/5.0 (Linux; U; Android 13; en-us; Infinix X6528 Build/TP1A.220624.014) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.123 Mobile Safari/537.36 PHX/19.2','[encoded data, 192728 characters]',1756582451),('5bslkkm2hyu8wJBKyxKWyyrM1Kg8enbvEqBO2lij',15,'41.59.137.123','Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0','[encoded data, 24444 characters]',1756582520),('CZausHyhEUWXPYE0GbYLFqSNVRr5cAlhDk3X8sw2',NULL,'20.171.207.108','Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)','YTozOntzOjY6Il90b2tlbiI7czo0MDoiNHNCaXUyTzlybW5pWnZzSzdyZzdvMk5hUmdIeHBUWHZpQUgwaFZGWSI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDY6Imh0dHA6Ly93d3cuYmlsbGluZy5qYWVtdGVjaG5vbG9naWVzLmNvbS9wdWJsaWMiO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX19',1756583524),('KeVZLSAYSDcvmrQx11EDZmY6VGcoRU71Em24fmvm',15,'41.59.137.123','Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0','[encoded data, 106664 characters]',1756580264),('lumXrAEF4VJtGzZl5is5EuHIOc2f5zSsGPGlkEWe',NULL,'20.171.207.165','Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)','YTozOntzOjY6Il90b2tlbiI7czo0MDoiSXJ6UWZrYU1qcDZ5d1F0M3o1SlV3bnVtd01UVENHOUxGdkpIQUhHSiI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDI6Imh0dHA6Ly9iaWxsaW5nLmphZW10ZWNobm9sb2dpZXMuY29tL3B1YmxpYyI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1756583497),('pz3Hd4QSk6SWyaDVGXmK39nCEW38HFQPnMn8m0Iw',NULL,'91.134.69.56','Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:115.0) Gecko/20100101 Chrome/115.0.0.0 Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoicklCbGJJYmpodWdYSGlZMzYyN2JScFc5eHB1ZUFpekRFZDRvdVhHeiI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mjc6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZSI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1756584408),('QPDTyYTHSCQJhXR6YVv6w10KAF0UpVFOpiAbpWgg',NULL,'205.210.31.29','','YTozOntzOjY6Il90b2tlbiI7czo0MDoiTkhLQnFkSEpzVzdTUUxWNEVHSEM0VGRNOUkzOTJhNmd2YVhEdm1SUSI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MzA6Imh0dHA6Ly93d3cuaGVyaXRhZ2Vncm91cC5jby5rZSI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1756581452),('QrLrcdZuP2X2c9V6qUgWrKF5qUIOrUdDzEUa1wSQ',NULL,'206.168.34.77','Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)','YTozOntzOjY6Il90b2tlbiI7czo0MDoiajFjUkp0dWJDOFZ2RXgzY1FRZzgxOUVjYTZwTjQ1S0wzczJuTDhZVCI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mjc6Imh0dHA6Ly8xNjEuOTcuMTc0LjIwL3B1YmxpYyI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1756583221),('RREFGqAuhMGBwXw6ZjobCYENLU7Lrh9PAlxnRard',NULL,'52.18.43.206','Mozilla/4.0 (compatible; Netcraft Web Server Survey)','YToyOntzOjY6Il90b2tlbiI7czo0MDoiVGdYU3BRMEY0S2NYcTc2RkptaWZsdWhVSklraDNyeHNkQmFzT3RUUCI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1756576557),('s4UnS7lVl0tmr9zHb1Y3y29Bcbso8lTyJRAT66t2',NULL,'34.250.12.251','Java/17.0.3','YTozOntzOjY6Il90b2tlbiI7czo0MDoiZ0NuUDNnd3kyWXYzcXhkTURhbG1Ua0dtUmhRMU1GVU1lSGVQYjZzZiI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mjc6Imh0dHA6Ly8xNjEuOTcuMTc0LjIwL3B1YmxpYyI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1756582471),('VDKyUDe6GgFsiQz7yv5CvxfDgO5j34DnTTNNTKCO',20,'197.250.130.192','Mozilla/5.0 (iPhone; CPU iPhone OS 18_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/139.0.7258.76 Mobile/15E148 Safari/604.1','[encoded data, 19020 characters]',1756581233),('vNdM1ZI2AHaxLPR8vzKkLJUs9ePGbwk1zrs8AEZ9',NULL,'91.134.69.56','Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:115.0) Gecko/20100101 Chrome/115.0.0.0 Safari/537.36','YToyOntzOjY6Il90b2tlbiI7czo0MDoiTVdOTE1UODVxWG9ZMFJHazF2b21sN3NZS0ZkTkdFMU9nb1pTalE2OCI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1756583855),('xezRaXFrdhX0vE2BsmEIU6O0IT4HgeN1yZZKvRO1',NULL,'41.59.137.123','Mozilla/5.0 (Linux; Android 13; Infinix X6528 Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/139.0.7258.143 Mobile Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoiWWtKMnZISnRzMER2MGhBUW05RlZMNEFPZ3V3b2JWUUNSVzJBeGFoNyI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mjc6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZSI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1756576705);

--
-- Table structure for table `sms_provider_requirements`
--

CREATE TABLE `sms_provider_requirements` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sms_provider_id` bigint unsigned NOT NULL,
  `sms_requirement_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sms_provider_requirements_sms_provider_id_foreign` (`sms_provider_id`),
  KEY `sms_provider_requirements_sms_requirement_id_foreign` (`sms_requirement_id`),
  CONSTRAINT `sms_provider_requirements_sms_provider_id_foreign` FOREIGN KEY (`sms_provider_id`) REFERENCES `sms_providers` (`id`) ON DELETE CASCADE,
  CONSTRAINT `sms_provider_requirements_sms_requirement_id_foreign` FOREIGN KEY (`sms_requirement_id`) REFERENCES `sms_requirements` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sms_provider_requirements`
--

INSERT INTO `sms_provider_requirements` VALUES (1,1,1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(2,1,3,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(3,1,4,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(4,2,1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(5,2,5,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(6,2,2,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(7,4,1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(8,4,2,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL);

--
-- Table structure for table `sms_providers`
--

CREATE TABLE `sms_providers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sms_providers`
--

INSERT INTO `sms_providers` VALUES (1,'1','Hostpinnacle',1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(2,'2','Ujumbe SMS',1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(3,'3','Africas Talking',1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(4,'4','Talk Sasa',1,'2025-08-03 19:10:04','2025-08-03 19:10:04',NULL);

--
-- Table structure for table `sms_requirements`
--

CREATE TABLE `sms_requirements` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `input_field_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sms_requirements`
--

INSERT INTO `sms_requirements` VALUES (1,'Sender ID','sender_id','2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(2,'API Key','api_key','2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(3,'Sms User ID','sms_user_id','2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(4,'Password','password','2025-08-03 19:10:04','2025-08-03 19:10:04',NULL),(5,'Email','email','2025-08-03 19:10:04','2025-08-03 19:10:04',NULL);

--
-- Table structure for table `sms_template_types`
--

CREATE TABLE `sms_template_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sms_template_types`
--

INSERT INTO `sms_template_types` VALUES (1,'Upcoming plan/package expiry','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(2,'Invoice notification','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(3,'Payment confirmation','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(4,'Payment reminder','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(5,'Overdue payment warning','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(6,'Service disconnection notice','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(7,'Service restoration notification','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(8,'New subscription confirmation','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(9,'Plan upgrade or downgrade confirmation','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(10,'Service maintenance notification','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(11,'Service outage alert','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL),(12,'Hotspot Plan Purchase','2025-08-03 19:10:08','2025-08-03 19:10:08',NULL);

--
-- Table structure for table `temporary_grouped_transactions`
--

CREATE TABLE `temporary_grouped_transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `originator_conversation_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `grouped_transaction_id` 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 `temporary_grouped_transactions`
--


--
-- Table structure for table `temporary_transaction_checks`
--

CREATE TABLE `temporary_transaction_checks` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_service_plan_id` int DEFAULT NULL,
  `company_id` int DEFAULT NULL,
  `company_router_id` int DEFAULT NULL,
  `company_router_invoice_id` int DEFAULT NULL,
  `company_customer_id` int DEFAULT NULL,
  `mac_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `checkout_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=279 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `temporary_transaction_checks`
--

INSERT INTO `temporary_transaction_checks` VALUES (1,6,NULL,NULL,NULL,NULL,'F6:2F:D5:3F:00:CE','046507',210.00,'2025-08-06 04:40:29','2025-08-06 04:40:29'),(2,6,NULL,NULL,NULL,NULL,'E8:B1:FC:9B:E3:7B','998553',210.00,'2025-08-06 18:32:33','2025-08-06 18:32:33'),(3,6,NULL,NULL,NULL,NULL,'16:54:CC:BC:13:7C','070146',210.00,'2025-08-06 19:59:25','2025-08-06 19:59:25'),(5,8,NULL,NULL,NULL,NULL,'C2:BC:EF:F6:65:29','918352',500.00,'2025-08-07 14:29:21','2025-08-07 14:29:21'),(6,9,NULL,NULL,NULL,NULL,'D4:67:D3:E3:17:BD','608888',1000.00,'2025-08-07 17:08:13','2025-08-07 17:08:13'),(7,9,NULL,NULL,NULL,NULL,'D4:67:D3:E3:17:BD','163593',1000.00,'2025-08-07 18:00:59','2025-08-07 18:00:59'),(9,8,NULL,NULL,NULL,NULL,'5E:32:CC:C1:11:35','995680',500.00,'2025-08-08 08:09:49','2025-08-08 08:09:49'),(11,9,NULL,NULL,NULL,NULL,'86:65:3C:6B:E1:84','586454',1000.00,'2025-08-08 21:53:41','2025-08-08 21:53:41'),(15,6,NULL,NULL,NULL,NULL,'72:4C:D3:24:6F:37','684402',210.00,'2025-08-10 11:52:17','2025-08-10 11:52:17'),(18,9,NULL,NULL,NULL,NULL,'86:65:3C:6B:E1:84','880636',1000.00,'2025-08-11 19:00:03','2025-08-11 19:00:03'),(20,9,NULL,NULL,NULL,NULL,'BE:9E:B9:04:25:17','410059',1000.00,'2025-08-13 19:39:06','2025-08-13 19:39:06'),(21,9,NULL,NULL,NULL,NULL,'BE:9E:B9:04:25:17','013420',1000.00,'2025-08-13 19:40:12','2025-08-13 19:40:12'),(23,7,NULL,NULL,NULL,NULL,'3A:C9:5E:87:3C:AA','964274',300.00,'2025-08-15 12:27:45','2025-08-15 12:27:45'),(25,8,NULL,NULL,NULL,NULL,'72:82:9F:D3:BA:72','228543',500.00,'2025-08-17 06:30:45','2025-08-17 06:30:45'),(26,9,NULL,NULL,NULL,NULL,'72:82:9F:D3:BA:72','040733',1000.00,'2025-08-17 06:32:48','2025-08-17 06:32:48'),(27,9,NULL,NULL,NULL,NULL,'72:82:9F:D3:BA:72','373924',1000.00,'2025-08-17 06:41:33','2025-08-17 06:41:33'),(28,9,NULL,NULL,NULL,NULL,'EA:58:A4:7A:3F:40','505401',1000.00,'2025-08-17 15:42:00','2025-08-17 15:42:00'),(29,6,NULL,NULL,NULL,NULL,'22:7F:8F:03:CE:EB','740885',210.00,'2025-08-17 15:42:42','2025-08-17 15:42:42'),(30,9,NULL,NULL,NULL,NULL,'EA:58:A4:7A:3F:40','713354',1000.00,'2025-08-17 15:43:07','2025-08-17 15:43:07'),(31,9,NULL,NULL,NULL,NULL,'86:65:3C:6B:E1:84','706706',1000.00,'2025-08-17 21:15:14','2025-08-17 21:15:14'),(32,9,NULL,NULL,NULL,NULL,'86:65:3C:6B:E1:84','933255',1000.00,'2025-08-17 21:16:49','2025-08-17 21:16:49'),(33,9,NULL,NULL,NULL,NULL,'BA:71:D2:D8:D2:D0','092509',1000.00,'2025-08-18 21:56:30','2025-08-18 21:56:30'),(34,8,NULL,NULL,NULL,NULL,'30:FC:EB:7A:0C:90','201884',500.00,'2025-08-19 09:08:32','2025-08-19 09:08:32'),(35,8,NULL,NULL,NULL,NULL,'20:2B:20:82:46:81','186315',500.00,'2025-08-19 09:33:30','2025-08-19 09:33:30'),(36,9,NULL,NULL,NULL,NULL,'EA:58:A4:7A:3F:40','416356',1000.00,'2025-08-19 12:57:38','2025-08-19 12:57:38'),(37,6,NULL,NULL,NULL,NULL,'CE:27:A9:53:A7:97','978587',210.00,'2025-08-19 15:40:10','2025-08-19 15:40:10'),(38,9,NULL,NULL,NULL,NULL,'72:82:9F:D3:BA:72','422101',1000.00,'2025-08-19 17:08:18','2025-08-19 17:08:18'),(39,24,NULL,NULL,NULL,NULL,'5A:90:84:47:BA:75','406449',2500.00,'2025-08-19 17:36:19','2025-08-19 17:36:19'),(40,24,NULL,NULL,NULL,NULL,'62:06:D0:8C:47:36','631740',2500.00,'2025-08-19 17:44:11','2025-08-19 17:44:11'),(41,24,NULL,NULL,NULL,NULL,'62:06:D0:8C:47:36','151565',2500.00,'2025-08-19 17:47:47','2025-08-19 17:47:47'),(42,7,NULL,NULL,NULL,NULL,'FE:96:EF:57:F0:70','545418',300.00,'2025-08-19 17:53:30','2025-08-19 17:53:30'),(43,6,NULL,NULL,NULL,NULL,'CE:74:22:E0:34:EE','641494',210.00,'2025-08-19 17:57:06','2025-08-19 17:57:06'),(44,9,NULL,NULL,NULL,NULL,'F6:15:EE:D6:C1:32','400618',1000.00,'2025-08-19 18:41:59','2025-08-19 18:41:59'),(45,7,NULL,NULL,NULL,NULL,'FE:96:EF:57:F0:70','571353',300.00,'2025-08-19 18:46:25','2025-08-19 18:46:25'),(46,23,NULL,NULL,NULL,NULL,'BE:1F:0E:C7:2C:2E','566876',15000.00,'2025-08-19 19:33:28','2025-08-19 19:33:28'),(47,23,NULL,NULL,NULL,NULL,'BE:1F:0E:C7:2C:2E','135696',15000.00,'2025-08-19 19:35:14','2025-08-19 19:35:14'),(48,23,NULL,NULL,NULL,NULL,'BE:1F:0E:C7:2C:2E','580077',15000.00,'2025-08-19 19:37:53','2025-08-19 19:37:53'),(49,9,NULL,NULL,NULL,NULL,'E6:12:A3:41:F4:AD','583196',1000.00,'2025-08-19 20:09:08','2025-08-19 20:09:08'),(50,9,NULL,NULL,NULL,NULL,'E6:12:A3:41:F4:AD','665552',1000.00,'2025-08-19 20:15:22','2025-08-19 20:15:22'),(51,6,NULL,NULL,NULL,NULL,'5A:18:AE:46:F0:9A','606383',210.00,'2025-08-19 20:31:12','2025-08-19 20:31:12'),(52,9,NULL,NULL,NULL,NULL,'E6:12:A3:41:F4:AD','951620',1000.00,'2025-08-19 20:40:37','2025-08-19 20:40:37'),(53,6,NULL,NULL,NULL,NULL,'7E:A5:C8:0E:3C:6A','666402',210.00,'2025-08-20 05:38:33','2025-08-20 05:38:33'),(54,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','798382',500.00,'2025-08-20 10:00:48','2025-08-20 10:00:48'),(55,9,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','340967',1000.00,'2025-08-20 12:57:26','2025-08-20 12:57:26'),(56,9,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','802864',1000.00,'2025-08-20 12:58:38','2025-08-20 12:58:38'),(57,8,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','092136',500.00,'2025-08-20 12:59:40','2025-08-20 12:59:40'),(58,9,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','000439',1000.00,'2025-08-20 13:00:47','2025-08-20 13:00:47'),(59,9,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','796661',1000.00,'2025-08-20 13:02:24','2025-08-20 13:02:24'),(60,8,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','817977',500.00,'2025-08-20 13:09:17','2025-08-20 13:09:17'),(61,8,NULL,NULL,NULL,NULL,'F2:50:95:0B:4B:27','172820',500.00,'2025-08-20 13:09:33','2025-08-20 13:09:33'),(62,8,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','346349',500.00,'2025-08-20 13:11:22','2025-08-20 13:11:22'),(63,8,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','174631',500.00,'2025-08-20 13:27:28','2025-08-20 13:27:28'),(64,9,NULL,NULL,NULL,NULL,'86:62:B2:00:7B:AC','758317',1000.00,'2025-08-20 13:30:07','2025-08-20 13:30:07'),(65,9,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','995988',1000.00,'2025-08-20 18:05:52','2025-08-20 18:05:52'),(66,9,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','658164',1000.00,'2025-08-20 18:10:03','2025-08-20 18:10:03'),(67,8,NULL,NULL,NULL,NULL,'5A:22:D6:25:36:E9','072790',500.00,'2025-08-20 18:25:35','2025-08-20 18:25:35'),(68,7,NULL,NULL,NULL,NULL,'CC:C0:79:8D:5E:35','198983',300.00,'2025-08-20 18:59:07','2025-08-20 18:59:07'),(69,9,NULL,NULL,NULL,NULL,'30:FC:EB:7A:0C:90','693194',1000.00,'2025-08-20 19:15:34','2025-08-20 19:15:34'),(70,9,NULL,NULL,NULL,NULL,'12:9B:F6:38:BA:E8','633183',1000.00,'2025-08-20 19:42:05','2025-08-20 19:42:05'),(71,9,NULL,NULL,NULL,NULL,'52:F8:FB:F8:E8:C6','478091',1000.00,'2025-08-20 19:46:17','2025-08-20 19:46:17'),(72,9,NULL,NULL,NULL,NULL,'12:9B:F6:38:BA:E8','801707',1000.00,'2025-08-20 19:51:26','2025-08-20 19:51:26'),(73,8,NULL,NULL,NULL,NULL,'CC:C0:79:8D:5E:35','516750',500.00,'2025-08-20 19:57:34','2025-08-20 19:57:34'),(74,7,NULL,NULL,NULL,NULL,'CC:C0:79:8D:5E:35','267320',300.00,'2025-08-20 20:00:12','2025-08-20 20:00:12'),(75,6,NULL,NULL,NULL,NULL,'1A:A9:97:24:0B:BF','994514',210.00,'2025-08-20 20:37:40','2025-08-20 20:37:40'),(76,6,NULL,NULL,NULL,NULL,'CA:CD:25:B3:8E:2B','069648',210.00,'2025-08-20 20:38:38','2025-08-20 20:38:38'),(77,9,NULL,NULL,NULL,NULL,'BE:FD:23:A1:58:ED','202311',1000.00,'2025-08-21 06:29:51','2025-08-21 06:29:51'),(78,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','030361',500.00,'2025-08-21 08:21:59','2025-08-21 08:21:59'),(79,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','243147',500.00,'2025-08-21 08:23:42','2025-08-21 08:23:42'),(80,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','163183',500.00,'2025-08-21 08:28:42','2025-08-21 08:28:42'),(81,7,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','932383',300.00,'2025-08-21 08:29:47','2025-08-21 08:29:47'),(82,8,NULL,NULL,NULL,NULL,'F2:14:5F:EE:3E:9B','472785',500.00,'2025-08-21 08:49:16','2025-08-21 08:49:16'),(83,8,NULL,NULL,NULL,NULL,'5A:22:D6:25:36:E9','098143',500.00,'2025-08-21 14:46:55','2025-08-21 14:46:55'),(84,8,NULL,NULL,NULL,NULL,'5A:22:D6:25:36:E9','551030',500.00,'2025-08-21 14:55:58','2025-08-21 14:55:58'),(85,8,NULL,NULL,NULL,NULL,'D4:67:D3:E3:17:BD','837890',500.00,'2025-08-21 16:13:23','2025-08-21 16:13:23'),(86,9,NULL,NULL,NULL,NULL,'D4:67:D3:E3:17:BD','866912',1000.00,'2025-08-21 16:16:11','2025-08-21 16:16:11'),(87,6,NULL,NULL,NULL,NULL,'7E:A5:C8:0E:3C:6A','219563',210.00,'2025-08-21 16:46:49','2025-08-21 16:46:49'),(88,8,NULL,NULL,NULL,NULL,'5A:22:D6:25:36:E9','758165',500.00,'2025-08-21 16:48:13','2025-08-21 16:48:13'),(89,8,NULL,NULL,NULL,NULL,'B2:24:D4:B2:3D:2D','359336',500.00,'2025-08-21 16:57:02','2025-08-21 16:57:02'),(90,8,NULL,NULL,NULL,NULL,'7E:A5:C8:0E:3C:6A','378712',500.00,'2025-08-21 16:58:13','2025-08-21 16:58:13'),(91,8,NULL,NULL,NULL,NULL,'7E:A5:C8:0E:3C:6A','410917',500.00,'2025-08-21 16:59:08','2025-08-21 16:59:08'),(92,8,NULL,NULL,NULL,NULL,'B2:24:D4:B2:3D:2D','187762',500.00,'2025-08-21 16:59:53','2025-08-21 16:59:53'),(93,26,NULL,NULL,NULL,NULL,'7E:A5:C8:0E:3C:6A','653469',7000.00,'2025-08-21 17:01:26','2025-08-21 17:01:26'),(94,8,NULL,NULL,NULL,NULL,'B2:24:D4:B2:3D:2D','982679',500.00,'2025-08-21 17:01:31','2025-08-21 17:01:31'),(95,8,NULL,NULL,NULL,NULL,'B2:24:D4:B2:3D:2D','513114',500.00,'2025-08-21 17:04:43','2025-08-21 17:04:43'),(96,8,NULL,NULL,NULL,NULL,'62:98:4F:47:C4:C9','015445',500.00,'2025-08-21 17:24:37','2025-08-21 17:24:37'),(97,8,NULL,NULL,NULL,NULL,'62:98:4F:47:C4:C9','434649',500.00,'2025-08-21 17:28:05','2025-08-21 17:28:05'),(98,8,NULL,NULL,NULL,NULL,'62:98:4F:47:C4:C9','465660',500.00,'2025-08-21 17:30:46','2025-08-21 17:30:46'),(99,8,NULL,NULL,NULL,NULL,'62:98:4F:47:C4:C9','429603',500.00,'2025-08-21 17:34:31','2025-08-21 17:34:31'),(100,8,NULL,NULL,NULL,NULL,'BE:B0:28:C2:D3:11','124047',500.00,'2025-08-21 17:40:48','2025-08-21 17:40:48'),(101,6,NULL,NULL,NULL,NULL,'06:9C:BA:9D:B1:E8','237769',210.00,'2025-08-21 18:03:42','2025-08-21 18:03:42'),(102,8,NULL,NULL,NULL,NULL,'CC:C0:79:8D:5E:35','949862',500.00,'2025-08-21 18:54:25','2025-08-21 18:54:25'),(103,26,NULL,NULL,NULL,NULL,'30:FC:EB:7A:0C:90','162886',7000.00,'2025-08-21 19:27:52','2025-08-21 19:27:52'),(104,8,NULL,NULL,NULL,NULL,'D6:12:9E:9D:91:0E','746427',500.00,'2025-08-21 19:37:38','2025-08-21 19:37:38'),(105,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','128942',500.00,'2025-08-21 19:49:23','2025-08-21 19:49:23'),(106,9,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','230315',1000.00,'2025-08-21 20:22:01','2025-08-21 20:22:01'),(107,8,NULL,NULL,NULL,NULL,'A2:E1:BA:8D:59:00','363486',500.00,'2025-08-22 06:45:38','2025-08-22 06:45:38'),(108,7,NULL,NULL,NULL,NULL,'5A:22:D6:25:36:E9','500624',300.00,'2025-08-22 07:24:39','2025-08-22 07:24:39'),(109,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','414063',500.00,'2025-08-22 10:13:26','2025-08-22 10:13:26'),(110,6,NULL,NULL,NULL,NULL,'7E:A5:C8:0E:3C:6A','973417',210.00,'2025-08-22 17:18:26','2025-08-22 17:18:26'),(111,9,NULL,NULL,NULL,NULL,'FE:96:EF:57:F0:70','564350',1000.00,'2025-08-22 17:26:11','2025-08-22 17:26:11'),(112,8,NULL,NULL,NULL,NULL,'5A:22:D6:25:36:E9','091414',500.00,'2025-08-22 18:59:54','2025-08-22 18:59:54'),(113,8,NULL,NULL,NULL,NULL,'F2:65:ED:BF:19:CD','246425',500.00,'2025-08-22 20:55:57','2025-08-22 20:55:57'),(114,8,NULL,NULL,NULL,NULL,'CC:C0:79:8D:5E:35','369937',500.00,'2025-08-22 21:30:02','2025-08-22 21:30:02'),(115,9,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','327234',1000.00,'2025-08-22 22:41:17','2025-08-22 22:41:17'),(116,7,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','836406',300.00,'2025-08-22 22:46:31','2025-08-22 22:46:31'),(117,6,NULL,NULL,NULL,NULL,'60:70:72:60:6A:C2','388319',210.00,'2025-08-22 23:20:13','2025-08-22 23:20:13'),(118,9,NULL,NULL,NULL,NULL,'4E:ED:DD:40:F3:A1','996468',1000.00,'2025-08-23 09:25:46','2025-08-23 09:25:46'),(119,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','540841',2500.00,'2025-08-23 12:30:39','2025-08-23 12:30:39'),(120,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','885814',2500.00,'2025-08-23 12:31:33','2025-08-23 12:31:33'),(121,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','282302',2500.00,'2025-08-23 12:31:36','2025-08-23 12:31:36'),(122,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','259503',2500.00,'2025-08-23 12:31:43','2025-08-23 12:31:43'),(123,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','522009',2500.00,'2025-08-23 12:32:26','2025-08-23 12:32:26'),(124,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','767316',2500.00,'2025-08-23 12:32:29','2025-08-23 12:32:29'),(125,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','556775',2500.00,'2025-08-23 12:32:33','2025-08-23 12:32:33'),(126,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','500414',2500.00,'2025-08-23 12:34:33','2025-08-23 12:34:33'),(127,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','109184',2500.00,'2025-08-23 12:34:36','2025-08-23 12:34:36'),(128,24,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','526822',2500.00,'2025-08-23 12:34:39','2025-08-23 12:34:39'),(129,9,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','842173',1000.00,'2025-08-23 12:35:16','2025-08-23 12:35:16'),(130,6,NULL,NULL,NULL,NULL,'D0:2A:AA:90:40:ED','280551',210.00,'2025-08-23 14:26:13','2025-08-23 14:26:13'),(131,6,NULL,NULL,NULL,NULL,'7E:A5:C8:0E:3C:6A','718557',210.00,'2025-08-23 16:39:08','2025-08-23 16:39:08'),(132,8,NULL,NULL,NULL,NULL,'F2:65:ED:BF:19:CD','924733',500.00,'2025-08-23 20:59:29','2025-08-23 20:59:29'),(133,7,NULL,NULL,NULL,NULL,'1E:1B:E0:50:5B:19','224566',300.00,'2025-08-24 04:03:34','2025-08-24 04:03:34'),(134,6,NULL,NULL,NULL,NULL,'1E:1B:E0:50:5B:19','594460',210.00,'2025-08-24 04:04:34','2025-08-24 04:04:34'),(135,6,NULL,NULL,NULL,NULL,'90:56:FC:DF:4A:E3','596434',210.00,'2025-08-24 07:15:26','2025-08-24 07:15:26'),(136,8,NULL,NULL,NULL,NULL,'5E:AB:0F:45:E5:21','577406',500.00,'2025-08-24 07:53:21','2025-08-24 07:53:21'),(137,8,NULL,NULL,NULL,NULL,'3E:A5:2D:34:21:C5','680604',500.00,'2025-08-24 08:24:03','2025-08-24 08:24:03'),(138,9,NULL,NULL,NULL,NULL,'16:E1:96:3C:2C:14','793156',1000.00,'2025-08-24 09:04:02','2025-08-24 09:04:02'),(139,7,NULL,NULL,NULL,NULL,'A6:85:AC:A3:94:CF','492517',300.00,'2025-08-24 09:27:55','2025-08-24 09:27:55'),(140,6,NULL,NULL,NULL,NULL,'A6:85:AC:A3:94:CF','402396',210.00,'2025-08-24 09:29:38','2025-08-24 09:29:38'),(141,9,NULL,NULL,NULL,NULL,'0E:C6:C3:E7:72:DB','156062',1000.00,'2025-08-24 13:11:18','2025-08-24 13:11:18'),(142,6,NULL,NULL,NULL,NULL,'2A:D7:59:12:C1:90','831234',210.00,'2025-08-24 15:34:15','2025-08-24 15:34:15'),(143,9,NULL,NULL,NULL,NULL,'5A:18:AE:46:F0:9A','580563',1000.00,'2025-08-24 17:57:20','2025-08-24 17:57:20'),(144,7,NULL,NULL,NULL,NULL,'F0:C7:45:88:DC:5D','691296',300.00,'2025-08-24 18:38:57','2025-08-24 18:38:57'),(145,7,NULL,NULL,NULL,NULL,'FC:AA:B6:3B:A0:48','301904',300.00,'2025-08-24 21:25:34','2025-08-24 21:25:34'),(146,7,NULL,NULL,NULL,NULL,'0A:00:F5:20:D1:35','274492',300.00,'2025-08-24 22:33:56','2025-08-24 22:33:56'),(147,8,NULL,NULL,NULL,NULL,'F2:65:ED:BF:19:CD','093513',500.00,'2025-08-24 22:36:13','2025-08-24 22:36:13'),(148,9,NULL,NULL,NULL,NULL,'66:BB:53:AB:22:4E','790430',1000.00,'2025-08-25 17:17:13','2025-08-25 17:17:13'),(149,8,NULL,NULL,NULL,NULL,'66:BB:53:AB:22:4E','639650',500.00,'2025-08-25 17:19:35','2025-08-25 17:19:35'),(150,8,NULL,NULL,NULL,NULL,'0E:06:50:49:08:C6','832104',500.00,'2025-08-25 17:19:43','2025-08-25 17:19:43'),(151,8,NULL,NULL,NULL,NULL,'0E:32:DD:A2:B3:84','629536',500.00,'2025-08-25 17:21:15','2025-08-25 17:21:15'),(152,9,NULL,NULL,NULL,NULL,'0E:32:DD:A2:B3:84','198458',1000.00,'2025-08-25 17:22:06','2025-08-25 17:22:06'),(153,9,NULL,NULL,NULL,NULL,'42:B6:CB:A6:FE:13','232501',1000.00,'2025-08-25 17:32:11','2025-08-25 17:32:11'),(154,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','364169',500.00,'2025-08-25 18:07:50','2025-08-25 18:07:50'),(155,8,NULL,NULL,NULL,NULL,'3E:A5:2D:34:21:C5','164429',500.00,'2025-08-25 18:27:58','2025-08-25 18:27:58'),(156,6,NULL,NULL,NULL,NULL,'0E:06:50:49:08:C6','337251',210.00,'2025-08-25 19:11:22','2025-08-25 19:11:22'),(157,9,NULL,NULL,NULL,NULL,'0E:06:50:49:08:C6','265677',1000.00,'2025-08-25 19:13:42','2025-08-25 19:13:42'),(158,6,NULL,NULL,NULL,NULL,'0E:06:50:49:08:C6','684657',210.00,'2025-08-25 19:14:42','2025-08-25 19:14:42'),(159,9,NULL,NULL,NULL,NULL,'0E:06:50:49:08:C6','950655',1000.00,'2025-08-25 19:15:38','2025-08-25 19:15:38'),(160,8,NULL,NULL,NULL,NULL,'FC:AA:B6:3B:A0:48','063636',500.00,'2025-08-25 20:53:38','2025-08-25 20:53:38'),(161,8,NULL,NULL,NULL,NULL,'F2:65:ED:BF:19:CD','678837',500.00,'2025-08-25 20:55:53','2025-08-25 20:55:53'),(162,8,NULL,NULL,NULL,NULL,'FC:AA:B6:3B:A0:48','485614',500.00,'2025-08-25 20:58:38','2025-08-25 20:58:38'),(163,8,NULL,NULL,NULL,NULL,'42:B6:CB:A6:FE:13','247889',500.00,'2025-08-26 12:03:24','2025-08-26 12:03:24'),(164,8,NULL,NULL,NULL,NULL,'5A:22:D6:25:36:E9','281061',500.00,'2025-08-26 14:50:55','2025-08-26 14:50:55'),(165,27,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','212741',500.00,'2025-08-26 17:50:22','2025-08-26 17:50:22'),(166,27,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','594517',500.00,'2025-08-26 17:51:22','2025-08-26 17:51:22'),(167,27,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','943673',500.00,'2025-08-26 17:51:29','2025-08-26 17:51:29'),(168,27,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','718710',500.00,'2025-08-26 17:51:34','2025-08-26 17:51:34'),(169,27,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','717515',500.00,'2025-08-26 17:52:25','2025-08-26 17:52:25'),(170,36,NULL,NULL,NULL,NULL,'50:9A:4C:26:30:57','450158',8000.00,'2025-08-26 18:59:08','2025-08-26 18:59:08'),(171,8,NULL,NULL,NULL,NULL,'3E:A5:2D:34:21:C5','991841',500.00,'2025-08-26 19:10:11','2025-08-26 19:10:11'),(172,9,NULL,NULL,NULL,NULL,'42:BE:94:8E:99:FF','476738',1000.00,'2025-08-26 19:38:25','2025-08-26 19:38:25'),(173,38,NULL,NULL,NULL,NULL,'22:63:D2:CA:34:F3','398601',500.00,'2025-08-26 19:52:38','2025-08-26 19:52:38'),(174,39,NULL,NULL,NULL,NULL,'22:63:D2:CA:34:F3','630708',1000.00,'2025-08-26 19:54:02','2025-08-26 19:54:02'),(175,40,NULL,NULL,NULL,NULL,'22:63:D2:CA:34:F3','218373',5000.00,'2025-08-26 20:01:25','2025-08-26 20:01:25'),(176,38,NULL,NULL,NULL,NULL,'22:63:D2:CA:34:F3','396310',500.00,'2025-08-26 20:02:43','2025-08-26 20:02:43'),(177,38,NULL,NULL,NULL,NULL,'E2:23:F3:B5:17:BF','785888',500.00,'2025-08-26 20:04:39','2025-08-26 20:04:39'),(178,38,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','790684',500.00,'2025-08-26 20:15:18','2025-08-26 20:15:18'),(179,40,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','594457',5000.00,'2025-08-26 20:17:11','2025-08-26 20:17:11'),(180,8,NULL,NULL,NULL,NULL,'02:C0:AF:A7:33:40','191090',500.00,'2025-08-26 20:35:06','2025-08-26 20:35:06'),(181,8,NULL,NULL,NULL,NULL,'02:C0:AF:A7:33:40','484323',500.00,'2025-08-26 20:36:54','2025-08-26 20:36:54'),(182,8,NULL,NULL,NULL,NULL,'F2:65:ED:BF:19:CD','651226',500.00,'2025-08-26 20:44:17','2025-08-26 20:44:17'),(183,39,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','983728',1000.00,'2025-08-26 20:49:45','2025-08-26 20:49:45'),(184,7,NULL,NULL,NULL,NULL,'F2:94:94:28:61:0A','537486',300.00,'2025-08-26 21:16:51','2025-08-26 21:16:51'),(185,6,NULL,NULL,NULL,NULL,'DE:C9:D5:36:F6:CE','044294',210.00,'2025-08-26 21:32:38','2025-08-26 21:32:38'),(186,26,NULL,NULL,NULL,NULL,'D6:23:01:B5:97:58','934000',7000.00,'2025-08-26 21:32:39','2025-08-26 21:32:39'),(187,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','967878',500.00,'2025-08-27 07:57:16','2025-08-27 07:57:16'),(188,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','258284',500.00,'2025-08-27 08:00:02','2025-08-27 08:00:02'),(189,7,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','996326',300.00,'2025-08-27 08:02:28','2025-08-27 08:02:28'),(190,38,NULL,NULL,NULL,NULL,'82:B2:02:1D:E5:B8','768142',500.00,'2025-08-27 08:55:25','2025-08-27 08:55:25'),(191,39,NULL,NULL,NULL,NULL,'22:63:D2:CA:34:F3','372001',1000.00,'2025-08-27 09:01:28','2025-08-27 09:01:28'),(192,40,NULL,NULL,NULL,NULL,'A2:84:7A:6A:65:C0','438871',5000.00,'2025-08-27 10:41:18','2025-08-27 10:41:18'),(193,39,NULL,NULL,NULL,NULL,'C2:14:39:F6:BE:64','051418',1000.00,'2025-08-27 10:41:41','2025-08-27 10:41:41'),(194,39,NULL,NULL,NULL,NULL,'A2:ED:93:63:1B:07','501012',1000.00,'2025-08-27 10:46:00','2025-08-27 10:46:00'),(195,39,NULL,NULL,NULL,NULL,'C2:14:39:F6:BE:64','068047',1000.00,'2025-08-27 10:47:31','2025-08-27 10:47:31'),(196,38,NULL,NULL,NULL,NULL,'C6:50:3F:D4:A6:76','252716',500.00,'2025-08-27 10:58:28','2025-08-27 10:58:28'),(197,39,NULL,NULL,NULL,NULL,'BA:FE:60:FB:62:6D','609856',1000.00,'2025-08-27 11:08:04','2025-08-27 11:08:04'),(198,38,NULL,NULL,NULL,NULL,'D4:38:9C:39:B2:30','726118',500.00,'2025-08-27 11:08:43','2025-08-27 11:08:43'),(199,38,NULL,NULL,NULL,NULL,'D4:38:9C:39:B2:30','788469',500.00,'2025-08-27 13:04:39','2025-08-27 13:04:39'),(200,38,NULL,NULL,NULL,NULL,'D4:38:9C:39:B2:30','097698',500.00,'2025-08-27 13:06:26','2025-08-27 13:06:26'),(201,38,NULL,NULL,NULL,NULL,'D4:38:9C:39:B2:30','552328',500.00,'2025-08-27 13:08:44','2025-08-27 13:08:44'),(202,38,NULL,NULL,NULL,NULL,'D4:38:9C:39:B2:30','971790',500.00,'2025-08-27 13:10:48','2025-08-27 13:10:48'),(203,38,NULL,NULL,NULL,NULL,'6E:1C:29:B1:62:47','957989',500.00,'2025-08-27 13:48:08','2025-08-27 13:48:08'),(204,6,NULL,NULL,NULL,NULL,'42:B6:CB:A6:FE:13','258068',210.00,'2025-08-27 14:39:12','2025-08-27 14:39:12'),(205,39,NULL,NULL,NULL,NULL,'A2:BA:54:80:E6:F0','523587',1000.00,'2025-08-27 17:07:33','2025-08-27 17:07:33'),(206,8,NULL,NULL,NULL,NULL,'5A:22:D6:25:36:E9','341224',500.00,'2025-08-27 17:34:36','2025-08-27 17:34:36'),(207,38,NULL,NULL,NULL,NULL,'D2:98:B5:52:54:DF','608258',500.00,'2025-08-27 17:46:05','2025-08-27 17:46:05'),(208,38,NULL,NULL,NULL,NULL,'D2:98:B5:52:54:DF','621893',500.00,'2025-08-27 17:53:42','2025-08-27 17:53:42'),(209,8,NULL,NULL,NULL,NULL,'CE:42:78:C4:E6:C9','802912',500.00,'2025-08-27 20:00:50','2025-08-27 20:00:50'),(210,8,NULL,NULL,NULL,NULL,'D6:12:9E:9D:91:0E','329466',500.00,'2025-08-27 20:03:22','2025-08-27 20:03:22'),(211,8,NULL,NULL,NULL,NULL,'D6:12:9E:9D:91:0E','050355',500.00,'2025-08-27 20:04:46','2025-08-27 20:04:46'),(212,8,NULL,NULL,NULL,NULL,'D6:12:9E:9D:91:0E','142624',500.00,'2025-08-27 20:08:09','2025-08-27 20:08:09'),(213,8,NULL,NULL,NULL,NULL,'02:C0:AF:A7:33:40','832478',500.00,'2025-08-27 20:32:32','2025-08-27 20:32:32'),(214,8,NULL,NULL,NULL,NULL,'3E:A5:2D:34:21:C5','988660',500.00,'2025-08-27 20:40:17','2025-08-27 20:40:17'),(215,9,NULL,NULL,NULL,NULL,'86:65:3C:6B:E1:84','800593',1000.00,'2025-08-27 23:25:10','2025-08-27 23:25:10'),(216,39,NULL,NULL,NULL,NULL,'A2:ED:93:63:1B:07','350839',1000.00,'2025-08-28 10:55:46','2025-08-28 10:55:46'),(217,8,NULL,NULL,NULL,NULL,'14:9F:3C:6B:96:77','711204',500.00,'2025-08-28 11:46:45','2025-08-28 11:46:45'),(222,9,NULL,NULL,NULL,NULL,'76:B4:55:80:75:CE','392335',1000.00,'2025-08-28 19:02:30','2025-08-28 19:02:30'),(226,8,NULL,NULL,NULL,NULL,'BE:B3:CB:9E:09:DC','642413',500.00,'2025-08-28 21:02:07','2025-08-28 21:02:07'),(231,9,NULL,NULL,NULL,NULL,'8E:CC:F9:80:BC:C7','799672',1000.00,'2025-08-29 07:09:48','2025-08-29 07:09:48'),(232,9,NULL,NULL,NULL,NULL,'8E:CC:F9:80:BC:C7','748127',1000.00,'2025-08-29 07:11:40','2025-08-29 07:11:40'),(233,39,NULL,NULL,NULL,NULL,'FE:0C:B3:5D:CE:B7','726438',1000.00,'2025-08-29 09:05:12','2025-08-29 09:05:12'),(235,38,NULL,NULL,NULL,NULL,'7A:39:BF:E7:E7:A8','724174',500.00,'2025-08-29 11:17:28','2025-08-29 11:17:28'),(237,8,NULL,NULL,NULL,NULL,'0E:32:DD:A2:B3:84','575913',500.00,'2025-08-29 12:22:42','2025-08-29 12:22:42'),(238,8,NULL,NULL,NULL,NULL,'0E:32:DD:A2:B3:84','037484',500.00,'2025-08-29 12:24:40','2025-08-29 12:24:40'),(239,8,NULL,NULL,NULL,NULL,'66:BB:53:AB:22:4E','354623',500.00,'2025-08-29 12:25:55','2025-08-29 12:25:55'),(240,8,NULL,NULL,NULL,NULL,'66:BB:53:AB:22:4E','818936',500.00,'2025-08-29 12:28:48','2025-08-29 12:28:48'),(241,6,NULL,NULL,NULL,NULL,'66:BB:53:AB:22:4E','620560',210.00,'2025-08-29 12:31:56','2025-08-29 12:31:56'),(243,9,NULL,NULL,NULL,NULL,'BE:B3:CB:9E:09:DC','786167',1000.00,'2025-08-29 12:38:47','2025-08-29 12:38:47'),(244,8,NULL,NULL,NULL,NULL,'DA:CB:3F:CA:8C:AE','244858',500.00,'2025-08-29 12:42:11','2025-08-29 12:42:11'),(245,8,NULL,NULL,NULL,NULL,'BE:B3:CB:9E:09:DC','531972',500.00,'2025-08-29 12:43:25','2025-08-29 12:43:25'),(248,6,NULL,NULL,NULL,NULL,'D2:04:68:63:50:42','938987',210.00,'2025-08-29 13:28:10','2025-08-29 13:28:10'),(250,8,NULL,NULL,NULL,NULL,'32:01:77:6B:D5:45','261180',500.00,'2025-08-29 14:21:17','2025-08-29 14:21:17'),(256,8,NULL,NULL,NULL,NULL,'42:B6:CB:A6:FE:13','575609',500.00,'2025-08-29 19:33:40','2025-08-29 19:33:40'),(258,7,NULL,NULL,NULL,NULL,'C6:C2:9D:CB:45:91','494153',300.00,'2025-08-29 20:30:42','2025-08-29 20:30:42'),(260,8,NULL,NULL,NULL,NULL,'02:C0:AF:A7:33:40','992403',500.00,'2025-08-29 21:14:04','2025-08-29 21:14:04'),(261,8,NULL,NULL,NULL,NULL,'02:C0:AF:A7:33:40','714852',500.00,'2025-08-29 21:14:47','2025-08-29 21:14:47'),(263,6,NULL,NULL,NULL,NULL,'32:01:77:6B:D5:45','147710',210.00,'2025-08-30 06:04:37','2025-08-30 06:04:37'),(264,6,NULL,NULL,NULL,NULL,'52:79:1D:E2:BB:02','340214',210.00,'2025-08-30 06:07:53','2025-08-30 06:07:53'),(268,8,NULL,NULL,NULL,NULL,'BE:B3:CB:9E:09:DC','525118',500.00,'2025-08-30 09:02:00','2025-08-30 09:02:00'),(271,9,NULL,NULL,NULL,NULL,'F6:15:EE:D6:C1:32','420328',1000.00,'2025-08-30 09:49:11','2025-08-30 09:49:11'),(274,9,NULL,NULL,NULL,NULL,'E2:CA:F4:73:20:C8','853181',1000.00,'2025-08-30 16:23:39','2025-08-30 16:23:39');

--
-- Table structure for table `tickets`
--

CREATE TABLE `tickets` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_id` bigint unsigned NOT NULL,
  `company_router_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `issue_title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `reminder` datetime NOT NULL,
  `stage` enum('Open','In Progress','Resolved','Closed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Open',
  `status` int NOT NULL DEFAULT '1' COMMENT '0=Inactive, 1=Active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `tickets_company_id_foreign` (`company_id`),
  KEY `tickets_company_router_id_foreign` (`company_router_id`),
  KEY `tickets_user_id_foreign` (`user_id`),
  CONSTRAINT `tickets_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  CONSTRAINT `tickets_company_router_id_foreign` FOREIGN KEY (`company_router_id`) REFERENCES `company_routers` (`id`) ON DELETE CASCADE,
  CONSTRAINT `tickets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tickets`
--


--
-- Table structure for table `transaction_frequencies`
--

CREATE TABLE `transaction_frequencies` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `number_of_days` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transaction_frequencies`
--

INSERT INTO `transaction_frequencies` VALUES (1,'Instantly',0,'2025-08-03 19:10:02','2025-08-03 19:10:02',NULL),(2,'Daily',1,'2025-08-03 19:10:02','2025-08-03 19:10:02',NULL),(3,'Three Days',3,'2025-08-03 19:10:02','2025-08-03 19:10:02',NULL),(4,'Weekly',7,'2025-08-03 19:10:02','2025-08-03 19:10:02',NULL),(5,'Monthly',30,'2025-08-03 19:10:02','2025-08-03 19:10:02',NULL);

--
-- Table structure for table `user_verification_codes`
--

CREATE TABLE `user_verification_codes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned DEFAULT NULL,
  `phone_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `user_verification_codes_user_id_foreign` (`user_id`),
  CONSTRAINT `user_verification_codes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_verification_codes`
--


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

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `referrer_phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `phone_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int NOT NULL DEFAULT '1' COMMENT '0=inactive, 1=active',
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_phone_unique` (`phone`),
  UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `users` VALUES (1,'HF4Y6D','Super Admin','0712345678',NULL,'superadmin@gmail.com','2025-07-30 21:26:20','2025-07-30 21:26:20','$2y$12$sL9rLDiCAscrNQ.NY2RztOzzU0.cSCW6B5rNjnvO4i8ICYnXXnIbG',1,NULL,'2025-07-30 21:26:20','2025-08-13 09:20:47',NULL),(14,'H0ERF2','Ben','0745678',NULL,NULL,'2025-08-05 15:16:00','2025-08-05 15:16:00','$2y$12$mgPvt.LZISWEj4nKuYXv6urRN3LvIt1dML13T/snulGiRoOuGWkUq',1,NULL,'2025-08-05 15:16:00','2025-08-05 15:16:00',NULL),(15,'9E8FYP','Erick','0763752350',NULL,'sirnjovu86@gmail.com','2025-08-05 16:56:56','2025-08-05 16:56:56','$2y$12$t28h8a0Wo1XrJk0XZHrmS.zJKIvU002din28wiRKlPKVeRdv.Z10e',1,NULL,'2025-08-05 16:56:56','2025-08-09 11:59:27',NULL),(16,'5NGAQV','Admin','0712345679',NULL,NULL,'2025-08-12 12:25:52','2025-08-12 12:25:52','$2y$12$kuyPB0V6yohwp/aAz4epeO5VQrnpwnW7jJk9KLPTpKxBIfis8CiR2',1,NULL,'2025-08-12 12:25:52','2025-08-12 12:25:52',NULL),(17,'SGC5QD','Te','0694214936',NULL,'test@hmail.com','2025-08-13 07:21:07','2025-08-13 07:21:07','$2y$12$oIxyMmt3CSWOD/v2CEIzH..mKvXm0N61/x7IIMZ0x9Godd0pkXMYK',0,NULL,'2025-08-13 07:21:07','2025-08-13 20:48:18',NULL),(18,'W19D5P','Test','0693058471',NULL,'test@gmail.com','2025-08-13 07:21:55','2025-08-13 07:21:55','$2y$12$LE8vKzwYDwZHpw.hRN7oyuY4XhagL0O4oPpffvuNDZC70Vmt3lkkC',0,NULL,'2025-08-13 07:21:55','2025-08-13 20:48:00',NULL),(19,'2SZ35Y','Admin','0787109988',NULL,NULL,'2025-08-13 19:46:16','2025-08-13 19:46:16','$2y$12$tyfHnsegYuJzDVVrUGjj.eseTN4v2R2TCUmHZ/B09O6XeMd8Vc3bO',0,NULL,'2025-08-13 19:46:16','2025-08-13 20:47:46',NULL),(20,'Q3B8YT','Mwamba Cosmetics','0786000803',NULL,NULL,'2025-08-26 13:06:13','2025-08-26 13:06:13','$2y$12$h0Nfh6j2Mx0foH/6aLc6jOQE2C8Bzurd2Mf3XN5/miuSlz/HpYvNm',1,NULL,'2025-08-26 13:06:13','2025-08-27 18:57:35',NULL),(22,'UTR7BK','Kazungu','0754578434',NULL,'karnsinkazy@gmail.com','2025-08-29 19:10:58','2025-08-29 19:10:58','$2y$12$lzHpyUqns/kIE35ylRwzX.FFrmfGM9WYMOLdYnwbod8jzYYJmCjDS',1,NULL,'2025-08-29 19:10:58','2025-08-29 21:52:23',NULL),(23,'89B4PI','Alex','0696849400',NULL,NULL,'2025-08-30 06:58:45','2025-08-30 06:58:45','$2y$12$MI56zu0nxXUNc7ruSGvtcOPsls1OcGmkDBBylFHmKEGS80o5zjJHG',1,NULL,'2025-08-30 06:58:45','2025-08-30 06:58:45',NULL);


