/*M!999999\- enable the sandbox mode */ -- MariaDB dump 10.19 Distrib 10.11.14-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: hotspot_billing -- ------------------------------------------------------ -- Server version 10.11.14-MariaDB-0ubuntu0.24.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `activity_logs` -- DROP TABLE IF EXISTS `activity_logs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `activity_logs` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned DEFAULT NULL, `action` varchar(255) NOT NULL, `description` text DEFAULT NULL, `model_type` varchar(255) DEFAULT NULL, `model_id` bigint(20) unsigned DEFAULT NULL, `ip_address` varchar(255) DEFAULT NULL, `user_agent` text DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `activity_logs_user_id_foreign` (`user_id`), CONSTRAINT `activity_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `activity_logs` -- LOCK TABLES `activity_logs` WRITE; /*!40000 ALTER TABLE `activity_logs` DISABLE KEYS */; INSERT INTO `activity_logs` VALUES (1,NULL,'manual_test','Manual activity log test',NULL,NULL,'127.0.0.1','Tinker Test','2026-07-04 15:45:22','2026-07-04 15:45:22'); /*!40000 ALTER TABLE `activity_logs` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `app_settings` -- DROP TABLE IF EXISTS `app_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `app_settings` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `key` varchar(255) NOT NULL, `value` text DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `app_settings_key_unique` (`key`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `app_settings` -- LOCK TABLES `app_settings` WRITE; /*!40000 ALTER TABLE `app_settings` DISABLE KEYS */; INSERT INTO `app_settings` VALUES (1,'business_name','WISL','2026-07-03 12:17:11','2026-07-03 12:17:11'), (2,'portal_title','Waveman Integrated Solutions Limited ISP','2026-07-03 12:17:11','2026-07-03 12:21:52'), (3,'whatsapp_number','08136963037','2026-07-03 12:17:11','2026-07-04 16:05:54'), (4,'support_email','Suport@wisl.ng','2026-07-03 12:17:11','2026-07-03 12:22:09'), (5,'business_address',NULL,'2026-07-03 12:17:11','2026-07-03 12:17:11'); /*!40000 ALTER TABLE `app_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cache` -- DROP TABLE IF EXISTS `cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cache` ( `key` varchar(255) NOT NULL, `value` mediumtext NOT NULL, `expiration` bigint(20) NOT NULL, PRIMARY KEY (`key`), KEY `cache_expiration_index` (`expiration`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cache` -- LOCK TABLES `cache` WRITE; /*!40000 ALTER TABLE `cache` DISABLE KEYS */; /*!40000 ALTER TABLE `cache` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cache_locks` -- DROP TABLE IF EXISTS `cache_locks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `cache_locks` ( `key` varchar(255) NOT NULL, `owner` varchar(255) NOT NULL, `expiration` bigint(20) NOT NULL, PRIMARY KEY (`key`), KEY `cache_locks_expiration_index` (`expiration`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cache_locks` -- LOCK TABLES `cache_locks` WRITE; /*!40000 ALTER TABLE `cache_locks` DISABLE KEYS */; /*!40000 ALTER TABLE `cache_locks` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `customers` -- DROP TABLE IF EXISTS `customers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `customers` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `full_name` varchar(255) NOT NULL, `phone` varchar(20) NOT NULL, `email` varchar(255) DEFAULT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `router_id` bigint(20) unsigned DEFAULT NULL, `plan_id` bigint(20) unsigned DEFAULT NULL, `status` enum('active','expired','suspended') NOT NULL DEFAULT 'active', `activated_at` timestamp NULL DEFAULT NULL, `expires_at` timestamp NULL DEFAULT NULL, `mac_address` varchar(255) DEFAULT NULL, `ip_address` varchar(255) DEFAULT NULL, `mikrotik_created` tinyint(1) NOT NULL DEFAULT 0, `mikrotik_created_at` timestamp NULL DEFAULT NULL, `mikrotik_error` text DEFAULT NULL, `remember_token` varchar(100) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `customers_phone_unique` (`phone`), UNIQUE KEY `customers_username_unique` (`username`), KEY `customers_router_id_foreign` (`router_id`), KEY `customers_plan_id_foreign` (`plan_id`), CONSTRAINT `customers_plan_id_foreign` FOREIGN KEY (`plan_id`) REFERENCES `plans` (`id`) ON DELETE SET NULL, CONSTRAINT `customers_router_id_foreign` FOREIGN KEY (`router_id`) REFERENCES `routers` (`id`) ON DELETE SET NULL ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customers` -- LOCK TABLES `customers` WRITE; /*!40000 ALTER TABLE `customers` DISABLE KEYS */; INSERT INTO `customers` VALUES (1,'Chibuike Daniel','+2348136963037','waveman35@yahoo.com','waveman','111111',NULL,1,'active',NULL,NULL,'Plot 15 pentagon estate',NULL,0,NULL,NULL,NULL,'2026-07-02 21:52:52','2026-07-02 21:52:52'), (2,'Waveman','0938383888','wavemandanieo@gmail.com','user85937','564251',NULL,1,'expired','2026-07-02 23:30:51','2026-07-03 23:30:51',NULL,NULL,0,NULL,'Customer expired, but no router assigned.',NULL,'2026-07-02 23:29:39','2026-07-03 23:31:01'), (4,'Chilo','09393888','waueh@yahoo.com','user67732','948224',NULL,1,'expired',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,'2026-07-03 00:16:32','2026-07-03 00:16:32'), (6,'Voucher Customer','VCH-1',NULL,'v693258','153948',NULL,1,'expired','2026-07-03 01:38:50','2026-07-04 01:38:50',NULL,NULL,0,NULL,'Customer expired, but no router assigned.',NULL,'2026-07-03 01:38:50','2026-07-04 01:39:01'), (7,'Waveman','08136963037','wzfccc@gmail.com','user26998','999193',NULL,1,'expired',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,'2026-07-05 00:27:30','2026-07-05 00:27:30'); /*!40000 ALTER TABLE `customers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `failed_jobs` -- DROP TABLE IF EXISTS `failed_jobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `failed_jobs` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `uuid` varchar(255) NOT NULL, `connection` varchar(255) NOT NULL, `queue` varchar(255) NOT NULL, `payload` longtext NOT NULL, `exception` longtext NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`), KEY `failed_jobs_connection_queue_failed_at_index` (`connection`,`queue`,`failed_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `failed_jobs` -- LOCK TABLES `failed_jobs` WRITE; /*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */; /*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `job_batches` -- DROP TABLE IF EXISTS `job_batches`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `job_batches` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `total_jobs` int(11) NOT NULL, `pending_jobs` int(11) NOT NULL, `failed_jobs` int(11) NOT NULL, `failed_job_ids` longtext NOT NULL, `options` mediumtext DEFAULT NULL, `cancelled_at` int(11) DEFAULT NULL, `created_at` int(11) NOT NULL, `finished_at` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `job_batches` -- LOCK TABLES `job_batches` WRITE; /*!40000 ALTER TABLE `job_batches` DISABLE KEYS */; /*!40000 ALTER TABLE `job_batches` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `jobs` -- DROP TABLE IF EXISTS `jobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `jobs` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `queue` varchar(255) NOT NULL, `payload` longtext NOT NULL, `attempts` smallint(5) unsigned NOT NULL, `reserved_at` int(10) unsigned DEFAULT NULL, `available_at` int(10) unsigned NOT NULL, `created_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `jobs_queue_index` (`queue`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `jobs` -- LOCK TABLES `jobs` WRITE; /*!40000 ALTER TABLE `jobs` DISABLE KEYS */; /*!40000 ALTER TABLE `jobs` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `migrations` -- DROP TABLE IF EXISTS `migrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(255) NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `migrations` -- LOCK TABLES `migrations` WRITE; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; 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,'2026_07_02_200100_create_routers_table',1), (5,'2026_07_02_200101_create_plans_table',1), (6,'2026_07_02_200102_create_customers_table',1), (7,'2026_07_02_200103_create_vouchers_table',1), (8,'2026_07_02_200104_create_payments_table',1), (9,'2026_07_03_002611_add_mikrotik_status_to_customers_table',2), (10,'YOUR_NEW_FILE_add_mikrotik_status_to_customers_table',2), (11,'2026_07_03_120855_create_app_settings_table',3), (12,'2026_07_03_130619_create_activity_logs_table',4); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `password_reset_tokens` -- DROP TABLE IF EXISTS `password_reset_tokens`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `password_reset_tokens` ( `email` varchar(255) NOT NULL, `token` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `password_reset_tokens` -- LOCK TABLES `password_reset_tokens` WRITE; /*!40000 ALTER TABLE `password_reset_tokens` DISABLE KEYS */; /*!40000 ALTER TABLE `password_reset_tokens` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `payments` -- DROP TABLE IF EXISTS `payments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `payments` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `customer_id` bigint(20) unsigned DEFAULT NULL, `plan_id` bigint(20) unsigned DEFAULT NULL, `amount` decimal(10,2) NOT NULL, `payment_reference` varchar(255) NOT NULL, `gateway_reference` varchar(255) DEFAULT NULL, `gateway` enum('paystack','flutterwave','monnify','cash','bank_transfer') NOT NULL DEFAULT 'paystack', `status` enum('pending','successful','failed','cancelled') NOT NULL DEFAULT 'pending', `gateway_response` text DEFAULT NULL, `paid_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `payments_payment_reference_unique` (`payment_reference`), KEY `payments_customer_id_foreign` (`customer_id`), KEY `payments_plan_id_foreign` (`plan_id`), CONSTRAINT `payments_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL, CONSTRAINT `payments_plan_id_foreign` FOREIGN KEY (`plan_id`) REFERENCES `plans` (`id`) ON DELETE SET NULL ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `payments` -- LOCK TABLES `payments` WRITE; /*!40000 ALTER TABLE `payments` DISABLE KEYS */; INSERT INTO `payments` VALUES (1,1,1,300.00,'PAY-J9XSLW52E2TY','ok','paystack','successful',NULL,'2026-07-02 01:55:00','2026-07-02 22:56:00','2026-07-02 22:56:00'), (2,2,1,300.00,'PAY-ZGJF4UZK49S8',NULL,'cash','successful',NULL,'2026-07-02 23:30:51','2026-07-02 23:29:39','2026-07-02 23:30:51'), (3,NULL,1,300.00,'PAY-YOV0SEC2VXUH',NULL,'cash','pending',NULL,NULL,'2026-07-02 23:58:03','2026-07-02 23:58:03'), (4,4,1,300.00,'PAY-S4A5XZN3YIJH',NULL,'paystack','failed','{\"status\":false,\"message\":\"Invalid key\",\"meta\":{\"nextStep\":\"Ensure that you provide the correct authorization key for the request\"},\"type\":\"validation_error\",\"code\":\"invalid_Key\"}',NULL,'2026-07-03 00:16:32','2026-07-03 00:16:32'), (5,NULL,1,300.00,'PAY-LYOXN8QVGKCB',NULL,'paystack','pending',NULL,NULL,'2026-07-03 00:21:39','2026-07-03 00:21:39'), (6,6,1,300.00,'VOUCHER-HMKVBCGZW4','WIFI-PAONM3HJ','cash','successful',NULL,'2026-07-03 01:38:50','2026-07-03 01:38:50','2026-07-03 01:38:50'), (7,7,1,300.00,'PAY-03D5EEPHBUGF',NULL,'paystack','pending',NULL,NULL,'2026-07-05 00:27:30','2026-07-05 00:27:30'); /*!40000 ALTER TABLE `payments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plans` -- DROP TABLE IF EXISTS `plans`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `plans` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` text DEFAULT NULL, `price` decimal(10,2) NOT NULL, `plan_type` enum('voucher','hotspot','pppoe','static') NOT NULL DEFAULT 'hotspot', `validity_unit` enum('hours','days','weeks','months') NOT NULL DEFAULT 'days', `validity_value` int(11) NOT NULL, `data_limit_mb` int(11) DEFAULT NULL, `download_speed` varchar(255) DEFAULT NULL, `upload_speed` varchar(255) DEFAULT NULL, `mikrotik_profile` varchar(255) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plans` -- LOCK TABLES `plans` WRITE; /*!40000 ALTER TABLE `plans` DISABLE KEYS */; INSERT INTO `plans` VALUES (1,'1GB','Daily',300.00,'voucher','days',1,1000,'2m','2m','1G',1,'2026-07-02 21:41:37','2026-07-02 21:41:37'), (2,'5GB','Daily',600.00,'hotspot','days',2,30000,NULL,'2m',NULL,1,'2026-07-03 01:16:46','2026-07-03 01:16:46'); /*!40000 ALTER TABLE `plans` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `routers` -- DROP TABLE IF EXISTS `routers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `routers` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `ip_address` varchar(255) NOT NULL, `api_port` int(11) NOT NULL DEFAULT 8728, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `location` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `api_ssl` tinyint(1) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `last_seen` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `routers` -- LOCK TABLES `routers` WRITE; /*!40000 ALTER TABLE `routers` DISABLE KEYS */; /*!40000 ALTER TABLE `routers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sessions` -- DROP TABLE IF EXISTS `sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `sessions` ( `id` varchar(255) NOT NULL, `user_id` bigint(20) unsigned DEFAULT NULL, `ip_address` varchar(45) DEFAULT NULL, `user_agent` text DEFAULT NULL, `payload` longtext NOT NULL, `last_activity` int(11) 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; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sessions` -- LOCK TABLES `sessions` WRITE; /*!40000 ALTER TABLE `sessions` DISABLE KEYS */; /*!40000 ALTER TABLE `sessions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) NOT NULL, `remember_token` varchar(100) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES (1,'WaveISP Admin','wavemandaniel@gmail.com',NULL,'$2y$12$bmZcq3grNvThURHhLPPrje3WsxAe1pUPB.xeLQuUcipR6LDrLDn9i','M9BC9YgvOtL7ppawIsSVacU1Gbx3mxBDED4ZHGfQJRsdmU6fRjDDYNgaIH86','2026-07-03 01:48:20','2026-07-03 01:48:20'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `vouchers` -- DROP TABLE IF EXISTS `vouchers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vouchers` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(255) NOT NULL, `plan_id` bigint(20) unsigned NOT NULL, `router_id` bigint(20) unsigned DEFAULT NULL, `customer_id` bigint(20) unsigned DEFAULT NULL, `status` enum('unused','used','expired','cancelled') NOT NULL DEFAULT 'unused', `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 `vouchers_code_unique` (`code`), KEY `vouchers_plan_id_foreign` (`plan_id`), KEY `vouchers_router_id_foreign` (`router_id`), KEY `vouchers_customer_id_foreign` (`customer_id`), CONSTRAINT `vouchers_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL, CONSTRAINT `vouchers_plan_id_foreign` FOREIGN KEY (`plan_id`) REFERENCES `plans` (`id`) ON DELETE CASCADE, CONSTRAINT `vouchers_router_id_foreign` FOREIGN KEY (`router_id`) REFERENCES `routers` (`id`) ON DELETE SET NULL ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `vouchers` -- LOCK TABLES `vouchers` WRITE; /*!40000 ALTER TABLE `vouchers` DISABLE KEYS */; INSERT INTO `vouchers` VALUES (1,'WIFI-PAONM3HJ',1,NULL,6,'used','2026-07-03 01:38:50','2026-07-03 04:33:00','2026-07-02 22:34:07','2026-07-03 01:38:50'), (6,'WAVE-9ZKSZR5D',1,NULL,NULL,'unused',NULL,'2026-07-02 00:34:00','2026-07-02 22:34:52','2026-07-02 22:34:52'), (7,'WAVE-QLJSLYX6',1,NULL,NULL,'unused',NULL,'2026-07-02 00:34:00','2026-07-02 22:34:52','2026-07-02 22:34:52'), (9,'WAVE-4TQSCZYD',1,NULL,NULL,'unused',NULL,'2026-07-02 00:34:00','2026-07-02 22:34:52','2026-07-02 22:34:52'), (10,'WAVE-NGLGPHXX',1,NULL,NULL,'unused',NULL,'2026-07-02 00:34:00','2026-07-02 22:34:52','2026-07-02 22:34:52'), (11,'WAVE-V3TDEQVG',1,NULL,NULL,'unused',NULL,'2026-07-02 00:34:00','2026-07-02 22:34:52','2026-07-02 22:34:52'); /*!40000 ALTER TABLE `vouchers` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2026-07-05 5:14:22