
--
-- 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=184 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,'22:6A:1A:31:4A:46','255617595193','2025-08-08 15:56:01','2025-09-12 15:01:45',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,'B2:17:11:1E:76:42','255618250327','2025-08-11 19:33:35','2025-09-30 20:28:32',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,'20:2B:20:82:46:81','255758728802','2025-08-19 09:09:34','2025-09-16 04:46:52',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,'12:1A:2A:5F:0B:10','255747101974','2025-08-20 13:10:29','2025-09-23 09:41:58',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,'1A:4E:95:05:E9:3F','255625284273','2025-08-21 19:38:06','2025-09-20 01:05:35',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-09-10 16:53:47',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,'FC:AA:B6:3B:A0:48','255769039595','2025-08-24 21:25:55','2025-09-08 19:02:40',NULL),(30,2,'66:BB:53:AB:22:4E','255715060369','2025-08-25 17:22:24','2025-09-03 18:00:08',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,'CA:AB:0C:3B:E0:FC','255775514233','2025-08-25 19:15:59','2025-09-16 20:39:11',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,'4E:AC:71:9B:AA:D8','255687691491','2025-08-28 15:53:52','2025-09-06 22:30:03',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-09-30 09:00:49',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-09-27 20:01:34',NULL),(56,2,'CA:72:22:4C:C5:32','255794474606','2025-08-31 10:25:51','2025-09-08 11:24:33',NULL),(57,6,'7A:39:BF:E7:E7:A8','255784130128','2025-08-31 11:28:50','2025-08-31 11:28:50',NULL),(58,6,'C2:FB:8E:57:E1:CE','255712513119','2025-08-31 11:39:01','2025-08-31 11:39:01',NULL),(59,6,'C8:B2:9B:7C:5F:29','255758219626','2025-08-31 13:13:17','2025-08-31 13:13:17',NULL),(60,2,'BE:D8:5E:B0:49:F7','255752565788','2025-08-31 15:02:58','2025-09-20 10:51:08',NULL),(61,2,'10:3F:44:60:C7:32','255783339170','2025-08-31 19:08:51','2025-08-31 19:08:51',NULL),(62,2,'5A:F8:D7:0F:BF:9E','255749709448','2025-08-31 20:49:57','2025-09-30 07:16:39',NULL),(63,2,'0A:57:0C:DB:64:8E','255786334359','2025-08-31 21:27:22','2025-09-29 22:11:50',NULL),(64,2,'96:D4:9F:81:4D:92','255764788454','2025-09-01 05:50:29','2025-09-25 20:05:10',NULL),(65,7,'C6:F2:E7:AB:DB:E5','255745071246','2025-09-01 08:25:02','2025-09-01 08:25:02',NULL),(66,6,'BA:C8:C0:76:B0:F5','255679180150','2025-09-01 09:41:32','2025-09-01 09:41:32',NULL),(67,2,'16:90:94:94:7D:93','255616692225','2025-09-01 10:11:33','2025-09-12 19:36:39',NULL),(68,7,'CE:0A:06:DF:1F:AA','255742455774','2025-09-01 10:21:41','2025-09-01 10:21:41',NULL),(69,7,'DE:FE:99:B9:7F:F5','255785581266','2025-09-01 10:47:55','2025-09-01 10:47:55',NULL),(70,2,'4C:63:71:96:C0:61','255760565257','2025-09-01 11:22:40','2025-09-01 11:22:40',NULL),(71,7,'EA:56:D4:D3:43:77','255766383956','2025-09-01 12:38:35','2025-09-02 07:22:06',NULL),(72,7,'F2:8D:73:23:0E:53','255794877187','2025-09-01 13:08:34','2025-09-01 13:08:34',NULL),(73,2,'6E:86:6A:C0:08:FA','255625593547','2025-09-01 14:36:31','2025-09-13 12:25:40',NULL),(74,2,'A6:FE:2D:DE:CA:43','255756686605','2025-09-01 15:25:14','2025-09-01 15:25:14',NULL),(75,7,'DA:A8:28:9C:36:F4','255684128557','2025-09-01 16:03:03','2025-09-01 16:03:03',NULL),(76,7,'5E:93:95:94:AB:32','255760634846','2025-09-01 16:31:16','2025-09-01 16:31:16',NULL),(77,7,'C6:1B:31:E0:18:15','255792840418','2025-09-01 17:21:13','2025-09-01 17:21:13',NULL),(78,7,'56:3C:66:83:95:BB','255745504484','2025-09-01 21:17:35','2025-09-01 21:17:35',NULL),(79,7,'A6:F5:4F:AB:DF:19','255695220884','2025-09-01 21:25:11','2025-09-01 21:25:11',NULL),(80,2,'8E:84:80:D7:56:E5','255784147778','2025-09-01 21:39:52','2025-09-24 05:48:08',NULL),(81,2,'4E:63:7D:67:95:A8','255611299495','2025-09-01 22:34:54','2025-09-08 11:15:10',NULL),(82,7,'9A:1F:40:7C:81:B4','255783748565','2025-09-02 09:24:52','2025-09-02 09:24:52',NULL),(83,2,'62:18:B0:28:93:23','255756172712','2025-09-02 09:36:11','2025-09-11 21:02:51',NULL),(84,2,'4A:87:2C:39:9D:A6','255699798976','2025-09-02 14:51:27','2025-09-02 14:51:27',NULL),(85,2,'7A:84:79:EC:32:66','255754410997','2025-09-02 16:45:57','2025-09-02 16:45:57',NULL),(86,2,'C6:82:84:09:10:28','255761028792','2025-09-02 19:19:24','2025-09-24 14:02:25',NULL),(87,2,'82:75:18:2D:C9:ED','255674057530','2025-09-02 19:35:14','2025-09-02 19:35:14',NULL),(88,2,'86:87:D5:B9:81:15','255654759552','2025-09-03 06:31:13','2025-09-27 16:25:25',NULL),(89,2,'CE:42:78:C4:E6:C9','255627130488','2025-09-03 07:53:49','2025-09-03 07:53:49',NULL),(90,2,'A0:CC:2B:B3:51:BB','255624253578','2025-09-03 08:46:53','2025-09-03 08:46:53',NULL),(91,2,'92:85:32:EB:61:BE','255627921037','2025-09-03 12:40:14','2025-09-14 17:50:02',NULL),(92,2,'FE:06:92:FA:87:6B','255753338233','2025-09-03 16:52:38','2025-09-03 16:52:38',NULL),(93,2,'22:F0:CA:D5:AF:FC','255781692464','2025-09-03 18:20:25','2025-09-03 18:20:25',NULL),(94,2,'3A:13:89:8C:B7:66','255747422865','2025-09-03 19:43:24','2025-09-06 18:32:52',NULL),(95,2,'C2:75:91:4A:D0:2B','255749757880','2025-09-03 19:56:14','2025-09-04 05:00:37',NULL),(96,2,'B2:C2:DD:A2:16:D9','255786116106','2025-09-03 20:55:49','2025-09-03 20:55:49',NULL),(97,2,'46:A4:18:50:39:B8','255765432361','2025-09-04 13:53:19','2025-09-04 13:53:19',NULL),(98,2,'24:DA:33:08:FD:6A','255622490139','2025-09-04 15:02:22','2025-09-04 15:02:22',NULL),(99,2,'AA:D6:9F:AD:AF:80','255740914542','2025-09-04 15:31:49','2025-09-04 15:31:49',NULL),(100,2,'0A:15:74:AF:16:87','255742085274','2025-09-04 16:11:04','2025-09-04 16:11:04',NULL),(101,2,'74:C1:7D:15:5A:9A','255795143391','2025-09-04 16:45:16','2025-09-04 16:45:16',NULL),(102,2,'FE:06:92:FA:87:6B','255714222204','2025-09-04 17:49:57','2025-09-04 17:49:57',NULL),(103,2,'12:9B:F6:38:BA:E8','255761722492','2025-09-04 19:41:52','2025-09-04 19:41:52',NULL),(104,2,'22:46:15:C3:28:9B','255687982751','2025-09-05 11:58:37','2025-09-05 11:58:37',NULL),(105,2,'F6:D1:00:86:57:E6','255760087423','2025-09-05 18:57:36','2025-09-06 12:51:54',NULL),(106,2,'0A:00:F5:20:D1:35','255710137513','2025-09-05 22:08:38','2025-09-05 22:08:38',NULL),(107,9,'Admin','07123455650','2025-09-06 06:56:00','2025-09-06 06:56:00',NULL),(108,9,'F0:1F:AF:43:46:02','255693519319','2025-09-06 10:40:09','2025-09-06 10:40:09',NULL),(109,2,'F2:CD:BA:DB:73:EF','255717139791','2025-09-06 10:58:58','2025-09-06 10:58:58',NULL),(110,2,'32:FE:B8:B0:34:56','255752578492','2025-09-06 19:03:13','2025-09-07 07:04:04',NULL),(111,2,'D2:AF:D0:06:95:D8','255781312402','2025-09-06 22:02:57','2025-09-06 22:02:57',NULL),(112,2,'C6:DA:37:27:8C:70','255619252915','2025-09-07 05:41:35','2025-09-07 05:41:35',NULL),(113,2,'86:B6:B4:B9:05:BA','255611073440','2025-09-07 09:29:15','2025-09-07 09:29:15',NULL),(114,2,'FE:AC:67:50:DD:CC','255755097003','2025-09-07 11:12:11','2025-09-07 11:12:11',NULL),(115,2,'10:3F:44:60:C7:32','255793339170','2025-09-07 15:12:41','2025-09-07 15:12:41',NULL),(116,2,'1A:FA:73:E9:FA:23','255740579665','2025-09-07 19:44:32','2025-09-26 21:22:06',NULL),(117,2,'8A:24:9C:08:15:98','255784682699','2025-09-08 16:36:39','2025-09-08 16:36:39',NULL),(118,2,'A8:13:06:C0:4E:B3','255745890713','2025-09-08 17:12:55','2025-09-28 18:38:35',NULL),(119,2,'60:70:72:60:6A:C2','255712876627','2025-09-09 00:15:23','2025-09-09 00:15:23',NULL),(120,10,'Admin','0753432321','2025-09-09 11:06:17','2025-09-09 11:06:17',NULL),(121,10,'FA:16:BC:FD:54:06','255681905115','2025-09-09 13:28:05','2025-09-09 13:28:05',NULL),(122,2,'BE:B3:CB:9E:09:DC','255776288209','2025-09-09 13:56:44','2025-09-09 13:56:44',NULL),(123,2,'5A:2A:26:B9:46:80','255785686231','2025-09-09 18:49:50','2025-09-20 20:03:52',NULL),(124,2,'temu','+255657745566','2025-09-10 19:02:48','2025-09-10 19:02:48',NULL),(125,2,'FE:06:92:FA:87:6B','255783338233','2025-09-11 19:22:53','2025-09-11 19:22:53',NULL),(126,2,'3A:13:89:8C:B7:66','255624046228','2025-09-11 20:00:22','2025-09-15 19:57:48',NULL),(127,2,'52:23:86:29:18:8C','255610203016','2025-09-13 17:26:56','2025-09-13 17:26:56',NULL),(128,2,'B2:08:B4:45:AA:47','255650077452','2025-09-13 17:54:45','2025-09-13 17:54:45',NULL),(129,2,'60:F1:89:64:28:26','255689986637','2025-09-13 21:33:40','2025-09-13 21:33:40',NULL),(130,2,'16:90:94:94:7D:93','255749747697','2025-09-14 05:54:25','2025-09-14 05:54:25',NULL),(131,2,'20:26:81:EC:2E:02','255628577119','2025-09-14 10:11:23','2025-09-14 10:11:23',NULL),(132,2,'veda','0754959295','2025-09-14 15:32:29','2025-09-14 15:32:29',NULL),(133,2,'AE:56:C4:2C:DB:22','255768654552','2025-09-14 16:46:57','2025-09-25 18:37:23',NULL),(134,2,'52:C3:10:22:FB:F4','255624465679','2025-09-15 13:03:04','2025-09-15 13:03:04',NULL),(135,2,'njovu','0716583413','2025-09-16 19:08:40','2025-09-16 19:08:40',NULL),(136,2,'AA:82:34:B6:ED:67','255659559103','2025-09-17 17:49:42','2025-09-17 17:49:42',NULL),(137,2,'06:9D:01:F5:0E:47','255753617602','2025-09-18 07:33:09','2025-09-18 07:33:09',NULL),(138,2,'A2:32:59:BA:56:02','255789191644','2025-09-18 13:46:19','2025-09-18 13:46:19',NULL),(139,2,'72:27:6C:EA:34:29','255785225957','2025-09-18 15:39:55','2025-09-18 15:39:55',NULL),(140,2,'56:F8:E5:75:D9:C1','255750909628','2025-09-18 17:59:47','2025-09-24 08:23:21',NULL),(141,2,'F2:68:FE:84:94:69','255612357142','2025-09-18 18:22:39','2025-09-18 18:22:39',NULL),(142,2,'96:44:14:52:B0:A6','255778966928','2025-09-19 11:18:09','2025-09-19 11:18:09',NULL),(143,2,'C2:75:91:4A:D0:2B','255627056783','2025-09-19 12:44:31','2025-09-22 20:59:52',NULL),(144,5,'92:51:2E:7A:C8:B4','255683193097','2025-09-19 14:39:39','2025-09-19 14:39:39',NULL),(145,2,'8A:B7:46:D2:A4:15','255621220599','2025-09-19 18:48:27','2025-09-19 18:48:27',NULL),(146,2,'9E:0D:04:94:2B:3A','255773417388','2025-09-20 07:38:06','2025-09-20 07:38:06',NULL),(147,2,'24:2E:02:2C:C6:79','255792984334','2025-09-20 19:40:14','2025-09-20 19:40:14',NULL),(148,2,'78:3A:6C:7F:20:71','255613030131','2025-09-20 21:31:52','2025-09-20 21:31:52',NULL),(149,2,'42:CC:90:DA:81:CB','255718522465','2025-09-22 20:46:09','2025-09-22 20:46:09',NULL),(150,2,'36:5A:F6:67:35:9C','255658129093','2025-09-23 00:03:37','2025-09-23 00:03:37',NULL),(151,2,'AA:C1:1A:D2:79:24','255713566041','2025-09-23 09:39:35','2025-09-23 09:39:35',NULL),(152,2,'16:EE:4C:44:25:89','255767120113','2025-09-23 19:40:34','2025-09-23 19:40:34',NULL),(153,2,'16:4C:1D:CB:4B:13','255784538988','2025-09-24 18:54:15','2025-09-24 18:54:15',NULL),(154,2,'2A:2B:4F:09:82:4C','255698242697','2025-09-26 09:35:11','2025-09-26 09:35:11',NULL),(155,13,'C6:1F:F0:E6:26:3A','255714453893','2025-09-26 14:41:34','2025-09-26 14:41:34',NULL),(156,13,'D2:90:58:0D:1F:61','255788443614','2025-09-26 22:24:14','2025-09-30 12:12:18',NULL),(157,13,'F8:2E:3F:C2:26:47','255744460432','2025-09-27 10:03:05','2025-09-27 10:03:05',NULL),(158,2,'0A:96:C0:81:31:8F','255766643884','2025-09-28 09:05:27','2025-09-28 09:05:27',NULL),(159,2,'1A:89:CC:42:69:58','255616729350','2025-09-28 16:32:58','2025-09-28 16:32:58',NULL),(160,14,'0E:B2:79:3B:14:64','255765288577','2025-09-28 16:35:30','2025-09-28 16:35:30',NULL),(161,14,'86:41:1C:60:68:46','255785970744','2025-09-28 18:56:14','2025-09-28 18:56:14',NULL),(162,14,'32:67:7E:83:97:B1','255786547458','2025-09-29 05:15:50','2025-10-01 08:15:13',NULL),(163,14,'5E:96:32:BB:E7:49','255617755355','2025-09-29 05:47:46','2025-09-29 05:47:46',NULL),(164,14,'6A:0E:42:B6:7B:C7','255781139508','2025-09-29 08:22:14','2025-09-29 08:22:14',NULL),(165,14,'86:C2:30:71:5F:D3','255718481568','2025-09-29 08:28:11','2025-09-29 08:28:11',NULL),(166,14,'C2:3A:51:3B:5C:2E','255742058428','2025-09-29 11:17:41','2025-09-29 11:17:41',NULL),(167,2,'60:70:72:60:6A:C2','255615262892','2025-09-29 12:23:50','2025-09-29 12:23:50',NULL),(168,14,'96:E8:68:23:C5:E3','255741596868','2025-09-29 12:47:12','2025-09-29 12:47:12',NULL),(169,2,'B6:28:6A:AF:47:B3','255683113941','2025-09-29 12:58:22','2025-09-29 12:58:22',NULL),(170,15,'D2:7C:2D:A8:C1:B3','255745470536','2025-09-29 13:28:07','2025-09-29 13:28:07',NULL),(171,14,'1E:52:49:73:60:0C','255761600012','2025-09-29 17:39:05','2025-09-29 17:39:05',NULL),(172,2,'F2:C6:C1:71:E4:92','255792151153','2025-09-29 18:52:57','2025-09-30 21:02:56',NULL),(173,2,'76:41:E9:B1:C9:13','255625493684','2025-09-29 21:29:04','2025-09-29 21:29:04',NULL),(174,14,'46:C4:E3:6B:23:2D','255717762600','2025-09-30 08:26:10','2025-09-30 08:26:10',NULL),(175,14,'0A:95:E3:8B:6C:3D','255611545747','2025-09-30 09:05:03','2025-09-30 09:05:03',NULL),(176,14,'86:41:1C:60:68:46','255793838348','2025-09-30 09:10:22','2025-09-30 09:10:22',NULL),(177,14,'9E:EF:47:4A:D0:F0','255682523590','2025-09-30 10:15:49','2025-09-30 10:15:49',NULL),(178,14,'22:20:0A:03:AC:61','255693975087','2025-09-30 14:11:04','2025-09-30 14:11:04',NULL),(179,14,'A8:87:B3:23:4F:BF','255616518439','2025-09-30 16:14:46','2025-09-30 16:14:46',NULL),(180,2,'D2:C8:BE:D7:4C:6D','255762986292','2025-09-30 19:00:35','2025-09-30 19:07:41',NULL),(181,13,'F8:2E:3F:C2:26:47','255788227701','2025-09-30 19:32:19','2025-09-30 19:32:19',NULL),(182,14,'F2:1F:42:EB:44:71','255616594966','2025-10-01 08:19:02','2025-10-01 08:19:02',NULL),(183,14,'F6:64:11:4D:F5:90','255687596450','2025-10-01 09:25:29','2025-10-01 09:25:29',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=94 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),(43,10,'ether1',1,'2025-09-09 10:51:17','2025-09-09 10:51:17',NULL),(44,10,'ether2',1,'2025-09-09 10:51:17','2025-09-09 10:51:17',NULL),(45,10,'ether3',1,'2025-09-09 10:51:17','2025-09-09 10:51:17',NULL),(46,10,'RS',1,'2025-09-09 10:51:17','2025-09-09 10:51:17',NULL),(47,10,'R',1,'2025-09-09 10:51:17','2025-09-09 10:51:17',NULL),(48,10,'ovpn-out1',1,'2025-09-09 10:51:17','2025-09-09 10:51:17',NULL),(49,13,'ether1',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(50,13,'ether2',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(51,13,'ether3',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(52,13,'RS',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(53,13,'ether5',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(54,13,'ether6',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(55,13,'ether7',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(56,13,'ether8',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(57,13,'ether10',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(58,13,'sfp1',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(59,13,'wlan1',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(60,13,'R',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(61,13,'ovpn-out1',1,'2025-09-26 13:47:49','2025-09-26 13:47:49',NULL),(62,14,'ether1',1,'2025-09-28 15:46:40','2025-09-28 15:46:40',NULL),(63,14,'ether2',1,'2025-09-28 15:46:40','2025-09-28 15:46:40',NULL),(64,14,'RS',1,'2025-09-28 15:46:40','2025-09-28 15:46:40',NULL),(65,14,'ether4',1,'2025-09-28 15:46:40','2025-09-28 15:46:40',NULL),(66,14,'ether5',1,'2025-09-28 15:46:40','2025-09-28 15:46:40',NULL),(67,14,'wlan1',1,'2025-09-28 15:46:40','2025-09-28 15:46:40',NULL),(68,14,'R',1,'2025-09-28 15:46:40','2025-09-28 15:46:40',NULL),(69,14,'ovpn-out1',1,'2025-09-28 15:46:40','2025-09-28 15:46:40',NULL),(70,15,'ether1',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(71,15,'ether3',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(72,15,'ether4',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(73,15,'ether5',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(74,15,'ether6',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(75,15,'ether7',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(76,15,'ether8',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(77,15,'sfp1',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(78,15,'bridge',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(79,15,'lo',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(80,15,'ovpn-out1',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(81,15,'wifi1',1,'2025-09-29 12:03:50','2025-09-29 12:03:50',NULL),(82,16,'ether1',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(83,16,'ether3',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(84,16,'ether4',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(85,16,'ether5',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(86,16,'ether6',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(87,16,'ether7',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(88,16,'ether8',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(89,16,'ether9',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(90,16,'ether10',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(91,16,'sfp1',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(92,16,'bridge',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',NULL),(93,16,'ovpn-out1',1,'2025-09-29 17:06:37','2025-09-29 17:06:37',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=5 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),(2,10,2,21000.00,0.00,'2025-09-10 17:38:47','2025-09-10 17:38:47',NULL),(3,11,3,21000.00,0.00,'2025-09-18 14:40:49','2025-09-18 14:40:49',NULL),(4,13,4,21000.00,0.00,'2025-09-27 15:04:44','2025-09-27 15:04:44',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=20 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),(9,'XKAGB1',9,'2025-09-05 22:00:00','2025-10-05 22:00:00',21000.00,0,'2025-09-06 06:09:37','2025-09-25 06:34:59',NULL),(10,'IFBS2J',10,'2025-09-08 22:00:00','2025-10-08 22:00:00',21000.00,1,'2025-09-09 09:33:08','2025-09-10 17:38:47',NULL),(11,'O2YFSQ',11,'2025-09-17 22:00:00','2025-10-17 22:00:00',21000.00,1,'2025-09-18 14:24:23','2025-09-18 14:40:49',NULL),(12,'YXDQ1H',12,'2025-09-24 22:00:00','2025-10-24 22:00:00',21000.00,0,'2025-09-25 11:55:26','2025-09-25 11:55:26',NULL),(13,'2IS8WQ',13,'2025-09-25 22:00:00','2025-10-25 22:00:00',21000.00,1,'2025-09-26 08:35:02','2025-09-27 15:04:44',NULL),(14,'R3WP1U',6,'2025-09-27 22:00:00','2025-10-27 23:00:00',21000.00,0,'2025-09-28 06:00:33','2025-09-28 06:00:33',NULL),(15,'YGTP9N',14,'2025-09-27 22:00:00','2025-10-27 23:00:00',21000.00,0,'2025-09-28 14:43:39','2025-09-28 14:43:39',NULL),(16,'BEO5CU',15,'2025-09-28 22:00:00','2025-10-28 23:00:00',21000.00,0,'2025-09-29 10:07:30','2025-09-29 10:07:30',NULL),(17,'LG0OC1',16,'2025-09-28 22:00:00','2025-10-28 23:00:00',21000.00,0,'2025-09-29 16:41:08','2025-09-29 16:41:08',NULL),(18,'T3BUIG',17,'2025-09-29 22:00:00','2025-10-29 23:00:00',21000.00,0,'2025-09-30 08:49:41','2025-09-30 08:49:41',NULL),(19,'V5CJ14',18,'2025-09-29 22:00:00','2025-10-29 23:00:00',21000.00,0,'2025-09-30 09:13:04','2025-09-30 09:13:04',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=19 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-09-30','0716583413',1,2,NULL,1,'2025-08-05',1,1,'2025-08-05 16:56:56','2025-10-01 04:47:25',NULL),(5,'YE6B2O',8,'Machinga Complex','50.50.50.5','161.97.174.20:11566','heritage',8728,'0HAWV2',21000.00,'2025-08-26','0763752350',1,0,NULL,NULL,NULL,1,1,'2025-08-18 17:15:11','2025-10-01 09:12:22',NULL),(6,'83WYM2',11,'Mwamba','50.50.50.6','161.97.174.20:18680','heritage',8728,'5ZISPW',21000.00,'2025-09-28','0786000803',0,0,'flash',NULL,NULL,1,2,'2025-08-26 13:06:13','2025-09-28 06:00:33',NULL),(7,'O37YGC',13,'La Zungu','50.50.50.7','161.97.174.20:18875','heritage',8728,'6ZNHLJ',21000.00,'2025-08-29','0754578434',1,2,NULL,NULL,NULL,1,2,'2025-08-29 19:10:58','2025-09-30 13:58:30',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),(9,'D2WHM9',16,'Street Mesh','50.50.50.9','161.97.174.20:10194','heritage',8728,'X71WBR',21000.00,'2025-10-25','0747777710',1,2,'flash',NULL,NULL,1,2,'2025-09-06 06:09:37','2025-10-01 05:32:34',NULL),(10,'31DRYJ',17,'Mr Bando Internet Services','50.50.50.10','161.97.174.20:18997','heritage',8728,'L7BDGY',21000.00,'2025-10-10','0780601042',0,0,'flash',NULL,NULL,1,0,'2025-09-09 09:33:08','2025-09-11 06:52:45',NULL),(11,'43ORCJ',18,'G NJARO','50.50.50.11','161.97.174.20:10200','heritage',8728,'3R02DL',21000.00,'2025-10-18','0769932392',1,0,'flash',NULL,NULL,1,1,'2025-09-18 14:24:23','2025-10-01 08:50:31',NULL),(12,'9TGQOX',19,'Router12','50.50.50.12',NULL,'heritage',8728,'heritage@2025',21000.00,'2025-10-28','07577006671',0,3,NULL,NULL,NULL,0,2,'2025-09-25 11:55:26','2025-09-28 08:16:03',NULL),(13,'XH6WF3',20,'Mkiwa','50.50.50.13',NULL,'heritage',8728,'heritage@2025',21000.00,'2025-10-30','0788443614',0,3,NULL,NULL,NULL,0,1,'2025-09-26 08:35:02','2025-10-01 10:01:31',NULL),(14,'BJX2SV',21,'Kitonga','50.50.50.14','161.97.174.20:19796','heritage',8728,'N8MAJS',21000.00,'2025-10-30','0765288577',1,0,NULL,NULL,NULL,0,2,'2025-09-28 14:43:39','2025-10-01 08:55:32',NULL),(15,'F1TDMC',22,'Mshua Net','50.50.50.15','161.97.174.20:19673','heritage',8728,'9721RV',21000.00,'2025-10-30','0679254949',1,0,NULL,NULL,NULL,0,2,'2025-09-29 10:07:30','2025-10-01 08:56:31',NULL),(16,'PJV6KX',23,'ITeam','50.50.50.16','161.97.174.20:13166','heritage',8728,'JEXLR3',21000.00,'2025-10-31','0789431231',1,1,NULL,NULL,NULL,0,2,'2025-09-29 16:41:08','2025-10-01 04:46:38',NULL),(17,'HPW02V',24,'Router17','50.50.50.17',NULL,'heritage',8728,'heritage@2025',21000.00,'2025-09-30','0759920774',0,3,NULL,NULL,NULL,0,2,'2025-09-30 08:49:41','2025-09-30 08:52:32',NULL),(18,'Z03B4N',25,'Ktown','50.50.50.18','161.97.174.20:12008','heritage',8728,'D96KI4',21000.00,'2025-09-30','0783502405',0,3,NULL,NULL,NULL,1,2,'2025-09-30 09:13:04','2025-10-01 10:14:36',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=95 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',3.00,2,300.00,1,'2025-08-05 17:49:42','2025-08-31 19:13:23',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-31 07:25:31','2025-08-31 07:25:31'),(44,'4KDB2L',13,1,7,10,'30 | Nusu saa |','5','M','5','M',NULL,NULL,NULL,'1',30.00,1,200.00,1,'2025-08-31 07:28:52','2025-08-31 07:28:52',NULL),(45,'9ZH6DY',13,1,7,10,'1 Hour','5','M','5','M',NULL,NULL,NULL,'1',1.00,2,300.00,1,'2025-08-31 07:30:35','2025-08-31 07:30:35',NULL),(46,'5IR041',13,1,7,10,'2 Hours','5','M','5','M',NULL,NULL,NULL,'1',2.00,2,400.00,1,'2025-08-31 07:31:43','2025-08-31 07:31:43',NULL),(47,'8SOLGK',13,1,7,10,'4 Hours','8','M','8','M',NULL,NULL,NULL,'1',4.00,2,500.00,1,'2025-08-31 07:33:48','2025-08-31 07:33:48',NULL),(48,'8T6PNO',13,1,7,10,'7 Hours','8','M','8','M',NULL,NULL,NULL,'1',7.00,2,600.00,1,'2025-08-31 07:36:47','2025-08-31 07:36:47',NULL),(49,'25GC3H',13,1,7,10,'8 Hours','8','M','8','M',NULL,NULL,NULL,'1',8.00,2,700.00,1,'2025-08-31 07:38:26','2025-08-31 07:38:26',NULL),(50,'QPVI49',13,1,7,10,'9 Hours','8','M','8','M',NULL,NULL,NULL,'1',9.00,2,800.00,1,'2025-08-31 07:39:40','2025-08-31 07:39:40',NULL),(51,'CM5IHB',13,1,7,10,'12 Hours','8','M','8','M',NULL,NULL,NULL,'1',12.00,2,900.00,1,'2025-08-31 07:44:12','2025-08-31 07:44:12',NULL),(52,'3JX0O4',13,1,7,10,'1 Day','10','M','10','M',NULL,NULL,NULL,'1',1.00,3,1000.00,1,'2025-08-31 07:52:54','2025-08-31 07:52:54',NULL),(53,'3PV8ZA',13,1,7,10,'SIKU MOJA NA NUSU','10','M','10','M',NULL,NULL,NULL,'1',30.00,2,1500.00,1,'2025-08-31 08:13:23','2025-08-31 08:13:23',NULL),(54,'Z7RLWI',13,1,7,10,'3 Days','10','M','10','M',NULL,NULL,NULL,'1',3.00,3,2000.00,1,'2025-08-31 08:14:54','2025-08-31 08:14:54',NULL),(55,'M5FICZ',13,1,7,10,'1 Week','15','M','15','M',NULL,NULL,NULL,'1',7.00,3,4000.00,1,'2025-08-31 08:16:26','2025-08-31 08:16:26',NULL),(56,'VZ2NXP',13,1,7,10,'2 Weeks','15','M','15','M',NULL,NULL,NULL,'1',14.00,3,7500.00,1,'2025-08-31 08:19:55','2025-08-31 08:19:55',NULL),(57,'RMXA0W',13,1,7,10,'3 Weeks','15','M','15','M',NULL,NULL,NULL,'1',21.00,3,12000.00,1,'2025-08-31 08:32:43','2025-08-31 08:32:43',NULL),(58,'BE0OKR',13,1,7,10,'1 Month | Mwezi |','18','M','18','M',NULL,NULL,NULL,'1',28.00,3,15000.00,1,'2025-08-31 08:38:11','2025-08-31 08:38:11',NULL),(59,'CQHY58',16,1,9,12,'Unlimited 12hrs','3','M','3','M',NULL,NULL,NULL,'1',12.00,2,1000.00,1,'2025-09-06 06:53:48','2025-09-29 18:06:05',NULL),(60,'8ZXKH7',16,2,9,13,'Mwezi','10','M','10','M',NULL,NULL,NULL,'1',30.00,3,15000.00,1,'2025-09-06 06:55:07','2025-09-06 06:55:07',NULL),(61,'85EDC4',16,1,9,12,'Mselekeko Spenko','10','M','10','M',NULL,NULL,NULL,'3',30.00,3,30000.00,1,'2025-09-06 18:36:04','2025-09-29 18:04:18','2025-09-29 18:04:18'),(62,'3HA74Q',17,1,10,14,'SIKU','10','M','10','M',NULL,NULL,NULL,'1',24.00,2,1000.00,1,'2025-09-09 11:03:43','2025-09-09 11:03:43',NULL),(63,'TQM92W',17,2,10,15,'MWEZI','10','M','10','M',NULL,NULL,NULL,'1',30.00,3,25000.00,1,'2025-09-09 11:05:23','2025-09-09 11:05:23',NULL),(64,'CH17FV',18,1,11,16,'SIKU','10','M','10','M',NULL,NULL,NULL,'1',1.00,3,1000.00,1,'2025-09-18 14:59:05','2025-09-18 14:59:05',NULL),(65,'7JZES1',18,1,11,16,'VOCHA ZA MASAA 500/=','3','M','3','M',NULL,NULL,NULL,'1',5.00,2,500.00,1,'2025-09-18 15:37:39','2025-09-18 15:37:39',NULL),(66,'8V5GCZ',18,1,11,16,'MWEZI','10','M','10','M',NULL,NULL,NULL,'1',30.00,3,26000.00,1,'2025-09-18 18:29:05','2025-09-18 18:29:05',NULL),(67,'B2N8DJ',18,1,11,16,'WIKI','5','M','5','M',NULL,NULL,NULL,'1',7.00,3,6000.00,1,'2025-09-18 18:30:47','2025-09-18 18:30:47',NULL),(68,'BPG4NY',16,1,9,12,'Unlimited 24Hrs','3','M','3','M',NULL,NULL,NULL,'1',24.00,2,1500.00,1,'2025-09-22 21:35:08','2025-09-29 18:06:55',NULL),(69,'W0F76Z',16,1,9,12,'Unlimited 2Days','3','M','3','M',NULL,NULL,NULL,'1',2.00,3,3000.00,1,'2025-09-23 16:23:46','2025-09-29 18:08:06',NULL),(70,'RVJX80',20,1,13,18,'12 Hours 1 Device','3','M','3','M',NULL,NULL,NULL,'1',12.00,2,1000.00,1,'2025-09-26 13:52:52','2025-09-27 10:20:26',NULL),(71,'FUJ5C1',20,1,13,18,'1 Day 1 Device','3','M','3','M',NULL,NULL,NULL,'1',1.00,3,1750.00,1,'2025-09-26 14:49:07','2025-09-30 10:13:21',NULL),(72,'L51RS7',20,1,13,18,'7 Days 1 Device','3','M','3','M',NULL,NULL,NULL,'1',7.00,3,5500.00,1,'2025-09-26 15:01:08','2025-09-27 10:18:17',NULL),(73,'SQU2YH',20,1,13,18,'3 Day  1 Device','3','M','3','M',NULL,NULL,NULL,'1',3.00,3,3500.00,1,'2025-09-26 15:11:27','2025-09-30 10:12:59',NULL),(74,'DC413I',20,1,13,18,'30 Days 1 Device','3','M','3','M',NULL,NULL,NULL,'1',30.00,3,22000.00,1,'2025-09-27 10:03:18','2025-09-27 10:16:20',NULL),(75,'ER1T6A',20,1,13,18,'30 Days 3 Device','5','M','5','M',NULL,NULL,NULL,'3',30.00,3,35000.00,1,'2025-09-27 10:05:18','2025-09-27 10:15:39',NULL),(76,'2G79IP',20,1,13,18,'7 Days 2 Device','3','M','3','M',NULL,NULL,NULL,'2',3.00,1,10000.00,1,'2025-09-27 10:38:17','2025-09-27 10:38:17',NULL),(77,'G624X3',21,1,14,20,'Masaa 15','5','M','5','M',NULL,NULL,NULL,'1',15.00,2,700.00,1,'2025-09-28 15:52:06','2025-09-28 16:04:19',NULL),(78,'AQM4U8',21,1,14,20,'Masaa 24','5','M','5','M',NULL,NULL,NULL,'1',24.00,2,1000.00,1,'2025-09-28 15:53:09','2025-09-28 16:04:45',NULL),(79,'6GXFQ7',21,1,14,20,'Wiki','5','M','5','M',NULL,NULL,NULL,'1',7.00,3,5000.00,1,'2025-09-28 16:05:07','2025-09-28 16:05:07',NULL),(80,'NUD2OG',21,1,14,20,'Mwezi','5','M','5','M',NULL,NULL,NULL,'1',30.00,3,20000.00,1,'2025-09-28 16:05:31','2025-09-28 16:05:31',NULL),(81,'P4HLM9',22,1,15,22,'1 Hour','5','M','5','M',NULL,NULL,NULL,'1',1.00,2,700.00,1,'2025-09-29 12:05:49','2025-09-29 12:05:49',NULL),(82,'WV0O73',22,1,15,22,'3 Hours','5','M','5','M',NULL,NULL,NULL,'1',3.00,2,1000.00,1,'2025-09-29 12:06:21','2025-09-29 12:06:21',NULL),(83,'J63HKS',23,1,16,24,'6 Hour','5','M','5','M',NULL,NULL,NULL,'1',6.00,2,500.00,1,'2025-09-29 17:08:08','2025-09-29 17:10:32',NULL),(84,'2XJPZY',23,1,16,24,'6 Hours','5','M','5','M',NULL,NULL,NULL,'1',6.00,2,100.00,1,'2025-09-29 17:08:34','2025-09-29 17:10:15','2025-09-29 17:10:15'),(85,'K96LPM',23,1,16,24,'24 Hours','5','M','5','M',NULL,NULL,NULL,'1',24.00,2,1000.00,1,'2025-09-29 17:11:10','2025-09-29 17:11:10',NULL),(86,'0AIUGL',16,1,9,12,'Unlimited 7Days','3','M','3','M',NULL,NULL,NULL,'1',7.00,3,5000.00,1,'2025-09-29 18:09:17','2025-09-29 18:09:17',NULL),(87,'E14VAJ',16,1,9,12,'Unlimited 14Days','3','M','3','M',NULL,NULL,NULL,'1',14.00,3,10000.00,1,'2025-09-29 18:10:55','2025-09-29 18:10:55',NULL),(88,'L3R9BX',16,1,9,12,'Unlimited 30Days','3','M','3','M',NULL,NULL,NULL,'1',30.00,3,15000.00,1,'2025-09-29 18:12:07','2025-09-29 18:12:07',NULL),(89,'ZXRV6W',23,2,16,24,'islam','10','M','10','M',NULL,NULL,NULL,'1',120.00,3,1.00,1,'2025-09-29 19:20:03','2025-09-29 19:20:03',NULL),(90,'XZ0EAI',25,1,18,26,'24hrs','20','M','20','M',NULL,NULL,NULL,'1',24.00,2,1000.00,1,'2025-09-30 09:52:56','2025-09-30 10:05:29',NULL),(91,'0KS3Z2',25,2,18,27,'10000','5','M','5','M',NULL,NULL,NULL,'1',30.00,3,10000.00,1,'2025-09-30 09:55:54','2025-09-30 09:55:54',NULL),(92,'RJGF20',20,1,13,18,'Free','1','M','1','M',NULL,NULL,NULL,'1',2.00,1,0.00,1,'2025-09-30 16:22:41','2025-09-30 16:22:41',NULL),(93,'EMX8NH',23,1,16,24,'wakala','5','M','5','M',NULL,NULL,NULL,'1',90.00,3,200.00,1,'2025-09-30 20:30:40','2025-09-30 20:30:40',NULL),(94,'QSL2RM',23,3,16,NULL,'mshua Download-8Mbps/Upload-8Mbps','5','M','5','M',NULL,NULL,NULL,'1',30.00,3,90.00,1,'2025-09-30 20:33:18','2025-09-30 20:33:18',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 AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `company_sms_provider_entities` VALUES (1,1,7,'La Zungu','2025-09-01 06:07:22','2025-09-01 06:07:22',NULL),(2,1,8,'1152|z0RRuHr8EQLxtqTMo5WPUNrXJIYYbl5Q2BJpWKiN43a0aece','2025-09-01 06:07:22','2025-09-01 06:07:22',NULL),(3,2,7,'La Zungu','2025-09-01 06:15:21','2025-09-01 06:15:21',NULL),(4,2,8,'1152|z0RRuHr8EQLxtqTMo5WPUNrXJIYYbl5Q2BJpWKiN43a0aece','2025-09-01 06:15:21','2025-09-01 06:15:21',NULL),(5,3,7,'La Zungu','2025-09-01 06:16:04','2025-09-01 06:16:04',NULL),(6,3,8,'1152|z0RRuHr8EQLxtqTMo5WPUNrXJIYYbl5Q2BJpWKiN43a0aece','2025-09-01 06:16:04','2025-09-01 06:16:04',NULL);

--
-- 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 AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `company_sms_providers` VALUES (1,13,4,1,'2025-09-01 06:06:35','2025-09-01 06:14:22','2025-09-01 06:14:22'),(2,13,4,1,'2025-09-01 06:15:21','2025-09-01 06:15:34','2025-09-01 06:15:34'),(3,13,4,1,'2025-09-01 06:16:04','2025-09-01 06:16:04',NULL);

--
-- 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=30 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 Tsh [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-09-23 09:01:32',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),(28,16,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.',0,'2025-09-06 06:57:59','2025-09-06 06:58:07',NULL),(29,20,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-09-26 14:33:20','2025-09-26 14:33:20',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=30 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),(16,8,24,1,'2025-08-31 22:17:44','2025-08-31 22:17:44',NULL),(17,15,15,1,'2025-09-03 20:05:20','2025-09-03 20:05:20',NULL),(18,16,25,1,'2025-09-06 06:09:37','2025-09-06 06:09:37',NULL),(19,16,26,1,'2025-09-06 13:01:40','2025-09-06 13:01:40',NULL),(20,17,27,0,'2025-09-09 09:33:08','2025-09-11 06:52:45',NULL),(21,18,28,1,'2025-09-18 14:24:23','2025-09-18 14:24:23',NULL),(22,19,29,1,'2025-09-25 11:55:26','2025-09-25 11:55:26',NULL),(23,20,30,1,'2025-09-26 08:35:02','2025-09-26 08:35:02',NULL),(24,21,31,1,'2025-09-28 14:43:39','2025-09-28 14:43:39',NULL),(25,22,32,1,'2025-09-29 10:07:30','2025-09-29 10:07:30',NULL),(26,23,33,1,'2025-09-29 16:41:08','2025-09-29 16:41:08',NULL),(27,23,34,1,'2025-09-29 17:59:20','2025-09-29 17:59:20',NULL),(28,24,35,1,'2025-09-30 08:49:41','2025-09-30 08:49:41',NULL),(29,25,36,1,'2025-09-30 09:13:04','2025-09-30 09:13:04',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 AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `company_whatsapp_scans` VALUES (1,0,'+254716100572','2025-09-10 08:04:10','2025-09-10 08:04:10',NULL),(2,0,'254716100572','2025-09-10 08:04:22','2025-09-10 08:04:22',NULL),(3,13,'+255754578434','2025-09-10 13:00:13','2025-09-10 13:00:13',NULL),(4,0,'+254796230626','2025-09-23 08:59:43','2025-09-23 08:59:43',NULL);

--
-- 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=5 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),(2,1,2,50.00,10500.00,0,'2025-09-10 17:38:47','2025-09-10 17:38:47',NULL),(3,1,3,50.00,10500.00,0,'2025-09-18 14:40:49','2025-09-18 14:40:49',NULL),(4,1,4,50.00,10500.00,0,'2025-09-27 15:04:44','2025-09-27 15:04:44',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=5 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),(2,'8RSZVT',1,0.00,0.00,17,10,1,2,NULL,'TI62NA5R2A',21000.00,NULL,NULL,'2025-09-10 17:38:47','2025-09-10 17:38:47',NULL),(3,'8BHOI7',1,0.00,0.00,18,11,1,2,NULL,'',21000.00,NULL,NULL,'2025-09-18 14:40:49','2025-09-18 14:40:49',NULL),(4,'KANE2C',1,0.00,0.00,20,13,1,2,NULL,'TIRKH5U8DQ',21000.00,NULL,NULL,'2025-09-27 15:04:44','2025-09-27 15:04:44',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=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- 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),(1,'App\\Models\\User',24),(1,'App\\Models\\User',25),(1,'App\\Models\\User',26),(1,'App\\Models\\User',27),(1,'App\\Models\\User',28),(1,'App\\Models\\User',29),(1,'App\\Models\\User',30),(1,'App\\Models\\User',31),(1,'App\\Models\\User',32),(1,'App\\Models\\User',33),(2,'App\\Models\\User',34),(1,'App\\Models\\User',35),(1,'App\\Models\\User',36);

--
-- 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),(2,'App\\Models\\User',24),(2,'App\\Models\\User',25),(2,'App\\Models\\User',26),(2,'App\\Models\\User',27),(2,'App\\Models\\User',28),(2,'App\\Models\\User',29),(2,'App\\Models\\User',30),(2,'App\\Models\\User',31),(2,'App\\Models\\User',32),(2,'App\\Models\\User',33),(2,'App\\Models\\User',34),(2,'App\\Models\\User',35),(2,'App\\Models\\User',36);

--
-- 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=14534 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `notifications` VALUES (14395,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',1,'2025-09-28 22:02:30','2025-09-30 05:03:17'),(14396,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-28 23:59:34','2025-09-28 23:59:34'),(14397,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 00:02:32','2025-09-29 00:02:32'),(14398,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 1 is offline. Please check it out.',1,'2025-09-29 01:32:25','2025-09-30 06:41:17'),(14399,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-29 02:00:36','2025-09-29 02:00:36'),(14400,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 02:03:34','2025-09-29 02:03:34'),(14401,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 1 is back online.',1,'2025-09-29 04:05:21','2025-09-30 06:41:17'),(14402,21,NULL,'Mikrotik Router Down','⚠️ Hi Ernest Cheyo, your mikrotik router - Kitonga is offline. Please check it out.',1,'2025-09-29 04:27:34','2025-09-29 17:45:59'),(14403,21,NULL,'Mikrotik Router Up','✅ Hi Ernest Cheyo, your mikrotik router - Kitonga is back online.',1,'2025-09-29 04:38:33','2025-09-29 17:45:59'),(14404,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',1,'2025-09-29 05:56:29','2025-09-30 05:03:17'),(14405,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-29 06:59:32','2025-09-29 06:59:32'),(14406,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 07:02:31','2025-09-29 07:02:31'),(14407,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Machinga Complex is offline. Please check it out.',1,'2025-09-29 07:21:23','2025-09-30 06:41:17'),(14408,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Machinga Complex is back online.',1,'2025-09-29 07:24:22','2025-09-30 06:41:17'),(14409,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-29 10:00:33','2025-09-29 10:00:33'),(14410,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 10:03:30','2025-09-29 10:03:30'),(14411,22,NULL,'Mikrotik Router Down','⚠️ Hi Manyala Agalla, your mikrotik router - Router15 is offline. Please check it out.',1,'2025-09-29 10:10:34','2025-09-29 13:54:35'),(14412,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 1 is offline. Please check it out.',1,'2025-09-29 11:02:25','2025-09-30 06:41:17'),(14413,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 1 is back online.',1,'2025-09-29 11:05:22','2025-09-30 06:41:17'),(14414,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-29 11:20:33','2025-09-29 11:20:33'),(14415,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 11:26:31','2025-09-29 11:26:31'),(14416,22,NULL,'Mikrotik Router Up','✅ Hi Manyala Agalla, your mikrotik router - Router15 is back online.',1,'2025-09-29 12:02:33','2025-09-29 13:54:39'),(14417,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-29 13:59:33','2025-09-29 13:59:33'),(14418,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 14:03:31','2025-09-29 14:03:31'),(14419,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Machinga Complex is offline. Please check it out.',1,'2025-09-29 15:13:24','2025-09-30 06:41:17'),(14420,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Machinga Complex is back online.',1,'2025-09-29 15:16:21','2025-09-30 06:41:17'),(14421,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',1,'2025-09-29 15:18:30','2025-09-30 05:03:17'),(14422,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',1,'2025-09-29 15:21:29','2025-09-30 05:03:17'),(14423,16,NULL,'Mikrotik Router Up','✅ Hi Emmanuel, your mikrotik router - Street Mesh is back online.',0,'2025-09-29 15:37:27','2025-09-29 15:37:27'),(14424,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-29 16:00:32','2025-09-29 16:00:32'),(14425,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 16:03:28','2025-09-29 16:03:28'),(14426,22,NULL,'Mikrotik Router Down','⚠️ Hi Manyala Agalla, your mikrotik router - Mshua Net is offline. Please check it out.',0,'2025-09-29 16:23:31','2025-09-29 16:23:31'),(14427,22,NULL,'Mikrotik Router Up','✅ Hi Manyala Agalla, your mikrotik router - Mshua Net is back online.',0,'2025-09-29 16:37:29','2025-09-29 16:37:29'),(14428,23,NULL,'Mikrotik Router Down','⚠️ Hi Dennis Amini, your mikrotik router - Router16 is offline. Please check it out.',1,'2025-09-29 16:43:32','2025-09-29 17:08:49'),(14429,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',1,'2025-09-29 17:12:29','2025-09-30 05:03:17'),(14430,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',1,'2025-09-29 17:15:27','2025-09-30 05:03:18'),(14431,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',1,'2025-09-29 18:02:29','2025-09-30 05:03:18'),(14432,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',1,'2025-09-29 18:05:30','2025-09-30 05:03:18'),(14433,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Machinga Complex is offline. Please check it out.',1,'2025-09-29 18:58:24','2025-09-30 06:41:17'),(14434,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Machinga Complex is back online.',1,'2025-09-29 19:01:23','2025-09-30 06:41:17'),(14435,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',1,'2025-09-29 19:28:29','2025-09-30 05:03:18'),(14436,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',1,'2025-09-29 19:31:27','2025-09-30 05:03:18'),(14437,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-29 19:59:31','2025-09-29 19:59:31'),(14438,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 20:03:29','2025-09-29 20:03:29'),(14439,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',1,'2025-09-29 20:07:29','2025-09-30 05:03:18'),(14440,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',1,'2025-09-29 20:10:28','2025-09-30 05:03:18'),(14441,22,NULL,'Mikrotik Router Down','⚠️ Hi Manyala Agalla, your mikrotik router - Mshua Net is offline. Please check it out.',0,'2025-09-29 21:41:30','2025-09-29 21:41:30'),(14442,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-29 21:59:30','2025-09-29 21:59:30'),(14443,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-29 22:03:28','2025-09-29 22:03:28'),(14444,22,NULL,'Mikrotik Router Up','✅ Hi Manyala Agalla, your mikrotik router - Mshua Net is back online.',0,'2025-09-29 22:12:29','2025-09-29 22:12:29'),(14445,22,NULL,'Mikrotik Router Down','⚠️ Hi Manyala Agalla, your mikrotik router - Mshua Net is offline. Please check it out.',0,'2025-09-29 22:17:32','2025-09-29 22:17:32'),(14446,22,NULL,'Mikrotik Router Up','✅ Hi Manyala Agalla, your mikrotik router - Mshua Net is back online.',0,'2025-09-29 22:21:29','2025-09-29 22:21:29'),(14447,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Machinga Complex is offline. Please check it out.',1,'2025-09-30 00:50:24','2025-09-30 06:41:17'),(14448,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Machinga Complex is back online.',1,'2025-09-30 00:53:30','2025-09-30 06:41:17'),(14449,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-30 01:59:30','2025-09-30 01:59:30'),(14450,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-30 02:03:28','2025-09-30 02:03:28'),(14451,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-30 04:03:31','2025-09-30 04:03:31'),(14452,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-30 04:07:29','2025-09-30 04:07:29'),(14453,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',1,'2025-09-30 04:51:29','2025-09-30 05:03:18'),(14454,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',0,'2025-09-30 05:04:26','2025-09-30 05:04:26'),(14455,23,NULL,'Mikrotik Router Down','⚠️ Hi DENIS AMINI, your mikrotik router - ITeam is offline. Please check it out.',1,'2025-09-30 05:27:32','2025-09-30 10:13:03'),(14456,23,NULL,'Mikrotik Router Up','✅ Hi DENIS AMINI, your mikrotik router - ITeam is back online.',0,'2025-09-30 05:30:29','2025-09-30 05:30:29'),(14457,21,NULL,'Mikrotik Router Down','⚠️ Hi Ernest Cheyo, your mikrotik router - Kitonga is offline. Please check it out.',0,'2025-09-30 06:49:31','2025-09-30 06:49:31'),(14458,21,NULL,'Mikrotik Router Up','✅ Hi Ernest Cheyo, your mikrotik router - Kitonga is back online.',0,'2025-09-30 06:52:28','2025-09-30 06:52:28'),(14459,16,NULL,'Mikrotik Router Down','⚠️ Hi Emmanuel, your mikrotik router - Street Mesh is offline. Please check it out.',0,'2025-09-30 08:14:28','2025-09-30 08:14:28'),(14460,16,NULL,'Mikrotik Router Up','✅ Hi Emmanuel, your mikrotik router - Street Mesh is back online.',0,'2025-09-30 08:18:27','2025-09-30 08:18:27'),(14461,24,NULL,'Mikrotik Router Down','⚠️ Hi Innocent Mtui, your mikrotik router - Router17 is offline. Please check it out.',0,'2025-09-30 08:52:31','2025-09-30 08:52:31'),(14462,25,NULL,'Mikrotik Router Down','⚠️ Hi Songa Musa, your mikrotik router - Router18 is offline. Please check it out.',0,'2025-09-30 09:15:34','2025-09-30 09:15:34'),(14463,25,NULL,'Mikrotik Router Up','✅ Hi Songa Musa, your mikrotik router - Router18 is back online.',0,'2025-09-30 09:32:32','2025-09-30 09:32:32'),(14464,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-30 09:59:31','2025-09-30 09:59:31'),(14465,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-30 10:03:29','2025-09-30 10:03:29'),(14466,21,NULL,'Mikrotik Router Down','⚠️ Hi Ernest Cheyo, your mikrotik router - Kitonga is offline. Please check it out.',0,'2025-09-30 10:20:31','2025-09-30 10:20:31'),(14467,13,NULL,'Mikrotik Router Down','⚠️ Hi Kazungu, your mikrotik router - La Zungu is offline. Please check it out.',0,'2025-09-30 10:24:25','2025-09-30 10:24:25'),(14468,13,NULL,'Mikrotik Router Up','✅ Hi Kazungu, your mikrotik router - La Zungu is back online.',0,'2025-09-30 10:27:24','2025-09-30 10:27:24'),(14469,21,NULL,'Mikrotik Router Up','✅ Hi Ernest Cheyo, your mikrotik router - Kitonga is back online.',0,'2025-09-30 10:29:29','2025-09-30 10:29:29'),(14470,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 1 is offline. Please check it out.',0,'2025-09-30 11:02:25','2025-09-30 11:02:25'),(14471,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 1 is back online.',0,'2025-09-30 11:05:22','2025-09-30 11:05:22'),(14472,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Machinga Complex is offline. Please check it out.',0,'2025-09-30 11:13:24','2025-09-30 11:13:24'),(14473,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Machinga Complex is back online.',0,'2025-09-30 11:16:21','2025-09-30 11:16:21'),(14474,25,NULL,'Mikrotik Router Down','⚠️ Hi Songa Musa, your mikrotik router - Ktown is offline. Please check it out.',0,'2025-09-30 12:25:34','2025-09-30 12:25:34'),(14475,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',0,'2025-09-30 12:46:28','2025-09-30 12:46:28'),(14476,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',0,'2025-09-30 12:49:27','2025-09-30 12:49:27'),(14477,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 1 is offline. Please check it out.',0,'2025-09-30 13:02:25','2025-09-30 13:02:25'),(14478,20,NULL,'Mikrotik Router Down','⚠️ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-30 13:59:34','2025-09-30 13:59:34'),(14479,20,NULL,'Mikrotik Router Up','✅ Hi Idd Mussa Salum, your mikrotik router - Mkiwa is back online.',0,'2025-09-30 14:03:33','2025-09-30 14:03:33'),(14480,23,NULL,'Mikrotik Router Down','⚠️ Hi DENIS AMINI, your mikrotik router - ITeam is offline. Please check it out.',0,'2025-09-30 14:14:35','2025-09-30 14:14:35'),(14481,23,NULL,'Mikrotik Router Up','✅ Hi DENIS AMINI, your mikrotik router - ITeam is back online.',0,'2025-09-30 14:17:35','2025-09-30 14:17:35'),(14482,21,NULL,'Mikrotik Router Down','⚠️ Hi Ernest Cheyo, your mikrotik router - Kitonga is offline. Please check it out.',0,'2025-09-30 16:10:39','2025-09-30 16:10:39'),(14483,21,NULL,'Mikrotik Router Up','✅ Hi Ernest Cheyo, your mikrotik router - Kitonga is back online.',0,'2025-09-30 16:13:36','2025-09-30 16:13:36'),(14484,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 1 is back online.',0,'2025-09-30 16:51:21','2025-09-30 16:51:21'),(14485,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Ngoni Net 1 is offline. Please check it out.',0,'2025-09-30 16:59:27','2025-09-30 16:59:27'),(14486,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Ngoni Net 1 is back online.',0,'2025-09-30 17:13:22','2025-09-30 17:13:22'),(14487,20,NULL,'Mikrotik Router Down','⚠️ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-30 17:59:30','2025-09-30 17:59:30'),(14488,25,NULL,'Mikrotik Router Up','✅ Hi Songa Musa, your mikrotik router - Ktown is back online.',0,'2025-09-30 18:01:35','2025-09-30 18:01:35'),(14489,20,NULL,'Mikrotik Router Up','✅ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is back online.',0,'2025-09-30 18:03:32','2025-09-30 18:03:32'),(14490,25,NULL,'Mikrotik Router Down','⚠️ Hi Songa Musa, your mikrotik router - Ktown is offline. Please check it out.',0,'2025-09-30 18:13:34','2025-09-30 18:13:34'),(14491,25,NULL,'Mikrotik Router Up','✅ Hi Songa Musa, your mikrotik router - Ktown is back online.',0,'2025-09-30 18:18:32','2025-09-30 18:18:32'),(14492,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',0,'2025-09-30 18:33:28','2025-09-30 18:33:28'),(14493,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',0,'2025-09-30 18:36:27','2025-09-30 18:36:27'),(14494,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Machinga Complex is offline. Please check it out.',0,'2025-09-30 18:51:24','2025-09-30 18:51:24'),(14495,25,NULL,'Mikrotik Router Down','⚠️ Hi Songa Musa, your mikrotik router - Ktown is offline. Please check it out.',0,'2025-09-30 19:16:35','2025-09-30 19:16:35'),(14496,25,NULL,'Mikrotik Router Up','✅ Hi Songa Musa, your mikrotik router - Ktown is back online.',0,'2025-09-30 19:45:33','2025-09-30 19:45:33'),(14497,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Machinga Complex is back online.',0,'2025-09-30 19:48:22','2025-09-30 19:48:22'),(14498,25,NULL,'Mikrotik Router Down','⚠️ Hi Songa Musa, your mikrotik router - Ktown is offline. Please check it out.',0,'2025-09-30 19:48:35','2025-09-30 19:48:35'),(14499,25,NULL,'Mikrotik Router Up','✅ Hi Songa Musa, your mikrotik router - Ktown is back online.',0,'2025-09-30 19:52:34','2025-09-30 19:52:34'),(14500,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',0,'2025-09-30 19:53:28','2025-09-30 19:53:28'),(14501,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',0,'2025-09-30 19:56:28','2025-09-30 19:56:28'),(14502,22,NULL,'Mikrotik Router Down','⚠️ Hi Manyala Agalla, your mikrotik router - Mshua Net is offline. Please check it out.',0,'2025-09-30 19:57:31','2025-09-30 19:57:31'),(14503,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',0,'2025-09-30 20:22:28','2025-09-30 20:22:28'),(14504,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',0,'2025-09-30 20:25:27','2025-09-30 20:25:27'),(14505,16,NULL,'Mikrotik Router Down','⚠️ Hi Emmanuel, your mikrotik router - Street Mesh is offline. Please check it out.',0,'2025-09-30 20:36:28','2025-09-30 20:36:28'),(14506,16,NULL,'Mikrotik Router Up','✅ Hi Emmanuel, your mikrotik router - Street Mesh is back online.',0,'2025-09-30 20:39:26','2025-09-30 20:39:26'),(14507,20,NULL,'Mikrotik Router Down','⚠️ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-09-30 21:10:34','2025-09-30 21:10:34'),(14508,20,NULL,'Mikrotik Router Up','✅ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is back online.',0,'2025-09-30 21:13:29','2025-09-30 21:13:29'),(14509,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Machinga Complex is offline. Please check it out.',0,'2025-09-30 23:43:24','2025-09-30 23:43:24'),(14510,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Machinga Complex is back online.',0,'2025-09-30 23:46:21','2025-09-30 23:46:21'),(14511,20,NULL,'Mikrotik Router Down','⚠️ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-10-01 00:00:31','2025-10-01 00:00:31'),(14512,20,NULL,'Mikrotik Router Up','✅ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is back online.',0,'2025-10-01 00:03:31','2025-10-01 00:03:31'),(14513,20,NULL,'Mikrotik Router Down','⚠️ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-10-01 03:59:31','2025-10-01 03:59:31'),(14514,20,NULL,'Mikrotik Router Up','✅ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is back online.',0,'2025-10-01 04:07:28','2025-10-01 04:07:28'),(14515,25,NULL,'Mikrotik Router Down','⚠️ Hi Songa Musa, your mikrotik router - Ktown is offline. Please check it out.',0,'2025-10-01 04:10:35','2025-10-01 04:10:35'),(14516,25,NULL,'Mikrotik Router Up','✅ Hi Songa Musa, your mikrotik router - Ktown is back online.',0,'2025-10-01 04:13:33','2025-10-01 04:13:33'),(14517,21,NULL,'Mikrotik Router Down','⚠️ Hi Ernest Cheyo, your mikrotik router - Kitonga is offline. Please check it out.',0,'2025-10-01 04:36:31','2025-10-01 04:36:31'),(14518,20,NULL,'Mikrotik Router Down','⚠️ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-10-01 04:52:35','2025-10-01 04:52:35'),(14519,20,NULL,'Mikrotik Router Up','✅ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is back online.',0,'2025-10-01 04:56:33','2025-10-01 04:56:33'),(14520,8,NULL,'Mikrotik Router Down','⚠️ Hi Erick, your mikrotik router - Machinga Complex is offline. Please check it out.',0,'2025-10-01 06:34:31','2025-10-01 06:34:31'),(14521,20,NULL,'Mikrotik Router Down','⚠️ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-10-01 07:03:42','2025-10-01 07:03:42'),(14522,20,NULL,'Mikrotik Router Up','✅ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is back online.',0,'2025-10-01 07:09:39','2025-10-01 07:09:39'),(14523,25,NULL,'Mikrotik Router Down','⚠️ Hi Songa Musa, your mikrotik router - Ktown is offline. Please check it out.',0,'2025-10-01 07:37:49','2025-10-01 07:37:49'),(14524,21,NULL,'Mikrotik Router Up','✅ Hi Ernest Cheyo, your mikrotik router - Kitonga is back online.',0,'2025-10-01 08:16:31','2025-10-01 08:16:31'),(14525,21,NULL,'Mikrotik Router Down','⚠️ Hi Ernest Cheyo, your mikrotik router - Kitonga is offline. Please check it out.',0,'2025-10-01 08:29:36','2025-10-01 08:29:36'),(14526,18,NULL,'Mikrotik Router Down','⚠️ Hi Gilbert mushi, your mikrotik router - G NJARO is offline. Please check it out.',0,'2025-10-01 08:44:33','2025-10-01 08:44:33'),(14527,18,NULL,'Mikrotik Router Up','✅ Hi Gilbert mushi, your mikrotik router - G NJARO is back online.',0,'2025-10-01 08:50:31','2025-10-01 08:50:31'),(14528,21,NULL,'Mikrotik Router Up','✅ Hi Ernest Cheyo, your mikrotik router - Kitonga is back online.',0,'2025-10-01 08:55:31','2025-10-01 08:55:31'),(14529,22,NULL,'Mikrotik Router Up','✅ Hi Manyala Agalla, your mikrotik router - Mshua Net is back online.',0,'2025-10-01 08:56:31','2025-10-01 08:56:31'),(14530,8,NULL,'Mikrotik Router Up','✅ Hi Erick, your mikrotik router - Machinga Complex is back online.',0,'2025-10-01 09:12:22','2025-10-01 09:12:22'),(14531,25,NULL,'Mikrotik Router Up','✅ Hi Songa Musa, your mikrotik router - Ktown is back online.',0,'2025-10-01 09:50:32','2025-10-01 09:50:32'),(14532,20,NULL,'Mikrotik Router Down','⚠️ Hi FiberNet HotSpot, your mikrotik router - Mkiwa is offline. Please check it out.',0,'2025-10-01 10:01:30','2025-10-01 10:01:30'),(14533,25,NULL,'Mikrotik Router Down','⚠️ Hi Songa Musa, your mikrotik router - Ktown is offline. Please check it out.',0,'2025-10-01 10:14:35','2025-10-01 10:14:35');

--
-- 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 AUTO_INCREMENT=18 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=861 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `paid_users` VALUES (129,7,140,'DE:FE:99:B9:7F:F5','749353','4130','255785581266','Greetings, thank you for purchasing [plan] plan worthy 200.00. Please use [username] as the username and 4130 as your password to reconnect yourself. Your subscription expires at [expiry_date].','2025-09-01 10:47:58','2025-09-01 10:47:58'),(174,2,185,'FE:02:BF:6C:60:89','702460','7336','255611299495','Greetings, thank you for purchasing [plan] plan worthy 210.00. Please use [username] as the username and 7336 as your password to reconnect yourself. Your subscription expires at [expiry_date].','2025-09-02 23:31:28','2025-09-02 23:31:28'),(773,2,789,'02:C0:AF:A7:33:40','423957','3052','255761933535','Greetings, thank you for purchasing [plan] plan worthy 500.00. Please use [username] as the username and 3052 as your password to reconnect yourself. Your subscription expires at [expiry_date].','2025-09-28 21:03:05','2025-09-28 21:03:05');

--
-- 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`
--

INSERT INTO `password_reset_tokens` VALUES ('sales@iteam.co.tz','$2y$12$95fJp6sBR9iT/ns4Vx6dlOePkzrQu.v9gW/Yp14MOcnjiYSdEbfLy','2025-09-30 08:09:30');

--
-- 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 ('46vtIIqhDBSrHYfAz1QBCnlxNBaHl0d3NgvN9X2D',NULL,'129.226.93.214','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiS3JSbkJnSzhyV2ZsREk0N0lpVXozVEhtVnpoamtoUG9zR0RibmtWciI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDI6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZS9wcml2YWN5LXBvbGljeSI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1759306602),('7qDsa2idnRXLGdprqZsoxj5YMjcsDQkFLjCaVcDg',NULL,'43.155.188.157','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiOUlqMkFNa3JVZlI3eVJhZUh2MXc2Wll3QkRDcnBIblA2bVQydlQ0VyI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MzY6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZS9hYm91dC11cyI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1759304304),('bio2MK5sPHl4jFIobZmFr4izXJMEdctb2pHsKQoU',NULL,'43.157.67.70','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiRVVHbkh5a3d4TXhrbzJhRllsYVM2dkxmak4wSWJHNG5Zc1hFZDZxMCI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MzY6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZS9mZWF0dXJlcyI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1759306156),('BR8bFOYvIa7e0ilykMSdNP0jJ1DaUz9GHaIEd5lo',NULL,'43.130.67.33','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiVmc2dnFaY2xSMWgyVHNoa2s3angwcDB1b0Q4UDk2Wk1IOFdXRzVJSyI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDI6Imh0dHA6Ly9iaWxsaW5nLmphZW10ZWNobm9sb2dpZXMuY29tL3B1YmxpYyI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1759305798),('cv3qJpMSUPPm5O7YJvcxgefj6z0q9YwpXNDIj7gj',NULL,'162.14.210.15','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiMERxMzVVVVBXZjRjQnFDTDM5NnlFcWQzMm1sUFNBVTdHNWxxVEJyaiI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MzA6Imh0dHA6Ly93d3cuaGVyaXRhZ2Vncm91cC5jby5rZSI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1759308874),('jlEqd1jKlkMOqg7nMQUDJRr2VL0simp6aBhOAo5z',36,'102.86.11.229','Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36','[encoded data, 9292 characters]',1759308785),('mnA8E04aZkg5y8TSwKN8zRLVxLMLayVMl3CUNaeK',NULL,'102.86.11.229','Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoiZUcyTDVPcGVVZjlhTnZpZ24wOGNvR0dZR0VORTNWeVlBcGk2WW5GaSI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NTM6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZS9jb21wYW55LXNtcy11bml0cy1iYWxhbmNlIjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1759308798),('n36iwlE7Kv7Eqyod829Zw8WKIeXWY3YmUvtV1Fhb',NULL,'41.222.88.126','Dalvik/2.1.0 (Linux; U; Android 13; Infinix X6528 Build/TP1A.220624.014)','YTozOntzOjY6Il90b2tlbiI7czo0MDoiVnh5S0lON3JoaHNIVENacVdPNkVDMmhxdjJNeUhBNEtlVlpIdTdwMiI7czozOiJ1cmwiO2E6MTp7czo4OiJpbnRlbmRlZCI7czoyNzoiaHR0cHM6Ly9oZXJpdGFnZWdyb3VwLmNvLmtlIjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1759308833),('nk2cbgeJrNl0U9eLsqQ7ca6CC0miUEZjDXVRfVtf',NULL,'162.120.187.240','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36','YToyOntzOjY6Il90b2tlbiI7czo0MDoiOWkxeUZYeWNYcWs2WlVMY201Z2pVRjhvc1NxcXE5VE1KWTdRcW5qSiI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1759307300),('NlEF27Sz3LRJ7kxAVrgz1FsuweUP7ZCKWVzcOzGU',NULL,'43.157.170.126','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiQjRhRVFsdzBIT0MxVXd3Tnh1Wm5kcUlCek1XV0lrRGpTYXVIZlpaNCI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDE6Imh0dHA6Ly9oZXJpdGFnZWdyb3VwLmNvLmtlL3Bhc3N3b3JkL3Jlc2V0Ijt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1759303644),('RIOBgkxY9O11LqRxVbhHnKChRBvASnkyl0coRNQQ',NULL,'197.186.16.69','Dalvik/2.1.0 (Linux; U; Android 13; Infinix X6528 Build/TP1A.220624.014)','YTozOntzOjY6Il90b2tlbiI7czo0MDoiTnRKcU1FaTdIUmVJdnFPN2ZUWXBTSEZUSDRneUlQeG9Cb0l5ejFoYiI7czozOiJ1cmwiO2E6MTp7czo4OiJpbnRlbmRlZCI7czoyNzoiaHR0cHM6Ly9oZXJpdGFnZWdyb3VwLmNvLmtlIjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1759307762),('SuupVFymr7sGzlSdo0V2cgiBBtOHjeqNScUN14vL',NULL,'41.90.33.185','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36','YTozOntzOjY6Il90b2tlbiI7czo0MDoiRjk0V3ZWVUlCTW8yajdkMlF6RndBUzJiMHFIaDI2bzh1NmZsTmVQNiI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDA6Imh0dHBzOi8vd3d3Lmhlcml0YWdlZ3JvdXAuY28ua2UvYWJvdXQtdXMiO319',1759307243),('SwuprS6AJ5sp1mC3qHCnfP65YxDJqgTS5hSbOG1m',36,'41.210.147.109','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36','YTo2OntzOjY6Il90b2tlbiI7czo0MDoiN2taWkRONFNIUkhERjVpYXFnS2RwdmFxQUwxaVpWRnRRMGxnQW1zVCI7czozOiJ1cmwiO2E6MDp7fXM6OToiX3ByZXZpb3VzIjthOjE6e3M6MzoidXJsIjtzOjMzOiJodHRwczovL2hlcml0YWdlZ3JvdXAuY28ua2UvbG9naW4iO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX1zOjUwOiJsb2dpbl93ZWJfNTliYTM2YWRkYzJiMmY5NDAxNTgwZjAxNGM3ZjU4ZWE0ZTMwOTg5ZCI7aTozNjtzOjQ6ImF1dGgiO2E6MTp7czoyMToicGFzc3dvcmRfY29uZmlybWVkX2F0IjtpOjE3NTkzMDg3NTM7fX0=',1759308753),('tcl4LdCgIOB6ibEtzNWhcqfAZ6CdVTS0wbo6P3cX',36,'41.210.147.109','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0','YTo2OntzOjY6Il90b2tlbiI7czo0MDoiZ0ZhaTNHTG9MREk4VEpkSXNyWWxJQ1hzTzhTMTJQdzBJM3lTRkZzayI7czozOiJ1cmwiO2E6MDp7fXM6OToiX3ByZXZpb3VzIjthOjE6e3M6MzoidXJsIjtzOjMzOiJodHRwczovL2hlcml0YWdlZ3JvdXAuY28ua2UvbG9naW4iO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX1zOjUwOiJsb2dpbl93ZWJfNTliYTM2YWRkYzJiMmY5NDAxNTgwZjAxNGM3ZjU4ZWE0ZTMwOTg5ZCI7aTozNjtzOjQ6ImF1dGgiO2E6MTp7czoyMToicGFzc3dvcmRfY29uZmlybWVkX2F0IjtpOjE3NTkzMDg3MTE7fX0=',1759308712),('VzpYhwIV4S37DkSY4Zr6Dugc8O44lZPLEoVTjn8o',NULL,'43.131.32.36','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoib0JTNjg2bmNMSG56SHVsOHVBVVJBaVI3b3RZYk1OdkF3a3diSmlUeCI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDc6Imh0dHA6Ly9oZXJpdGFnZWdyb3VwLmNvLmtlL3Rlcm1zLWFuZC1jb25kaXRpb25zIjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1759303064),('W6Xr0eTHmxMmuycFblgV6wS2dpOxZ3xuKJ98bVHc',NULL,'41.222.88.126','Dalvik/2.1.0 (Linux; U; Android 13; Infinix X6528 Build/TP1A.220624.014)','YToyOntzOjY6Il90b2tlbiI7czo0MDoiTFFiUHRXZ0pZSk1YcWxqSWFodU5EeEEyM0paSEtMWTRaNkJaMTkxYiI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1759308833),('yEEUxYIRauXhjysEQ56Q6I2kpZ3xyVOGLAQOtBTa',NULL,'43.157.170.13','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiVEpHeTNGR0l1Y2FaMmtXMHhSdTlGTjJNa1lLc3lHaG5hdkNiVjhWMiI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mzg6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZS9jb250YWN0LXVzIjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1759307810),('yKjB2s6EKo6vnqMVM37pWJAtKFi9dLUpzK4ZB5Gr',NULL,'43.130.72.177','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiQ042Um1uSzRBRXZjczNPbGo1am94RlJRYm9NU3l4R1JPWGNuRWJiUyI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mjc6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZSI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1759304883),('zF1wmXiEUd2Z2Mt1aoym5VVKFbuyng0LPUKx2CuI',NULL,'43.153.123.3','Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1','YTozOntzOjY6Il90b2tlbiI7czo0MDoiWEtIVDVkRXlUNFBpcjBmbjBLVGdXb3ZWNkU2SDlXRTN0MUpORjZxUSI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MzY6Imh0dHBzOi8vaGVyaXRhZ2Vncm91cC5jby5rZS9yZWdpc3RlciI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1759307369),('zFT8VDoyz1AW1ZWUZ65WOnzeDbRfkc9UMiWxqtjR',15,'41.222.88.126','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.4','[encoded data, 336724 characters]',1759310557);
