--
-- Host: localhost    Database: microfinance
-- ------------------------------------------------------

 SET NAMES utf8mb4 ;

--
-- Table structure for table `account`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `account` (
  `account_id` int(11) NOT NULL AUTO_INCREMENT,
  `client_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `accounttype_id` int(11) DEFAULT NULL,
  `interest_rate` decimal(5,2) DEFAULT NULL,
  `balance` decimal(15,2) NOT NULL,
  `overdraft_limit` decimal(15,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_by` int(11) DEFAULT NULL,
  `status` enum('Active','Inactive','Closed') NOT NULL,
  `date_closed` date DEFAULT NULL,
  `closed_by` int(11) DEFAULT NULL,
  `account_number` varchar(20) DEFAULT NULL,
  `deposit_threshold` decimal(12,2) DEFAULT NULL,
  `withdraw_threshold` decimal(12,2) DEFAULT NULL,
  PRIMARY KEY (`account_id`),
  UNIQUE KEY `account_number` (`account_number`),
  KEY `client_id` (`client_id`),
  KEY `branch_id` (`branch_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`),
  KEY `closed_by` (`closed_by`),
  CONSTRAINT `account_ibfk_1` FOREIGN KEY (`client_id`) REFERENCES `client` (`client_id`),
  CONSTRAINT `account_ibfk_2` FOREIGN KEY (`branch_id`) REFERENCES `branch` (`branch_id`),
  CONSTRAINT `account_ibfk_3` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `account_ibfk_4` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `account_ibfk_5` FOREIGN KEY (`closed_by`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `account`
--

INSERT INTO `account` VALUES (1,1,1,3,NULL,19300.00,NULL,NULL,1,'2025-05-15 18:57:36',1,'Active',NULL,NULL,'Genaral Account',NULL,NULL),(2,3,2,3,NULL,800.00,NULL,NULL,1,'2025-04-29 15:06:55',1,'Active',NULL,NULL,'90565446',20000000.00,5000000.00),(3,4,1,3,NULL,2176300.00,NULL,NULL,1,'2025-05-15 18:59:30',1,'Active',NULL,NULL,'329998937498',1000000.00,1000.00),(4,1,1,3,NULL,100.00,NULL,NULL,1,'2025-05-22 08:00:57',1,'Active',NULL,NULL,'Transfer Holding',NULL,NULL),(5,1,1,3,NULL,0.00,NULL,NULL,1,'2025-05-22 15:12:14',1,'Active',NULL,NULL,'Operations',NULL,NULL),(6,1,1,3,NULL,0.00,NULL,NULL,1,'2025-05-22 15:12:25',1,'Active',NULL,NULL,'Loans',NULL,NULL),(7,1,1,3,NULL,0.00,NULL,NULL,1,'2025-05-22 15:12:35',1,'Active',NULL,NULL,'Social Good',NULL,NULL),(8,1,1,3,NULL,0.00,NULL,NULL,1,'2025-05-22 15:12:45',1,'Active',NULL,NULL,'Projects',NULL,NULL),(9,1,1,3,NULL,0.00,NULL,NULL,1,NULL,1,'Active',NULL,NULL,'Commission',NULL,NULL),(10,1,1,3,NULL,0.00,NULL,NULL,1,NULL,1,'Active',NULL,NULL,'Share Holders',NULL,NULL);

--
-- Table structure for table `accounttype`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `accounttype` (
  `accounttype_id` int(11) NOT NULL AUTO_INCREMENT,
  `account_category` varchar(50) NOT NULL,
  `currency` varchar(10) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(20) DEFAULT 'Active',
  `deposit_threshold` decimal(12,2) DEFAULT NULL,
  `withdraw_threshold` decimal(12,2) DEFAULT NULL,
  `minimum_opening_amount` decimal(12,2) DEFAULT '0.00',
  `minimum_account_balance` decimal(12,2) DEFAULT '0.00',
  `transfer_threshold` decimal(12,2) DEFAULT NULL,
  PRIMARY KEY (`accounttype_id`),
  UNIQUE KEY `account_category` (`account_category`,`currency`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`),
  CONSTRAINT `accounttype_ibfk_1` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `accounttype_ibfk_2` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `accounttype`
--

INSERT INTO `accounttype` VALUES (3,'Savings','UGX',1,1,NULL,'2025-05-21 13:24:27','Active',100000.00,70000.00,0.00,0.00,10000.00),(4,'Savings','USD',1,1,'2025-04-29 17:03:28','2025-05-21 13:24:19','Active',9000.00,500.00,0.00,0.00,100.00),(5,'Equity','UGX',1,1,'2025-05-22 16:58:08','2025-05-22 16:58:08','Active',NULL,NULL,NULL,NULL,NULL),(6,'Fixed','UGX',1,1,'2025-05-22 20:38:19','2025-05-22 20:38:19','Active',NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `administrator_historicalaccount`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalaccount` (
  `accounttype_id` int(11) DEFAULT NULL,
  `interest_rate` decimal(5,2) DEFAULT NULL,
  `balance` decimal(15,2) NOT NULL,
  `overdraft_limit` decimal(15,2) DEFAULT NULL,
  `created_at` datetime(6) DEFAULT NULL,
  `updated_at` datetime(6) DEFAULT NULL,
  `status` varchar(8) NOT NULL,
  `date_closed` date DEFAULT NULL,
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `branch_id` bigint(20) DEFAULT NULL,
  `client_id` int(11) DEFAULT NULL,
  `closed_by` bigint(20) DEFAULT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `updated_by` bigint(20) DEFAULT NULL,
  `account_number` varchar(50) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `deposit_threshold` decimal(12,2) DEFAULT NULL,
  `withdraw_threshold` decimal(12,2) DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `administrator_histor_history_user_id_4403607a_fk_auth_user` (`history_user_id`),
  KEY `administrator_historicalaccount_history_date_4a5efbb7` (`history_date`),
  KEY `administrator_historicalaccount_branch_id_5e89399e` (`branch_id`),
  KEY `administrator_historicalaccount_client_id_093493e3` (`client_id`),
  KEY `administrator_historicalaccount_closed_by_b3158e5d` (`closed_by`),
  KEY `administrator_historicalaccount_created_by_37105cf0` (`created_by`),
  KEY `administrator_historicalaccount_updated_by_b00eaf52` (`updated_by`),
  CONSTRAINT `administrator_histor_history_user_id_4403607a_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=176 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicalaccount`
--

INSERT INTO `administrator_historicalaccount` VALUES (1,NULL,500000.00,NULL,NULL,NULL,'Active',NULL,1,'2025-04-28 17:12:05.607803',NULL,'+',1,2,NULL,1,1,1,'329998937498',NULL,NULL,NULL),(1,NULL,500000.00,NULL,NULL,NULL,'Active',NULL,2,'2025-04-28 17:12:16.615000',NULL,'~',1,2,NULL,1,1,1,'329998937498',NULL,NULL,NULL),(1,NULL,570000.00,NULL,NULL,NULL,'Active',NULL,3,'2025-04-28 17:12:23.906317',NULL,'~',1,2,NULL,1,1,1,'329998937498',NULL,NULL,NULL),(1,NULL,570000.00,NULL,NULL,NULL,'Active',NULL,4,'2025-04-28 17:21:46.164751',NULL,'~',1,2,NULL,1,1,1,'329998937498',NULL,NULL,NULL),(1,NULL,570000.00,NULL,NULL,NULL,'Active',NULL,5,'2025-04-28 17:22:12.553091',NULL,'~',1,2,NULL,1,1,1,'329998937498',NULL,NULL,NULL),(1,NULL,570000.00,NULL,NULL,NULL,'Active',NULL,6,'2025-04-28 17:35:14.438733',NULL,'~',1,2,NULL,1,1,1,'329998937498',NULL,NULL,NULL),(1,NULL,570000.00,NULL,NULL,NULL,'Active',NULL,7,'2025-04-28 17:57:35.610396',NULL,'~',1,4,NULL,1,1,1,'329998937498',NULL,NULL,NULL),(1,NULL,570000.00,NULL,NULL,NULL,'Active',NULL,8,'2025-04-28 18:10:02.127946',NULL,'~',1,4,NULL,1,1,1,'329998937498',NULL,NULL,NULL),(1,NULL,9077.00,NULL,NULL,NULL,'Active',NULL,9,'2025-04-28 18:10:33.471688',NULL,'+',2,4,NULL,1,1,1,'90565446',NULL,NULL,NULL),(3,NULL,9077.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,10,'2025-04-29 19:01:38.255973',NULL,'~',2,4,NULL,1,1,1,'90565446',2,NULL,NULL),(3,NULL,9077.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,11,'2025-05-13 20:29:57.811212',NULL,'~',2,4,NULL,1,1,1,'90565446',2,NULL,NULL),(3,NULL,570000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,12,'2025-05-13 20:30:09.779133',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,NULL,NULL),(3,NULL,550000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,13,'2025-05-13 20:30:28.626614',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,NULL,NULL),(3,NULL,9077.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,14,'2025-05-14 10:02:21.894852',NULL,'~',2,4,NULL,1,1,1,'90565446',2,1000.00,500.00),(3,NULL,550000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,15,'2025-05-14 10:02:59.428759',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,550000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,16,'2025-05-14 10:52:04.962248',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,550000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,17,'2025-05-14 10:52:22.829973',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,553000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,18,'2025-05-14 10:52:31.926221',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,553000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,19,'2025-05-14 10:52:44.950001',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,552000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,20,'2025-05-14 10:52:54.117548',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,561000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,21,'2025-05-14 10:54:01.146513',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,573000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,22,'2025-05-14 10:54:27.993871',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,573000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,23,'2025-05-14 10:54:53.259235',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,573000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,24,'2025-05-14 10:55:19.141980',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,70573000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,25,'2025-05-14 11:01:20.006231',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,70573000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,26,'2025-05-14 11:59:07.038522',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,573000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,27,'2025-05-14 18:35:30.845468',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,573100.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,28,'2025-05-14 19:19:48.946339',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,900.00,300.00),(3,NULL,573200.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,29,'2025-05-14 19:22:12.203911',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,900.00,300.00),(3,NULL,573300.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,30,'2025-05-14 19:24:54.187101',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,900.00,300.00),(3,NULL,653300.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,31,'2025-05-14 19:25:31.853563',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,900.00,300.00),(3,NULL,662300.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,32,'2025-05-14 19:28:09.322893',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,900.00,300.00),(3,NULL,662400.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,33,'2025-05-14 19:38:11.865348',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,900.00,300.00),(3,NULL,662900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,34,'2025-05-14 19:39:15.858827',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,900.00,300.00),(3,NULL,663900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,35,'2025-05-14 19:39:34.593326',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,663900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,36,'2025-05-14 19:39:34.600498',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,719355.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,37,'2025-05-14 19:41:10.532378',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,800663900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,38,'2025-05-14 19:41:10.546162',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,800664900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,39,'2025-05-14 19:42:47.984948',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,800664900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,40,'2025-05-14 19:42:47.991360',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,800673900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,41,'2025-05-14 19:45:07.004214',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,900.00,300.00),(3,NULL,800674800.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,42,'2025-05-14 19:54:32.681680',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,900.00,300.00),(3,NULL,800673900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,43,'2025-05-14 19:54:50.439352',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,1000000.00,300.00),(3,NULL,801573899.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,44,'2025-05-14 19:55:01.309811',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,1000000.00,300.00),(3,NULL,9077.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,45,'2025-05-14 19:58:02.405641',NULL,'~',2,3,NULL,1,1,1,'90565446',2,1000.00,500.00),(3,NULL,801578444.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,46,'2025-05-14 20:00:54.920759',NULL,'~',1,4,NULL,1,4,1,'329998937498',1,1000000.00,300.00),(3,NULL,801578444.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,47,'2025-05-15 11:49:35.597049',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,1000000.00,300.00),(3,NULL,801577544.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,48,'2025-05-15 12:03:00.875149',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,1000000.00,300.00),(3,NULL,801577344.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,49,'2025-05-15 12:21:47.246709',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,1000000.00,300.00),(3,NULL,1.00,NULL,NULL,NULL,'Active',NULL,50,'2025-05-15 12:38:08.366993',NULL,'+',1,5,NULL,1,1,1,'10001',3,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,51,'2025-05-15 12:38:18.165191',NULL,'~',1,5,NULL,1,1,1,'10001',3,NULL,NULL),(3,NULL,801577244.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,52,'2025-05-15 16:55:23.646687',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,1000000.00,300.00),(3,NULL,801577144.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,53,'2025-05-15 18:31:35.992288',NULL,'~',1,4,NULL,1,1,1,'329998937498',1,1000000.00,300.00),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,54,'2025-05-15 18:44:24.971201',NULL,'~',1,3,NULL,1,1,1,'10001',3,NULL,NULL),(3,NULL,801577144.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,55,'2025-05-15 18:53:41.252860',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,801577144.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,56,'2025-05-15 18:53:48.998854',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,801577144.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,57,'2025-05-15 18:53:53.468505',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802477143.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,58,'2025-05-15 18:53:58.510195',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802477143.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,59,'2025-05-15 18:54:05.047238',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802477143.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,60,'2025-05-15 18:54:09.895121',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802477143.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,61,'2025-05-15 18:54:14.688688',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802477143.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,62,'2025-05-15 18:54:18.745854',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802477143.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,63,'2025-05-15 18:54:23.224350',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802477143.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,64,'2025-05-15 18:54:27.948535',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802482698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,65,'2025-05-15 18:54:32.814248',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802482698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,66,'2025-05-15 18:54:38.549185',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,67,'2025-05-15 18:54:44.398359',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,802491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,68,'2025-05-15 18:54:51.150144',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,69,'2025-05-15 18:54:56.719376',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,70,'2025-05-15 18:55:01.686717',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,71,'2025-05-15 18:55:06.844936',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,72,'2025-05-15 18:55:11.629193',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,73,'2025-05-15 18:55:17.676992',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,74,'2025-05-15 18:55:22.917188',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,75,'2025-05-15 18:55:28.616018',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,76,'2025-05-15 18:55:34.437244',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,77,'2025-05-15 18:55:42.947648',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,78,'2025-05-15 18:55:47.839237',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,79,'2025-05-15 18:55:53.122510',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,80,'2025-05-15 18:55:58.755487',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:50:01.000000','Active',NULL,81,'2025-05-15 18:56:04.937224',NULL,'~',1,4,NULL,1,1,1,'329998937498',11,1000000.00,300.00),(3,NULL,2491698.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,82,'2025-05-15 19:00:29.272379',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,300.00),(3,NULL,2491598.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,83,'2025-05-15 19:19:32.086605',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,300.00),(3,NULL,2491398.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,84,'2025-05-15 21:14:30.688409',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,300.00),(3,NULL,2491398.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,85,'2025-05-15 21:19:48.376829',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,2491000.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,100,'2025-05-15 21:39:45.467473',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,1000.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,106,'2025-05-15 21:59:00.406103',NULL,'~',1,3,NULL,1,1,1,'10001',1,NULL,NULL),(3,NULL,2489900.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,107,'2025-05-15 21:59:00.417298',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,2000.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,108,'2025-05-15 22:00:28.714460',NULL,'~',1,3,NULL,1,1,1,'10001',1,NULL,NULL),(3,NULL,2488000.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,109,'2025-05-15 22:00:28.725014',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,2000.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,110,'2025-05-16 09:17:01.765554',NULL,'~',1,1,NULL,1,1,1,'10001',1,NULL,NULL),(3,NULL,2000.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,111,'2025-05-16 09:17:53.648506',NULL,'~',1,1,NULL,1,1,1,'LOMS Genaral Account',1,NULL,NULL),(3,NULL,9077.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,112,'2025-05-16 10:43:56.959319',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,9077.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,113,'2025-05-16 10:45:24.830517',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,500.00),(3,NULL,9077.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,114,'2025-05-16 10:45:39.883042',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,2336100.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,115,'2025-05-16 11:03:47.515916',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,2184200.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,116,'2025-05-16 11:03:47.525070',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,3900.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,117,'2025-05-16 11:03:47.530290',NULL,'~',1,1,NULL,1,1,1,'LOMS Genaral Account',1,NULL,NULL),(3,NULL,8000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,118,'2025-05-21 17:29:40.383175',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,4900.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,119,'2025-05-21 17:29:40.393858',NULL,'~',1,1,NULL,1,1,1,'LOMS Genaral Account',1,NULL,NULL),(3,NULL,8000.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,120,'2025-05-21 17:29:40.408325',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,6900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,124,'2025-05-21 17:46:05.323010',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,5900.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,125,'2025-05-21 17:46:05.327617',NULL,'~',1,1,NULL,1,1,1,'LOMS Genaral Account',1,NULL,NULL),(3,NULL,6900.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,126,'2025-05-21 17:46:05.338515',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,2184300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,127,'2025-05-21 17:46:05.343227',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,128,'2025-05-22 07:59:51.384389',NULL,'+',1,1,NULL,1,1,1,'Transfer Holding',12,NULL,NULL),(3,NULL,0.00,NULL,NULL,'2025-05-22 11:00:57.000000','Active',NULL,129,'2025-05-22 08:01:24.071375',NULL,'~',1,1,NULL,1,1,1,'Transfer Holding',4,NULL,NULL),(3,NULL,4800.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,144,'2025-05-22 09:25:17.916327',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,7900.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,145,'2025-05-22 09:25:17.921301',NULL,'~',1,1,NULL,1,1,1,'LOMS Genaral Account',1,NULL,NULL),(3,NULL,4800.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,146,'2025-05-22 09:25:17.931474',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,100.00,NULL,NULL,'2025-05-22 11:00:57.000000','Active',NULL,147,'2025-05-22 09:25:17.937732',NULL,'~',1,1,NULL,1,1,1,'Transfer Holding',4,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,148,'2025-05-22 15:08:55.917834',NULL,'+',1,1,NULL,1,1,1,'Operations',13,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,149,'2025-05-22 15:09:50.620897',NULL,'+',1,1,NULL,1,1,1,'Loans',14,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,150,'2025-05-22 15:10:12.630707',NULL,'+',1,1,NULL,1,1,1,'Social Good',15,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,151,'2025-05-22 15:10:58.456783',NULL,'+',1,1,NULL,1,1,1,'Projects',16,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,152,'2025-05-22 15:14:13.523152',NULL,'+',1,1,NULL,1,1,1,'Commission',9,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,153,'2025-05-22 15:14:47.949970',NULL,'~',1,1,NULL,1,1,1,'Agent Commission',9,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,154,'2025-05-22 15:25:30.421934',NULL,'~',1,1,NULL,1,1,1,'Commission',9,NULL,NULL),(3,NULL,7900.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,155,'2025-05-22 15:25:45.752038',NULL,'~',1,1,NULL,1,1,1,'Genaral Account',1,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,156,'2025-05-22 16:13:28.711085',NULL,'+',1,1,NULL,1,1,1,'share holders',10,NULL,NULL),(3,NULL,0.00,NULL,NULL,NULL,'Active',NULL,157,'2025-05-22 16:33:35.932077',NULL,'~',1,1,NULL,1,1,1,'Share Holders',10,NULL,NULL),(3,NULL,2800.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,158,'2025-05-22 17:25:59.331702',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,9800.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,159,'2025-05-22 17:25:59.336379',NULL,'~',1,1,NULL,1,1,1,'Genaral Account',1,NULL,NULL),(3,NULL,2800.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,160,'2025-05-22 17:25:59.348796',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,2182300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,161,'2025-05-22 17:33:32.252090',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,11700.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,162,'2025-05-22 17:33:32.256800',NULL,'~',1,1,NULL,1,1,1,'Genaral Account',1,NULL,NULL),(3,NULL,2182300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,163,'2025-05-22 17:33:32.267924',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,2180300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,164,'2025-05-22 17:40:18.387638',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,13600.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,165,'2025-05-22 17:40:18.392136',NULL,'~',1,1,NULL,1,1,1,'Genaral Account',1,NULL,NULL),(3,NULL,2180300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,166,'2025-05-22 17:40:18.403706',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,2178300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,167,'2025-05-22 17:46:14.380221',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,15500.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,168,'2025-05-22 17:46:14.384569',NULL,'~',1,1,NULL,1,1,1,'Genaral Account',1,NULL,NULL),(3,NULL,2178300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,169,'2025-05-22 17:46:14.395839',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,2176300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,170,'2025-05-22 17:47:15.772800',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,17400.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,171,'2025-05-22 17:47:15.777109',NULL,'~',1,1,NULL,1,1,1,'Genaral Account',1,NULL,NULL),(3,NULL,2176300.00,NULL,NULL,'2025-05-15 21:59:30.000000','Active',NULL,172,'2025-05-22 17:47:15.788194',NULL,'~',1,4,NULL,1,1,1,'329998937498',3,1000000.00,1000.00),(3,NULL,800.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,173,'2025-05-22 17:49:43.746903',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00),(3,NULL,19300.00,NULL,NULL,'2025-05-15 21:57:36.000000','Active',NULL,174,'2025-05-22 17:49:43.751147',NULL,'~',1,1,NULL,1,1,1,'Genaral Account',1,NULL,NULL),(3,NULL,800.00,NULL,NULL,'2025-04-29 18:06:55.000000','Active',NULL,175,'2025-05-22 17:49:43.762403',NULL,'~',2,3,NULL,1,1,1,'90565446',2,20000000.00,5000000.00);

--
-- Table structure for table `administrator_historicalaccounttype`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalaccounttype` (
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `accounttype_id` int(11) NOT NULL,
  `account_category` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `status` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `history_date` datetime NOT NULL,
  `history_change_reason` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `history_type` char(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `deposit_threshold` decimal(12,2) DEFAULT NULL,
  `withdraw_threshold` decimal(12,2) DEFAULT NULL,
  `minimum_opening_amount` decimal(12,2) DEFAULT '0.00',
  `minimum_account_balance` decimal(12,2) DEFAULT '0.00',
  `transfer_threshold` decimal(12,2) DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `administrator_historicalaccounttype_created_by_fk` (`created_by`),
  KEY `administrator_historicalaccounttype_updated_by_fk` (`updated_by`),
  KEY `administrator_historicalaccounttype_history_user_fk` (`history_user_id`),
  CONSTRAINT `administrator_historicalaccounttype_created_by_fk` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `administrator_historicalaccounttype_history_user_fk` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `administrator_historicalaccounttype_updated_by_fk` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `administrator_historicalaccounttype`
--

INSERT INTO `administrator_historicalaccounttype` VALUES (1,3,'Savings','UGX',1,1,NULL,NULL,'Active','2025-04-29 14:56:15',NULL,'+',1,NULL,NULL,0.00,0.00,NULL),(2,3,'Savings','UGX',1,1,NULL,NULL,'Active','2025-04-29 14:56:29',NULL,'~',1,NULL,NULL,0.00,0.00,NULL),(3,3,'Savings','UGX',1,1,NULL,NULL,'Active','2025-04-29 15:16:01',NULL,'~',1,NULL,NULL,0.00,0.00,NULL),(4,3,'Savings','UGX',1,1,NULL,NULL,'Active','2025-04-29 15:44:05',NULL,'~',1,NULL,NULL,0.00,0.00,NULL),(5,3,'Savings','UGX',1,1,NULL,'2025-04-29 15:45:40','Active','2025-04-29 15:45:40',NULL,'~',1,NULL,NULL,0.00,0.00,NULL),(6,3,'Savings','UGX',1,1,NULL,'2025-04-29 17:03:02','Active','2025-04-29 17:03:02',NULL,'~',1,NULL,NULL,0.00,0.00,NULL),(7,4,'Savings','USD',1,1,'2025-04-29 17:03:28','2025-04-29 17:03:28','Active','2025-04-29 17:03:28',NULL,'+',1,NULL,NULL,0.00,0.00,NULL),(8,4,'Savings','USD',1,1,'2025-04-29 17:03:28','2025-04-29 17:03:59','Active','2025-04-29 17:03:59',NULL,'~',1,NULL,NULL,0.00,0.00,NULL),(9,3,'Savings','UGX',1,1,NULL,'2025-05-13 11:40:12','Active','2025-05-13 11:40:12',NULL,'~',1,NULL,NULL,0.00,0.00,NULL),(10,4,'Savings','USD',1,1,'2025-04-29 17:03:28','2025-05-14 10:03:52','Active','2025-05-14 10:03:52',NULL,'~',1,9000.00,500.00,0.00,0.00,NULL),(11,3,'Savings','UGX',1,1,NULL,'2025-05-14 10:04:05','Active','2025-05-14 10:04:05',NULL,'~',1,100000.00,70000.00,0.00,0.00,NULL),(12,4,'Savings','USD',1,1,'2025-04-29 17:03:28','2025-05-21 13:24:19','Active','2025-05-21 13:24:19',NULL,'~',1,9000.00,500.00,0.00,0.00,100.00),(13,3,'Savings','UGX',1,1,NULL,'2025-05-21 13:24:27','Active','2025-05-21 13:24:27',NULL,'~',1,100000.00,70000.00,0.00,0.00,10000.00),(14,5,'Equity','UGX',1,1,'2025-05-22 16:58:08','2025-05-22 16:58:08','Active','2025-05-22 16:58:08',NULL,'+',1,NULL,NULL,NULL,NULL,NULL),(15,6,'Fixed','UGX',1,1,'2025-05-22 20:38:19','2025-05-22 20:38:19','Active','2025-05-22 20:38:19',NULL,'+',1,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `administrator_historicalbranch`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalbranch` (
  `branch_id` bigint(20) NOT NULL,
  `country` varchar(100) NOT NULL,
  `branch_code` varchar(10) NOT NULL,
  `branch_name` varchar(100) NOT NULL,
  `address` varchar(100) NOT NULL,
  `telephone1` varchar(20) NOT NULL,
  `telephone2` varchar(20) DEFAULT NULL,
  `branch_email` varchar(100) NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_at` datetime(6) NOT NULL,
  `updated_at` datetime(6) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` varchar(20) NOT NULL,
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `manager_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `administrator_histor_history_user_id_56befda9_fk_auth_user` (`history_user_id`),
  KEY `administrator_historicalbranch_branch_id_b2bb1773` (`branch_id`),
  KEY `administrator_historicalbranch_branch_code_15737db0` (`branch_code`),
  KEY `administrator_historicalbranch_history_date_3e4c3a78` (`history_date`),
  KEY `administrator_historicalbranch_manager_id_ca16f8e6` (`manager_id`),
  KEY `administrator_historicalbranch_created_by_e7d25876` (`created_by`),
  KEY `administrator_historicalbranch_updated_by_9e739a19` (`updated_by`),
  CONSTRAINT `administrator_histor_history_user_id_56befda9_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicalbranch`
--

INSERT INTO `administrator_historicalbranch` VALUES (1,'Algeria','B001','MAi Branch','Kampala','0777889663',NULL,'info@lomsmicrofinance.com',1,'2025-04-21 11:01:34.000000',NULL,NULL,'Active',1,'2025-04-21 11:11:02.208101',NULL,'+',1,1),(1,'Algeria','B001','MAi Branch','Kampala','0777889663',NULL,'info@lomsmicrofinance.com',1,'2025-04-21 11:01:34.000000',NULL,NULL,'Active',2,'2025-04-21 11:11:14.401930',NULL,'~',1,1),(1,'Algeria','B001','Main Branch','Kampala','0777889663',NULL,'info@lomsmicrofinance.com',1,'2025-04-21 11:01:34.000000',NULL,NULL,'Active',3,'2025-04-21 11:12:15.126828',NULL,'~',1,1),(2,'Argentina','B002','Arua','Arua City','0759927608',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48.000000',NULL,NULL,'Active',4,'2025-04-21 11:13:54.640996',NULL,'+',1,1),(2,'Uganda','B003','Arua','Arua Town','0759927608',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48.000000',NULL,NULL,'Active',5,'2025-04-21 11:14:33.659424',NULL,'~',1,1),(2,'Uganda','B003','Arua','Arua Town','0759927608',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48.000000',NULL,NULL,'Inactive',6,'2025-04-21 12:00:29.051983',NULL,'~',1,1),(3,'Uganda','B002','Masaka','Oopposite Gas','0777889663',NULL,'maska@lomsfinance.com',1,'2025-04-21 12:18:00.676008','2025-04-21 12:18:00.676046',1,'Active',7,'2025-04-21 12:18:00.676732',NULL,'+',1,1),(4,'Albania','B004','Kikubo Branch','Kampala','0777889663',NULL,'sebagalacharles@gmail.com',1,'2025-04-21 12:20:50.526097','2025-04-21 12:20:50.526126',1,'Inactive',8,'2025-04-21 12:20:50.526735',NULL,'+',1,1),(2,'Uganda','B003','Arua','Arua Town','0759927608',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48.000000','2025-04-21 12:21:06.910793',1,'Inactive',9,'2025-04-21 12:21:06.911709',NULL,'~',1,1),(3,'Uganda','B002','Masaka','Oopposite Gas','0777889663',NULL,'maska@lomsfinance.com',1,'2025-04-21 12:18:01.000000','2025-04-21 12:18:01.000000',1,'Active',10,'2025-04-21 14:01:01.411791',NULL,'-',1,1),(4,'Albania','B004','Kikubo Branch','Kampala, ivory mall, ggaba road','0777889663',NULL,'sebagalacharles@gmail.com',1,'2025-04-21 12:20:51.000000','2025-04-21 14:34:52.468814',1,'Inactive',11,'2025-04-21 14:34:52.470013',NULL,'~',1,1),(2,'Uganda','B003','Arua','Arua Town','0759927608',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48.000000','2025-04-21 18:39:52.776120',1,'Inactive',12,'2025-04-21 18:39:52.777055',NULL,'~',1,1),(2,'Uganda','B003','Arua','Arua Town','0759927608',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48.000000','2025-04-21 18:39:57.203955',1,'Inactive',13,'2025-04-21 18:39:57.204919',NULL,'~',1,1),(1,'Algeria','B001','Main Branch','Kampala','0777889663',NULL,'info@lomsmicrofinance.com',1,'2025-04-21 11:01:34.000000','2025-04-21 19:14:16.804038',1,'Active',14,'2025-04-21 19:14:16.804985',NULL,'~',1,1),(2,'Uganda','B003','Arua','Arua Town','0759927608',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48.000000','2025-04-21 19:28:19.889986',1,'Inactive',15,'2025-04-21 19:28:19.891026',NULL,'~',1,1),(4,'Albania','B004','Kikubo Branch','Kampala, ivory mall, ggaba road','0777889663',NULL,'sebagalacharles@gmail.com',1,'2025-04-21 12:20:51.000000','2025-04-21 20:11:55.603996',2,'Inactive',16,'2025-04-21 20:11:55.605014',NULL,'~',2,1),(1,'Algeria','B001','Main Branch','Kampala','0777889663',NULL,'info@lomsmicrofinance.com',1,'2025-04-21 11:01:34.000000','2025-04-21 20:59:56.422485',2,'Active',17,'2025-04-21 20:59:56.423443',NULL,'~',2,1),(1,'Algeria','B001','Main Branch','Kampala','0777889663',NULL,'info@lomsmicrofinance.com',1,'2025-04-21 11:01:34.000000','2025-04-28 16:46:16.067272',1,'Active',18,'2025-04-28 16:46:16.068277',NULL,'~',1,3),(2,'Uganda','B003','Arua','Arua Town','0759927608',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48.000000','2025-04-28 16:47:07.531946',1,'Inactive',19,'2025-04-28 16:47:07.533315',NULL,'~',1,2),(4,'Albania','B004','Kikubo Branch','Kampala, ivory mall, ggaba road','0777889663',NULL,'sebagalacharles@gmail.com',1,'2025-04-21 12:20:51.000000','2025-04-28 16:47:31.153428',1,'Inactive',20,'2025-04-28 16:47:31.154429',NULL,'~',1,2);

--
-- Table structure for table `administrator_historicalconfig`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalconfig` (
  `config_id` int(11) NOT NULL,
  `config_name` varchar(100) NOT NULL,
  `config_value` varchar(255) NOT NULL,
  `description` longtext,
  `created_at` datetime(6) NOT NULL,
  `updated_at` datetime(6) DEFAULT NULL,
  `status` varchar(20) NOT NULL,
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `updated_by` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `administrator_histor_history_user_id_635391a4_fk_auth_user` (`history_user_id`),
  KEY `administrator_historicalconfig_config_id_7d735804` (`config_id`),
  KEY `administrator_historicalconfig_config_name_6f1bea5a` (`config_name`),
  KEY `administrator_historicalconfig_history_date_48d28af1` (`history_date`),
  KEY `administrator_historicalconfig_created_by_0c50ec46` (`created_by`),
  KEY `administrator_historicalconfig_updated_by_8b703f08` (`updated_by`),
  CONSTRAINT `administrator_histor_history_user_id_635391a4_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicalconfig`
--

INSERT INTO `administrator_historicalconfig` VALUES (1,'Daily Withdraw Limit','100000','Maximum amount of money the client can withdraw in a day','2025-04-22 10:41:09.748837','2025-04-22 10:41:09.748874','Active',1,'2025-04-22 10:41:09.749696',NULL,'+',2,2,2),(1,'Daily Withdraw Limit','100000','Maximum amount of money the client can withdraw in a day','2025-04-22 10:41:10.000000','2025-04-22 10:41:12.442982','Active',2,'2025-04-22 10:41:12.444054',NULL,'~',2,2,2),(1,'Daily Withdraw Limit','100000','Maximum amount of money the client can withdraw in a day','2025-04-22 10:41:10.000000','2025-04-22 10:42:59.353053','Active',3,'2025-04-22 10:42:59.353954',NULL,'~',2,2,2),(1,'Daily Withdraw Limit','500000','Maximum amount of money the client can withdraw in a day','2025-04-22 10:41:10.000000','2025-04-22 10:43:21.782599','Active',4,'2025-04-22 10:43:21.783499',NULL,'~',2,2,2),(2,'Max Loan Amount','7000000','','2025-04-22 10:46:36.571907','2025-04-22 10:46:36.571947','Active',5,'2025-04-22 10:46:36.572609',NULL,'+',2,2,2),(3,'Minimum Loan Amount','50000','The minmum amount that can be borrowed','2025-04-22 10:47:26.429294','2025-04-22 10:47:26.429330','Active',6,'2025-04-22 10:47:26.429982',NULL,'+',2,2,2),(3,'Minimum Loan Amount','50000','The minimum amount that can be borrowed','2025-04-22 10:47:26.000000','2025-04-22 10:59:59.723936','Active',7,'2025-04-22 10:59:59.724862',NULL,'~',2,2,2),(3,'Minimum Loan Amount','50000','The minimum amount that can be borrowed','2025-04-22 10:47:26.000000','2025-04-22 11:07:04.198622','Active',8,'2025-04-22 11:07:04.199483',NULL,'~',2,2,2),(2,'Maximum Loan Amount','7000000','','2025-04-22 10:46:37.000000','2025-04-22 11:07:25.205510','Active',9,'2025-04-22 11:07:25.206460',NULL,'~',2,2,2);

--
-- Table structure for table `administrator_historicaldeposit`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicaldeposit` (
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `deposit_id` int(11) DEFAULT NULL,
  `transfer_id` int(11) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `amount` decimal(15,2) DEFAULT NULL,
  `deposit_date` datetime DEFAULT NULL,
  `channel_type` varchar(22) DEFAULT NULL,
  `deposit_method` varchar(19) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `third_party_reference_number` varchar(100) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `status` varchar(20) DEFAULT NULL,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `source_account_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`history_id`)
) ENGINE=InnoDB AUTO_INCREMENT=94 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicaldeposit`
--

INSERT INTO `administrator_historicaldeposit` VALUES (1,1,NULL,1,2000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-14 09:20:09','active','2025-05-14 09:20:08.916092',NULL,'+',1,NULL),(2,1,NULL,1,2000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-14 10:19:47','active','2025-05-14 10:19:46.979136',NULL,'~',1,NULL),(3,1,NULL,1,2000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-14 10:33:14','active','2025-05-14 10:33:14.351612',NULL,'~',1,NULL),(4,1,NULL,1,2000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-14 10:52:05','success','2025-05-14 10:52:04.958358',NULL,'~',1,NULL),(5,1,NULL,1,2000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-14 10:52:23','success','2025-05-14 10:52:22.823605',NULL,'~',1,NULL),(6,1,NULL,1,5000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-14 10:52:32','success','2025-05-14 10:52:31.923629',NULL,'~',1,NULL),(7,1,NULL,1,5000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-14 10:52:45','success','2025-05-14 10:52:44.947558',NULL,'~',1,NULL),(8,1,NULL,1,4000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-14 10:52:54','success','2025-05-14 10:52:54.114977',NULL,'~',1,NULL),(9,2,NULL,1,9000.00,'2025-05-14 10:54:01','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:54:01','2025-05-14 10:54:01','success','2025-05-14 10:54:01.143937',NULL,'+',1,NULL),(10,3,NULL,1,12000.00,'2025-05-14 10:54:28','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:54:28','2025-05-14 10:54:28','success','2025-05-14 10:54:27.991214',NULL,'+',1,NULL),(11,4,NULL,1,9000000000.00,'2025-05-14 10:54:53','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:54:53','2025-05-14 10:54:53','pending','2025-05-14 10:54:53.256329',NULL,'+',1,NULL),(12,5,NULL,1,70000000.00,'2025-05-14 10:55:19','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:55:19','2025-05-14 10:55:19','pending','2025-05-14 10:55:19.139432',NULL,'+',1,NULL),(13,5,NULL,1,70000000.00,'2025-05-14 10:55:19','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:55:19','2025-05-14 11:01:20','success','2025-05-14 11:01:20.011384',NULL,'~',1,NULL),(14,5,NULL,1,70000000.00,'2025-05-14 10:55:19','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:55:19','2025-05-14 11:59:07','success','2025-05-14 11:59:07.035512',NULL,'~',1,NULL),(15,5,NULL,1,70000000.00,'2025-05-14 10:55:19','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:55:19','2025-05-14 18:35:31','pending','2025-05-14 18:35:30.842404',NULL,'~',1,NULL),(16,7,NULL,1,100.00,'2025-05-14 19:19:49','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:19:49','2025-05-14 19:19:49','success','2025-05-14 19:19:48.937957',NULL,'+',4,NULL),(17,8,NULL,1,100.00,'2025-05-14 19:22:12','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:22:12','2025-05-14 19:22:12','success','2025-05-14 19:22:12.200142',NULL,'+',4,NULL),(18,9,NULL,1,100.00,'2025-05-14 19:24:54','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:24:54','2025-05-14 19:24:54','success','2025-05-14 19:24:54.182253',NULL,'+',4,NULL),(19,10,NULL,1,80000.00,'2025-05-14 19:25:32','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:25:32','2025-05-14 19:25:32','success','2025-05-14 19:25:31.850284',NULL,'+',4,NULL),(20,11,NULL,1,9000.00,'2025-05-14 19:28:09','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:28:09','2025-05-14 19:28:09','success','2025-05-14 19:28:09.318839',NULL,'+',4,NULL),(21,12,NULL,1,9000.00,'2025-05-14 19:30:24','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:30:24','2025-05-14 19:30:24','pending','2025-05-14 19:30:23.586126',NULL,'+',4,NULL),(22,13,NULL,1,800000000.00,'2025-05-14 19:37:43','E-Banking','MPesa',NULL,NULL,4,4,'2025-05-14 19:37:43','2025-05-14 19:37:43','pending','2025-05-14 19:37:42.638041',NULL,'+',4,NULL),(23,14,NULL,1,100.00,'2025-05-14 19:38:12','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:38:12','2025-05-14 19:38:12','success','2025-05-14 19:38:11.860327',NULL,'+',4,NULL),(24,15,NULL,1,9000.00,'2025-05-14 19:38:28','E-Banking','Card',NULL,NULL,4,4,'2025-05-14 19:38:28','2025-05-14 19:38:28','pending','2025-05-14 19:38:28.068836',NULL,'+',4,NULL),(25,16,NULL,1,55455.00,'2025-05-14 19:38:38','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:38:38','2025-05-14 19:38:38','pending','2025-05-14 19:38:38.589194',NULL,'+',4,NULL),(26,17,NULL,1,5555.00,'2025-05-14 19:38:46','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:38:46','2025-05-14 19:38:46','pending','2025-05-14 19:38:46.210699',NULL,'+',4,NULL),(27,18,NULL,1,1000.00,'2025-05-14 19:38:54','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:38:54','2025-05-14 19:38:54','pending','2025-05-14 19:38:53.930556',NULL,'+',4,NULL),(28,19,NULL,1,1000.00,'2025-05-14 19:38:59','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:38:59','2025-05-14 19:38:59','pending','2025-05-14 19:38:59.307054',NULL,'+',4,NULL),(29,20,NULL,1,1000.00,'2025-05-14 19:39:04','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:39:04','2025-05-14 19:39:04','pending','2025-05-14 19:39:04.226821',NULL,'+',4,NULL),(30,21,NULL,1,1000.00,'2025-05-14 19:39:10','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:39:10','2025-05-14 19:39:10','pending','2025-05-14 19:39:09.575665',NULL,'+',4,NULL),(31,22,NULL,1,500.00,'2025-05-14 19:39:16','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:39:16','2025-05-14 19:39:16','success','2025-05-14 19:39:15.851981',NULL,'+',4,NULL),(32,21,NULL,1,1000.00,'2025-05-14 19:39:10','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:39:10','2025-05-14 19:39:35','success','2025-05-14 19:39:34.597741',NULL,'~',1,NULL),(33,19,NULL,1,1000.00,'2025-05-14 19:38:59','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:38:59','2025-05-14 19:39:35','success','2025-05-14 19:39:34.603610',NULL,'~',1,NULL),(34,16,NULL,1,55455.00,'2025-05-14 19:38:38','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:38:38','2025-05-14 19:41:11','success','2025-05-14 19:41:10.540876',NULL,'~',1,NULL),(35,13,NULL,1,800000000.00,'2025-05-14 19:37:43','E-Banking','MPesa',NULL,NULL,4,4,'2025-05-14 19:37:43','2025-05-14 19:41:11','success','2025-05-14 19:41:10.549625',NULL,'~',1,NULL),(36,20,NULL,1,1000.00,'2025-05-14 19:39:04','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:39:04','2025-05-14 19:42:48','success','2025-05-14 19:42:47.988700',NULL,'~',1,NULL),(37,18,NULL,1,1000.00,'2025-05-14 19:38:54','E-Banking','MTN Mobile Money',NULL,NULL,4,4,'2025-05-14 19:38:54','2025-05-14 19:42:48','success','2025-05-14 19:42:47.994482',NULL,'~',1,NULL),(38,12,NULL,1,9000.00,'2025-05-14 19:30:24','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:30:24','2025-05-14 19:45:07','success','2025-05-14 19:45:07.009278',NULL,'~',1,NULL),(39,23,NULL,1,899999.00,'2025-05-14 19:53:53','E-Banking','MPesa',NULL,NULL,4,4,'2025-05-14 19:53:53','2025-05-14 19:53:53','pending','2025-05-14 19:53:52.906375',NULL,'+',4,NULL),(40,24,NULL,1,900.00,'2025-05-14 19:54:33','E-Banking','Airtel Mobile Money',NULL,NULL,4,4,'2025-05-14 19:54:33','2025-05-14 19:54:33','success','2025-05-14 19:54:32.678165',NULL,'+',4,NULL),(41,25,NULL,1,899999.00,'2025-05-14 19:55:01','E-Banking','Card',NULL,NULL,4,4,'2025-05-14 19:55:01','2025-05-14 19:55:01','success','2025-05-14 19:55:01.305879',NULL,'+',4,NULL),(42,26,NULL,1,4545.00,'2025-05-14 20:00:55','E-Banking','MPesa',NULL,NULL,4,4,'2025-05-14 20:00:55','2025-05-14 20:00:55','success','2025-05-14 20:00:54.914274',NULL,'+',4,NULL),(43,26,NULL,11,4545.00,'2025-05-14 20:00:55','E-Banking','MPesa',NULL,NULL,4,1,'2025-05-14 20:00:55','2025-05-15 18:53:41','success','2025-05-15 18:53:41.248848',NULL,'~',1,NULL),(44,25,NULL,11,899999.00,'2025-05-14 19:55:01','E-Banking','Card',NULL,NULL,4,1,'2025-05-14 19:55:01','2025-05-15 18:53:49','success','2025-05-15 18:53:48.996604',NULL,'~',1,NULL),(45,24,NULL,11,900.00,'2025-05-14 19:54:33','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 19:54:33','2025-05-15 18:53:53','success','2025-05-15 18:53:53.466018',NULL,'~',1,NULL),(46,23,NULL,11,899999.00,'2025-05-14 19:53:53','E-Banking','MPesa',NULL,NULL,4,1,'2025-05-14 19:53:53','2025-05-15 18:53:59','success','2025-05-15 18:53:58.507711',NULL,'~',1,NULL),(47,22,NULL,11,500.00,'2025-05-14 19:39:16','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 19:39:16','2025-05-15 18:54:05','success','2025-05-15 18:54:05.044217',NULL,'~',1,NULL),(48,21,NULL,11,1000.00,'2025-05-14 19:39:10','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 19:39:10','2025-05-15 18:54:10','success','2025-05-15 18:54:09.891299',NULL,'~',1,NULL),(49,20,NULL,11,1000.00,'2025-05-14 19:39:04','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 19:39:04','2025-05-15 18:54:15','success','2025-05-15 18:54:14.686322',NULL,'~',1,NULL),(50,21,NULL,11,1000.00,'2025-05-14 19:39:10','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 19:39:10','2025-05-15 18:54:19','success','2025-05-15 18:54:18.743337',NULL,'~',1,NULL),(51,19,NULL,11,1000.00,'2025-05-14 19:38:59','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 19:38:59','2025-05-15 18:54:23','success','2025-05-15 18:54:23.221203',NULL,'~',1,NULL),(52,18,NULL,11,1000.00,'2025-05-14 19:38:54','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 19:38:54','2025-05-15 18:54:28','success','2025-05-15 18:54:27.946383',NULL,'~',1,NULL),(53,17,NULL,11,5555.00,'2025-05-14 19:38:46','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 19:38:46','2025-05-15 18:54:33','success','2025-05-15 18:54:32.811863',NULL,'~',1,NULL),(54,16,NULL,11,55455.00,'2025-05-14 19:38:38','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 19:38:38','2025-05-15 18:54:39','success','2025-05-15 18:54:38.546469',NULL,'~',1,NULL),(55,15,NULL,11,9000.00,'2025-05-14 19:38:28','E-Banking','Card',NULL,NULL,4,1,'2025-05-14 19:38:28','2025-05-15 18:54:44','success','2025-05-15 18:54:44.395538',NULL,'~',1,NULL),(56,14,NULL,11,100.00,'2025-05-14 19:38:12','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 19:38:12','2025-05-15 18:54:51','success','2025-05-15 18:54:51.147807',NULL,'~',1,NULL),(57,13,NULL,11,800000000.00,'2025-05-14 19:37:43','E-Banking','MPesa',NULL,NULL,4,1,'2025-05-14 19:37:43','2025-05-15 18:54:57','pending','2025-05-15 18:54:56.716575',NULL,'~',1,NULL),(58,12,NULL,11,9000.00,'2025-05-14 19:30:24','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 19:30:24','2025-05-15 18:55:02','success','2025-05-15 18:55:01.684263',NULL,'~',1,NULL),(59,11,NULL,11,9000.00,'2025-05-14 19:28:09','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 19:28:09','2025-05-15 18:55:07','success','2025-05-15 18:55:06.842565',NULL,'~',1,NULL),(60,10,NULL,11,80000.00,'2025-05-14 19:25:32','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 19:25:32','2025-05-15 18:55:12','success','2025-05-15 18:55:11.626799',NULL,'~',1,NULL),(61,9,NULL,11,100.00,'2025-05-14 19:24:54','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 19:24:54','2025-05-15 18:55:18','success','2025-05-15 18:55:17.674683',NULL,'~',1,NULL),(62,8,NULL,11,100.00,'2025-05-14 19:22:12','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 19:22:12','2025-05-15 18:55:23','success','2025-05-15 18:55:22.914862',NULL,'~',1,NULL),(63,7,NULL,11,100.00,'2025-05-14 19:19:49','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 19:19:49','2025-05-15 18:55:29','success','2025-05-15 18:55:28.613678',NULL,'~',1,NULL),(64,6,NULL,11,100.00,'2025-05-14 18:44:49','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 18:44:49','2025-05-15 18:55:34','success','2025-05-15 18:55:34.434936',NULL,'~',1,NULL),(65,5,NULL,11,70000000.00,'2025-05-14 10:55:19','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:55:19','2025-05-15 18:55:43','pending','2025-05-15 18:55:42.945416',NULL,'~',1,NULL),(66,4,NULL,11,9000000000.00,'2025-05-14 10:54:53','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:54:53','2025-05-15 18:55:48','pending','2025-05-15 18:55:47.837026',NULL,'~',1,NULL),(67,3,NULL,11,12000.00,'2025-05-14 10:54:28','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:54:28','2025-05-15 18:55:53','success','2025-05-15 18:55:53.119941',NULL,'~',1,NULL),(68,2,NULL,11,9000.00,'2025-05-14 10:54:01','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 10:54:01','2025-05-15 18:55:59','success','2025-05-15 18:55:58.753217',NULL,'~',1,NULL),(69,1,NULL,11,4000.00,'2025-05-14 09:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 09:20:09','2025-05-15 18:56:05','success','2025-05-15 18:56:04.934879',NULL,'~',1,NULL),(70,26,NULL,3,4545.00,'2025-05-14 20:00:55','E-Banking','MPesa',NULL,NULL,4,1,'2025-05-14 20:00:55','2025-05-15 19:00:29','success','2025-05-15 19:00:29.270002',NULL,'~',1,NULL),(71,27,8,1,1000.00,'2025-05-15 21:59:00','Withdraw Fee','Bank Transfer','Withdraw Fee deposit from account 329998937498 (over_the_counter)',NULL,1,NULL,'2025-05-15 21:59:00',NULL,'Success','2025-05-15 21:59:00.414800',NULL,'+',1,NULL),(72,28,9,1,1000.00,'2025-05-15 22:00:29','Withdraw Fee','Bank Transfer','Withdraw Fee deposit from account 329998937498 (over_the_counter)',NULL,1,NULL,'2025-05-15 22:00:29',NULL,'Success','2025-05-15 22:00:28.722356',NULL,'+',1,NULL),(73,29,10,1,1900.00,'2025-05-16 11:03:48','Withdraw Fee','Bank Transfer','Withdraw Fee deposit from account 329998937498 (over_the_counter)',NULL,1,NULL,'2025-05-16 11:03:48',NULL,'Success','2025-05-16 11:03:47.541159',NULL,'+',1,NULL),(74,30,13,1,1000.00,'2025-05-21 17:29:40','Transfer Fee','Bank Transfer','Transfer Fee: From account 90565446 (Account to Account)',NULL,1,NULL,'2025-05-21 17:29:40',NULL,'Success','2025-05-21 17:29:40.405571',NULL,'+',1,NULL),(76,32,17,1,1000.00,'2025-05-21 17:46:05','Transfer','Bank Transfer','Transfer: From account 90565446 (Account to Account)',NULL,1,NULL,'2025-05-21 17:46:05',NULL,'Success','2025-05-21 17:46:05.336110',NULL,'+',1,NULL),(77,33,16,3,100.00,'2025-05-21 17:46:05','Transfer','Bank Transfer','Transfer: From account 90565446 (Transfer)',NULL,1,NULL,'2025-05-21 17:46:05',NULL,'Success','2025-05-21 17:46:05.340779',NULL,'+',1,NULL),(86,42,27,1,2000.00,'2025-05-22 09:25:18','Transfer','Bank Transfer','Transfer: From account 90565446 (Account to Cash)',NULL,1,NULL,'2025-05-22 09:25:18',NULL,'Success','2025-05-22 09:25:17.929104',NULL,'+',1,NULL),(87,43,26,4,100.00,'2025-05-22 09:25:18','Transfer','Bank Transfer','Transfer: From account 90565446 (Transfer)',NULL,1,NULL,'2025-05-22 09:25:18',NULL,'Success','2025-05-22 09:25:17.935235',NULL,'+',1,NULL),(88,44,28,1,1900.00,'2025-05-22 17:25:59','Withdrawal','Bank Transfer','Withdrawal: From account 90565446 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 17:25:59',NULL,'Success','2025-05-22 17:25:59.346190',NULL,'+',1,2),(89,45,29,1,1900.00,'2025-05-22 17:33:32','Withdrawal','Bank Transfer','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 17:33:32',NULL,'Success','2025-05-22 17:33:32.265533',NULL,'+',1,3),(90,46,30,1,1900.00,'2025-05-22 17:40:18','Withdrawal Fee','Bank Transfer','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 17:40:18',NULL,'Success','2025-05-22 17:40:18.401120',NULL,'+',1,3),(91,47,31,1,1900.00,'2025-05-22 17:46:14','Withdrawal Fee','Bank Transfer','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 17:46:14',NULL,'Success','2025-05-22 17:46:14.393496',NULL,'+',1,3),(92,48,32,1,1900.00,'2025-05-22 17:47:16','Withdrawal Fee','Bank Transfer','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 17:47:16',NULL,'Success','2025-05-22 17:47:15.785376',NULL,'+',1,3),(93,49,33,1,1900.00,'2025-05-22 17:49:44','Withdrawal Fee','Bank Transfer','Withdrawal: From account 90565446 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 17:49:44',NULL,'Success','2025-05-22 17:49:43.759764',NULL,'+',1,2);

--
-- Table structure for table `administrator_historicalfee`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalfee` (
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `fee_id` int(11) NOT NULL,
  `accounttype_id` int(11) NOT NULL,
  `fee_name` varchar(100) NOT NULL,
  `fee_type` varchar(50) DEFAULT NULL,
  `min_amount` decimal(15,2) DEFAULT NULL,
  `max_amount` decimal(15,2) DEFAULT NULL,
  `fee_amount` decimal(15,2) NOT NULL,
  `is_percentage` int(11) DEFAULT NULL,
  `description` text,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `status` varchar(20) DEFAULT NULL,
  `history_date` datetime NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` char(1) NOT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `admin_hist_fee_accounttype_id` (`accounttype_id`),
  KEY `admin_hist_fee_created_by` (`created_by`),
  KEY `admin_hist_fee_updated_by` (`updated_by`),
  KEY `admin_hist_fee_history_user` (`history_user_id`),
  CONSTRAINT `admin_hist_fee_accounttype_id` FOREIGN KEY (`accounttype_id`) REFERENCES `accounttype` (`accounttype_id`),
  CONSTRAINT `admin_hist_fee_created_by` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `admin_hist_fee_history_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `admin_hist_fee_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=84 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicalfee`
--

INSERT INTO `administrator_historicalfee` VALUES (1,2,3,'Account-Related','Account-Related',NULL,NULL,150000.00,0,'',1,1,'2025-04-29 16:43:48','2025-04-29 16:43:48','Active','2025-04-29 16:43:48',NULL,'+',1),(2,2,3,'Account-Related','Account-Related',NULL,NULL,150000.00,0,'',1,1,'2025-04-29 16:43:48','2025-04-29 16:44:01','Active','2025-04-29 16:44:01',NULL,'~',1),(3,3,3,'account_closure','Account-Related',NULL,NULL,1000.00,0,'',1,1,'2025-04-29 18:26:38','2025-04-29 18:26:38','Active','2025-04-29 18:26:38',NULL,'+',1),(4,3,3,'account_closure','Account-Related',NULL,NULL,1000.00,0,'',1,1,'2025-04-29 18:26:38','2025-04-29 18:27:01','Active','2025-04-29 18:27:01',NULL,'~',1),(5,4,3,'in_branch_withdrawal','Withdrawal & Deposit',0.00,60000.00,1000.00,0,'Over the counter withdraw',1,1,'2025-05-15 17:11:40','2025-05-15 17:11:40','Active','2025-05-15 17:11:40',NULL,'+',1),(6,5,3,'in_branch_withdrawal','Withdrawal & Deposit',60000.00,150000.00,1900.00,0,'Over the counter withdraw',1,1,'2025-05-15 17:16:20','2025-05-15 17:16:20','Active','2025-05-15 17:16:20',NULL,'+',1),(7,6,3,'Account to Account','Transfer',1.00,5000000.00,1000.00,0,'',1,1,'2025-05-21 16:14:54','2025-05-21 16:14:54','Active','2025-05-21 16:14:54',NULL,'+',1),(8,7,3,'Account to Cash','Transfer',1.00,5000000.00,2000.00,0,'',1,1,'2025-05-21 16:19:01','2025-05-21 16:19:01','Active','2025-05-21 16:19:01',NULL,'+',1),(9,8,3,'Cash to Cash','Transfer',1.00,5000000.00,3000.00,0,'',1,1,'2025-05-21 16:19:49','2025-05-21 16:19:49','Active','2025-05-21 16:19:49',NULL,'+',1),(10,5,3,'over_the_counter_withdrawal','Withdrawal',60000.00,150000.00,1900.00,0,'Over the counter withdraw',1,1,'2025-05-15 17:16:20','2025-05-21 17:06:11','Active','2025-05-21 17:06:11',NULL,'~',1),(11,4,3,'over_the_counter_deposit','Deposit',0.00,60000.00,1000.00,0,'Over the counter withdraw',1,1,'2025-05-15 17:11:40','2025-05-21 17:06:29','Active','2025-05-21 17:06:29',NULL,'~',1),(12,4,3,'over_the_counter_deposit','Deposit',0.00,60000.00,1000.00,0,'Over the counter deposit',1,1,'2025-05-15 17:11:40','2025-05-21 17:10:17','Active','2025-05-21 17:10:17',NULL,'~',1),(13,4,3,'over_the_counter_deposit','Deposit',0.00,60000.00,1000.00,0,'Over the counter deposit',1,1,'2025-05-15 17:11:40','2025-05-21 17:10:32','Active','2025-05-21 17:10:32',NULL,'~',1),(14,9,3,'over_the_counter_withdrawal','Withdrawal',0.00,5000000.00,1000.00,0,'',1,1,'2025-05-22 17:21:55','2025-05-22 17:21:55','Active','2025-05-22 17:21:55',NULL,'+',1),(15,2,3,'account_opening','Account-Related',NULL,NULL,0.00,0,'Opening Balance',1,1,'2025-04-29 16:43:48','2025-05-22 20:33:24','Active','2025-05-22 20:33:24',NULL,'~',1),(16,3,3,'minimum_balance','Account-Related',NULL,NULL,0.00,0,'Minimum Balance',1,1,'2025-04-29 18:26:38','2025-05-22 20:37:01','Active','2025-05-22 20:37:01',NULL,'~',1),(17,4,3,'Ledger Fees Per Entry','Account-Related',NULL,NULL,0.00,0,'',1,1,'2025-05-15 17:11:40','2025-05-22 20:42:08','Active','2025-05-22 20:42:08',NULL,'~',1),(18,4,3,'Statement Print out (Per Page)','Account-Related',NULL,NULL,5000.00,0,'',1,1,'2025-05-15 17:11:40','2025-05-22 20:43:54','Active','2025-05-22 20:43:54',NULL,'~',1),(19,5,3,'Email Statement certification (per page)','Account-Related',NULL,NULL,3000.00,0,'',1,1,'2025-05-15 17:16:20','2025-05-22 20:45:32','Active','2025-05-22 20:45:32',NULL,'~',1),(20,6,3,'over_the_counter_withdrawal','Withdrawal',0.00,1000000.00,10000.00,0,'',1,1,'2025-05-21 16:14:54','2025-05-22 20:46:35','Active','2025-05-22 20:46:35',NULL,'~',1),(21,7,3,'over_the_counter_withdrawal','Withdrawal',1000001.00,5000000.00,20000.00,0,'',1,1,'2025-05-21 16:19:01','2025-05-22 20:48:04','Active','2025-05-22 20:48:04',NULL,'~',1),(22,8,3,'over_the_counter_withdrawal','Withdrawal',5000000.00,NULL,30000.00,0,'',1,1,'2025-05-21 16:19:49','2025-05-22 20:49:19','Active','2025-05-22 20:49:19',NULL,'~',1),(23,8,3,'over_the_counter_withdrawal','Withdrawal',5000001.00,NULL,30000.00,0,'',1,1,'2025-05-21 16:19:49','2025-05-22 20:49:49','Active','2025-05-22 20:49:49',NULL,'~',1),(24,9,3,'over_the_counter_deposit','Deposit',NULL,NULL,0.00,0,'Cash Deposit Charge',1,1,'2025-05-22 17:21:55','2025-05-22 20:50:53','Active','2025-05-22 20:50:53',NULL,'~',1),(25,10,3,'Same day deposit - Withdrawal Charge','Withdrawal',NULL,NULL,0.00,0,'',1,1,'2025-05-22 20:53:37','2025-05-22 20:53:37','Active','2025-05-22 20:53:37',NULL,'+',1),(26,11,3,'account_closure','Account-Related',NULL,NULL,0.50,1,'',1,1,'2025-05-22 20:54:20','2025-05-22 20:54:20','Active','2025-05-22 20:54:20',NULL,'+',1),(27,10,3,'Same day deposit - Withdrawal Charge','Withdrawal',NULL,NULL,0.50,1,'',1,1,'2025-05-22 20:53:37','2025-05-22 20:54:57','Active','2025-05-22 20:54:57',NULL,'~',1),(28,11,3,'account_closure','Account-Related',NULL,NULL,21000.00,0,'',1,1,'2025-05-22 20:54:20','2025-05-22 20:55:27','Active','2025-05-22 20:55:27',NULL,'~',1),(29,12,3,'Dormant Account Re-activation','Account-Related',NULL,NULL,0.00,0,'',1,1,'2025-05-22 20:56:53','2025-05-22 20:56:53','Active','2025-05-22 20:56:53',NULL,'+',1),(30,13,3,'atm_card_issuance','ATM & Card',NULL,NULL,15500.00,0,'',1,1,'2025-05-22 21:01:58','2025-05-22 21:01:58','Active','2025-05-22 21:01:58',NULL,'+',1),(31,14,3,'atm_card_replacement','ATM & Card',NULL,NULL,15500.00,0,'',1,1,'2025-05-22 21:02:38','2025-05-22 21:02:38','Active','2025-05-22 21:02:38',NULL,'+',1),(32,15,3,'Depositing using a cash deposit machine','ATM & Card',NULL,NULL,0.00,0,'',1,1,'2025-05-22 21:05:10','2025-05-22 21:05:10','Active','2025-05-22 21:05:10',NULL,'+',1),(33,16,3,'atm_withdrawal','ATM & Card',NULL,NULL,1200.00,0,'',1,1,'2025-05-22 21:08:15','2025-05-22 21:08:15','Active','2025-05-22 21:08:15',NULL,'+',1),(34,17,3,'atm_mini_statement','ATM & Card',NULL,NULL,500.00,0,'',1,1,'2025-05-22 21:09:45','2025-05-22 21:09:45','Active','2025-05-22 21:09:45',NULL,'+',1),(35,18,3,'atm_balance_inquiry','ATM & Card',NULL,NULL,300.00,0,'',1,1,'2025-05-22 21:10:48','2025-05-22 21:10:48','Active','2025-05-22 21:10:48',NULL,'+',1),(36,19,3,'Card Usage at POS machines','ATM & Card',NULL,NULL,0.00,0,'',1,1,'2025-05-22 21:13:34','2025-05-22 21:13:34','Active','2025-05-22 21:13:34',NULL,'+',1),(37,20,3,'Card Usage for online purchase','ATM & Card',NULL,NULL,0.00,0,'',1,1,'2025-05-22 21:13:51','2025-05-22 21:13:51','Active','2025-05-22 21:13:51',NULL,'+',1),(38,21,3,'ATM card declined for insufficient funds','ATM & Card',NULL,NULL,500.00,0,'',1,1,'2025-05-22 21:14:16','2025-05-22 21:14:16','Active','2025-05-22 21:14:16',NULL,'+',1),(39,22,3,'Account to Account','Transfer',NULL,NULL,500.00,0,'',1,1,'2025-05-22 21:34:57','2025-05-22 21:34:57','Active','2025-05-22 21:34:57',NULL,'+',1),(40,23,3,'RTGS (Real-Time Gross Settlement)','Transfer',NULL,NULL,10000.00,0,'',1,1,'2025-05-22 21:35:31','2025-05-22 21:35:31','Active','2025-05-22 21:35:31',NULL,'+',1),(41,24,3,'EFT (Electronic Funds Transfer)','Transfer',NULL,NULL,300.00,0,'',1,1,'2025-05-22 21:35:56','2025-05-22 21:35:56','Active','2025-05-22 21:35:56',NULL,'+',1),(42,25,3,'SWIFT (SHA) – Shared Fees','Transfer',NULL,NULL,30000.00,0,'',1,1,'2025-05-22 21:36:41','2025-05-22 21:36:41','Active','2025-05-22 21:36:41',NULL,'+',1),(43,26,3,'Account to wallet (Airtel and MTN)','Transfer',0.00,5000.00,550.00,0,'',1,1,'2025-05-22 21:42:44','2025-05-22 21:42:44','Active','2025-05-22 21:42:44',NULL,'+',1),(44,27,3,'Account to wallet (Airtel and MTN)','Transfer',5001.00,60000.00,1000.00,0,'',1,1,'2025-05-22 21:46:31','2025-05-22 21:46:31','Active','2025-05-22 21:46:31',NULL,'+',1),(45,28,3,'Account to wallet (Airtel and MTN)','Transfer',60001.00,125000.00,1500.00,0,'',1,1,'2025-05-22 21:47:25','2025-05-22 21:47:25','Active','2025-05-22 21:47:25',NULL,'+',1),(46,29,3,'Account to wallet (Airtel and MTN)','Transfer',125001.00,250000.00,2100.00,0,'',1,1,'2025-05-22 21:48:22','2025-05-22 21:48:22','Active','2025-05-22 21:48:22',NULL,'+',1),(47,30,3,'Account to wallet (Airtel and MTN)','Transfer',250001.00,500000.00,3000.00,0,'',1,1,'2025-05-22 21:49:07','2025-05-22 21:49:07','Active','2025-05-22 21:49:07',NULL,'+',1),(48,31,3,'Account to wallet (Airtel and MTN)','Transfer',500001.00,1000000.00,4000.00,0,'',1,1,'2025-05-22 21:50:25','2025-05-22 21:50:25','Active','2025-05-22 21:50:25',NULL,'+',1),(49,32,3,'Account to wallet (Airtel and MTN)','Transfer',1000001.00,2000000.00,5000.00,0,'',1,1,'2025-05-22 21:51:21','2025-05-22 21:51:21','Active','2025-05-22 21:51:21',NULL,'+',1),(50,33,3,'Account to wallet (Airtel and MTN)','Transfer',2000001.00,3000000.00,6000.00,0,'',1,1,'2025-05-22 21:52:16','2025-05-22 21:52:16','Active','2025-05-22 21:52:16',NULL,'+',1),(51,34,3,'Account to wallet (Airtel and MTN)','Transfer',3000001.00,4000000.00,7500.00,0,'',1,1,'2025-05-22 21:53:04','2025-05-22 21:53:04','Active','2025-05-22 21:53:04',NULL,'+',1),(52,35,3,'Account to wallet (Airtel and MTN)','Transfer',4000001.00,5000000.00,9000.00,0,'',1,1,'2025-05-22 21:54:21','2025-05-22 21:54:21','Active','2025-05-22 21:54:21',NULL,'+',1),(53,36,3,'Account Balance with SMS','Account-Related',NULL,NULL,300.00,0,'',1,1,'2025-05-23 16:12:01','2025-05-23 16:12:01','Active','2025-05-23 16:12:01',NULL,'+',1),(54,37,3,'Mini statement with SMS','Account-Related',NULL,NULL,500.00,0,'',1,1,'2025-05-23 16:13:05','2025-05-23 16:13:05','Active','2025-05-23 16:13:05',NULL,'+',1),(55,38,3,'UMEME','Other Services',NULL,NULL,1500.00,0,'',1,1,'2025-05-23 16:20:53','2025-05-23 16:20:53','Active','2025-05-23 16:20:53',NULL,'+',1),(56,39,3,'NWSC','Other Services',NULL,NULL,0.00,0,'',1,1,'2025-05-23 16:21:13','2025-05-23 16:21:13','Active','2025-05-23 16:21:13',NULL,'+',1),(57,40,3,'Pay TV','Other Services',NULL,NULL,1500.00,0,'',1,1,'2025-05-23 16:21:42','2025-05-23 16:21:42','Active','2025-05-23 16:21:42',NULL,'+',1),(58,41,3,'URA','Other Services',NULL,NULL,1500.00,0,'',1,1,'2025-05-23 16:22:13','2025-05-23 16:22:13','Active','2025-05-23 16:22:13',NULL,'+',1),(59,42,3,'School Pay','Other Services',NULL,NULL,2000.00,0,'',1,1,'2025-05-23 16:22:39','2025-05-23 16:22:39','Active','2025-05-23 16:22:39',NULL,'+',1),(60,43,3,'NSSF Payment','Other Services',NULL,NULL,0.00,0,'',1,1,'2025-05-23 16:23:08','2025-05-23 16:23:08','Active','2025-05-23 16:23:08',NULL,'+',1),(61,42,3,'Elimu Pesa','Other Services',NULL,NULL,2000.00,0,'',1,1,'2025-05-23 16:22:39','2025-05-23 16:24:28','Active','2025-05-23 16:24:28',NULL,'~',1),(62,42,3,'Elimu Pesa','Other Services',NULL,NULL,2000.00,0,'',1,1,'2025-05-23 16:22:39','2025-05-23 16:24:35','Active','2025-05-23 16:24:35',NULL,'~',1),(63,44,3,'Other Billers','Other Services',NULL,NULL,2000.00,0,'',1,1,'2025-05-23 16:25:20','2025-05-23 16:25:20','Active','2025-05-23 16:25:20',NULL,'+',1),(64,45,3,'agent_deposit','Deposit',NULL,NULL,0.00,0,'',1,1,'2025-05-23 16:28:22','2025-05-23 16:28:22','Active','2025-05-23 16:28:22',NULL,'+',1),(65,46,3,'agent_withdrawal','Withdrawal',0.00,60000.00,1000.00,0,'',1,1,'2025-05-23 16:43:40','2025-05-23 16:43:40','Active','2025-05-23 16:43:40',NULL,'+',1),(66,47,3,'agent_withdrawal','Withdrawal',60001.00,150000.00,2000.00,0,'',1,1,'2025-05-23 16:44:23','2025-05-23 16:44:23','Active','2025-05-23 16:44:23',NULL,'+',1),(67,48,3,'agent_withdrawal','Withdrawal',150001.00,300000.00,2500.00,0,'',1,1,'2025-05-23 16:45:05','2025-05-23 16:45:05','Active','2025-05-23 16:45:05',NULL,'+',1),(68,49,3,'agent_withdrawal','Withdrawal',300001.00,600000.00,3500.00,0,'',1,1,'2025-05-23 16:45:49','2025-05-23 16:45:49','Active','2025-05-23 16:45:49',NULL,'+',1),(69,50,3,'agent_withdrawal','Withdrawal',600001.00,1000000.00,4500.00,0,'',1,1,'2025-05-23 16:46:37','2025-05-23 16:46:37','Active','2025-05-23 16:46:37',NULL,'+',1),(70,51,3,'agent_withdrawal','Withdrawal',1000001.00,2500000.00,6000.00,0,'',1,1,'2025-05-23 16:47:26','2025-05-23 16:47:26','Active','2025-05-23 16:47:26',NULL,'+',1),(71,52,3,'agent_withdrawal','Withdrawal',2500001.00,4000000.00,10000.00,0,'',1,1,'2025-05-23 16:48:31','2025-05-23 16:48:31','Active','2025-05-23 16:48:31',NULL,'+',1),(72,53,3,'Agent Bill Payments','Other Services',0.00,300000.00,2000.00,0,'',1,1,'2025-05-23 16:53:17','2025-05-23 16:53:17','Active','2025-05-23 16:53:17',NULL,'+',1),(73,54,3,'Agent Bill Payments','Other Services',300001.00,1000000.00,2600.00,0,'',1,1,'2025-05-23 16:53:54','2025-05-23 16:53:54','Active','2025-05-23 16:53:54',NULL,'+',1),(74,55,3,'Agent Bill Payments','Other Services',1000001.00,2500000.00,3000.00,0,'',1,1,'2025-05-23 16:54:31','2025-05-23 16:54:31','Active','2025-05-23 16:54:31',NULL,'+',1),(75,56,3,'Agent Bill Payments','Other Services',2500001.00,4000000.00,3500.00,0,'',1,1,'2025-05-23 17:02:49','2025-05-23 17:02:49','Active','2025-05-23 17:02:49',NULL,'+',1),(76,57,3,'Agent Bill Payments','Other Services',4000001.00,10000000.00,8000.00,0,'',1,1,'2025-05-23 17:03:36','2025-05-23 17:03:36','Active','2025-05-23 17:03:36',NULL,'+',1),(77,58,3,'Agent Bill Payments','Other Services',10000001.00,NULL,10000.00,0,'',1,1,'2025-05-23 17:04:15','2025-05-23 17:04:15','Active','2025-05-23 17:04:15',NULL,'+',1),(78,59,3,'Utility Bills (Over The Counter)','Other Services',NULL,NULL,2000.00,0,'',1,1,'2025-05-24 08:53:05','2025-05-24 08:53:05','Active','2025-05-24 08:53:05',NULL,'+',1),(79,60,3,'Audit Confirmation','Other Services',NULL,NULL,30000.00,0,'',1,1,'2025-05-24 08:53:53','2025-05-24 08:53:53','Active','2025-05-24 08:53:53',NULL,'+',1),(80,61,3,'Certificate of Balance','Other Services',NULL,NULL,30000.00,0,'',1,1,'2025-05-24 08:54:27','2025-05-24 08:54:27','Active','2025-05-24 08:54:27',NULL,'+',1),(81,62,3,'Letter of Introduction','Other Services',NULL,NULL,30000.00,0,'',1,1,'2025-05-24 08:54:53','2025-05-24 08:54:53','Active','2025-05-24 08:54:53',NULL,'+',1),(82,63,3,'Verification of Letters of Administration','Other Services',NULL,NULL,100000.00,0,'',1,1,'2025-05-24 08:55:24','2025-05-24 08:55:24','Active','2025-05-24 08:55:24',NULL,'+',1),(83,64,3,'Camera viewing','Other Services',NULL,NULL,50000.00,0,'',1,1,'2025-05-24 08:55:53','2025-05-24 08:55:53','Active','2025-05-24 08:55:53',NULL,'+',1);

--
-- Table structure for table `administrator_historicalstaff`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalstaff` (
  `staff_id` int(11) NOT NULL,
  `firstname` varchar(100) NOT NULL,
  `lastname` varchar(100) NOT NULL,
  `othername` varchar(100) DEFAULT NULL,
  `gender` varchar(6) NOT NULL,
  `dateofbirth` date NOT NULL,
  `address` varchar(100) NOT NULL,
  `telephone1` varchar(20) NOT NULL,
  `telephone2` varchar(20) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `jobdescription` varchar(500) DEFAULT NULL,
  `salary` decimal(10,2) NOT NULL,
  `hiredate` date NOT NULL,
  `enddate` date DEFAULT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `created_at` datetime(6) NOT NULL,
  `updated_at` datetime(6) DEFAULT NULL,
  `updated_by` bigint(20) DEFAULT NULL,
  `status` varchar(20) NOT NULL,
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `category_id` int(11) DEFAULT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `staff_number` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `administrator_histor_history_user_id_971dc479_fk_auth_user` (`history_user_id`),
  KEY `administrator_historicalstaff_staff_id_28986165` (`staff_id`),
  KEY `administrator_historicalstaff_email_5e286173` (`email`),
  KEY `administrator_historicalstaff_history_date_94b6fb81` (`history_date`),
  KEY `administrator_historicalstaff_category_id_2c44df92` (`category_id`),
  KEY `administrator_historicalstaff_created_by_acea24a0` (`created_by`),
  KEY `administrator_historicalstaff_updated_by_adbe6cd6` (`updated_by`),
  CONSTRAINT `administrator_histor_history_user_id_971dc479_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicalstaff`
--

INSERT INTO `administrator_historicalstaff` VALUES (1,'jkkj','jjkj',NULL,'Male','2025-04-08','address','0777889663',NULL,NULL,'description',900000.00,'2025-04-11',NULL,0,'2025-04-11 05:36:23.000000','2025-04-21 14:11:32.292253',1,'Active',1,'2025-04-21 14:11:32.293375',NULL,'~',2,1,NULL),(1,'jkkj','jjkj',NULL,'Male','2025-04-08','address','0777889663',NULL,NULL,'description',900000.00,'2025-04-11',NULL,0,'2025-04-11 05:36:23.000000','2025-04-21 19:16:27.001381',1,'Active',2,'2025-04-21 19:16:27.002639',NULL,'~',2,1,NULL),(1,'jkkj','jjkj',NULL,'Male','2025-04-08','address','0777889663',NULL,NULL,'description',900000.00,'2025-04-11',NULL,0,'2025-04-11 05:36:23.000000','2025-04-21 19:16:34.426491',1,'Active',3,'2025-04-21 19:16:34.427576',NULL,'~',2,1,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.322947','2025-04-21 19:18:30.322981',1,'Active',4,'2025-04-21 19:18:30.323668',NULL,'+',5,1,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-21 19:19:43.338061',1,'Active',5,'2025-04-21 19:19:43.339245',NULL,'~',5,1,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-21 19:22:16.940537',1,'Active',6,'2025-04-21 19:22:16.941651',NULL,'~',5,1,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-21 19:28:27.417271',1,'Active',7,'2025-04-21 19:28:27.418696',NULL,'~',5,1,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-21 19:35:56.444737',1,'Active',8,'2025-04-21 19:35:56.445842',NULL,'~',5,1,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-21 19:45:34.434558',1,'Active',9,'2025-04-21 19:45:34.435609',NULL,'~',5,1,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-21 20:10:18.300151',2,'Active',10,'2025-04-21 20:10:18.301260',NULL,'~',5,2,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-21 20:59:52.394078',2,'Active',11,'2025-04-21 20:59:52.395207',NULL,'~',13,2,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-28 11:37:38.309068',1,'Active',22,'2025-04-28 11:37:38.310331',NULL,'~',13,1,NULL),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-28 11:37:38.309068',1,'Active',23,'2025-04-28 11:37:38.313287',NULL,'~',13,1,'STF-2'),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-28 12:37:40.817280',1,'Active',34,'2025-04-28 12:37:40.818321',NULL,'~',13,1,'STF-2'),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-28 12:37:44.735574',1,'Active',35,'2025-04-28 12:37:44.736627',NULL,'~',13,1,'STF-2'),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-28 12:38:02.969374',1,'Active',36,'2025-04-28 12:38:02.971095',NULL,'~',13,1,'STF-2'),(3,'Kizito','John',NULL,'Male','2025-04-28','Mukono','0777889663',NULL,NULL,NULL,900000.00,'2025-04-28',NULL,1,'2025-04-28 16:44:56.202924','2025-04-28 16:44:56.202957',1,'Active',37,'2025-04-28 16:44:56.206096',NULL,'+',13,1,NULL),(3,'Kizito','John',NULL,'Male','2025-04-28','Mukono','0777889663',NULL,NULL,NULL,900000.00,'2025-04-28',NULL,1,'2025-04-28 16:44:56.202924','2025-04-28 16:44:56.202957',1,'Active',38,'2025-04-28 16:44:56.212064',NULL,'~',13,1,'STF-3'),(3,'Kizito','John',NULL,'Male','2025-04-28','Mukono','0777889663',NULL,NULL,NULL,900000.00,'2025-04-28',NULL,1,'2025-04-28 16:44:56.000000','2025-04-28 16:45:54.608569',1,'Active',39,'2025-04-28 16:45:54.609533',NULL,'~',13,1,'STF-3'),(2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,700000.00,'2025-04-21',NULL,1,'2025-04-21 19:18:30.000000','2025-04-28 16:56:02.390958',1,'Active',40,'2025-04-28 16:56:02.392063',NULL,'~',13,1,'STF-2'),(3,'Kizito','John',NULL,'Male','2025-04-28','Mukono','0777889663',NULL,NULL,NULL,900000.00,'2025-04-28',NULL,1,'2025-04-28 16:44:56.000000','2025-04-28 16:56:05.834826',1,'Active',41,'2025-04-28 16:56:05.835854',NULL,'~',13,1,'STF-3');

--
-- Table structure for table `administrator_historicalstaffbranchassignment`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalstaffbranchassignment` (
  `id` bigint(20) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `created_at` datetime(6) NOT NULL,
  `updated_at` datetime(6) DEFAULT NULL,
  `updated_by` bigint(20) DEFAULT NULL,
  `status` varchar(20) NOT NULL,
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `branch_id` bigint(20) DEFAULT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `staff_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `administrator_histor_history_user_id_c15034f3_fk_auth_user` (`history_user_id`),
  KEY `administrator_historicalstaffbranchassignment_id_c119ad23` (`id`),
  KEY `administrator_historicalsta_history_date_811d1b16` (`history_date`),
  KEY `administrator_historicalstaffbranchassignment_branch_id_5d08d0c5` (`branch_id`),
  KEY `administrator_historicalstaffbranchassignment_staff_id_d8e853ae` (`staff_id`),
  KEY `administrator_historicalsta_created_by_a1dd9978` (`created_by`),
  KEY `administrator_historicalsta_updated_by_45786ca5` (`updated_by`),
  CONSTRAINT `administrator_histor_history_user_id_c15034f3_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicalstaffbranchassignment`
--

INSERT INTO `administrator_historicalstaffbranchassignment` VALUES (2,'2025-04-01','2025-04-21',1,'2025-04-21 13:28:51.000000','2025-04-21 14:11:40.087932',1,'Inactive',1,'2025-04-21 14:11:40.088970',NULL,'~',2,1,1),(3,'2025-04-21',NULL,1,'2025-04-21 19:21:56.351549','2025-04-21 19:21:56.351582',1,'Active',2,'2025-04-21 19:21:56.352286',NULL,'+',2,1,2),(3,'2025-04-21',NULL,1,'2025-04-21 19:21:56.000000','2025-04-21 19:30:01.766703',1,'Active',3,'2025-04-21 19:30:01.767745',NULL,'~',2,1,2),(4,'2025-04-21',NULL,1,'2025-04-21 19:31:06.856293','2025-04-21 19:31:06.856328',1,'Active',4,'2025-04-21 19:31:06.857013',NULL,'+',1,1,2),(4,'2025-04-21',NULL,1,'2025-04-21 19:31:07.000000','2025-04-21 19:31:15.492572',1,'Active',5,'2025-04-21 19:31:15.493540',NULL,'~',1,1,2),(3,'2025-04-21','2025-04-21',1,'2025-04-21 19:21:56.000000','2025-04-21 19:31:27.742196',1,'Inactive',6,'2025-04-21 19:31:27.743304',NULL,'~',2,1,2),(3,'2025-04-21',NULL,1,'2025-04-21 19:21:56.000000','2025-04-21 19:31:39.712589',1,'Active',7,'2025-04-21 19:31:39.713561',NULL,'~',2,1,2),(4,'2025-04-21',NULL,1,'2025-04-21 19:31:07.000000','2025-04-21 19:31:56.987940',1,'Active',8,'2025-04-21 19:31:56.988880',NULL,'~',1,1,2),(4,'2025-04-21',NULL,1,'2025-04-21 19:31:07.000000','2025-04-21 20:59:46.320978',2,'Active',9,'2025-04-21 20:59:46.322170',NULL,'~',1,2,2),(3,'2025-04-21',NULL,1,'2025-04-21 19:21:56.000000','2025-04-21 21:00:06.767665',2,'Active',10,'2025-04-21 21:00:06.768554',NULL,'~',2,2,2),(5,'2025-04-28',NULL,1,'2025-04-28 16:45:37.994345','2025-04-28 16:45:37.994374',1,'Active',11,'2025-04-28 16:45:37.995640',NULL,'+',1,1,3),(2,'2025-04-01','2025-04-21',1,'2025-04-21 13:28:51.000000','2025-04-28 16:47:17.422981',1,'Inactive',12,'2025-04-28 16:47:17.423964',NULL,'~',2,1,2),(1,'2025-04-21',NULL,1,'2025-04-21 13:28:36.000000','2025-04-28 16:47:39.828611',1,'Active',13,'2025-04-28 16:47:39.829629',NULL,'~',1,1,2);

--
-- Table structure for table `administrator_historicalstaffcategories`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalstaffcategories` (
  `category_id` int(11) NOT NULL,
  `category_name` varchar(100) NOT NULL,
  `description` varchar(500) DEFAULT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `created_at` datetime(6) NOT NULL,
  `updated_at` datetime(6) DEFAULT NULL,
  `updated_by` bigint(20) DEFAULT NULL,
  `status` varchar(20) NOT NULL,
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `administrator_histor_history_user_id_29269e9f_fk_auth_user` (`history_user_id`),
  KEY `administrator_historicalstaffcategories_category_id_e162211d` (`category_id`),
  KEY `administrator_historicalstaffcategories_history_date_0fa3d782` (`history_date`),
  KEY `administrator_historicalstaffcategories_created_by_eaf48fea` (`created_by`),
  KEY `administrator_historicalstaffcategories_updated_by_8cb33b90` (`updated_by`),
  CONSTRAINT `administrator_histor_history_user_id_29269e9f_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicalstaffcategories`
--

INSERT INTO `administrator_historicalstaffcategories` VALUES (6,'Maintenance','Maintenance Supervisor,Technician (Electrician, Plumber, HVAC Technician),General Maintenance Worker',0,'2025-04-21 12:23:12.000000','2025-04-21 14:25:41.884762',1,'Active',1,'2025-04-21 14:25:41.886402',NULL,'~',1),(6,'Maintenance','Maintenance Supervisor,Technician (Electrician, Plumber, HVAC Technician),General Maintenance Worker',0,'2025-04-21 12:23:12.000000','2025-04-21 14:25:46.632016',1,'Inactive',2,'2025-04-21 14:25:46.632961',NULL,'~',1),(3,'Housekeeping','Housekeeping Supervisor,\r\nRoom Attendant/Housekeeper,\r\nLaundry Attendant,\r\nPublic Area Attendant',0,'2025-04-21 12:23:12.000000',NULL,NULL,'Active',3,'2025-04-21 14:29:44.360862',NULL,'-',1),(11,'New Cateory',NULL,1,'2025-04-21 14:10:45.000000','2025-04-21 17:30:45.581574',1,'Active',4,'2025-04-21 17:30:45.582676',NULL,'~',1),(11,'New Cateory',NULL,1,'2025-04-21 18:09:29.895470','2025-04-21 18:09:29.895483',1,'Active',5,'2025-04-21 18:09:29.896417',NULL,'~',1),(11,'New Cateory',NULL,1,'2025-04-21 18:09:32.556968','2025-04-21 18:09:32.556980',1,'Active',6,'2025-04-21 18:09:32.557911',NULL,'~',1),(11,'New Cateory',NULL,1,'2025-04-21 18:09:51.094581','2025-04-21 18:09:51.094593',1,'Active',7,'2025-04-21 18:09:51.095626',NULL,'~',1),(12,'Nw category 2',NULL,1,'2025-04-21 18:11:13.550311','2025-04-21 18:11:13.550355',1,'Active',8,'2025-04-21 18:11:13.550997',NULL,'+',1),(12,'Nw category 2',NULL,1,'2025-04-21 18:11:27.134588','2025-04-21 18:11:27.134600',1,'Inactive',9,'2025-04-21 18:11:27.135626',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:12:03.218199','2025-04-21 18:12:03.218211',1,'Active',10,'2025-04-21 18:12:03.219450',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:34.723719','2025-04-21 18:15:34.723732',1,'Active',11,'2025-04-21 18:15:34.724627',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:35.000000','2025-04-21 18:32:25.771721',1,'Active',12,'2025-04-21 18:32:25.773157',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:35.000000','2025-04-21 19:06:31.433241',1,'Active',13,'2025-04-21 19:06:31.434153',NULL,'~',1),(11,'New Cateory',NULL,1,'2025-04-21 18:09:51.000000','2025-04-21 19:08:46.687406',1,'Active',14,'2025-04-21 19:08:46.688510',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:35.000000','2025-04-21 19:13:48.351813',1,'Active',15,'2025-04-21 19:13:48.352881',NULL,'~',1),(11,'New Cateory',NULL,1,'2025-04-21 18:09:51.000000','2025-04-21 19:32:02.573617',1,'Active',16,'2025-04-21 19:32:02.574772',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:35.000000','2025-04-21 19:34:52.395168',1,'Active',17,'2025-04-21 19:34:52.395997',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:35.000000','2025-04-21 19:47:11.912774',1,'Active',18,'2025-04-21 19:47:11.913712',NULL,'~',1),(11,'New Cateory',NULL,1,'2025-04-21 18:09:51.000000','2025-04-21 19:59:00.053287',1,'Active',19,'2025-04-21 19:59:00.054278',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:35.000000','2025-04-21 19:59:04.780861',1,'Active',20,'2025-04-21 19:59:04.781826',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:35.000000','2025-04-21 19:59:25.082600',1,'Active',21,'2025-04-21 19:59:25.083918',NULL,'~',1),(11,'New Cateory',NULL,1,'2025-04-21 18:09:51.000000','2025-04-21 19:59:29.299099',1,'Active',22,'2025-04-21 19:59:29.300089',NULL,'~',1),(12,'New category 2','Description new2',1,'2025-04-21 18:15:35.000000','2025-04-21 19:59:25.000000',1,'Active',23,'2025-04-21 20:01:40.784830',NULL,'-',1),(11,'New Cateory hss',NULL,1,'2025-04-21 18:09:51.000000','2025-04-21 20:04:47.525968',1,'Active',24,'2025-04-21 20:04:47.526995',NULL,'~',1),(11,'New Cateory hss','hdghsdghsdsgsdsd',1,'2025-04-21 18:09:51.000000','2025-04-21 20:05:38.694858',1,'Active',25,'2025-04-21 20:05:38.696191',NULL,'~',1),(11,'New Cateory hss','hdghsdghsdsgsdsd',1,'2025-04-21 18:09:51.000000','2025-04-21 20:05:55.380228',1,'Inactive',26,'2025-04-21 20:05:55.381237',NULL,'~',1),(11,'New Category','Description',1,'2025-04-21 18:09:51.000000','2025-04-21 20:09:25.668703',2,'Active',27,'2025-04-21 20:09:25.669730',NULL,'~',2),(11,'New Category','Description',1,'2025-04-21 18:09:51.000000','2025-04-21 20:10:25.235826',2,'Active',28,'2025-04-21 20:10:25.236995',NULL,'~',2),(11,'New Category','Description',1,'2025-04-21 18:09:51.000000','2025-04-21 20:10:25.000000',2,'Active',29,'2025-04-21 20:10:52.011523',NULL,'-',2),(13,'Technology',NULL,2,'2025-04-21 20:58:13.304113','2025-04-21 20:58:13.304149',2,'Active',30,'2025-04-21 20:58:13.304747',NULL,'+',2),(13,'Technology',NULL,2,'2025-04-21 20:58:13.000000','2025-04-21 20:58:15.634685',2,'Active',31,'2025-04-21 20:58:15.635603',NULL,'~',2),(13,'Technology',NULL,2,'2025-04-21 20:58:13.000000','2025-04-21 20:59:42.475271',2,'Active',32,'2025-04-21 20:59:42.476205',NULL,'~',2);

--
-- Table structure for table `administrator_historicaltransfer`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicaltransfer` (
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_id` int(11) DEFAULT NULL,
  `reference_number` varchar(100) DEFAULT NULL,
  `transfer_category` varchar(50) DEFAULT NULL,
  `source_account_id` int(11) DEFAULT NULL,
  `destination_account_id` int(11) DEFAULT NULL,
  `amount` decimal(15,2) DEFAULT NULL,
  `transfer_date` datetime DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `status` varchar(20) DEFAULT NULL,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `processed_at` timestamp NULL DEFAULT NULL,
  `transfer_method` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`history_id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicaltransfer`
--

INSERT INTO `administrator_historicaltransfer` VALUES (2,8,NULL,'Account-to-Account',3,1,1000.00,'2025-05-15 21:59:00','Withdraw Fee deposit from account 329998937498 (over_the_counter)',1,NULL,'2025-05-15 21:59:00',NULL,'Completed','2025-05-15 21:59:00.410271',NULL,'+',1,NULL,NULL),(3,9,NULL,'Account-to-Account',3,1,1000.00,'2025-05-15 22:00:29','Withdraw Fee deposit from account 329998937498 (over_the_counter)',1,NULL,'2025-05-15 22:00:29',NULL,'Completed','2025-05-15 22:00:28.718240',NULL,'+',1,NULL,NULL),(4,10,NULL,'Account-to-Account',3,1,1900.00,'2025-05-16 11:03:48','Withdraw Fee deposit from account 329998937498 (over_the_counter)',1,NULL,'2025-05-16 11:03:48',NULL,'Completed','2025-05-16 11:03:47.535653',NULL,'+',1,NULL,NULL),(6,12,NULL,'Account to Account',2,3,77.00,'2025-05-21 17:29:40','Testing',1,1,'2025-05-21 17:29:40','2025-05-21 17:29:40','success','2025-05-21 17:29:40.375246',NULL,'+',1,'2025-05-21 14:29:40','Over the Counter'),(7,13,NULL,'Account to Account',2,1,1000.00,'2025-05-21 17:29:40','Transfer Fee: From account 90565446 (Account to Account)',1,NULL,'2025-05-21 17:29:40',NULL,'Completed','2025-05-21 17:29:40.398113',NULL,'+',1,NULL,NULL),(10,16,NULL,'Account to Account',2,3,100.00,'2025-05-21 17:46:05','Payment',1,1,'2025-05-21 17:46:05','2025-05-21 17:46:05','success','2025-05-21 17:46:05.315313',NULL,'+',1,'2025-05-21 14:46:05','Over the Counter'),(11,17,NULL,'Account to Account',2,1,1000.00,'2025-05-21 17:46:05','Transfer: From account 90565446 (Account to Account)',1,NULL,'2025-05-21 17:46:05',NULL,'Completed','2025-05-21 17:46:05.331638',NULL,'+',1,NULL,NULL),(20,26,NULL,'Account to Cash',2,NULL,100.00,'2025-05-22 09:25:18','School Fees',1,1,'2025-05-22 09:25:18','2025-05-22 09:25:18','success','2025-05-22 09:25:17.910142',NULL,'+',1,'2025-05-22 06:25:18','Over the Counter'),(21,27,NULL,'Account to Account',2,1,2000.00,'2025-05-22 09:25:18','Transfer: From account 90565446 (Account to Cash)',1,NULL,'2025-05-22 09:25:18',NULL,'Completed','2025-05-22 09:25:17.925146',NULL,'+',1,NULL,NULL),(22,28,NULL,'Account to Account',2,1,1900.00,'2025-05-22 17:25:59','Withdrawal: From account 90565446 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 17:25:59',NULL,'Completed','2025-05-22 17:25:59.341243',NULL,'+',1,NULL,NULL),(23,29,NULL,'Account to Account',3,1,1900.00,'2025-05-22 17:33:32','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 17:33:32',NULL,'Completed','2025-05-22 17:33:32.261270',NULL,'+',1,NULL,NULL),(24,30,NULL,'Account to Account',3,1,1900.00,'2025-05-22 17:40:18','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 17:40:18',NULL,'Completed','2025-05-22 17:40:18.396305',NULL,'+',1,NULL,NULL),(25,31,NULL,'Account to Account',3,1,1900.00,'2025-05-22 17:46:14','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 17:46:14',NULL,'Completed','2025-05-22 17:46:14.389302',NULL,'+',1,NULL,NULL),(26,32,NULL,'Account to Account',3,1,1900.00,'2025-05-22 17:47:16','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 17:47:16',NULL,'Completed','2025-05-22 17:47:15.781498',NULL,'+',1,NULL,NULL),(27,33,NULL,'Account to Account',2,1,1900.00,'2025-05-22 17:49:44','Withdrawal: From account 90565446 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 17:49:44',NULL,'Completed','2025-05-22 17:49:43.755551',NULL,'+',1,NULL,NULL);

--
-- Table structure for table `administrator_historicaltransferdetails`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicaltransferdetails` (
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_details_id` int(11) DEFAULT NULL,
  `transfer_id` int(11) DEFAULT NULL,
  `country_money_is_sent_from` varchar(100) DEFAULT NULL,
  `sender_nationality` varchar(100) DEFAULT NULL,
  `sender_fullnames` varchar(100) DEFAULT NULL,
  `sender_phone` varchar(20) DEFAULT NULL,
  `sender_email` varchar(100) DEFAULT NULL,
  `sender_date_of_birth` date DEFAULT NULL,
  `sender_residence` varchar(255) DEFAULT NULL,
  `country_money_is_received_from` varchar(100) DEFAULT NULL,
  `receiver_nationality` varchar(100) DEFAULT NULL,
  `receiver_fullnames` varchar(100) DEFAULT NULL,
  `receiver_phone` varchar(20) DEFAULT NULL,
  `receiver_email` varchar(100) DEFAULT NULL,
  `receiver_date_of_birth` date DEFAULT NULL,
  `receiver_residence` varchar(255) DEFAULT NULL,
  `currency_sent` varchar(10) DEFAULT NULL,
  `amount_sent` decimal(15,2) DEFAULT NULL,
  `currency_to_receive` varchar(10) DEFAULT NULL,
  `amount_to_receive` decimal(15,2) DEFAULT NULL,
  `transaction_fee` decimal(15,2) DEFAULT NULL,
  `security_code` varchar(50) DEFAULT NULL,
  `security_code_expiry` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `sender_id_attachment` varchar(255) DEFAULT NULL,
  `receiver_id_attachment` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`history_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicaltransferdetails`
--

INSERT INTO `administrator_historicaltransferdetails` VALUES (1,2,26,'Uganda','Ugandan','Sebagala Charles','256777889663','sebagalacharles@gmail.com','2025-05-22','Wakiso','Uganda','Ugandan','Sekitto Ben','256759927608',NULL,'2025-05-22','Kampala','UGX',10000.00,'UGX',9000.00,1000.00,'8u79','2025-06-22 08:15:58','2025-05-22 08:16:01',NULL,'2025-05-22 09:25:17.940151',NULL,'+',1,'','');

--
-- Table structure for table `administrator_historicalwithdrawal`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `administrator_historicalwithdrawal` (
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `withdrawal_id` int(11) DEFAULT NULL,
  `transfer_id` int(11) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `amount` decimal(12,2) NOT NULL,
  `withdrawal_method` varchar(50) DEFAULT NULL,
  `status` varchar(20) DEFAULT 'pending',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `processed_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`history_id`),
  KEY `fk_history_user` (`history_user_id`),
  KEY `fk_historical_account` (`account_id`),
  KEY `fk_historical_transfer` (`transfer_id`),
  KEY `fk_historical_created_by` (`created_by`),
  KEY `fk_historical_updated_by` (`updated_by`),
  CONSTRAINT `fk_historical_account` FOREIGN KEY (`account_id`) REFERENCES `account` (`account_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_historical_created_by` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_historical_transfer` FOREIGN KEY (`transfer_id`) REFERENCES `transfer` (`transfer_id`) ON DELETE SET NULL,
  CONSTRAINT `fk_historical_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_history_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `administrator_historicalwithdrawal`
--

INSERT INTO `administrator_historicalwithdrawal` VALUES (1,'2025-05-15 13:44:30.338117',NULL,'~',1,2,NULL,2,900.00,'Over the Counter','pending',1,1,'2025-05-15 08:49:36','2025-05-15 18:58:18',NULL),(2,'2025-05-15 16:55:23.639810',NULL,'+',1,4,NULL,2,100.00,'Over the Counter','success',1,1,'2025-05-15 13:55:24','2025-05-15 18:58:18','2025-05-15 13:55:24'),(15,'2025-05-15 18:31:35.983904',NULL,'+',1,17,NULL,2,100.00,'Over the Counter','success',1,1,'2025-05-15 15:31:36','2025-05-15 18:58:18','2025-05-15 15:31:36'),(16,'2025-05-15 19:19:32.077883',NULL,'+',1,18,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-15 16:19:32','2025-05-15 16:19:32','2025-05-15 16:19:32'),(17,'2025-05-15 21:14:30.683482',NULL,'+',1,19,NULL,3,200.00,'Over the Counter','success',1,1,'2025-05-15 18:14:31','2025-05-15 18:14:31','2025-05-15 18:14:31'),(18,'2025-05-15 21:17:11.865660',NULL,'+',1,20,NULL,3,398.00,'Over the Counter','pending',1,1,'2025-05-15 18:17:12','2025-05-15 18:17:12',NULL),(19,'2025-05-15 21:18:21.511295',NULL,'+',1,21,NULL,3,398.00,'Over the Counter','pending',1,1,'2025-05-15 18:18:22','2025-05-15 18:18:22',NULL),(28,'2025-05-15 21:39:45.463958',NULL,'+',1,30,NULL,3,398.00,'Over the Counter','success',1,1,'2025-05-15 18:39:45','2025-05-15 18:39:45','2025-05-15 18:39:45'),(33,'2025-05-15 21:59:00.395426',NULL,'+',1,35,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-15 18:59:00','2025-05-15 18:59:00','2025-05-15 18:59:00'),(34,'2025-05-15 22:00:28.705509',NULL,'+',1,36,NULL,3,900.00,'Over the Counter','success',1,1,'2025-05-15 19:00:29','2025-05-15 19:00:29','2025-05-15 19:00:29'),(35,'2025-05-16 10:01:01.075489',NULL,'+',1,37,NULL,3,9999999999.00,'Over the Counter','pending',1,1,'2025-05-16 07:01:01','2025-05-16 07:01:01',NULL),(36,'2025-05-16 10:21:16.195422',NULL,'~',1,37,NULL,3,9999999999.00,'Over the Counter','pending',1,1,'2025-05-16 07:01:01','2025-05-16 07:21:16',NULL),(37,'2025-05-16 10:21:20.722523',NULL,'~',1,37,NULL,3,9999999999.00,'Over the Counter','pending',1,1,'2025-05-16 07:01:01','2025-05-16 07:21:21',NULL),(38,'2025-05-16 10:21:59.648434',NULL,'~',1,37,NULL,3,9999999999.00,'Over the Counter','pending',1,1,'2025-05-16 07:01:01','2025-05-16 07:22:00',NULL),(39,'2025-05-16 10:43:10.485093',NULL,'+',1,38,NULL,2,1000.00,'Over the Counter','pending',1,1,'2025-05-16 07:43:10','2025-05-16 07:43:10',NULL),(40,'2025-05-16 10:52:02.356123',NULL,'~',1,38,NULL,2,1000.00,'Over the Counter','success',1,1,'2025-05-16 07:43:10','2025-05-16 07:52:02','2025-05-16 07:52:02'),(41,'2025-05-16 11:02:05.623060',NULL,'~',1,37,NULL,3,150000.00,'Over the Counter','pending',1,1,'2025-05-16 07:01:01','2025-05-16 08:02:06',NULL),(42,'2025-05-16 11:03:47.544490',NULL,'~',1,37,NULL,3,150000.00,'Over the Counter','success',1,1,'2025-05-16 07:01:01','2025-05-16 08:03:48','2025-05-16 08:03:48'),(43,'2025-05-22 17:25:59.321182',NULL,'+',1,39,NULL,2,100.00,'Over the Counter','success',1,1,'2025-05-22 14:25:59','2025-05-22 14:25:59','2025-05-22 14:25:59'),(44,'2025-05-22 17:33:32.243630',NULL,'+',1,40,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-22 14:33:32','2025-05-22 14:33:32','2025-05-22 14:33:32'),(45,'2025-05-22 17:40:18.379976',NULL,'+',1,41,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-22 14:40:18','2025-05-22 14:40:18','2025-05-22 14:40:18'),(46,'2025-05-22 17:46:14.373597',NULL,'+',1,42,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-22 14:46:14','2025-05-22 14:46:14','2025-05-22 14:46:14'),(47,'2025-05-22 17:47:15.765584',NULL,'+',1,43,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-22 14:47:16','2025-05-22 14:47:16','2025-05-22 14:47:16'),(48,'2025-05-22 17:49:43.739339',NULL,'+',1,44,NULL,2,100.00,'Over the Counter','success',1,1,'2025-05-22 14:49:44','2025-05-22 14:49:44','2025-05-22 14:49:44');

--
-- Table structure for table `auth_group`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `auth_group`
--

INSERT INTO `auth_group` VALUES (3,'Accountant'),(11,'Agent'),(9,'Client'),(7,'Full Admin'),(8,'Gym'),(1,'Hotel Manager'),(6,'HR'),(2,'Receptionist'),(5,'Referrer Manager'),(10,'Staff'),(4,'Vendor Manager');

--
-- Table structure for table `auth_group_permissions`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_group_permissions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) NOT NULL,
  `permission_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
  KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
  CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=161 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `auth_group_permissions`
--

INSERT INTO `auth_group_permissions` VALUES (1,1,90),(2,1,91),(3,1,92),(4,1,93),(5,1,94),(16,1,110),(17,1,111),(18,1,112),(19,1,113),(20,1,114),(6,1,115),(7,1,116),(8,1,117),(9,1,118),(10,1,119),(11,1,120),(12,1,121),(13,1,122),(14,1,123),(15,1,124),(21,2,80),(22,2,81),(23,2,82),(24,2,83),(25,2,84),(31,2,105),(32,2,106),(33,2,107),(34,2,108),(35,2,109),(26,2,110),(27,2,111),(28,2,112),(29,2,113),(30,2,114),(51,3,55),(52,3,56),(53,3,57),(54,3,58),(55,3,59),(46,3,85),(47,3,86),(48,3,87),(49,3,88),(50,3,89),(40,3,95),(36,3,96),(37,3,97),(38,3,98),(39,3,99),(41,3,130),(42,3,131),(43,3,132),(44,3,133),(45,3,134),(61,4,85),(62,4,86),(63,4,87),(64,4,88),(65,4,89),(56,4,135),(57,4,136),(58,4,137),(59,4,138),(60,4,139),(71,5,55),(72,5,56),(73,5,57),(74,5,58),(75,5,59),(66,5,100),(67,5,101),(68,5,102),(69,5,103),(70,5,104),(76,6,120),(77,6,121),(78,6,122),(79,6,123),(80,6,124),(83,6,125),(84,6,126),(85,6,127),(81,6,128),(82,6,129),(86,6,130),(87,6,131),(88,6,132),(89,6,133),(90,6,134),(141,7,55),(142,7,56),(143,7,57),(144,7,58),(145,7,59),(121,7,80),(122,7,81),(123,7,82),(124,7,83),(125,7,84),(111,7,85),(112,7,86),(113,7,87),(114,7,88),(115,7,89),(146,7,90),(147,7,91),(148,7,92),(149,7,93),(150,7,94),(140,7,95),(136,7,96),(137,7,97),(138,7,98),(139,7,99),(116,7,100),(117,7,101),(118,7,102),(119,7,103),(120,7,104),(131,7,105),(132,7,106),(133,7,107),(134,7,108),(135,7,109),(126,7,110),(127,7,111),(128,7,112),(129,7,113),(130,7,114),(151,7,115),(152,7,116),(153,7,117),(154,7,118),(155,7,119),(91,7,120),(92,7,121),(93,7,122),(94,7,123),(95,7,124),(98,7,125),(99,7,126),(100,7,127),(96,7,128),(97,7,129),(101,7,130),(102,7,131),(103,7,132),(104,7,133),(105,7,134),(106,7,135),(107,7,136),(108,7,137),(109,7,138),(110,7,139),(156,8,140),(157,8,141),(158,8,142),(159,8,143),(160,8,144);

--
-- Table structure for table `auth_permission`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_permission` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `content_type_id` int(11) NOT NULL,
  `codename` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
  CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=473 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `auth_permission`
--

INSERT INTO `auth_permission` VALUES (1,'Can add log entry',1,'add_logentry'),(2,'Can change log entry',1,'change_logentry'),(3,'Can delete log entry',1,'delete_logentry'),(4,'Can view log entry',1,'view_logentry'),(5,'Can add permission',2,'add_permission'),(6,'Can change permission',2,'change_permission'),(7,'Can delete permission',2,'delete_permission'),(8,'Can view permission',2,'view_permission'),(9,'Can add group',3,'add_group'),(10,'Can change group',3,'change_group'),(11,'Can delete group',3,'delete_group'),(12,'Can view group',3,'view_group'),(13,'Can add user',4,'add_user'),(14,'Can change user',4,'change_user'),(15,'Can delete user',4,'delete_user'),(16,'Can view user',4,'view_user'),(17,'Can add content type',5,'add_contenttype'),(18,'Can change content type',5,'change_contenttype'),(19,'Can delete content type',5,'delete_contenttype'),(20,'Can view content type',5,'view_contenttype'),(21,'Can add session',6,'add_session'),(22,'Can change session',6,'change_session'),(23,'Can delete session',6,'delete_session'),(24,'Can view session',6,'view_session'),(25,'Can add auth group',21,'add_authgroup'),(26,'Can change auth group',21,'change_authgroup'),(27,'Can delete auth group',21,'delete_authgroup'),(28,'Can view auth group',21,'view_authgroup'),(29,'Can export auth group data',21,'export_authgroup'),(30,'Can add auth group permissions',22,'add_authgrouppermissions'),(31,'Can change auth group permissions',22,'change_authgrouppermissions'),(32,'Can delete auth group permissions',22,'delete_authgrouppermissions'),(33,'Can view auth group permissions',22,'view_authgrouppermissions'),(34,'Can export auth group permissions data',22,'export_authgrouppermissions'),(35,'Can add auth permission',23,'add_authpermission'),(36,'Can change auth permission',23,'change_authpermission'),(37,'Can delete auth permission',23,'delete_authpermission'),(38,'Can view auth permission',23,'view_authpermission'),(39,'Can export auth permission data',23,'export_authpermission'),(40,'Can add auth user',24,'add_authuser'),(41,'Can change auth user',24,'change_authuser'),(42,'Can delete auth user',24,'delete_authuser'),(43,'Can view auth user',24,'view_authuser'),(44,'Can export auth user data',24,'export_authuser'),(45,'Can add auth user groups',25,'add_authusergroups'),(46,'Can change auth user groups',25,'change_authusergroups'),(47,'Can delete auth user groups',25,'delete_authusergroups'),(48,'Can view auth user groups',25,'view_authusergroups'),(49,'Can export auth user groups data',25,'export_authusergroups'),(50,'Can add auth user user permissions',26,'add_authuseruserpermissions'),(51,'Can change auth user user permissions',26,'change_authuseruserpermissions'),(52,'Can delete auth user user permissions',26,'delete_authuseruserpermissions'),(53,'Can view auth user user permissions',26,'view_authuseruserpermissions'),(54,'Can export auth user permissions data',26,'export_authuserpermissions'),(55,'Can add commissions',19,'add_commissions'),(56,'Can change commissions',19,'change_commissions'),(57,'Can delete commissions',19,'delete_commissions'),(58,'Can view commissions',19,'view_commissions'),(59,'Can export commissions data',19,'export_commissions'),(60,'Can add django admin log',27,'add_djangoadminlog'),(61,'Can change django admin log',27,'change_djangoadminlog'),(62,'Can delete django admin log',27,'delete_djangoadminlog'),(63,'Can view django admin log',27,'view_djangoadminlog'),(64,'Can export django admin log data',27,'export_djangoadminlog'),(65,'Can add django content type',28,'add_djangocontenttype'),(66,'Can change django content type',28,'change_djangocontenttype'),(67,'Can delete django content type',28,'delete_djangocontenttype'),(68,'Can view django content type',28,'view_djangocontenttype'),(69,'Can export django content type data',28,'export_djangocontenttype'),(70,'Can add django migrations',29,'add_djangomigrations'),(71,'Can change django migrations',29,'change_djangomigrations'),(72,'Can delete django migrations',29,'delete_djangomigrations'),(73,'Can view django migrations',29,'view_djangomigrations'),(74,'Can export django migrations data',29,'export_djangomigrations'),(75,'Can add django session',30,'add_djangosession'),(76,'Can change django session',30,'change_djangosession'),(77,'Can delete django session',30,'delete_djangosession'),(78,'Can view django session',30,'view_djangosession'),(79,'Can export django session data',30,'export_djangosession'),(80,'Can add guests',7,'add_guests'),(81,'Can change guests',7,'change_guests'),(82,'Can delete guests',7,'delete_guests'),(83,'Can view guests',7,'view_guests'),(84,'Can export guests data',7,'export_guests'),(85,'Can add hotelexpenses',8,'add_hotelexpenses'),(86,'Can change hotelexpenses',8,'change_hotelexpenses'),(87,'Can delete hotelexpenses',8,'delete_hotelexpenses'),(88,'Can view hotelexpenses',8,'view_hotelexpenses'),(89,'Can export hotel expenses data',8,'export_hotelexpenses'),(90,'Can add hotels',11,'add_hotels'),(91,'Can change hotels',11,'change_hotels'),(92,'Can delete hotels',11,'delete_hotels'),(93,'Can view hotels',11,'view_hotels'),(94,'Can export hotels data',11,'export_hotels'),(95,'Can add payments',14,'add_payments'),(96,'Can change payments',14,'change_payments'),(97,'Can delete payments',14,'delete_payments'),(98,'Can view payments',14,'view_payments'),(99,'Can export payments data',14,'export_payments'),(100,'Can add referrers',15,'add_referrers'),(101,'Can change referrers',15,'change_referrers'),(102,'Can delete referrers',15,'delete_referrers'),(103,'Can view referrers',15,'view_referrers'),(104,'Can export referrers data',15,'export_referrers'),(105,'Can add reservationguests',16,'add_reservationguests'),(106,'Can change reservationguests',16,'change_reservationguests'),(107,'Can delete reservationguests',16,'delete_reservationguests'),(108,'Can view reservationguests',16,'view_reservationguests'),(109,'Can export reservartion guests data',16,'export_reservationsguests'),(110,'Can add reservations',17,'add_reservations'),(111,'Can change reservations',17,'change_reservations'),(112,'Can delete reservations',17,'delete_reservations'),(113,'Can view reservations',17,'view_reservations'),(114,'Can export reservations data',17,'export_reservations'),(115,'Can add rooms',10,'add_rooms'),(116,'Can change rooms',10,'change_rooms'),(117,'Can delete rooms',10,'delete_rooms'),(118,'Can view rooms',10,'view_rooms'),(119,'Can export rooms data',10,'export_rooms'),(120,'Can add staff',18,'add_staff'),(121,'Can change staff',18,'change_staff'),(122,'Can delete staff',18,'delete_staff'),(123,'Can view staff',18,'view_staff'),(124,'Can export staff data',18,'export_staff'),(125,'Can add staffcategories',9,'add_staffcategories'),(126,'Can change staffcategories',9,'change_staffcategories'),(127,'Can delete staffcategories',9,'delete_staffcategories'),(128,'Can view staffcategories',9,'view_staffcategories'),(129,'Can export staff categories data',9,'export_staffcategories'),(130,'Can add staffpayments',13,'add_staffpayments'),(131,'Can change staffpayments',13,'change_staffpayments'),(132,'Can delete staffpayments',13,'delete_staffpayments'),(133,'Can view staffpayments',13,'view_staffpayments'),(134,'Can export staff payments data',13,'export_staffpayments'),(135,'Can add vendors',12,'add_vendors'),(136,'Can change vendors',12,'change_vendors'),(137,'Can delete vendors',12,'delete_vendors'),(138,'Can view vendors',12,'view_vendors'),(139,'Can export vendors data',12,'export_vendors'),(140,'Can add gym user',20,'add_gymuser'),(141,'Can change gym user',20,'change_gymuser'),(142,'Can delete gym user',20,'delete_gymuser'),(143,'Can view gym user',20,'view_gymuser'),(144,'Can export gym data',20,'export_gym_user'),(145,'Can add auth group',35,'add_authgroup'),(146,'Can change auth group',35,'change_authgroup'),(147,'Can delete auth group',35,'delete_authgroup'),(148,'Can view auth group',35,'view_authgroup'),(149,'Can add auth group permissions',36,'add_authgrouppermissions'),(150,'Can change auth group permissions',36,'change_authgrouppermissions'),(151,'Can delete auth group permissions',36,'delete_authgrouppermissions'),(152,'Can view auth group permissions',36,'view_authgrouppermissions'),(153,'Can add auth permission',37,'add_authpermission'),(154,'Can change auth permission',37,'change_authpermission'),(155,'Can delete auth permission',37,'delete_authpermission'),(156,'Can view auth permission',37,'view_authpermission'),(157,'Can add auth user',33,'add_authuser'),(158,'Can change auth user',33,'change_authuser'),(159,'Can delete auth user',33,'delete_authuser'),(160,'Can view auth user',33,'view_authuser'),(161,'Can add auth user groups',38,'add_authusergroups'),(162,'Can change auth user groups',38,'change_authusergroups'),(163,'Can delete auth user groups',38,'delete_authusergroups'),(164,'Can view auth user groups',38,'view_authusergroups'),(165,'Can add auth user user permissions',39,'add_authuseruserpermissions'),(166,'Can change auth user user permissions',39,'change_authuseruserpermissions'),(167,'Can delete auth user user permissions',39,'delete_authuseruserpermissions'),(168,'Can view auth user user permissions',39,'view_authuseruserpermissions'),(169,'Can add branch',40,'add_branch'),(170,'Can change branch',40,'change_branch'),(171,'Can delete branch',40,'delete_branch'),(172,'Can view branch',40,'view_branch'),(173,'Can add client',31,'add_client'),(174,'Can change client',31,'change_client'),(175,'Can delete client',31,'delete_client'),(176,'Can view client',31,'view_client'),(177,'Can add clientflagged',41,'add_clientflagged'),(178,'Can change clientflagged',41,'change_clientflagged'),(179,'Can delete clientflagged',41,'delete_clientflagged'),(180,'Can view clientflagged',41,'view_clientflagged'),(181,'Can add django admin log',42,'add_djangoadminlog'),(182,'Can change django admin log',42,'change_djangoadminlog'),(183,'Can delete django admin log',42,'delete_djangoadminlog'),(184,'Can view django admin log',42,'view_djangoadminlog'),(185,'Can add django content type',43,'add_djangocontenttype'),(186,'Can change django content type',43,'change_djangocontenttype'),(187,'Can delete django content type',43,'delete_djangocontenttype'),(188,'Can view django content type',43,'view_djangocontenttype'),(189,'Can add django migrations',44,'add_djangomigrations'),(190,'Can change django migrations',44,'change_djangomigrations'),(191,'Can delete django migrations',44,'delete_djangomigrations'),(192,'Can view django migrations',44,'view_djangomigrations'),(193,'Can add django session',45,'add_djangosession'),(194,'Can change django session',45,'change_djangosession'),(195,'Can delete django session',45,'delete_djangosession'),(196,'Can view django session',45,'view_djangosession'),(197,'Can add nextofkeen',32,'add_nextofkeen'),(198,'Can change nextofkeen',32,'change_nextofkeen'),(199,'Can delete nextofkeen',32,'delete_nextofkeen'),(200,'Can view nextofkeen',32,'view_nextofkeen'),(201,'Can add nextofkeenflagged',46,'add_nextofkeenflagged'),(202,'Can change nextofkeenflagged',46,'change_nextofkeenflagged'),(203,'Can delete nextofkeenflagged',46,'delete_nextofkeenflagged'),(204,'Can view nextofkeenflagged',46,'view_nextofkeenflagged'),(205,'Can add staff',47,'add_staff'),(206,'Can change staff',47,'change_staff'),(207,'Can delete staff',47,'delete_staff'),(208,'Can view staff',47,'view_staff'),(209,'Can add staffbranchassignment',48,'add_staffbranchassignment'),(210,'Can change staffbranchassignment',48,'change_staffbranchassignment'),(211,'Can delete staffbranchassignment',48,'delete_staffbranchassignment'),(212,'Can view staffbranchassignment',48,'view_staffbranchassignment'),(213,'Can add staffcategories',49,'add_staffcategories'),(214,'Can change staffcategories',49,'change_staffcategories'),(215,'Can delete staffcategories',49,'delete_staffcategories'),(216,'Can view staffcategories',49,'view_staffcategories'),(217,'Can add auth group',50,'add_authgroup'),(218,'Can change auth group',50,'change_authgroup'),(219,'Can delete auth group',50,'delete_authgroup'),(220,'Can view auth group',50,'view_authgroup'),(221,'Can add auth group permissions',51,'add_authgrouppermissions'),(222,'Can change auth group permissions',51,'change_authgrouppermissions'),(223,'Can delete auth group permissions',51,'delete_authgrouppermissions'),(224,'Can view auth group permissions',51,'view_authgrouppermissions'),(225,'Can add auth permission',52,'add_authpermission'),(226,'Can change auth permission',52,'change_authpermission'),(227,'Can delete auth permission',52,'delete_authpermission'),(228,'Can view auth permission',52,'view_authpermission'),(229,'Can add auth user',53,'add_authuser'),(230,'Can change auth user',53,'change_authuser'),(231,'Can delete auth user',53,'delete_authuser'),(232,'Can view auth user',53,'view_authuser'),(233,'Can add auth user groups',54,'add_authusergroups'),(234,'Can change auth user groups',54,'change_authusergroups'),(235,'Can delete auth user groups',54,'delete_authusergroups'),(236,'Can view auth user groups',54,'view_authusergroups'),(237,'Can add auth user user permissions',55,'add_authuseruserpermissions'),(238,'Can change auth user user permissions',55,'change_authuseruserpermissions'),(239,'Can delete auth user user permissions',55,'delete_authuseruserpermissions'),(240,'Can view auth user user permissions',55,'view_authuseruserpermissions'),(241,'Can add branch',34,'add_branch'),(242,'Can change branch',34,'change_branch'),(243,'Can delete branch',34,'delete_branch'),(244,'Can view branch',34,'view_branch'),(245,'Can add client',56,'add_client'),(246,'Can change client',56,'change_client'),(247,'Can delete client',56,'delete_client'),(248,'Can view client',56,'view_client'),(249,'Can add clientflagged',57,'add_clientflagged'),(250,'Can change clientflagged',57,'change_clientflagged'),(251,'Can delete clientflagged',57,'delete_clientflagged'),(252,'Can view clientflagged',57,'view_clientflagged'),(253,'Can add django admin log',58,'add_djangoadminlog'),(254,'Can change django admin log',58,'change_djangoadminlog'),(255,'Can delete django admin log',58,'delete_djangoadminlog'),(256,'Can view django admin log',58,'view_djangoadminlog'),(257,'Can add django content type',59,'add_djangocontenttype'),(258,'Can change django content type',59,'change_djangocontenttype'),(259,'Can delete django content type',59,'delete_djangocontenttype'),(260,'Can view django content type',59,'view_djangocontenttype'),(261,'Can add django migrations',60,'add_djangomigrations'),(262,'Can change django migrations',60,'change_djangomigrations'),(263,'Can delete django migrations',60,'delete_djangomigrations'),(264,'Can view django migrations',60,'view_djangomigrations'),(265,'Can add django session',61,'add_djangosession'),(266,'Can change django session',61,'change_djangosession'),(267,'Can delete django session',61,'delete_djangosession'),(268,'Can view django session',61,'view_djangosession'),(269,'Can add nextofkeen',62,'add_nextofkeen'),(270,'Can change nextofkeen',62,'change_nextofkeen'),(271,'Can delete nextofkeen',62,'delete_nextofkeen'),(272,'Can view nextofkeen',62,'view_nextofkeen'),(273,'Can add nextofkeenflagged',63,'add_nextofkeenflagged'),(274,'Can change nextofkeenflagged',63,'change_nextofkeenflagged'),(275,'Can delete nextofkeenflagged',63,'delete_nextofkeenflagged'),(276,'Can view nextofkeenflagged',63,'view_nextofkeenflagged'),(277,'Can add staffbranchassignment',64,'add_staffbranchassignment'),(278,'Can change staffbranchassignment',64,'change_staffbranchassignment'),(279,'Can delete staffbranchassignment',64,'delete_staffbranchassignment'),(280,'Can view staffbranchassignment',64,'view_staffbranchassignment'),(281,'Can add staffcategories',65,'add_staffcategories'),(282,'Can change staffcategories',65,'change_staffcategories'),(283,'Can delete staffcategories',65,'delete_staffcategories'),(284,'Can view staffcategories',65,'view_staffcategories'),(285,'Can add historical branch',66,'add_historicalbranch'),(286,'Can change historical branch',66,'change_historicalbranch'),(287,'Can delete historical branch',66,'delete_historicalbranch'),(288,'Can view historical branch',66,'view_historicalbranch'),(289,'Can add staff',67,'add_staff'),(290,'Can change staff',67,'change_staff'),(291,'Can delete staff',67,'delete_staff'),(292,'Can view staff',67,'view_staff'),(293,'Can add historical Staff',68,'add_historicalstaff'),(294,'Can change historical Staff',68,'change_historicalstaff'),(295,'Can delete historical Staff',68,'delete_historicalstaff'),(296,'Can view historical Staff',68,'view_historicalstaff'),(297,'Can add historical Staff - Branch: Assignment',69,'add_historicalstaffbranchassignment'),(298,'Can change historical Staff - Branch: Assignment',69,'change_historicalstaffbranchassignment'),(299,'Can delete historical Staff - Branch: Assignment',69,'delete_historicalstaffbranchassignment'),(300,'Can view historical Staff - Branch: Assignment',69,'view_historicalstaffbranchassignment'),(301,'Can add historical Staff Category',70,'add_historicalstaffcategories'),(302,'Can change historical Staff Category',70,'change_historicalstaffcategories'),(303,'Can delete historical Staff Category',70,'delete_historicalstaffcategories'),(304,'Can view historical Staff Category',70,'view_historicalstaffcategories'),(305,'Can add administrator historicalbranch',75,'add_administratorhistoricalbranch'),(306,'Can change administrator historicalbranch',75,'change_administratorhistoricalbranch'),(307,'Can delete administrator historicalbranch',75,'delete_administratorhistoricalbranch'),(308,'Can view administrator historicalbranch',75,'view_administratorhistoricalbranch'),(309,'Can add administrator historicalstaff',76,'add_administratorhistoricalstaff'),(310,'Can change administrator historicalstaff',76,'change_administratorhistoricalstaff'),(311,'Can delete administrator historicalstaff',76,'delete_administratorhistoricalstaff'),(312,'Can view administrator historicalstaff',76,'view_administratorhistoricalstaff'),(313,'Can add administrator historicalstaffbranchassignment',77,'add_administratorhistoricalstaffbranchassignment'),(314,'Can change administrator historicalstaffbranchassignment',77,'change_administratorhistoricalstaffbranchassignment'),(315,'Can delete administrator historicalstaffbranchassignment',77,'delete_administratorhistoricalstaffbranchassignment'),(316,'Can view administrator historicalstaffbranchassignment',77,'view_administratorhistoricalstaffbranchassignment'),(317,'Can add administrator historicalstaffcategories',71,'add_administratorhistoricalstaffcategories'),(318,'Can change administrator historicalstaffcategories',71,'change_administratorhistoricalstaffcategories'),(319,'Can delete administrator historicalstaffcategories',71,'delete_administratorhistoricalstaffcategories'),(320,'Can view administrator historicalstaffcategories',71,'view_administratorhistoricalstaffcategories'),(321,'Can add Configuration',74,'add_config'),(322,'Can change Configuration',74,'change_config'),(323,'Can delete Configuration',74,'delete_config'),(324,'Can view Configuration',74,'view_config'),(325,'Can add historical Configuration',78,'add_historicalconfig'),(326,'Can change historical Configuration',78,'change_historicalconfig'),(327,'Can delete historical Configuration',78,'delete_historicalconfig'),(328,'Can view historical Configuration',78,'view_historicalconfig'),(329,'Can add Branch',73,'add_administratorhistoricalbranch'),(330,'Can change Branch',73,'change_administratorhistoricalbranch'),(331,'Can delete Branch',73,'delete_administratorhistoricalbranch'),(332,'Can view Branch',73,'view_administratorhistoricalbranch'),(333,'Can add Staff',79,'add_administratorhistoricalstaff'),(334,'Can change Staff',79,'change_administratorhistoricalstaff'),(335,'Can delete Staff',79,'delete_administratorhistoricalstaff'),(336,'Can view Staff',79,'view_administratorhistoricalstaff'),(337,'Can add Staff-Branch Assignment',80,'add_administratorhistoricalstaffbranchassignment'),(338,'Can change Staff-Branch Assignment',80,'change_administratorhistoricalstaffbranchassignment'),(339,'Can delete Staff-Branch Assignment',80,'delete_administratorhistoricalstaffbranchassignment'),(340,'Can view Staff-Branch Assignment',80,'view_administratorhistoricalstaffbranchassignment'),(341,'Can add Staff Category',72,'add_administratorhistoricalstaffcategories'),(342,'Can change Staff Category',72,'change_administratorhistoricalstaffcategories'),(343,'Can delete Staff Category',72,'delete_administratorhistoricalstaffcategories'),(344,'Can view Staff Category',72,'view_administratorhistoricalstaffcategories'),(345,'Can add Staff - Branch: Assignment',81,'add_staffbranchassignment'),(346,'Can change Staff - Branch: Assignment',81,'change_staffbranchassignment'),(347,'Can delete Staff - Branch: Assignment',81,'delete_staffbranchassignment'),(348,'Can view Staff - Branch: Assignment',81,'view_staffbranchassignment'),(349,'Can add historical Staff Category',82,'add_historicalstaffcategories'),(350,'Can change historical Staff Category',82,'change_historicalstaffcategories'),(351,'Can delete historical Staff Category',82,'delete_historicalstaffcategories'),(352,'Can view historical Staff Category',82,'view_historicalstaffcategories'),(353,'Can add auth user',83,'add_authuser'),(354,'Can change auth user',83,'change_authuser'),(355,'Can delete auth user',83,'delete_authuser'),(356,'Can view auth user',83,'view_authuser'),(357,'Can add Branch',84,'add_branch'),(358,'Can change Branch',84,'change_branch'),(359,'Can delete Branch',84,'delete_branch'),(360,'Can view Branch',84,'view_branch'),(361,'Can add historical Staff - Branch: Assignment',85,'add_historicalstaffbranchassignment'),(362,'Can change historical Staff - Branch: Assignment',85,'change_historicalstaffbranchassignment'),(363,'Can delete historical Staff - Branch: Assignment',85,'delete_historicalstaffbranchassignment'),(364,'Can view historical Staff - Branch: Assignment',85,'view_historicalstaffbranchassignment'),(365,'Can add historical Staff',86,'add_historicalstaff'),(366,'Can change historical Staff',86,'change_historicalstaff'),(367,'Can delete historical Staff',86,'delete_historicalstaff'),(368,'Can view historical Staff',86,'view_historicalstaff'),(369,'Can add historical Branch',87,'add_historicalbranch'),(370,'Can change historical Branch',87,'change_historicalbranch'),(371,'Can delete historical Branch',87,'delete_historicalbranch'),(372,'Can view historical Branch',87,'view_historicalbranch'),(373,'Can add Staff Category',88,'add_staffcategories'),(374,'Can change Staff Category',88,'change_staffcategories'),(375,'Can delete Staff Category',88,'delete_staffcategories'),(376,'Can view Staff Category',88,'view_staffcategories'),(377,'Can add Staff',89,'add_staff'),(378,'Can change Staff',89,'change_staff'),(379,'Can delete Staff',89,'delete_staff'),(380,'Can view Staff',89,'view_staff'),(381,'Can add Account',91,'add_account'),(382,'Can change Account',91,'change_account'),(383,'Can delete Account',91,'delete_account'),(384,'Can view Account',91,'view_account'),(385,'Can add administrator historicalconfig',92,'add_administratorhistoricalconfig'),(386,'Can change administrator historicalconfig',92,'change_administratorhistoricalconfig'),(387,'Can delete administrator historicalconfig',92,'delete_administratorhistoricalconfig'),(388,'Can view administrator historicalconfig',92,'view_administratorhistoricalconfig'),(389,'Can add historical Account',93,'add_historicalaccount'),(390,'Can change historical Account',93,'change_historicalaccount'),(391,'Can delete historical Account',93,'delete_historicalaccount'),(392,'Can view historical Account',93,'view_historicalaccount'),(393,'Can add Configuration',90,'add_administratorhistoricalconfig'),(394,'Can change Configuration',90,'change_administratorhistoricalconfig'),(395,'Can delete Configuration',90,'delete_administratorhistoricalconfig'),(396,'Can view Configuration',90,'view_administratorhistoricalconfig'),(397,'Can add Account Type',96,'add_accounttype'),(398,'Can change Account Type',96,'change_accounttype'),(399,'Can delete Account Type',96,'delete_accounttype'),(400,'Can view Account Type',96,'view_accounttype'),(401,'Can add Account',94,'add_administratorhistoricalaccount'),(402,'Can change Account',94,'change_administratorhistoricalaccount'),(403,'Can delete Account',94,'delete_administratorhistoricalaccount'),(404,'Can view Account',94,'view_administratorhistoricalaccount'),(405,'Can add client',97,'add_client'),(406,'Can change client',97,'change_client'),(407,'Can delete client',97,'delete_client'),(408,'Can view client',97,'view_client'),(409,'Can add clientflagged',98,'add_clientflagged'),(410,'Can change clientflagged',98,'change_clientflagged'),(411,'Can delete clientflagged',98,'delete_clientflagged'),(412,'Can view clientflagged',98,'view_clientflagged'),(413,'Can add Fee',99,'add_fee'),(414,'Can change Fee',99,'change_fee'),(415,'Can delete Fee',99,'delete_fee'),(416,'Can view Fee',99,'view_fee'),(417,'Can add nextofkeen',100,'add_nextofkeen'),(418,'Can change nextofkeen',100,'change_nextofkeen'),(419,'Can delete nextofkeen',100,'delete_nextofkeen'),(420,'Can view nextofkeen',100,'view_nextofkeen'),(421,'Can add nextofkeenflagged',101,'add_nextofkeenflagged'),(422,'Can change nextofkeenflagged',101,'change_nextofkeenflagged'),(423,'Can delete nextofkeenflagged',101,'delete_nextofkeenflagged'),(424,'Can view nextofkeenflagged',101,'view_nextofkeenflagged'),(425,'Can add historical Account Type',102,'add_historicalaccounttype'),(426,'Can change historical Account Type',102,'change_historicalaccounttype'),(427,'Can delete historical Account Type',102,'delete_historicalaccounttype'),(428,'Can view historical Account Type',102,'view_historicalaccounttype'),(429,'Can add historical Fee',103,'add_historicalfee'),(430,'Can change historical Fee',103,'change_historicalfee'),(431,'Can delete historical Fee',103,'delete_historicalfee'),(432,'Can view historical Fee',103,'view_historicalfee'),(433,'Can add Account Type',95,'add_accounttype'),(434,'Can change Account Type',95,'change_accounttype'),(435,'Can delete Account Type',95,'delete_accounttype'),(436,'Can view Account Type',95,'view_accounttype'),(437,'Can add Fee',104,'add_fee'),(438,'Can change Fee',104,'change_fee'),(439,'Can delete Fee',104,'delete_fee'),(440,'Can view Fee',104,'view_fee'),(441,'Can add historical Account Type',105,'add_historicalaccounttype'),(442,'Can change historical Account Type',105,'change_historicalaccounttype'),(443,'Can delete historical Account Type',105,'delete_historicalaccounttype'),(444,'Can view historical Account Type',105,'view_historicalaccounttype'),(445,'Can add historical Fee',106,'add_historicalfee'),(446,'Can change historical Fee',106,'change_historicalfee'),(447,'Can delete historical Fee',106,'delete_historicalfee'),(448,'Can view historical Fee',106,'view_historicalfee'),(449,'Can add Account',107,'add_account'),(450,'Can change Account',107,'change_account'),(451,'Can delete Account',107,'delete_account'),(452,'Can view Account',107,'view_account'),(453,'Can add Account Type',108,'add_accounttype'),(454,'Can change Account Type',108,'change_accounttype'),(455,'Can delete Account Type',108,'delete_accounttype'),(456,'Can view Account Type',108,'view_accounttype'),(457,'Can add Fee',109,'add_fee'),(458,'Can change Fee',109,'change_fee'),(459,'Can delete Fee',109,'delete_fee'),(460,'Can view Fee',109,'view_fee'),(461,'Can add historical Account',110,'add_historicalaccount'),(462,'Can change historical Account',110,'change_historicalaccount'),(463,'Can delete historical Account',110,'delete_historicalaccount'),(464,'Can view historical Account',110,'view_historicalaccount'),(465,'Can add historical Account Type',111,'add_historicalaccounttype'),(466,'Can change historical Account Type',111,'change_historicalaccounttype'),(467,'Can delete historical Account Type',111,'delete_historicalaccounttype'),(468,'Can view historical Account Type',111,'view_historicalaccounttype'),(469,'Can add historical Fee',112,'add_historicalfee'),(470,'Can change historical Fee',112,'change_historicalfee'),(471,'Can delete historical Fee',112,'delete_historicalfee'),(472,'Can view historical Fee',112,'view_historicalfee');
 SET character_set_client = utf8mb4 ;

--
-- Table structure for table `auth_user_groups`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_user_groups` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
  KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
  CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
  CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `auth_user_groups`
--

INSERT INTO `auth_user_groups` VALUES (1,2,8),(2,3,9),(3,4,9),(4,6,10),(5,7,10),(6,8,9);

--
-- Table structure for table `auth_user_user_permissions`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `auth_user_user_permissions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `permission_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
  KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
  CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `auth_user_user_permissions`
--


--
-- Table structure for table `branch`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `branch` (
  `branch_id` int(11) NOT NULL AUTO_INCREMENT,
  `branch_code` varchar(10) NOT NULL,
  `branch_name` varchar(100) NOT NULL,
  `address` text NOT NULL,
  `telephone1` varchar(20) NOT NULL,
  `manager_id` int(11) NOT NULL,
  `country` varchar(100) NOT NULL,
  `telephone2` varchar(20) DEFAULT NULL,
  `branch_email` varchar(100) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` varchar(20) NOT NULL,
  PRIMARY KEY (`branch_id`),
  UNIQUE KEY `branch_id` (`branch_id`),
  UNIQUE KEY `branch_code` (`branch_code`),
  KEY `fk_manager` (`manager_id`),
  CONSTRAINT `fk_manager` FOREIGN KEY (`manager_id`) REFERENCES `staff` (`staff_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `branch`
--

INSERT INTO `branch` VALUES (1,'B001','Main Branch','Kampala','0777889663',3,'Algeria',NULL,'info@lomsmicrofinance.com',1,'2025-04-21 11:01:34','2025-04-28 16:46:16',1,'Active'),(2,'B003','Arua','Arua Town','0759927608',2,'Uganda',NULL,'arua@lomsmicrofinace.com',1,'2025-04-21 11:13:48','2025-04-28 16:47:08',1,'Inactive'),(4,'B004','Kikubo Branch','Kampala, ivory mall, ggaba road','0777889663',2,'Albania',NULL,'sebagalacharles@gmail.com',1,'2025-04-21 12:20:51','2025-04-28 16:47:31',1,'Inactive');

--
-- Table structure for table `client`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `client` (
  `client_id` int(11) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(50) NOT NULL,
  `lastname` varchar(50) NOT NULL,
  `othername` varchar(50) DEFAULT NULL,
  `gender` varchar(6) DEFAULT NULL,
  `nationality` varchar(100) NOT NULL,
  `date_of_birth` date NOT NULL,
  `id_type` varchar(100) NOT NULL,
  `id_number` varchar(100) NOT NULL,
  `id_front` varchar(255) DEFAULT NULL,
  `id_back` varchar(255) DEFAULT NULL,
  `telephone1` varchar(20) NOT NULL,
  `telephone2` varchar(20) DEFAULT NULL,
  `email` varchar(254) DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `country_of_residence` varchar(100) NOT NULL,
  `address` text NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by_id` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `flagged` varchar(3) DEFAULT NULL,
  `status` varchar(20) DEFAULT 'Active',
  `client_number` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`client_id`),
  UNIQUE KEY `id_number` (`id_number`),
  UNIQUE KEY `client_number` (`client_number`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `client`
--

INSERT INTO `client` VALUES (1,'Loms Micro','Finance',NULL,'Male','Uganda','2025-05-15','National ID','1','','','0392179110',NULL,'info@lomsfinance.com','uploads/photos/loms-logo.png','Uganda','Kampala','2025-05-15 09:35:51',1,'2025-05-15 09:37:33',1,NULL,'Active','loms'),(2,'sebagala','charles',NULL,'Male','Uganda','2025-04-01','National ID','23456789','uploads/ids/IMG-20250328-WA0068_alKKSb2.jpg','uploads/ids/Untitled_TNeH1wp.jpg','0777889663',NULL,'sebagalacharles@gmail.com','uploads/photos/room-1_KKJUEP1.jpg','Uganda','Wakiso','2025-04-16 06:44:52',1,'2025-04-22 08:15:35',2,NULL,'Active','MUGA-00002'),(3,'Sebagala','Charles',NULL,'Male','Uganda','2025-04-27','National ID','1234567890','uploads/ids/img20250412_13411902.pdf','','0777889663',NULL,NULL,'uploads/photos/Screenshot_2025-04-12_at_17.52.03.png','Uganda','Wakiso','2025-04-27 10:05:58',2,'2025-04-27 10:08:20',2,NULL,'Active','MUGA-00003'),(4,'Sebagala','Charles',NULL,'Male','Uganda','1992-03-11','National ID','0123456789','','','0777889663',NULL,'sebagalacharles@gmail.com','uploads/photos/Screenshot_2025-04-12_at_17_xdzL6se.52.03.png','Uganda','Wakiso','2025-04-27 10:20:33',2,'2025-04-28 09:33:22',1,NULL,'Active','MUGA-00004');

--
-- Table structure for table `clientflagged`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `clientflagged` (
  `clientflagged_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `client_id` varchar(50) NOT NULL,
  `date_flagged` date NOT NULL,
  `flag_name` varchar(100) NOT NULL,
  `details` text NOT NULL,
  `created_by_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by_id` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `status` varchar(20) NOT NULL,
  PRIMARY KEY (`clientflagged_id`),
  UNIQUE KEY `clientflagged_id` (`clientflagged_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `clientflagged`
--


--
-- Table structure for table `Commissions`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `Commissions` (
  `CommissionID` int(11) NOT NULL AUTO_INCREMENT,
  `ReservationID` int(11) NOT NULL,
  `ReferrerID` int(11) NOT NULL,
  `CommissionAmount` decimal(10,2) NOT NULL,
  `PaidStatus` enum('Pending','Paid') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Pending',
  `PaidAt` timestamp NULL DEFAULT NULL,
  `CreatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`CommissionID`),
  KEY `ReservationID` (`ReservationID`),
  KEY `ReferrerID` (`ReferrerID`),
  CONSTRAINT `commissions_ibfk_1` FOREIGN KEY (`ReservationID`) REFERENCES `reservations` (`ReservationID`),
  CONSTRAINT `commissions_ibfk_2` FOREIGN KEY (`ReferrerID`) REFERENCES `referrers` (`ReferrerID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `Commissions`
--


--
-- Table structure for table `config`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `config` (
  `config_id` int(11) NOT NULL AUTO_INCREMENT,
  `config_name` varchar(100) NOT NULL,
  `config_value` varchar(255) NOT NULL,
  `description` text,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` varchar(20) DEFAULT 'Active',
  PRIMARY KEY (`config_id`),
  UNIQUE KEY `config_name` (`config_name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `config`
--

INSERT INTO `config` VALUES (1,'Daily Withdraw Limit','500000','Maximum amount of money the client can withdraw in a day','2025-04-22 10:41:10','2025-04-22 10:43:22',2,2,'Active'),(2,'Maximum Loan Amount','7000000','','2025-04-22 10:46:37','2025-04-22 11:07:25',2,2,'Active'),(3,'Minimum Loan Amount','50000','The minimum amount that can be borrowed','2025-04-22 10:47:26','2025-04-22 11:07:04',2,2,'Active');

--
-- Table structure for table `deposit`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `deposit` (
  `deposit_id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_id` int(11) DEFAULT NULL,
  `account_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `deposit_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `channel_type` varchar(50) DEFAULT NULL,
  `deposit_method` varchar(50) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `third_party_reference_number` varchar(100) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(20) DEFAULT NULL,
  `source_account_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`deposit_id`),
  UNIQUE KEY `third_party_reference_number` (`third_party_reference_number`),
  KEY `fk_deposit_account` (`account_id`),
  KEY `fk_deposit_created_by` (`created_by`),
  KEY `fk_deposit_updated_by` (`updated_by`),
  CONSTRAINT `fk_deposit_account` FOREIGN KEY (`account_id`) REFERENCES `account` (`account_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_deposit_created_by` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_deposit_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `deposit`
--

INSERT INTO `deposit` VALUES (1,NULL,2,4000.00,'2025-05-14 06:20:09','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 06:20:09','2025-05-15 18:59:24','success',NULL),(2,NULL,2,9000.00,'2025-05-14 07:54:01','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 07:54:01','2025-05-15 18:59:24','success',NULL),(3,NULL,2,12000.00,'2025-05-14 07:54:28','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 07:54:28','2025-05-15 18:59:24','success',NULL),(4,NULL,2,9000000000.00,'2025-05-14 07:54:53','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 07:54:53','2025-05-15 18:59:24','pending',NULL),(5,NULL,2,70000000.00,'2025-05-14 07:55:19','Over the Counter','Cash',NULL,NULL,1,1,'2025-05-14 07:55:19','2025-05-15 18:59:24','pending',NULL),(6,NULL,2,100.00,'2025-05-14 15:44:49','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 15:44:49','2025-05-15 18:59:24','success',NULL),(7,NULL,2,100.00,'2025-05-14 16:19:49','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 16:19:49','2025-05-15 18:59:24','success',NULL),(8,NULL,2,100.00,'2025-05-14 16:22:12','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 16:22:12','2025-05-15 18:59:24','success',NULL),(9,NULL,2,100.00,'2025-05-14 16:24:54','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 16:24:54','2025-05-15 18:59:24','success',NULL),(10,NULL,2,80000.00,'2025-05-14 16:25:32','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 16:25:32','2025-05-15 18:59:24','success',NULL),(11,NULL,2,9000.00,'2025-05-14 16:28:09','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 16:28:09','2025-05-15 18:59:24','success',NULL),(12,NULL,2,9000.00,'2025-05-14 16:30:24','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 16:30:24','2025-05-15 18:59:24','success',NULL),(13,NULL,2,800000000.00,'2025-05-14 16:37:43','E-Banking','MPesa',NULL,NULL,4,1,'2025-05-14 16:37:43','2025-05-15 18:59:24','pending',NULL),(14,NULL,2,100.00,'2025-05-14 16:38:12','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 16:38:12','2025-05-15 18:59:24','success',NULL),(15,NULL,2,9000.00,'2025-05-14 16:38:28','E-Banking','Card',NULL,NULL,4,1,'2025-05-14 16:38:28','2025-05-15 18:59:24','success',NULL),(16,NULL,2,55455.00,'2025-05-14 16:38:38','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 16:38:38','2025-05-15 18:59:24','success',NULL),(17,NULL,2,5555.00,'2025-05-14 16:38:46','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 16:38:46','2025-05-15 18:59:24','success',NULL),(18,NULL,2,1000.00,'2025-05-14 16:38:54','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 16:38:54','2025-05-15 18:59:24','success',NULL),(19,NULL,2,1000.00,'2025-05-14 16:38:59','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 16:38:59','2025-05-15 18:59:24','success',NULL),(20,NULL,2,1000.00,'2025-05-14 16:39:04','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 16:39:04','2025-05-15 18:59:24','success',NULL),(21,NULL,2,1000.00,'2025-05-14 16:39:10','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 16:39:10','2025-05-15 18:59:24','success',NULL),(22,NULL,2,500.00,'2025-05-14 16:39:16','E-Banking','MTN Mobile Money',NULL,NULL,4,1,'2025-05-14 16:39:16','2025-05-15 18:59:24','success',NULL),(23,NULL,2,899999.00,'2025-05-14 16:53:53','E-Banking','MPesa',NULL,NULL,4,1,'2025-05-14 16:53:53','2025-05-15 18:59:24','success',NULL),(24,NULL,2,900.00,'2025-05-14 16:54:33','E-Banking','Airtel Mobile Money',NULL,NULL,4,1,'2025-05-14 16:54:33','2025-05-15 18:59:24','success',NULL),(25,NULL,2,899999.00,'2025-05-14 16:55:01','E-Banking','Card',NULL,NULL,4,1,'2025-05-14 16:55:01','2025-05-15 18:59:24','success',NULL),(26,NULL,3,4545.00,'2025-05-14 17:00:55','E-Banking','MPesa',NULL,NULL,4,1,'2025-05-14 17:00:55','2025-05-15 16:00:29','success',NULL),(27,8,1,1000.00,'2025-05-15 18:59:00','Withdraw Fee','Bank Transfer','Withdraw Fee deposit from account 329998937498 (over_the_counter)',NULL,1,NULL,'2025-05-15 18:59:00',NULL,'Success',NULL),(28,9,1,1000.00,'2025-05-15 19:00:29','Withdraw Fee','Bank Transfer','Withdraw Fee deposit from account 329998937498 (over_the_counter)',NULL,1,NULL,'2025-05-15 19:00:29',NULL,'Success',NULL),(29,10,1,1900.00,'2025-05-16 08:03:48','Withdraw Fee','Bank Transfer','Withdraw Fee deposit from account 329998937498 (over_the_counter)',NULL,1,NULL,'2025-05-16 08:03:48',NULL,'Success',NULL),(30,13,1,1000.00,'2025-05-21 14:29:40','Transfer Fee','Bank Transfer','Transfer Fee: From account 90565446 (Account to Account)',NULL,1,NULL,'2025-05-21 14:29:40',NULL,'Success',NULL),(32,17,1,1000.00,'2025-05-21 14:46:05','Transfer','Bank Transfer','Transfer: From account 90565446 (Account to Account)',NULL,1,NULL,'2025-05-21 14:46:05',NULL,'Success',NULL),(33,16,3,100.00,'2025-05-21 14:46:05','Transfer','Bank Transfer','Transfer: From account 90565446 (Transfer)',NULL,1,NULL,'2025-05-21 14:46:05',NULL,'Success',NULL),(42,27,1,2000.00,'2025-05-22 06:25:18','Transfer','Bank Transfer','Transfer: From account 90565446 (Account to Cash)',NULL,1,NULL,'2025-05-22 06:25:18',NULL,'Success',NULL),(43,26,4,100.00,'2025-05-22 06:25:18','Transfer','Bank Transfer','Transfer: From account 90565446 (Transfer)',NULL,1,NULL,'2025-05-22 06:25:18',NULL,'Success',NULL),(44,28,1,1900.00,'2025-05-22 14:25:59','Withdrawal','Bank Transfer','Withdrawal: From account 90565446 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 14:25:59',NULL,'Success',2),(45,29,1,1900.00,'2025-05-22 14:33:32','Withdrawal','Bank Transfer','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 14:33:32',NULL,'Success',3),(46,30,1,1900.00,'2025-05-22 14:40:18','Withdrawal Fee','Bank Transfer','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 14:40:18',NULL,'Success',3),(47,31,1,1900.00,'2025-05-22 14:46:14','Withdrawal Fee','Bank Transfer','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 14:46:14',NULL,'Success',3),(48,32,1,1900.00,'2025-05-22 14:47:16','Withdrawal Fee','Bank Transfer','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 14:47:16',NULL,'Success',3),(49,33,1,1900.00,'2025-05-22 14:49:44','Withdrawal Fee','Bank Transfer','Withdrawal: From account 90565446 (over_the_counter_withdrawal)',NULL,1,NULL,'2025-05-22 14:49:44',NULL,'Success',2);

--
-- Table structure for table `django_admin_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `django_admin_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `action_time` datetime(6) NOT NULL,
  `object_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `object_repr` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `action_flag` smallint(5) unsigned NOT NULL,
  `change_message` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `content_type_id` int(11) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
  KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
  CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
  CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=401 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `django_admin_log`
--

INSERT INTO `django_admin_log` VALUES (1,'2025-01-13 14:08:40.354408','1','Hotels object (1)',1,'[{\"added\": {}}]',11,1),(2,'2025-01-13 14:09:29.196656','1','Rooms object (1)',1,'[{\"added\": {}}]',10,1),(3,'2025-01-13 14:16:18.251983','2','Rooms object (2)',1,'[{\"added\": {}}]',10,1),(4,'2025-01-13 14:16:40.862479','3','Rooms object (3)',1,'[{\"added\": {}}]',10,1),(5,'2025-01-13 14:18:24.202662','4','Rooms object (4)',1,'[{\"added\": {}}]',10,1),(6,'2025-01-13 14:21:59.697947','5','Rooms object (5)',1,'[{\"added\": {}}]',10,1),(7,'2025-01-13 14:22:18.407749','6','Rooms object (6)',1,'[{\"added\": {}}]',10,1),(8,'2025-01-13 14:27:16.038103','1','Staffcategories object (1)',1,'[{\"added\": {}}]',9,1),(9,'2025-01-13 14:27:43.374497','1','Staffcategories object (1)',2,'[{\"changed\": {\"fields\": [\"Description\"]}}]',9,1),(10,'2025-01-13 14:28:24.279029','2','Staffcategories object (2)',1,'[{\"added\": {}}]',9,1),(11,'2025-01-13 14:28:52.929147','3','Staffcategories object (3)',1,'[{\"added\": {}}]',9,1),(12,'2025-01-13 14:29:23.918512','4','Staffcategories object (4)',1,'[{\"added\": {}}]',9,1),(13,'2025-01-13 14:29:48.438956','5','Staffcategories object (5)',1,'[{\"added\": {}}]',9,1),(14,'2025-01-13 14:30:08.988538','6','Staffcategories object (6)',1,'[{\"added\": {}}]',9,1),(15,'2025-01-13 14:30:25.974110','7','Staffcategories object (7)',1,'[{\"added\": {}}]',9,1),(16,'2025-01-13 14:30:46.324787','8','Staffcategories object (8)',1,'[{\"added\": {}}]',9,1),(17,'2025-01-13 14:31:07.160354','9','Staffcategories object (9)',1,'[{\"added\": {}}]',9,1),(18,'2025-01-13 14:31:14.111572','9','Staffcategories object (9)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(19,'2025-01-13 14:31:18.546676','8','Staffcategories object (8)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(20,'2025-01-13 14:31:23.613986','7','Staffcategories object (7)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(21,'2025-01-13 14:31:29.262890','6','Staffcategories object (6)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(22,'2025-01-13 14:31:34.426540','4','Staffcategories object (4)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(23,'2025-01-13 14:31:38.483719','5','Staffcategories object (5)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(24,'2025-01-13 14:31:43.198933','3','Staffcategories object (3)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(25,'2025-01-13 14:31:47.735948','2','Staffcategories object (2)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(26,'2025-01-13 14:31:51.920653','1','Staffcategories object (1)',2,'[{\"changed\": {\"fields\": [\"Categoryname\"]}}]',9,1),(27,'2025-01-13 14:32:30.144294','10','Staffcategories object (10)',1,'[{\"added\": {}}]',9,1),(28,'2025-01-13 14:34:23.339978','1','Rooms object (1)',2,'[{\"changed\": {\"fields\": [\"Availabilitystatus\"]}}]',10,1),(29,'2025-01-14 13:47:33.497995','1','Vendors object (1)',1,'[{\"added\": {}}]',12,1),(30,'2025-01-14 14:07:12.272837','1','Charles Sebagala None',1,'[{\"added\": {}}]',7,1),(31,'2025-01-14 14:26:39.893447','1','Sebagala Charles',1,'[{\"added\": {}}]',15,1),(32,'2025-04-11 05:35:13.488421','5','Guest ID: 1 | Charles Sebagala',1,'[{\"added\": {}}]',20,1),(33,'2025-04-11 05:37:30.786615','1','Staff ID: 1 | jkkj jjkj',1,'[{\"added\": {}}]',18,1),(34,'2025-04-11 05:40:00.661238','2','Guest ID: 2 | ooi uui',1,'[{\"added\": {}}]',7,1),(35,'2025-04-11 05:41:55.884784','1','Reservation ID: 1',1,'[{\"added\": {}}, {\"added\": {\"name\": \"reservationguests\", \"object\": \"Reservationguests object (1)\"}}]',17,1),(36,'2025-04-11 05:42:36.740008','1','Payments object (1)',1,'[{\"added\": {}}]',14,1),(37,'2025-04-11 06:00:48.273330','8','Gym',1,'[{\"added\": {}}]',3,1),(38,'2025-04-11 06:03:47.283502','2','charles',1,'[{\"added\": {}}]',4,1),(39,'2025-04-11 06:04:15.749058','2','charles',2,'[{\"changed\": {\"fields\": [\"First name\", \"Last name\", \"Email address\", \"Staff status\", \"Groups\"]}}]',4,1),(40,'2025-04-16 09:44:52.398739','2','Client object (2)',1,'[{\"added\": {}}, {\"added\": {\"name\": \"nextofkeen\", \"object\": \"Nextofkeen object (1)\"}}]',31,1),(41,'2025-04-16 10:15:25.025079','2','Client object (2)',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',31,1),(42,'2025-04-16 10:15:45.753666','2','Client object (2)',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',31,1),(43,'2025-04-16 10:20:35.736795','2','Client object (2)',2,'[{\"changed\": {\"name\": \"nextofkeen\", \"object\": \"Nextofkeen object (1)\", \"fields\": [\"Status\"]}}]',31,1),(44,'2025-04-16 10:46:16.912744','2','Nextofkeen object (2)',1,'[{\"added\": {}}]',32,1),(45,'2025-04-16 10:55:42.838755','2','None - sebagala charles None',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',31,1),(46,'2025-04-16 10:56:18.541094','2','MUGA-00002 - sebagala charles None',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',31,1),(47,'2025-04-16 12:42:26.379184','1','admin',2,'[{\"changed\": {\"fields\": [\"password\"]}}]',4,1),(48,'2025-04-16 14:59:29.796450','2','MUGA-00002 - sebagala charles',2,'[]',31,1),(49,'2025-04-21 11:11:02.209990','1','Branch object (1)',1,'[{\"added\": {}}]',34,1),(50,'2025-04-21 11:11:14.404116','1','Branch object (1)',2,'[]',34,1),(51,'2025-04-21 11:12:15.128613','1','Branch object (1)',2,'[{\"changed\": {\"fields\": [\"Branch name\"]}}]',34,1),(52,'2025-04-21 11:13:54.643035','2','Branch object (2)',1,'[{\"added\": {}}]',34,1),(53,'2025-04-21 11:14:33.661196','2','Branch object (2)',2,'[{\"changed\": {\"fields\": [\"Country\", \"Branch code\", \"Address\"]}}]',34,1),(54,'2025-04-21 12:00:29.054019','2','Branch object (2)',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',34,1),(55,'2025-04-21 12:18:00.679759','3','Branch object (3)',1,'[{\"added\": {}}]',34,1),(56,'2025-04-21 12:20:50.528474','4','Branch object (4)',1,'[{\"added\": {}}]',34,1),(57,'2025-04-21 12:21:06.913230','2','Branch object (2)',2,'[]',34,1),(58,'2025-04-21 13:28:36.115157','1','Staffbranchassignment object (1)',1,'[{\"added\": {}}]',64,1),(59,'2025-04-21 13:28:51.021632','2','Staffbranchassignment object (2)',1,'[{\"added\": {}}]',64,1),(60,'2025-04-21 13:30:51.328113','2','Staffbranchassignment object (2)',2,'[]',64,1),(61,'2025-04-21 13:33:26.378127','2','Staffbranchassignment object (2)',2,'[{\"changed\": {\"fields\": [\"End date\"]}}]',64,1),(62,'2025-04-21 13:34:31.724678','2','Staffbranchassignment object (2)',2,'[]',64,1),(63,'2025-04-21 13:38:02.744515','2','Staffbranchassignment object (2)',2,'[{\"changed\": {\"fields\": [\"End date\", \"Status\"]}}]',64,1),(64,'2025-04-21 13:38:28.482395','1','Staffbranchassignment object (1)',2,'[{\"changed\": {\"fields\": [\"End date\", \"Status\"]}}]',64,1),(65,'2025-04-21 13:39:19.173628','1','Staffbranchassignment object (1)',2,'[]',64,1),(66,'2025-04-21 13:39:28.923680','2','Staffbranchassignment object (2)',2,'[{\"changed\": {\"fields\": [\"End date\", \"Status\"]}}]',64,1),(67,'2025-04-21 13:39:54.830186','1','Staffbranchassignment object (1)',2,'[{\"changed\": {\"fields\": [\"End date\", \"Status\"]}}]',64,1),(68,'2025-04-21 13:48:48.589309','1','jkkj jjkj',3,'',67,1),(69,'2025-04-21 13:49:17.897145','1','jkkj jjkj',3,'',67,1),(70,'2025-04-21 13:51:11.109627','1','jkkj jjkj',3,'',67,1),(71,'2025-04-21 13:51:36.488728','1','jkkj jjkj',3,'',67,1),(72,'2025-04-21 13:51:49.516098','1','jkkj jjkj',3,'',67,1),(73,'2025-04-21 14:01:01.406029','3','B002 - Masaka',3,'',34,1),(74,'2025-04-21 14:10:45.416174','11','New Cateory',1,'[{\"added\": {}}]',65,1),(75,'2025-04-21 14:11:32.295293','1','jkkj jjkj',2,'[]',67,1),(76,'2025-04-21 14:11:40.090745','2','Staffbranchassignment object (2)',2,'[]',64,1),(77,'2025-04-21 14:25:41.888788','6','Maintenance',2,'[{\"changed\": {\"fields\": [\"Description\"]}}]',65,1),(78,'2025-04-21 14:25:46.634609','6','Maintenance',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',65,1),(79,'2025-04-21 14:29:44.355402','3','Housekeeping',3,'',65,1),(80,'2025-04-21 14:34:52.473299','4','B004 - Kikubo Branch',2,'[{\"changed\": {\"fields\": [\"Address\"]}}]',34,1),(81,'2025-04-21 17:30:45.586263','11','New Cateory',2,'[]',65,1),(82,'2025-04-21 18:09:29.898132','11','New Cateory',2,'[]',65,1),(83,'2025-04-21 18:09:32.559406','11','New Cateory',2,'[]',65,1),(84,'2025-04-21 18:09:51.097125','11','New Cateory',2,'[]',65,1),(85,'2025-04-21 18:11:13.552696','12','Nw category 2',1,'[{\"added\": {}}]',65,1),(86,'2025-04-21 18:11:27.137275','12','Nw category 2',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',65,1),(87,'2025-04-21 18:12:03.221050','12','New category 2',2,'[{\"changed\": {\"fields\": [\"Category name\", \"Description\", \"Status\"]}}]',65,1),(88,'2025-04-21 18:15:34.726350','12','New category 2',2,'[]',65,1),(89,'2025-04-21 18:32:25.775155','12','New category 2',2,'[]',65,1),(90,'2025-04-21 18:39:52.780574','2','B003 - Arua',2,'[]',34,1),(91,'2025-04-21 18:39:57.206729','2','B003 - Arua',2,'[]',34,1),(92,'2025-04-21 19:06:31.435858','12','New category 2',2,'[]',65,1),(93,'2025-04-21 19:08:46.691028','11','New Cateory',2,'[]',65,1),(94,'2025-04-21 19:13:48.354686','12','New category 2',2,'[]',65,1),(95,'2025-04-21 19:14:16.806723','1','B001 - Main Branch',2,'[]',34,1),(96,'2025-04-21 19:16:27.006082','1','jkkj jjkj',2,'[]',67,1),(97,'2025-04-21 19:16:34.430102','1','jkkj jjkj',2,'[]',67,1),(98,'2025-04-21 19:18:30.326995','2','Sekito Ben',1,'[{\"added\": {}}]',67,1),(99,'2025-04-21 19:19:43.341171','2','Sekito Ben',2,'[]',67,1),(100,'2025-04-21 19:21:56.356053','3','Staffbranchassignment object (3)',1,'[{\"added\": {}}]',64,1),(101,'2025-04-21 19:22:16.943710','2','Sekito Ben',2,'[]',67,1),(102,'2025-04-21 19:28:19.892992','2','B003 - Arua',2,'[]',34,1),(103,'2025-04-21 19:28:27.421007','2','Sekito Ben',2,'[]',67,1),(104,'2025-04-21 19:30:01.770960','3','Staffbranchassignment object (3)',2,'[]',64,1),(105,'2025-04-21 19:31:06.860121','4','Staffbranchassignment object (4)',1,'[{\"added\": {}}]',64,1),(106,'2025-04-21 19:31:15.495651','4','Staffbranchassignment object (4)',2,'[]',64,1),(107,'2025-04-21 19:31:27.745241','3','Staffbranchassignment object (3)',2,'[{\"changed\": {\"fields\": [\"End date\", \"Status\"]}}]',64,1),(108,'2025-04-21 19:31:39.715666','3','Staffbranchassignment object (3)',2,'[{\"changed\": {\"fields\": [\"End date\", \"Status\"]}}]',64,1),(109,'2025-04-21 19:31:56.990497','4','Staffbranchassignment object (4)',2,'[]',64,1),(110,'2025-04-21 19:32:02.576418','11','New Cateory',2,'[]',65,1),(111,'2025-04-21 19:34:52.397997','12','New category 2',2,'[]',65,1),(112,'2025-04-21 19:35:56.447971','2','Sekito Ben',2,'[]',67,1),(113,'2025-04-21 19:45:34.437703','2','Sekito Ben',2,'[]',67,1),(114,'2025-04-21 19:47:11.915686','12','New category 2',2,'[]',65,1),(115,'2025-04-21 19:59:00.056022','11','New Cateory',2,'[]',65,1),(116,'2025-04-21 19:59:04.783665','12','New category 2',2,'[]',65,1),(117,'2025-04-21 19:59:25.085534','12','New category 2',2,'[]',65,1),(118,'2025-04-21 19:59:29.301656','11','New Cateory',2,'[]',65,1),(119,'2025-04-21 20:00:09.794635','10','Technology',3,'',65,1),(120,'2025-04-21 20:00:09.794701','9','Recreational and Other Services',3,'',65,1),(121,'2025-04-21 20:00:09.794746','8','Administrative',3,'',65,1),(122,'2025-04-21 20:00:09.794788','7','Security',3,'',65,1),(123,'2025-04-21 20:00:22.711119','8','Administrative',3,'',65,1),(124,'2025-04-21 20:01:16.264126','7','Security',3,'',65,1),(125,'2025-04-21 20:01:40.779225','12','New category 2',3,'',65,1),(126,'2025-04-21 20:01:52.811426','1','Management',3,'',65,1),(127,'2025-04-21 20:04:47.529209','11','New Cateory hss',2,'[{\"changed\": {\"fields\": [\"Category name\"]}}]',65,1),(128,'2025-04-21 20:05:38.697836','11','New Cateory hss',2,'[{\"changed\": {\"fields\": [\"Description\"]}}]',65,1),(129,'2025-04-21 20:05:55.382736','11','New Cateory hss',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',65,1),(130,'2025-04-21 20:06:49.419639','2','charles',2,'[{\"changed\": {\"fields\": [\"password\"]}}]',4,1),(131,'2025-04-21 20:08:52.492242','2','charles',2,'[{\"changed\": {\"fields\": [\"Superuser status\"]}}]',4,1),(132,'2025-04-21 20:09:25.671383','11','New Category',2,'[{\"changed\": {\"fields\": [\"Category name\", \"Description\", \"Status\"]}}]',65,2),(133,'2025-04-21 20:10:03.630659','1','Management',3,'',65,2),(134,'2025-04-21 20:10:18.303305','2','Sekito Ben',2,'[]',67,2),(135,'2025-04-21 20:10:25.238685','11','New Category',2,'[]',65,2),(136,'2025-04-21 20:10:52.006340','11','New Category',3,'',65,2),(137,'2025-04-21 20:11:00.141045','10','Technology',3,'',65,2),(138,'2025-04-21 20:11:55.607162','4','B004 - Kikubo Branch',2,'[]',34,2),(139,'2025-04-21 20:58:13.307993','13','Technology',1,'[{\"added\": {}}]',65,2),(140,'2025-04-21 20:58:15.637061','13','Technology',2,'[]',65,2),(141,'2025-04-21 20:59:42.477713','13','Technology',2,'[]',65,2),(142,'2025-04-21 20:59:46.325051','4','Staffbranchassignment object (4)',2,'[]',64,2),(143,'2025-04-21 20:59:52.397351','2','Sekito Ben',2,'[]',67,2),(144,'2025-04-21 20:59:56.425108','1','B001 - Main Branch',2,'[]',34,2),(145,'2025-04-21 21:00:06.770185','3','Staffbranchassignment object (3)',2,'[]',64,2),(146,'2025-04-22 10:41:09.751523','1','Config object (1)',1,'[{\"added\": {}}]',74,2),(147,'2025-04-22 10:41:12.445613','1','Config object (1)',2,'[]',74,2),(148,'2025-04-22 10:42:59.355458','1','Config object (1)',2,'[]',74,2),(149,'2025-04-22 10:43:21.785093','1','Config object (1)',2,'[{\"changed\": {\"fields\": [\"Config value\"]}}]',74,2),(150,'2025-04-22 10:46:36.574359','2','Config object (2)',1,'[{\"added\": {}}]',74,2),(151,'2025-04-22 10:47:26.431658','3','Config object (3)',1,'[{\"added\": {}}]',74,2),(152,'2025-04-22 10:59:59.726432','3','Config object (3)',2,'[{\"changed\": {\"fields\": [\"Description\"]}}]',74,2),(153,'2025-04-22 11:07:04.200956','3','Config object (3)',2,'[]',74,2),(154,'2025-04-22 11:07:25.207894','2','Config object (2)',2,'[{\"changed\": {\"fields\": [\"Config name\"]}}]',74,2),(155,'2025-04-22 11:15:35.111202','2','MUGA-00002 - sebagala charles',2,'[]',31,2),(156,'2025-04-27 13:05:57.704634','3','None - Sebagala Charles',1,'[{\"added\": {}}, {\"added\": {\"name\": \"nextofkeen\", \"object\": \"Nextofkeen object (3)\"}}]',31,2),(157,'2025-04-27 13:06:26.970793','9','client',2,'[{\"changed\": {\"fields\": [\"Name\"]}}]',3,2),(158,'2025-04-27 13:06:36.320752','9','Client',2,'[{\"changed\": {\"fields\": [\"Name\"]}}]',3,2),(159,'2025-04-27 13:07:43.038012','3','client_3',2,'[{\"changed\": {\"fields\": [\"password\"]}}]',4,2),(160,'2025-04-27 13:08:20.054671','3','MUGA-00003 - Sebagala Charles',2,'[{\"changed\": {\"fields\": [\"Photo\", \"Status\"]}}]',31,2),(161,'2025-04-27 13:20:33.267718','4','None - Sebagala Charles',1,'[{\"added\": {}}, {\"added\": {\"name\": \"nextofkeen\", \"object\": \"Nextofkeen object (4)\"}}]',31,2),(162,'2025-04-27 13:20:56.414344','4','None - Sebagala Charles',2,'[{\"changed\": {\"fields\": [\"Photo\"]}}]',31,2),(163,'2025-04-27 13:21:33.448133','4','None - Sebagala Charles',2,'[{\"changed\": {\"name\": \"nextofkeen\", \"object\": \"Nextofkeen object (4)\", \"fields\": [\"Status\"]}}]',31,2),(164,'2025-04-27 13:21:59.547994','4','MUGA-00004 - Sebagala Charles',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',31,2),(165,'2025-04-27 13:22:42.608547','4','MUGA-00004',2,'[{\"changed\": {\"fields\": [\"password\"]}}]',4,2),(166,'2025-04-28 11:37:38.327949','2','Sekito Ben',2,'[]',67,1),(167,'2025-04-28 12:33:22.163772','4','MUGA-00004 - Sebagala Charles',2,'[]',31,1),(168,'2025-04-28 12:37:40.822835','2','Sekito Ben',2,'[]',67,1),(169,'2025-04-28 12:37:44.739238','2','Sekito Ben',2,'[]',67,1),(170,'2025-04-28 12:38:02.974216','2','Sekito Ben',2,'[]',67,1),(171,'2025-04-28 16:44:56.223471','3','Kizito John',1,'[{\"added\": {}}]',67,1),(172,'2025-04-28 16:45:38.000776','5','Staffbranchassignment object (5)',1,'[{\"added\": {}}]',64,1),(173,'2025-04-28 16:45:54.612311','3','Kizito John',2,'[]',67,1),(174,'2025-04-28 16:46:16.075850','1','B001 - Main Branch',2,'[{\"changed\": {\"fields\": [\"Branch Manager\"]}}]',34,1),(175,'2025-04-28 16:47:07.535414','2','B003 - Arua',2,'[{\"changed\": {\"fields\": [\"Branch Manager\"]}}]',34,1),(176,'2025-04-28 16:47:17.425870','2','Staffbranchassignment object (2)',2,'[{\"changed\": {\"fields\": [\"Staff\"]}}]',64,1),(177,'2025-04-28 16:47:31.156244','4','B004 - Kikubo Branch',2,'[{\"changed\": {\"fields\": [\"Branch Manager\"]}}]',34,1),(178,'2025-04-28 16:47:39.831336','1','Staffbranchassignment object (1)',2,'[{\"changed\": {\"fields\": [\"Staff\"]}}]',64,1),(179,'2025-04-28 16:47:57.620058','1','jkkj jjkj',3,'',67,1),(180,'2025-04-28 16:48:13.523589','1','jkkj jjkj',3,'',67,1),(181,'2025-04-28 16:55:12.277526','1','jkkj jjkj',3,'',67,1),(182,'2025-04-28 16:56:02.395152','2','Sekito Ben',2,'[]',67,1),(183,'2025-04-28 16:56:05.839164','3','Kizito John',2,'[]',67,1),(184,'2025-04-28 16:57:07.288987','6','STF-2',2,'[{\"changed\": {\"fields\": [\"password\"]}}]',4,1),(185,'2025-04-28 17:12:05.609968','1','Account object (1)',1,'[{\"added\": {}}]',91,1),(186,'2025-04-28 17:12:16.618665','1','Account object (1)',2,'[]',91,1),(187,'2025-04-28 17:12:23.908225','1','Account object (1)',2,'[{\"changed\": {\"fields\": [\"Balance\"]}}]',91,1),(188,'2025-04-28 17:21:46.166801','1','Account object (1)',2,'[{\"changed\": {\"fields\": [\"Account type\"]}}]',91,1),(189,'2025-04-28 17:22:12.554693','1','Account object (1)',2,'[{\"changed\": {\"fields\": [\"Account type\"]}}]',91,1),(190,'2025-04-28 17:35:14.440834','1','Account object (1)',2,'[]',91,1),(191,'2025-04-28 17:36:59.230192','4','MUGA-00004',2,'[{\"changed\": {\"fields\": [\"password\"]}}]',4,1),(192,'2025-04-28 17:57:35.612304','1','Account object (1)',2,'[{\"changed\": {\"fields\": [\"Client\"]}}]',91,1),(193,'2025-04-28 18:10:02.130280','1','Account object (1)',2,'[{\"changed\": {\"fields\": [\"Currency\"]}}]',91,1),(194,'2025-04-28 18:10:33.473408','2','Account object (2)',1,'[{\"added\": {}}]',91,1),(195,'2025-04-29 14:56:14.540372','3','Accounttype object (3)',1,'[{\"added\": {}}]',95,1),(196,'2025-04-29 14:56:29.452940','3','Accounttype object (3)',2,'[]',95,1),(197,'2025-04-29 15:16:00.990376','3','Savings - (UGX)',2,'[]',95,1),(198,'2025-04-29 15:44:05.496442','3','Savings - (UGX)',2,'[]',95,1),(199,'2025-04-29 15:45:40.237890','3','Savings - (UGX)',2,'[]',95,1),(200,'2025-04-29 16:43:48.309705','2','Fee object (2)',1,'[{\"added\": {}}]',104,1),(201,'2025-04-29 16:44:01.435588','2','Fee object (2)',2,'[]',104,1),(202,'2025-04-29 17:03:02.063543','3','Savings - (UGX)',2,'[]',95,1),(203,'2025-04-29 17:03:27.796052','4','Savings - (USD)',1,'[{\"added\": {}}]',95,1),(204,'2025-04-29 17:03:59.247492','4','Savings - (USD)',2,'[]',95,1),(205,'2025-04-29 18:26:37.722183','3','Fee object (3)',1,'[{\"added\": {}}]',104,1),(206,'2025-04-29 18:27:00.716965','3','Fee object (3)',2,'[]',104,1),(207,'2025-04-29 19:01:38.258178','2','Account object (2)',2,'[]',91,1),(208,'2025-05-13 11:40:12.455649','3','Savings - (UGX)',2,'[]',95,1),(209,'2025-05-13 20:29:57.816362','2','Account object (2)',2,'[]',91,1),(210,'2025-05-13 20:30:09.780882','1','Account object (1)',2,'[]',91,1),(211,'2025-05-13 20:30:28.628566','1','Account object (1)',2,'[{\"changed\": {\"fields\": [\"Balance\"]}}]',91,1),(212,'2025-05-14 09:20:08.918418','1','Deposit object (1)',1,'[{\"added\": {}}]',115,1),(213,'2025-05-14 10:02:21.896705','2','90565446 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Deposit threshold\", \"Withdraw threshold\"]}}]',91,1),(214,'2025-05-14 10:02:59.430809','1','329998937498 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Deposit threshold\", \"Withdraw threshold\"]}}]',91,1),(215,'2025-05-14 10:03:51.775658','4','Savings - (USD)',2,'[{\"changed\": {\"fields\": [\"Deposit threshold\", \"Withdraw threshold\"]}}]',95,1),(216,'2025-05-14 10:04:04.605676','3','Savings - (UGX)',2,'[{\"changed\": {\"fields\": [\"Deposit threshold\", \"Withdraw threshold\"]}}]',95,1),(217,'2025-05-14 10:19:46.981307','1','Deposit object (1)',2,'[]',115,1),(218,'2025-05-14 10:33:14.353699','1','Deposit object (1)',2,'[]',115,1),(219,'2025-05-14 10:52:04.964771','1','Deposit object (1)',2,'[]',115,1),(220,'2025-05-14 10:52:22.832417','1','Deposit object (1)',2,'[]',115,1),(221,'2025-05-14 10:52:31.927843','1','Deposit object (1)',2,'[{\"changed\": {\"fields\": [\"Amount\"]}}]',115,1),(222,'2025-05-14 10:52:44.952168','1','Deposit object (1)',2,'[]',115,1),(223,'2025-05-14 10:52:54.119405','1','Deposit object (1)',2,'[{\"changed\": {\"fields\": [\"Amount\"]}}]',115,1),(224,'2025-05-14 10:54:01.148189','2','Deposit object (2)',1,'[{\"added\": {}}]',115,1),(225,'2025-05-14 10:54:27.996006','3','Deposit object (3)',1,'[{\"added\": {}}]',115,1),(226,'2025-05-14 10:54:53.261057','4','Deposit object (4)',1,'[{\"added\": {}}]',115,1),(227,'2025-05-14 10:55:19.143928','5','Deposit object (5)',1,'[{\"added\": {}}]',115,1),(228,'2025-05-14 11:35:30.049505','11','agent',1,'[{\"added\": {}}]',3,1),(229,'2025-05-14 11:59:07.040425','5','Deposit object (5)',2,'[]',115,1),(230,'2025-05-14 18:35:30.848483','5','Deposit object (5)',2,'[]',115,1),(231,'2025-05-14 19:54:50.441091','1','329998937498 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Balance\", \"Deposit threshold\"]}}]',91,1),(232,'2025-05-14 19:58:02.407318','2','90565446 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Client\"]}}]',91,1),(233,'2025-05-15 11:49:35.604907','2','Withdrawal object (2)',1,'[{\"added\": {}}]',116,1),(234,'2025-05-15 12:21:47.249871','3','Withdrawal object (3)',1,'[{\"added\": {}}]',116,1),(235,'2025-05-15 12:22:07.243400','11','Agent',2,'[{\"changed\": {\"fields\": [\"Name\"]}}]',3,1),(236,'2025-05-15 12:35:50.895382','5','None - Loms Genral Account',1,'[{\"added\": {}}, {\"added\": {\"name\": \"nextofkeen\", \"object\": \"Nextofkeen object (5)\"}}]',31,1),(237,'2025-05-15 12:37:03.912507','5','MUGA-00005 - Loms Genral Account',2,'[{\"changed\": {\"fields\": [\"Status\"]}}]',31,1),(238,'2025-05-15 12:37:33.405358','5','MUGA-00005 - Loms Micro Finance',2,'[{\"changed\": {\"fields\": [\"Firstname\", \"Lastname\"]}}]',31,1),(239,'2025-05-15 12:38:08.368802','3','10001 - (Savings - (UGX))',1,'[{\"added\": {}}]',91,1),(240,'2025-05-15 12:38:18.166981','3','10001 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Balance\"]}}]',91,1),(241,'2025-05-15 13:35:49.738979','3','Withdrawal object (3)',2,'[]',116,1),(242,'2025-05-15 13:44:30.340179','2','Withdrawal object (2)',2,'[]',116,1),(243,'2025-05-15 13:45:12.747139','10','Staff',2,'[{\"changed\": {\"fields\": [\"Name\"]}}]',3,1),(244,'2025-05-15 13:52:40.991872','8','MUGA-00005',2,'[{\"changed\": {\"fields\": [\"password\"]}}]',4,1),(245,'2025-05-15 13:52:47.881629','8','MUGA-00005',2,'[{\"changed\": {\"fields\": [\"First name\"]}}]',4,1),(246,'2025-05-15 16:55:23.654330','4','Withdrawal object (4)',1,'[{\"added\": {}}]',116,1),(247,'2025-05-15 17:11:40.497649','4','Fee object (4)',1,'[{\"added\": {}}]',104,1),(248,'2025-05-15 17:16:20.140307','5','Fee object (5)',1,'[{\"added\": {}}]',104,1),(249,'2025-05-15 18:31:35.995819','17','Withdrawal object (17)',1,'[{\"added\": {}}]',116,1),(250,'2025-05-15 18:44:24.973757','3','10001 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Client\"]}}]',91,1),(251,'2025-05-15 18:53:41.254510','26','Deposit object (26)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(252,'2025-05-15 18:53:49.000441','25','Deposit object (25)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(253,'2025-05-15 18:53:53.470102','24','Deposit object (24)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(254,'2025-05-15 18:53:58.511814','23','Deposit object (23)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(255,'2025-05-15 18:54:05.049110','22','Deposit object (22)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(256,'2025-05-15 18:54:09.897156','21','Deposit object (21)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(257,'2025-05-15 18:54:14.690420','20','Deposit object (20)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(258,'2025-05-15 18:54:18.747515','21','Deposit object (21)',2,'[]',115,1),(259,'2025-05-15 18:54:23.226768','19','Deposit object (19)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(260,'2025-05-15 18:54:27.950020','18','Deposit object (18)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(261,'2025-05-15 18:54:32.816307','17','Deposit object (17)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(262,'2025-05-15 18:54:38.551028','16','Deposit object (16)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(263,'2025-05-15 18:54:44.399953','15','Deposit object (15)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(264,'2025-05-15 18:54:51.151771','14','Deposit object (14)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(265,'2025-05-15 18:54:56.721094','13','Deposit object (13)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(266,'2025-05-15 18:55:01.688281','12','Deposit object (12)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(267,'2025-05-15 18:55:06.846828','11','Deposit object (11)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(268,'2025-05-15 18:55:11.630759','10','Deposit object (10)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(269,'2025-05-15 18:55:17.678521','9','Deposit object (9)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(270,'2025-05-15 18:55:22.918725','8','Deposit object (8)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(271,'2025-05-15 18:55:28.617488','7','Deposit object (7)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(272,'2025-05-15 18:55:34.438791','6','Deposit object (6)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(273,'2025-05-15 18:55:42.949135','5','Deposit object (5)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(274,'2025-05-15 18:55:47.841085','4','Deposit object (4)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(275,'2025-05-15 18:55:53.124104','3','Deposit object (3)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(276,'2025-05-15 18:55:58.757096','2','Deposit object (2)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(277,'2025-05-15 18:56:04.938808','1','Deposit object (1)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(278,'2025-05-15 19:00:29.273884','26','Deposit object (26)',2,'[{\"changed\": {\"fields\": [\"Account\"]}}]',115,1),(279,'2025-05-15 19:19:32.088476','18','Withdrawal object (18)',1,'[{\"added\": {}}]',116,1),(280,'2025-05-15 21:14:30.696945','19','Withdrawal object (19)',1,'[{\"added\": {}}]',116,1),(281,'2025-05-15 21:17:11.867465','20','Withdrawal object (20)',1,'[{\"added\": {}}]',116,1),(282,'2025-05-15 21:18:21.513014','21','Withdrawal object (21)',1,'[{\"added\": {}}]',116,1),(283,'2025-05-15 21:19:48.378657','3','329998937498 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Withdraw threshold\"]}}]',91,1),(284,'2025-05-15 21:39:45.470596','30','Withdrawal object (30)',1,'[{\"added\": {}}]',116,1),(285,'2025-05-15 21:59:00.420503','35','Withdrawal object (35)',1,'[{\"added\": {}}]',116,1),(286,'2025-05-15 22:00:28.726558','36','Withdrawal object (36)',1,'[{\"added\": {}}]',116,1),(287,'2025-05-16 09:17:01.771171','1','10001 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Client\"]}}]',91,1),(288,'2025-05-16 09:17:53.650686','1','LOMS Genaral Account - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Account number\"]}}]',91,1),(289,'2025-05-16 10:01:01.080115','37','Withdrawal object (37)',1,'[{\"added\": {}}]',116,1),(290,'2025-05-16 10:21:16.199946','37','Withdrawal object (37)',2,'[]',116,1),(291,'2025-05-16 10:21:20.724394','37','Withdrawal object (37)',2,'[]',116,1),(292,'2025-05-16 10:21:59.650758','37','Withdrawal object (37)',2,'[]',116,1),(293,'2025-05-16 10:43:10.487243','38','Withdrawal object (38)',1,'[{\"added\": {}}]',116,1),(294,'2025-05-16 10:43:56.961313','2','90565446 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Deposit threshold\", \"Withdraw threshold\"]}}]',91,1),(295,'2025-05-16 10:45:24.832808','2','90565446 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Withdraw threshold\"]}}]',91,1),(296,'2025-05-16 10:45:39.884990','2','90565446 - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Withdraw threshold\"]}}]',91,1),(297,'2025-05-16 10:52:02.357927','38','Withdrawal object (38)',2,'[]',116,1),(298,'2025-05-16 11:02:05.624950','37','Withdrawal object (37)',2,'[{\"changed\": {\"fields\": [\"Amount\"]}}]',116,1),(299,'2025-05-21 13:24:18.849911','4','Savings - (USD)',2,'[{\"changed\": {\"fields\": [\"Transfer threshold\"]}}]',95,1),(300,'2025-05-21 13:24:26.564275','3','Savings - (UGX)',2,'[{\"changed\": {\"fields\": [\"Transfer threshold\"]}}]',95,1),(301,'2025-05-21 16:14:53.791423','6','Fee object (6)',1,'[{\"added\": {}}]',104,1),(302,'2025-05-21 16:19:01.324776','7','Fee object (7)',1,'[{\"added\": {}}]',104,1),(303,'2025-05-21 16:19:48.605507','8','Fee object (8)',1,'[{\"added\": {}}]',104,1),(304,'2025-05-21 17:06:10.770571','5','Fee object (5)',2,'[{\"changed\": {\"fields\": [\"Fee type\", \"Fee name\"]}}]',104,1),(305,'2025-05-21 17:06:29.201608','4','Fee object (4)',2,'[{\"changed\": {\"fields\": [\"Fee type\", \"Fee name\"]}}]',104,1),(306,'2025-05-21 17:10:16.794841','4','Fee object (4)',2,'[{\"changed\": {\"fields\": [\"Description\"]}}]',104,1),(307,'2025-05-21 17:10:32.086663','4','Fee object (4)',2,'[]',104,1),(308,'2025-05-21 17:29:40.411077','12','Transfer object (12)',1,'[{\"added\": {}}]',117,1),(309,'2025-05-21 17:46:05.346128','16','Transfer object (16)',1,'[{\"added\": {}}]',117,1),(310,'2025-05-22 07:59:51.386389','12','Transfer Holding - (Savings - (UGX))',1,'[{\"added\": {}}]',91,1),(311,'2025-05-22 08:01:24.073036','4','Transfer Holding - (Savings - (UGX))',2,'[]',91,1),(312,'2025-05-22 09:25:17.942971','26','Transfer object (26)',1,'[{\"added\": {}}, {\"added\": {\"name\": \"Transfer Detail\", \"object\": \"Transferdetails object (2)\"}}]',117,1),(313,'2025-05-22 15:08:55.919793','13','Operations - (Savings - (UGX))',1,'[{\"added\": {}}]',91,1),(314,'2025-05-22 15:09:50.622909','14','Loans - (Savings - (UGX))',1,'[{\"added\": {}}]',91,1),(315,'2025-05-22 15:10:12.632685','15','Social Good - (Savings - (UGX))',1,'[{\"added\": {}}]',91,1),(316,'2025-05-22 15:10:58.458487','16','Projects - (Savings - (UGX))',1,'[{\"added\": {}}]',91,1),(317,'2025-05-22 15:14:13.525589','9','Commission - (Savings - (UGX))',1,'[{\"added\": {}}]',91,1),(318,'2025-05-22 15:14:47.952163','9','Agent Commission - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Account number\"]}}]',91,1),(319,'2025-05-22 15:25:30.424047','9','Commission - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Account number\"]}}]',91,1),(320,'2025-05-22 15:25:45.753736','1','Genaral Account - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Account number\"]}}]',91,1),(321,'2025-05-22 16:13:28.712615','10','share holders - (Savings - (UGX))',1,'[{\"added\": {}}]',91,1),(322,'2025-05-22 16:33:35.934164','10','Share Holders - (Savings - (UGX))',2,'[{\"changed\": {\"fields\": [\"Account number\"]}}]',91,1),(323,'2025-05-22 16:58:08.055095','5','Equity - (UGX)',1,'[{\"added\": {}}]',95,1),(324,'2025-05-22 17:21:54.771563','9','Fee object (9)',1,'[{\"added\": {}}]',104,1),(325,'2025-05-22 17:25:59.351470','39','Withdrawal object (39)',1,'[{\"added\": {}}]',116,1),(326,'2025-05-22 17:33:32.269448','40','Withdrawal object (40)',1,'[{\"added\": {}}]',116,1),(327,'2025-05-22 17:40:18.405490','41','Withdrawal object (41)',1,'[{\"added\": {}}]',116,1),(328,'2025-05-22 17:46:14.397424','42','Withdrawal object (42)',1,'[{\"added\": {}}]',116,1),(329,'2025-05-22 17:47:15.789926','43','Withdrawal object (43)',1,'[{\"added\": {}}]',116,1),(330,'2025-05-22 17:49:43.763939','44','Withdrawal object (44)',1,'[{\"added\": {}}]',116,1),(331,'2025-05-22 20:33:23.716447','2','Fee object (2)',2,'[{\"changed\": {\"fields\": [\"Fee name\", \"Fee amount\", \"Description\"]}}]',104,1),(332,'2025-05-22 20:37:00.511859','3','Fee object (3)',2,'[{\"changed\": {\"fields\": [\"Fee name\", \"Fee amount\", \"Description\"]}}]',104,1),(333,'2025-05-22 20:38:18.552120','6','Fixed - (UGX)',1,'[{\"added\": {}}]',95,1),(334,'2025-05-22 20:42:08.292320','4','Fee object (4)',2,'[{\"changed\": {\"fields\": [\"Fee type\", \"Fee name\", \"Min amount\", \"Max amount\", \"Fee amount\", \"Description\"]}}]',104,1),(335,'2025-05-22 20:43:54.392942','4','Fee object (4)',2,'[{\"changed\": {\"fields\": [\"Fee name\", \"Fee amount\"]}}]',104,1),(336,'2025-05-22 20:45:32.254406','5','Fee object (5)',2,'[{\"changed\": {\"fields\": [\"Fee type\", \"Fee name\", \"Min amount\", \"Max amount\", \"Fee amount\", \"Description\"]}}]',104,1),(337,'2025-05-22 20:46:35.072145','6','Fee object (6)',2,'[{\"changed\": {\"fields\": [\"Fee type\", \"Fee name\", \"Min amount\", \"Max amount\", \"Fee amount\"]}}]',104,1),(338,'2025-05-22 20:48:03.798195','7','Fee object (7)',2,'[{\"changed\": {\"fields\": [\"Fee type\", \"Fee name\", \"Min amount\", \"Fee amount\"]}}]',104,1),(339,'2025-05-22 20:49:19.048574','8','Fee object (8)',2,'[{\"changed\": {\"fields\": [\"Fee type\", \"Fee name\", \"Min amount\", \"Max amount\", \"Fee amount\"]}}]',104,1),(340,'2025-05-22 20:49:49.135102','8','Fee object (8)',2,'[{\"changed\": {\"fields\": [\"Min amount\"]}}]',104,1),(341,'2025-05-22 20:50:53.181831','9','Fee object (9)',2,'[{\"changed\": {\"fields\": [\"Fee type\", \"Fee name\", \"Min amount\", \"Max amount\", \"Fee amount\", \"Description\"]}}]',104,1),(342,'2025-05-22 20:53:36.779691','10','Fee object (10)',1,'[{\"added\": {}}]',104,1),(343,'2025-05-22 20:54:19.624864','11','Fee object (11)',1,'[{\"added\": {}}]',104,1),(344,'2025-05-22 20:54:56.866102','10','Fee object (10)',2,'[{\"changed\": {\"fields\": [\"Fee amount\", \"Is percentage\"]}}]',104,1),(345,'2025-05-22 20:55:27.111285','11','Fee object (11)',2,'[{\"changed\": {\"fields\": [\"Fee amount\", \"Is percentage\"]}}]',104,1),(346,'2025-05-22 20:56:53.262846','12','Fee object (12)',1,'[{\"added\": {}}]',104,1),(347,'2025-05-22 21:01:58.152461','13','Fee object (13)',1,'[{\"added\": {}}]',104,1),(348,'2025-05-22 21:02:37.569849','14','Fee object (14)',1,'[{\"added\": {}}]',104,1),(349,'2025-05-22 21:05:10.216473','15','Fee object (15)',1,'[{\"added\": {}}]',104,1),(350,'2025-05-22 21:08:14.852595','16','Fee object (16)',1,'[{\"added\": {}}]',104,1),(351,'2025-05-22 21:09:44.843856','17','Fee object (17)',1,'[{\"added\": {}}]',104,1),(352,'2025-05-22 21:10:47.619475','18','Fee object (18)',1,'[{\"added\": {}}]',104,1),(353,'2025-05-22 21:13:33.786492','19','Fee object (19)',1,'[{\"added\": {}}]',104,1),(354,'2025-05-22 21:13:50.804846','20','Fee object (20)',1,'[{\"added\": {}}]',104,1),(355,'2025-05-22 21:14:15.598774','21','Fee object (21)',1,'[{\"added\": {}}]',104,1),(356,'2025-05-22 21:34:56.757553','22','Fee object (22)',1,'[{\"added\": {}}]',104,1),(357,'2025-05-22 21:35:30.522556','23','Fee object (23)',1,'[{\"added\": {}}]',104,1),(358,'2025-05-22 21:35:56.038486','24','Fee object (24)',1,'[{\"added\": {}}]',104,1),(359,'2025-05-22 21:36:41.352553','25','Fee object (25)',1,'[{\"added\": {}}]',104,1),(360,'2025-05-22 21:42:43.796248','26','Fee object (26)',1,'[{\"added\": {}}]',104,1),(361,'2025-05-22 21:46:30.764568','27','Fee object (27)',1,'[{\"added\": {}}]',104,1),(362,'2025-05-22 21:47:24.763352','28','Fee object (28)',1,'[{\"added\": {}}]',104,1),(363,'2025-05-22 21:48:22.151505','29','Fee object (29)',1,'[{\"added\": {}}]',104,1),(364,'2025-05-22 21:49:07.385049','30','Fee object (30)',1,'[{\"added\": {}}]',104,1),(365,'2025-05-22 21:50:25.342590','31','Fee object (31)',1,'[{\"added\": {}}]',104,1),(366,'2025-05-22 21:51:20.708851','32','Fee object (32)',1,'[{\"added\": {}}]',104,1),(367,'2025-05-22 21:52:16.083586','33','Fee object (33)',1,'[{\"added\": {}}]',104,1),(368,'2025-05-22 21:53:04.200620','34','Fee object (34)',1,'[{\"added\": {}}]',104,1),(369,'2025-05-22 21:54:21.500436','35','Fee object (35)',1,'[{\"added\": {}}]',104,1),(370,'2025-05-23 16:12:00.799722','36','Fee object (36)',1,'[{\"added\": {}}]',104,1),(371,'2025-05-23 16:13:04.949824','37','Fee object (37)',1,'[{\"added\": {}}]',104,1),(372,'2025-05-23 16:20:53.002863','38','Fee object (38)',1,'[{\"added\": {}}]',104,1),(373,'2025-05-23 16:21:13.393475','39','Fee object (39)',1,'[{\"added\": {}}]',104,1),(374,'2025-05-23 16:21:42.035801','40','Fee object (40)',1,'[{\"added\": {}}]',104,1),(375,'2025-05-23 16:22:12.993709','41','Fee object (41)',1,'[{\"added\": {}}]',104,1),(376,'2025-05-23 16:22:39.048627','42','Fee object (42)',1,'[{\"added\": {}}]',104,1),(377,'2025-05-23 16:23:08.236067','43','Fee object (43)',1,'[{\"added\": {}}]',104,1),(378,'2025-05-23 16:24:28.394672','42','Fee object (42)',2,'[{\"changed\": {\"fields\": [\"Fee name\"]}}]',104,1),(379,'2025-05-23 16:24:35.184743','42','Fee object (42)',2,'[]',104,1),(380,'2025-05-23 16:25:20.423941','44','Fee object (44)',1,'[{\"added\": {}}]',104,1),(381,'2025-05-23 16:28:21.751391','45','Fee object (45)',1,'[{\"added\": {}}]',104,1),(382,'2025-05-23 16:43:40.215325','46','Fee object (46)',1,'[{\"added\": {}}]',104,1),(383,'2025-05-23 16:44:23.320717','47','Fee object (47)',1,'[{\"added\": {}}]',104,1),(384,'2025-05-23 16:45:04.805572','48','Fee object (48)',1,'[{\"added\": {}}]',104,1),(385,'2025-05-23 16:45:48.519801','49','Fee object (49)',1,'[{\"added\": {}}]',104,1),(386,'2025-05-23 16:46:36.572985','50','Fee object (50)',1,'[{\"added\": {}}]',104,1),(387,'2025-05-23 16:47:25.723097','51','Fee object (51)',1,'[{\"added\": {}}]',104,1),(388,'2025-05-23 16:48:30.818211','52','Fee object (52)',1,'[{\"added\": {}}]',104,1),(389,'2025-05-23 16:53:16.762162','53','Fee object (53)',1,'[{\"added\": {}}]',104,1),(390,'2025-05-23 16:53:54.076046','54','Fee object (54)',1,'[{\"added\": {}}]',104,1),(391,'2025-05-23 16:54:31.139534','55','Fee object (55)',1,'[{\"added\": {}}]',104,1),(392,'2025-05-23 17:02:48.821898','56','Fee object (56)',1,'[{\"added\": {}}]',104,1),(393,'2025-05-23 17:03:36.290492','57','Fee object (57)',1,'[{\"added\": {}}]',104,1),(394,'2025-05-23 17:04:14.850278','58','Fee object (58)',1,'[{\"added\": {}}]',104,1),(395,'2025-05-24 08:53:04.698121','59','Fee object (59)',1,'[{\"added\": {}}]',104,1),(396,'2025-05-24 08:53:53.049605','60','Fee object (60)',1,'[{\"added\": {}}]',104,1),(397,'2025-05-24 08:54:26.833803','61','Fee object (61)',1,'[{\"added\": {}}]',104,1),(398,'2025-05-24 08:54:53.220096','62','Fee object (62)',1,'[{\"added\": {}}]',104,1),(399,'2025-05-24 08:55:24.017804','63','Fee object (63)',1,'[{\"added\": {}}]',104,1),(400,'2025-05-24 08:55:52.975889','64','Fee object (64)',1,'[{\"added\": {}}]',104,1);

--
-- Table structure for table `django_content_type`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `django_content_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `app_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `model` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=118 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `django_content_type`
--

INSERT INTO `django_content_type` VALUES (1,'admin','logentry'),(91,'administrator','account'),(95,'administrator','accounttype'),(75,'administrator','administratorhistoricalbranch'),(92,'administrator','administratorhistoricalconfig'),(76,'administrator','administratorhistoricalstaff'),(77,'administrator','administratorhistoricalstaffbranchassignment'),(71,'administrator','administratorhistoricalstaffcategories'),(50,'administrator','authgroup'),(51,'administrator','authgrouppermissions'),(52,'administrator','authpermission'),(53,'administrator','authuser'),(54,'administrator','authusergroups'),(55,'administrator','authuseruserpermissions'),(34,'administrator','branch'),(56,'administrator','client'),(57,'administrator','clientflagged'),(74,'administrator','config'),(115,'administrator','deposit'),(58,'administrator','djangoadminlog'),(59,'administrator','djangocontenttype'),(60,'administrator','djangomigrations'),(61,'administrator','djangosession'),(104,'administrator','fee'),(93,'administrator','historicalaccount'),(105,'administrator','historicalaccounttype'),(66,'administrator','historicalbranch'),(78,'administrator','historicalconfig'),(106,'administrator','historicalfee'),(68,'administrator','historicalstaff'),(69,'administrator','historicalstaffbranchassignment'),(70,'administrator','historicalstaffcategories'),(62,'administrator','nextofkeen'),(63,'administrator','nextofkeenflagged'),(67,'administrator','staff'),(64,'administrator','staffbranchassignment'),(65,'administrator','staffcategories'),(117,'administrator','transfer'),(116,'administrator','withdrawal'),(3,'auth','group'),(2,'auth','permission'),(4,'auth','user'),(107,'clients','account'),(108,'clients','accounttype'),(35,'clients','authgroup'),(36,'clients','authgrouppermissions'),(37,'clients','authpermission'),(33,'clients','authuser'),(38,'clients','authusergroups'),(39,'clients','authuseruserpermissions'),(40,'clients','branch'),(31,'clients','client'),(41,'clients','clientflagged'),(42,'clients','djangoadminlog'),(43,'clients','djangocontenttype'),(44,'clients','djangomigrations'),(45,'clients','djangosession'),(109,'clients','fee'),(110,'clients','historicalaccount'),(111,'clients','historicalaccounttype'),(112,'clients','historicalfee'),(32,'clients','nextofkeen'),(46,'clients','nextofkeenflagged'),(47,'clients','staff'),(48,'clients','staffbranchassignment'),(49,'clients','staffcategories'),(5,'contenttypes','contenttype'),(96,'history','accounttype'),(94,'history','administratorhistoricalaccount'),(113,'history','administratorhistoricalaccounttype'),(73,'history','administratorhistoricalbranch'),(90,'history','administratorhistoricalconfig'),(114,'history','administratorhistoricalfee'),(79,'history','administratorhistoricalstaff'),(80,'history','administratorhistoricalstaffbranchassignment'),(72,'history','administratorhistoricalstaffcategories'),(83,'history','authuser'),(84,'history','branch'),(97,'history','client'),(98,'history','clientflagged'),(99,'history','fee'),(102,'history','historicalaccounttype'),(87,'history','historicalbranch'),(103,'history','historicalfee'),(86,'history','historicalstaff'),(85,'history','historicalstaffbranchassignment'),(82,'history','historicalstaffcategories'),(100,'history','nextofkeen'),(101,'history','nextofkeenflagged'),(89,'history','staff'),(81,'history','staffbranchassignment'),(88,'history','staffcategories'),(21,'hotel','authgroup'),(22,'hotel','authgrouppermissions'),(23,'hotel','authpermission'),(24,'hotel','authuser'),(25,'hotel','authusergroups'),(26,'hotel','authuseruserpermissions'),(19,'hotel','commissions'),(27,'hotel','djangoadminlog'),(28,'hotel','djangocontenttype'),(29,'hotel','djangomigrations'),(30,'hotel','djangosession'),(7,'hotel','guests'),(20,'hotel','gymuser'),(8,'hotel','hotelexpenses'),(11,'hotel','hotels'),(14,'hotel','payments'),(15,'hotel','referrers'),(16,'hotel','reservationguests'),(17,'hotel','reservations'),(10,'hotel','rooms'),(18,'hotel','staff'),(9,'hotel','staffcategories'),(13,'hotel','staffpayments'),(12,'hotel','vendors'),(6,'sessions','session');

--
-- Table structure for table `django_migrations`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `django_migrations` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `app` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `applied` datetime(6) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `django_migrations`
--

INSERT INTO `django_migrations` VALUES (1,'contenttypes','0001_initial','2025-01-11 16:12:04.741283'),(2,'auth','0001_initial','2025-01-11 16:12:05.246145'),(3,'admin','0001_initial','2025-01-11 16:12:05.369641'),(4,'admin','0002_logentry_remove_auto_add','2025-01-11 16:12:05.379505'),(5,'admin','0003_logentry_add_action_flag_choices','2025-01-11 16:12:05.388325'),(6,'contenttypes','0002_remove_content_type_name','2025-01-11 16:12:05.484680'),(7,'auth','0002_alter_permission_name_max_length','2025-01-11 16:12:05.540312'),(8,'auth','0003_alter_user_email_max_length','2025-01-11 16:12:05.567544'),(9,'auth','0004_alter_user_username_opts','2025-01-11 16:12:05.576925'),(10,'auth','0005_alter_user_last_login_null','2025-01-11 16:12:05.621749'),(11,'auth','0006_require_contenttypes_0002','2025-01-11 16:12:05.624758'),(12,'auth','0007_alter_validators_add_error_messages','2025-01-11 16:12:05.634284'),(13,'auth','0008_alter_user_username_max_length','2025-01-11 16:12:05.697661'),(14,'auth','0009_alter_user_last_name_max_length','2025-01-11 16:12:05.756734'),(15,'auth','0010_alter_group_name_max_length','2025-01-11 16:12:05.785198'),(16,'auth','0011_update_proxy_permissions','2025-01-11 16:12:05.795626'),(17,'auth','0012_alter_user_first_name_max_length','2025-01-11 16:12:05.860996'),(18,'sessions','0001_initial','2025-01-11 16:12:05.887141'),(19,'hotel','0001_initial','2025-04-11 05:47:51.148369'),(20,'hotel','0002_gymuser','2025-04-11 05:47:51.153804'),(21,'administrator','0001_initial','2025-04-21 10:59:33.778730'),(22,'clients','0001_initial','2025-04-21 10:59:33.810013'),(23,'administrator','0002_alter_branch_options_alter_historicalbranch_options_and_more','2025-04-21 14:11:28.820455'),(24,'administrator','0003_historicalstaffcategories','2025-04-21 14:12:34.128725'),(25,'administrator','0004_administratorhistoricalbranch_and_more','2025-04-22 10:20:14.537920'),(26,'history','0001_initial','2025-04-22 10:20:15.413521'),(27,'administrator','0005_account_administratorhistoricalconfig_and_more','2025-04-28 10:15:07.596769'),(28,'history','0002_administratorhistoricalconfig_and_more','2025-04-29 13:58:13.449446'),(29,'history','0003_accounttype_administratorhistoricalaccount_client_and_more','2025-04-29 13:58:13.868164'),(30,'administrator','0006_accounttype_fee_alter_staff_options_and_more','2025-04-29 14:10:05.641202'),(31,'history','0004_delete_historicalfee','2025-04-29 14:21:39.178176');
 SET character_set_client = utf8mb4 ;

--
-- Table structure for table `fee`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `fee` (
  `fee_id` int(11) NOT NULL AUTO_INCREMENT,
  `accounttype_id` int(11) NOT NULL,
  `fee_name` varchar(100) NOT NULL,
  `fee_type` varchar(50) DEFAULT NULL,
  `min_amount` decimal(15,2) DEFAULT '0.00',
  `max_amount` decimal(15,2) DEFAULT NULL,
  `fee_amount` decimal(15,2) NOT NULL,
  `is_percentage` tinyint(1) DEFAULT '0',
  `description` text,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(20) DEFAULT 'Active',
  PRIMARY KEY (`fee_id`),
  KEY `accounttype_id` (`accounttype_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`),
  CONSTRAINT `fee_ibfk_1` FOREIGN KEY (`accounttype_id`) REFERENCES `accounttype` (`accounttype_id`),
  CONSTRAINT `fee_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`),
  CONSTRAINT `fee_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `fee`
--

INSERT INTO `fee` VALUES (2,3,'account_opening','Account-Related',NULL,NULL,0.00,0,'Opening Balance',1,1,'2025-04-29 16:43:48','2025-05-22 20:33:24','Active'),(3,3,'minimum_balance','Account-Related',NULL,NULL,0.00,0,'Minimum Balance',1,1,'2025-04-29 18:26:38','2025-05-22 20:37:01','Active'),(4,3,'Statement Print out (Per Page)','Account-Related',NULL,NULL,5000.00,0,'',1,1,'2025-05-15 17:11:40','2025-05-22 20:43:54','Active'),(5,3,'Email Statement certification (per page)','Account-Related',NULL,NULL,3000.00,0,'',1,1,'2025-05-15 17:16:20','2025-05-22 20:45:32','Active'),(6,3,'over_the_counter_withdrawal','Withdrawal',0.00,1000000.00,10000.00,0,'',1,1,'2025-05-21 16:14:54','2025-05-22 20:46:35','Active'),(7,3,'over_the_counter_withdrawal','Withdrawal',1000001.00,5000000.00,20000.00,0,'',1,1,'2025-05-21 16:19:01','2025-05-22 20:48:04','Active'),(8,3,'over_the_counter_withdrawal','Withdrawal',5000001.00,NULL,30000.00,0,'',1,1,'2025-05-21 16:19:49','2025-05-22 20:49:49','Active'),(9,3,'over_the_counter_deposit','Deposit',NULL,NULL,0.00,0,'Cash Deposit Charge',1,1,'2025-05-22 17:21:55','2025-05-22 20:50:53','Active'),(10,3,'Same day deposit - Withdrawal Charge','Withdrawal',NULL,NULL,0.50,1,'',1,1,'2025-05-22 20:53:37','2025-05-22 20:54:57','Active'),(11,3,'account_closure','Account-Related',NULL,NULL,21000.00,0,'',1,1,'2025-05-22 20:54:20','2025-05-22 20:55:27','Active'),(12,3,'Dormant Account Re-activation','Account-Related',NULL,NULL,0.00,0,'',1,1,'2025-05-22 20:56:53','2025-05-22 20:56:53','Active'),(13,3,'atm_card_issuance','ATM & Card',NULL,NULL,15500.00,0,'',1,1,'2025-05-22 21:01:58','2025-05-22 21:01:58','Active'),(14,3,'atm_card_replacement','ATM & Card',NULL,NULL,15500.00,0,'',1,1,'2025-05-22 21:02:38','2025-05-22 21:02:38','Active'),(15,3,'Depositing using a cash deposit machine','ATM & Card',NULL,NULL,0.00,0,'',1,1,'2025-05-22 21:05:10','2025-05-22 21:05:10','Active'),(16,3,'atm_withdrawal','ATM & Card',NULL,NULL,1200.00,0,'',1,1,'2025-05-22 21:08:15','2025-05-22 21:08:15','Active'),(17,3,'atm_mini_statement','ATM & Card',NULL,NULL,500.00,0,'',1,1,'2025-05-22 21:09:45','2025-05-22 21:09:45','Active'),(18,3,'atm_balance_inquiry','ATM & Card',NULL,NULL,300.00,0,'',1,1,'2025-05-22 21:10:48','2025-05-22 21:10:48','Active'),(19,3,'Card Usage at POS machines','ATM & Card',NULL,NULL,0.00,0,'',1,1,'2025-05-22 21:13:34','2025-05-22 21:13:34','Active'),(20,3,'Card Usage for online purchase','ATM & Card',NULL,NULL,0.00,0,'',1,1,'2025-05-22 21:13:51','2025-05-22 21:13:51','Active'),(21,3,'ATM card declined for insufficient funds','ATM & Card',NULL,NULL,500.00,0,'',1,1,'2025-05-22 21:14:16','2025-05-22 21:14:16','Active'),(22,3,'Account to Account','Transfer',NULL,NULL,500.00,0,'',1,1,'2025-05-22 21:34:57','2025-05-22 21:34:57','Active'),(23,3,'RTGS (Real-Time Gross Settlement)','Transfer',NULL,NULL,10000.00,0,'',1,1,'2025-05-22 21:35:31','2025-05-22 21:35:31','Active'),(24,3,'EFT (Electronic Funds Transfer)','Transfer',NULL,NULL,300.00,0,'',1,1,'2025-05-22 21:35:56','2025-05-22 21:35:56','Active'),(25,3,'SWIFT (SHA) – Shared Fees','Transfer',NULL,NULL,30000.00,0,'',1,1,'2025-05-22 21:36:41','2025-05-22 21:36:41','Active'),(26,3,'Account to wallet (Airtel and MTN)','Transfer',0.00,5000.00,550.00,0,'',1,1,'2025-05-22 21:42:44','2025-05-22 21:42:44','Active'),(27,3,'Account to wallet (Airtel and MTN)','Transfer',5001.00,60000.00,1000.00,0,'',1,1,'2025-05-22 21:46:31','2025-05-22 21:46:31','Active'),(28,3,'Account to wallet (Airtel and MTN)','Transfer',60001.00,125000.00,1500.00,0,'',1,1,'2025-05-22 21:47:25','2025-05-22 21:47:25','Active'),(29,3,'Account to wallet (Airtel and MTN)','Transfer',125001.00,250000.00,2100.00,0,'',1,1,'2025-05-22 21:48:22','2025-05-22 21:48:22','Active'),(30,3,'Account to wallet (Airtel and MTN)','Transfer',250001.00,500000.00,3000.00,0,'',1,1,'2025-05-22 21:49:07','2025-05-22 21:49:07','Active'),(31,3,'Account to wallet (Airtel and MTN)','Transfer',500001.00,1000000.00,4000.00,0,'',1,1,'2025-05-22 21:50:25','2025-05-22 21:50:25','Active'),(32,3,'Account to wallet (Airtel and MTN)','Transfer',1000001.00,2000000.00,5000.00,0,'',1,1,'2025-05-22 21:51:21','2025-05-22 21:51:21','Active'),(33,3,'Account to wallet (Airtel and MTN)','Transfer',2000001.00,3000000.00,6000.00,0,'',1,1,'2025-05-22 21:52:16','2025-05-22 21:52:16','Active'),(34,3,'Account to wallet (Airtel and MTN)','Transfer',3000001.00,4000000.00,7500.00,0,'',1,1,'2025-05-22 21:53:04','2025-05-22 21:53:04','Active'),(35,3,'Account to wallet (Airtel and MTN)','Transfer',4000001.00,5000000.00,9000.00,0,'',1,1,'2025-05-22 21:54:21','2025-05-22 21:54:21','Active'),(36,3,'Account Balance with SMS','Account-Related',NULL,NULL,300.00,0,'',1,1,'2025-05-23 16:12:01','2025-05-23 16:12:01','Active'),(37,3,'Mini statement with SMS','Account-Related',NULL,NULL,500.00,0,'',1,1,'2025-05-23 16:13:05','2025-05-23 16:13:05','Active'),(38,3,'UMEME','Other Services',NULL,NULL,1500.00,0,'',1,1,'2025-05-23 16:20:53','2025-05-23 16:20:53','Active'),(39,3,'NWSC','Other Services',NULL,NULL,0.00,0,'',1,1,'2025-05-23 16:21:13','2025-05-23 16:21:13','Active'),(40,3,'Pay TV','Other Services',NULL,NULL,1500.00,0,'',1,1,'2025-05-23 16:21:42','2025-05-23 16:21:42','Active'),(41,3,'URA','Other Services',NULL,NULL,1500.00,0,'',1,1,'2025-05-23 16:22:13','2025-05-23 16:22:13','Active'),(42,3,'Elimu Pesa','Other Services',NULL,NULL,2000.00,0,'',1,1,'2025-05-23 16:22:39','2025-05-23 16:24:35','Active'),(43,3,'NSSF Payment','Other Services',NULL,NULL,0.00,0,'',1,1,'2025-05-23 16:23:08','2025-05-23 16:23:08','Active'),(44,3,'Other Billers','Other Services',NULL,NULL,2000.00,0,'',1,1,'2025-05-23 16:25:20','2025-05-23 16:25:20','Active'),(45,3,'agent_deposit','Deposit',NULL,NULL,0.00,0,'',1,1,'2025-05-23 16:28:22','2025-05-23 16:28:22','Active'),(46,3,'agent_withdrawal','Withdrawal',0.00,60000.00,1000.00,0,'',1,1,'2025-05-23 16:43:40','2025-05-23 16:43:40','Active'),(47,3,'agent_withdrawal','Withdrawal',60001.00,150000.00,2000.00,0,'',1,1,'2025-05-23 16:44:23','2025-05-23 16:44:23','Active'),(48,3,'agent_withdrawal','Withdrawal',150001.00,300000.00,2500.00,0,'',1,1,'2025-05-23 16:45:05','2025-05-23 16:45:05','Active'),(49,3,'agent_withdrawal','Withdrawal',300001.00,600000.00,3500.00,0,'',1,1,'2025-05-23 16:45:49','2025-05-23 16:45:49','Active'),(50,3,'agent_withdrawal','Withdrawal',600001.00,1000000.00,4500.00,0,'',1,1,'2025-05-23 16:46:37','2025-05-23 16:46:37','Active'),(51,3,'agent_withdrawal','Withdrawal',1000001.00,2500000.00,6000.00,0,'',1,1,'2025-05-23 16:47:26','2025-05-23 16:47:26','Active'),(52,3,'agent_withdrawal','Withdrawal',2500001.00,4000000.00,10000.00,0,'',1,1,'2025-05-23 16:48:31','2025-05-23 16:48:31','Active'),(53,3,'Agent Bill Payments','Other Services',0.00,300000.00,2000.00,0,'',1,1,'2025-05-23 16:53:17','2025-05-23 16:53:17','Active'),(54,3,'Agent Bill Payments','Other Services',300001.00,1000000.00,2600.00,0,'',1,1,'2025-05-23 16:53:54','2025-05-23 16:53:54','Active'),(55,3,'Agent Bill Payments','Other Services',1000001.00,2500000.00,3000.00,0,'',1,1,'2025-05-23 16:54:31','2025-05-23 16:54:31','Active'),(56,3,'Agent Bill Payments','Other Services',2500001.00,4000000.00,3500.00,0,'',1,1,'2025-05-23 17:02:49','2025-05-23 17:02:49','Active'),(57,3,'Agent Bill Payments','Other Services',4000001.00,10000000.00,8000.00,0,'',1,1,'2025-05-23 17:03:36','2025-05-23 17:03:36','Active'),(58,3,'Agent Bill Payments','Other Services',10000001.00,NULL,10000.00,0,'',1,1,'2025-05-23 17:04:15','2025-05-23 17:04:15','Active'),(59,3,'Utility Bills (Over The Counter)','Other Services',NULL,NULL,2000.00,0,'',1,1,'2025-05-24 08:53:05','2025-05-24 08:53:05','Active'),(60,3,'Audit Confirmation','Other Services',NULL,NULL,30000.00,0,'',1,1,'2025-05-24 08:53:53','2025-05-24 08:53:53','Active'),(61,3,'Certificate of Balance','Other Services',NULL,NULL,30000.00,0,'',1,1,'2025-05-24 08:54:27','2025-05-24 08:54:27','Active'),(62,3,'Letter of Introduction','Other Services',NULL,NULL,30000.00,0,'',1,1,'2025-05-24 08:54:53','2025-05-24 08:54:53','Active'),(63,3,'Verification of Letters of Administration','Other Services',NULL,NULL,100000.00,0,'',1,1,'2025-05-24 08:55:24','2025-05-24 08:55:24','Active'),(64,3,'Camera viewing','Other Services',NULL,NULL,50000.00,0,'',1,1,'2025-05-24 08:55:53','2025-05-24 08:55:53','Active');

--
-- Table structure for table `guests`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `guests` (
  `GuestID` int(11) NOT NULL AUTO_INCREMENT,
  `FirstName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `LastName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `PhoneNumber` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `OtherName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Gender` enum('Male','Female','Other') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `DateOfBirth` date DEFAULT NULL,
  `Nationality` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `IDType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `IDNumber` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`GuestID`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `guests`
--

INSERT INTO `guests` VALUES (1,'Charles','Sebagala','256777889663','sebagalacharles@gmail.com','Wakiso',NULL,'Male','2025-01-07','Uganda',NULL,NULL),(2,'ooi','uui','+256701300733',NULL,'uiiu',NULL,'Male','2025-04-11','Azerbaijan','National ID','898');

--
-- Table structure for table `gym_user`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `gym_user` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL,
  `guest_id` int(11) DEFAULT NULL,
  `name` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `contact` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `email` varchar(254) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payment_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'Per Visit',
  `checkin_time` timestamp NULL DEFAULT NULL,
  `checkout_time` timestamp NULL DEFAULT NULL,
  `subscription_start` date DEFAULT NULL,
  `subscription_end` date DEFAULT NULL,
  `payment_status` tinyint(1) DEFAULT '0',
  `amount_paid` decimal(10,2) DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `gym_user`
--

INSERT INTO `gym_user` VALUES (2,'Guest',1,NULL,NULL,NULL,'Per Visit',NULL,NULL,NULL,NULL,NULL,NULL,'2025-04-10 12:51:41'),(3,'External',NULL,'Sekito Ben','0777889663',NULL,'Per Visit',NULL,NULL,NULL,NULL,NULL,NULL,'2025-04-10 12:52:28'),(4,'Guest',1,NULL,NULL,NULL,'Per Visit',NULL,NULL,NULL,NULL,NULL,NULL,'2025-04-10 13:53:23'),(5,'Guest',1,NULL,NULL,NULL,'Subscription',NULL,NULL,'2025-04-11','2025-04-19',NULL,NULL,'2025-04-11 02:35:13');

--
-- Table structure for table `history_historicalfee`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `history_historicalfee` (
  `fee_id` int(11) NOT NULL,
  `fee_name` varchar(100) NOT NULL,
  `fee_type` varchar(50) DEFAULT NULL,
  `currency` varchar(10) NOT NULL,
  `min_amount` decimal(15,2) DEFAULT NULL,
  `max_amount` decimal(15,2) DEFAULT NULL,
  `fee_amount` decimal(15,2) NOT NULL,
  `is_percentage` int(11) DEFAULT NULL,
  `description` longtext,
  `created_at` datetime(6) DEFAULT NULL,
  `updated_at` datetime(6) DEFAULT NULL,
  `status` varchar(20) DEFAULT NULL,
  `history_id` int(11) NOT NULL AUTO_INCREMENT,
  `history_date` datetime(6) NOT NULL,
  `history_change_reason` varchar(100) DEFAULT NULL,
  `history_type` varchar(1) NOT NULL,
  `accounttype_id` int(11) DEFAULT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `history_user_id` int(11) DEFAULT NULL,
  `updated_by` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`history_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `history_historicalfee`
--


--
-- Table structure for table `Hotelexpenses`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `Hotelexpenses` (
  `ExpenseID` int(11) NOT NULL AUTO_INCREMENT,
  `VendorID` int(11) DEFAULT NULL,
  `ExpenseCategory` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `Description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `Amount` decimal(10,2) NOT NULL,
  `ExpenseDate` date NOT NULL,
  `PaymentMethod` enum('Cash','MTN Mobile Money','Airtel Mobile Money','MPesa','Bank Transfer','Check','Paypal','Other') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `PaymentReference` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `ReceiptNumber` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `CreatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ExpenseID`),
  KEY `VendorID` (`VendorID`),
  CONSTRAINT `hotelexpenses_ibfk_1` FOREIGN KEY (`VendorID`) REFERENCES `vendors` (`VendorID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `Hotelexpenses`
--


--
-- Table structure for table `Hotels`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `Hotels` (
  `HotelID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `Address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `City` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `State` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `PhoneNumber` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Rating` decimal(2,1) DEFAULT NULL,
  PRIMARY KEY (`HotelID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `Hotels`
--

INSERT INTO `Hotels` VALUES (1,'Equator Suites Kampala','Bunga','Kampala','Central','Uganda','+256701300733','reserve@equatorsuites.com',NULL);

--
-- Table structure for table `nextofkeen`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `nextofkeen` (
  `nextofkeen_id` int(11) NOT NULL AUTO_INCREMENT,
  `client_id` varchar(50) NOT NULL,
  `firstname` varchar(50) NOT NULL,
  `lastname` varchar(50) NOT NULL,
  `othername` varchar(50) DEFAULT NULL,
  `gender` varchar(6) DEFAULT NULL,
  `date_of_birth` date NOT NULL,
  `relationship` varchar(100) NOT NULL,
  `nationality` varchar(100) NOT NULL,
  `country_of_residence` varchar(100) NOT NULL,
  `address` text NOT NULL,
  `id_type` varchar(100) NOT NULL,
  `id_number` varchar(100) NOT NULL,
  `id_front` varchar(255) DEFAULT NULL,
  `id_back` varchar(255) DEFAULT NULL,
  `telephone1` varchar(20) NOT NULL,
  `telephone2` varchar(20) DEFAULT NULL,
  `email` varchar(254) DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by_id` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `flagged` varchar(3) DEFAULT NULL,
  `status` varchar(20) DEFAULT 'Active',
  PRIMARY KEY (`nextofkeen_id`),
  UNIQUE KEY `id_number` (`id_number`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `nextofkeen`
--

INSERT INTO `nextofkeen` VALUES (1,'2','fisrtname','lastname',NULL,'Male','2025-04-16','Friend','Barbados','Uganda','Wakiso','Passport','33434343',NULL,NULL,'0759927608',NULL,NULL,NULL,'2025-04-16 06:30:20',NULL,NULL,NULL,NULL,'Active'),(2,'2','kivumbi','John',NULL,'Male','2025-04-16','Brother','Uganda','Uganda','wakiso','Nationa ID','3343',NULL,NULL,'0777889663',NULL,NULL,NULL,'2025-04-16 07:46:17',1,'2025-04-16 07:46:17',1,NULL,'Active'),(3,'3','Musoke','Ben',NULL,'Male','2025-04-27','Friend','Uganda','Uganda','Wakiso','National ID','0987654321',NULL,NULL,'0759927608',NULL,NULL,NULL,'2025-04-27 10:05:48',1,NULL,NULL,NULL,'Pending'),(4,'4','Musoke','Jane',NULL,'Female','2025-04-27','Mother','Andorra','Uganda','Wakiso','National ID','098765431',NULL,NULL,'0759927608',NULL,NULL,NULL,'2025-04-27 10:20:08',1,NULL,NULL,NULL,'Active'),(5,'5','Loms','Loms',NULL,NULL,'2025-05-15','Friend','Uganda','Uganda','Kampala','National ID','1',NULL,NULL,'0392179110',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Active');

--
-- Table structure for table `nextofkeenflagged`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `nextofkeenflagged` (
  `nextofkeenflagged_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `nextofkeen_id` varchar(50) NOT NULL,
  `date_flagged` date NOT NULL,
  `flag_name` varchar(100) NOT NULL,
  `details` text NOT NULL,
  `created_by_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by_id` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `status` varchar(20) NOT NULL,
  PRIMARY KEY (`nextofkeenflagged_id`),
  UNIQUE KEY `nextofkeenflagged_id` (`nextofkeenflagged_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `nextofkeenflagged`
--


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

 SET character_set_client = utf8mb4 ;
CREATE TABLE `payments` (
  `PaymentID` int(11) NOT NULL AUTO_INCREMENT,
  `ReservationID` int(11) NOT NULL,
  `PaymentDate` date NOT NULL,
  `Amount` decimal(10,2) NOT NULL,
  `PaymentMethod` enum('Cash','MTN Mobile Money','Airtel Mobile Money','MPesa','Bank Transfer','Check','Paypal','Other') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `PaymentReferenceNumber` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`PaymentID`),
  KEY `ReservationID` (`ReservationID`),
  CONSTRAINT `payments_ibfk_1` FOREIGN KEY (`ReservationID`) REFERENCES `reservations` (`ReservationID`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `payments`
--

INSERT INTO `payments` VALUES (1,1,'2025-04-11',8000.00,'MTN Mobile Money','889989');

--
-- Table structure for table `Referrers`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `Referrers` (
  `ReferrerID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `ContactInfo` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `CommissionRate` decimal(5,2) NOT NULL DEFAULT '0.00',
  `CreatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ReferrerID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `Referrers`
--

INSERT INTO `Referrers` VALUES (1,'Sebagala Charles','256777889663',1.00,'2025-01-14 11:26:37');

--
-- Table structure for table `ReservationGuests`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `ReservationGuests` (
  `ReservationGuestID` int(11) NOT NULL AUTO_INCREMENT,
  `ReservationID` int(11) NOT NULL,
  `GuestID` int(11) NOT NULL,
  PRIMARY KEY (`ReservationGuestID`),
  KEY `ReservationID` (`ReservationID`),
  KEY `GuestID` (`GuestID`),
  CONSTRAINT `reservationguests_ibfk_1` FOREIGN KEY (`ReservationID`) REFERENCES `reservations` (`ReservationID`) ON DELETE CASCADE,
  CONSTRAINT `reservationguests_ibfk_2` FOREIGN KEY (`GuestID`) REFERENCES `guests` (`GuestID`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `ReservationGuests`
--

INSERT INTO `ReservationGuests` VALUES (1,1,2);

--
-- Table structure for table `Reservations`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `Reservations` (
  `ReservationID` int(11) NOT NULL AUTO_INCREMENT,
  `GuestID` int(11) NOT NULL,
  `RoomID` int(11) NOT NULL,
  `CheckInDate` date NOT NULL,
  `CheckOutDate` date NOT NULL,
  `TotalAmount` decimal(10,2) NOT NULL,
  `NumberOfGuests` int(11) NOT NULL,
  `ReservationStatus` enum('Pending','Confirmed','Cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Pending',
  `ReferrerID` int(11) DEFAULT NULL,
  PRIMARY KEY (`ReservationID`),
  KEY `GuestID` (`GuestID`),
  KEY `RoomID` (`RoomID`),
  KEY `FK_Reservations_ReferrerID` (`ReferrerID`),
  CONSTRAINT `FK_Reservations_ReferrerID` FOREIGN KEY (`ReferrerID`) REFERENCES `referrers` (`ReferrerID`),
  CONSTRAINT `reservations_ibfk_1` FOREIGN KEY (`GuestID`) REFERENCES `guests` (`GuestID`) ON DELETE CASCADE,
  CONSTRAINT `reservations_ibfk_2` FOREIGN KEY (`RoomID`) REFERENCES `rooms` (`RoomID`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `Reservations`
--

INSERT INTO `Reservations` VALUES (1,1,1,'2025-04-11','2025-04-14',80000.00,2,'Confirmed',NULL);

--
-- Table structure for table `Rooms`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `Rooms` (
  `RoomID` int(11) NOT NULL AUTO_INCREMENT,
  `HotelID` int(11) NOT NULL,
  `RoomNumber` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `RoomType` enum('Single','Double','Suite','Family','Studio','Twin','King','Queen') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `PricePerNight` decimal(10,2) NOT NULL,
  `AvailabilityStatus` enum('Available','Occupied','Maintenance') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Available',
  PRIMARY KEY (`RoomID`),
  KEY `HotelID` (`HotelID`),
  CONSTRAINT `rooms_ibfk_1` FOREIGN KEY (`HotelID`) REFERENCES `hotels` (`HotelID`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `Rooms`
--

INSERT INTO `Rooms` VALUES (1,1,'Family Apartment','Family',125.00,'Available'),(2,1,'One Bed Room Apartment','Single',99.00,'Available'),(3,1,'Two bedroom apartment','Double',130.00,'Available'),(4,1,'Studio Room','Studio',88.00,'Available'),(5,1,'Twin Room Apartment','Twin',96.00,'Available'),(6,1,'King size one bedroom apartment','King',100.00,'Available');

--
-- Table structure for table `staff`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `staff` (
  `staff_id` int(11) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
  `lastname` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
  `othername` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `gender` varchar(6) COLLATE utf8mb4_general_ci NOT NULL,
  `dateofbirth` date NOT NULL,
  `address` text COLLATE utf8mb4_general_ci NOT NULL,
  `telephone1` varchar(20) COLLATE utf8mb4_general_ci NOT NULL,
  `telephone2` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `jobdescription` text COLLATE utf8mb4_general_ci,
  `category_id` int(11) NOT NULL,
  `salary` decimal(10,2) NOT NULL,
  `hiredate` date NOT NULL,
  `enddate` date DEFAULT NULL,
  `status` varchar(8) COLLATE utf8mb4_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `staff_number` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`staff_id`),
  UNIQUE KEY `Email` (`email`),
  UNIQUE KEY `staff_number` (`staff_number`),
  KEY `CategoryID` (`category_id`),
  CONSTRAINT `staff_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `staffcategories` (`category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `staff`
--

INSERT INTO `staff` VALUES (2,'Sekito','Ben',NULL,'Male','2025-04-08','Wandegeya','0777889663','0759927608','ben@ymail.com',NULL,13,700000.00,'2025-04-21',NULL,'Active','2025-04-21 19:18:30',1,'2025-04-28 16:56:02',1,'STF-2'),(3,'Kizito','John',NULL,'Male','2025-04-28','Mukono','0777889663',NULL,NULL,NULL,13,900000.00,'2025-04-28',NULL,'Active','2025-04-28 16:44:56',1,'2025-04-28 16:56:06',1,'STF-3');

--
-- Table structure for table `staffbranchassignment`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `staffbranchassignment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Active',
  PRIMARY KEY (`id`),
  KEY `staff_id` (`staff_id`),
  KEY `staffbranchassignment_ibfk_2` (`branch_id`),
  CONSTRAINT `staffbranchassignment_ibfk_1` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`staff_id`),
  CONSTRAINT `staffbranchassignment_ibfk_2` FOREIGN KEY (`branch_id`) REFERENCES `branch` (`branch_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `staffbranchassignment`
--

INSERT INTO `staffbranchassignment` VALUES (1,2,1,'2025-04-21',NULL,1,'2025-04-21 13:28:36',1,'2025-04-28 16:47:40','Active'),(2,2,2,'2025-04-01','2025-04-21',1,'2025-04-21 13:28:51',1,'2025-04-28 16:47:17','Inactive'),(3,2,2,'2025-04-21',NULL,1,'2025-04-21 19:21:56',2,'2025-04-21 21:00:07','Active'),(4,2,1,'2025-04-21',NULL,1,'2025-04-21 19:31:07',2,'2025-04-21 20:59:46','Active'),(5,3,1,'2025-04-28',NULL,1,'2025-04-28 16:45:38',1,'2025-04-28 16:45:38','Active');

--
-- Table structure for table `staffcategories`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `staffcategories` (
  `category_id` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
  `description` text COLLATE utf8mb4_general_ci,
  `created_by` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'Active',
  PRIMARY KEY (`category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `staffcategories`
--

INSERT INTO `staffcategories` VALUES (13,'Technology',NULL,2,'2025-04-21 20:58:13','2025-04-21 20:59:42',2,'Active');

--
-- Table structure for table `Staffpayments`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `Staffpayments` (
  `PaymentID` int(11) NOT NULL AUTO_INCREMENT,
  `StaffID` int(11) NOT NULL,
  `PaymentDate` date NOT NULL,
  `AmountPaid` decimal(10,2) NOT NULL,
  `PaymentMethod` enum('Cash','MTN Mobile Money','Airtel Mobile Money','MPesa','Bank Transfer','Check','Paypal','Other') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `PaymentReference` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `CreatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`PaymentID`),
  KEY `StaffID` (`StaffID`),
  CONSTRAINT `staffpayments_ibfk_1` FOREIGN KEY (`StaffID`) REFERENCES `staff` (`staff_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `Staffpayments`
--


--
-- Table structure for table `transfer`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `transfer` (
  `transfer_id` int(11) NOT NULL AUTO_INCREMENT,
  `reference_number` varchar(100) DEFAULT NULL,
  `transfer_category` varchar(50) DEFAULT NULL,
  `source_account_id` int(11) NOT NULL,
  `destination_account_id` int(11) DEFAULT NULL,
  `amount` decimal(15,2) NOT NULL,
  `transfer_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `description` varchar(255) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(20) DEFAULT NULL,
  `processed_at` timestamp NULL DEFAULT NULL,
  `transfer_method` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`transfer_id`),
  UNIQUE KEY `reference_number` (`reference_number`),
  KEY `fk_source_account` (`source_account_id`),
  KEY `fk_destination_account` (`destination_account_id`),
  KEY `fk_created_by` (`created_by`),
  KEY `fk_updated_by` (`updated_by`),
  CONSTRAINT `fk_created_by` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_destination_account` FOREIGN KEY (`destination_account_id`) REFERENCES `account` (`account_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_source_account` FOREIGN KEY (`source_account_id`) REFERENCES `account` (`account_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `transfer`
--

INSERT INTO `transfer` VALUES (8,NULL,'Account-to-Account',3,1,1000.00,'2025-05-15 18:59:00','Withdraw Fee deposit from account 329998937498 (over_the_counter)',1,NULL,'2025-05-15 18:59:00',NULL,'Completed',NULL,NULL),(9,NULL,'Account-to-Account',3,1,1000.00,'2025-05-15 19:00:29','Withdraw Fee deposit from account 329998937498 (over_the_counter)',1,NULL,'2025-05-15 19:00:29',NULL,'Completed',NULL,NULL),(10,NULL,'Account-to-Account',3,1,1900.00,'2025-05-16 08:03:48','Withdraw Fee deposit from account 329998937498 (over_the_counter)',1,NULL,'2025-05-16 08:03:48',NULL,'Completed',NULL,NULL),(12,NULL,'Account to Account',2,3,77.00,'2025-05-21 14:29:40','Testing',1,1,'2025-05-21 14:29:40','2025-05-21 14:29:40','success','2025-05-21 14:29:40','Over the Counter'),(13,NULL,'Account to Account',2,1,1000.00,'2025-05-21 14:29:40','Transfer Fee: From account 90565446 (Account to Account)',1,NULL,'2025-05-21 14:29:40',NULL,'Completed',NULL,NULL),(16,NULL,'Account to Account',2,3,100.00,'2025-05-21 14:46:05','Payment',1,1,'2025-05-21 14:46:05','2025-05-21 14:46:05','success','2025-05-21 14:46:05','Over the Counter'),(17,NULL,'Account to Account',2,1,1000.00,'2025-05-21 14:46:05','Transfer: From account 90565446 (Account to Account)',1,NULL,'2025-05-21 14:46:05',NULL,'Completed',NULL,NULL),(26,NULL,'Account to Cash',2,NULL,100.00,'2025-05-22 06:25:18','School Fees',1,1,'2025-05-22 06:25:18','2025-05-22 06:25:18','success','2025-05-22 06:25:18','Over the Counter'),(27,NULL,'Account to Account',2,1,2000.00,'2025-05-22 06:25:18','Transfer: From account 90565446 (Account to Cash)',1,NULL,'2025-05-22 06:25:18',NULL,'Completed',NULL,NULL),(28,NULL,'Account to Account',2,1,1900.00,'2025-05-22 14:25:59','Withdrawal: From account 90565446 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 14:25:59',NULL,'Completed',NULL,NULL),(29,NULL,'Account to Account',3,1,1900.00,'2025-05-22 14:33:32','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 14:33:32',NULL,'Completed',NULL,NULL),(30,NULL,'Account to Account',3,1,1900.00,'2025-05-22 14:40:18','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 14:40:18',NULL,'Completed',NULL,NULL),(31,NULL,'Account to Account',3,1,1900.00,'2025-05-22 14:46:14','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 14:46:14',NULL,'Completed',NULL,NULL),(32,NULL,'Account to Account',3,1,1900.00,'2025-05-22 14:47:16','Withdrawal: From account 329998937498 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 14:47:16',NULL,'Completed',NULL,NULL),(33,NULL,'Account to Account',2,1,1900.00,'2025-05-22 14:49:44','Withdrawal: From account 90565446 (over_the_counter_withdrawal)',1,NULL,'2025-05-22 14:49:44',NULL,'Completed',NULL,NULL);

--
-- Table structure for table `transferdetails`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `transferdetails` (
  `transfer_details_id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_id` int(11) NOT NULL,
  `country_money_is_sent_from` varchar(100) DEFAULT NULL,
  `sender_nationality` varchar(100) DEFAULT NULL,
  `sender_fullnames` varchar(100) DEFAULT NULL,
  `sender_phone` varchar(20) NOT NULL,
  `sender_email` varchar(100) DEFAULT NULL,
  `sender_date_of_birth` date DEFAULT NULL,
  `sender_residence` varchar(255) DEFAULT NULL,
  `sender_id_attachment` varchar(255) DEFAULT NULL,
  `country_money_is_received_from` varchar(100) DEFAULT NULL,
  `receiver_nationality` varchar(100) DEFAULT NULL,
  `receiver_fullnames` varchar(100) NOT NULL,
  `receiver_phone` varchar(20) NOT NULL,
  `receiver_email` varchar(100) DEFAULT NULL,
  `receiver_date_of_birth` date DEFAULT NULL,
  `receiver_residence` varchar(255) DEFAULT NULL,
  `receiver_id_attachment` varchar(255) DEFAULT NULL,
  `currency_sent` varchar(10) DEFAULT NULL,
  `amount_sent` decimal(15,2) DEFAULT NULL,
  `currency_to_receive` varchar(10) DEFAULT NULL,
  `amount_to_receive` decimal(15,2) DEFAULT NULL,
  `transaction_fee` decimal(15,2) DEFAULT '0.00',
  `security_code` varchar(50) NOT NULL,
  `security_code_expiry` datetime DEFAULT ((now() + interval 7 day)),
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`transfer_details_id`),
  KEY `fk_transfer_details` (`transfer_id`),
  CONSTRAINT `fk_transfer_details` FOREIGN KEY (`transfer_id`) REFERENCES `transfer` (`transfer_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `transferdetails`
--

INSERT INTO `transferdetails` VALUES (2,26,'Uganda','Ugandan','Sebagala Charles','256777889663','sebagalacharles@gmail.com','2025-05-22','Wakiso','','Uganda','Ugandan','Sekitto Ben','256759927608',NULL,'2025-05-22','Kampala','','UGX',10000.00,'UGX',9000.00,1000.00,'8u79','2025-06-22 08:15:58','2025-05-22 05:16:01',NULL);

--
-- Table structure for table `Vendors`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `Vendors` (
  `VendorID` int(11) NOT NULL AUTO_INCREMENT,
  `VendorName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `ContactPerson` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `ContactPhone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `Address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `CreatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`VendorID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `Vendors`
--

INSERT INTO `Vendors` VALUES (1,'ABC Funitures','Sebagala Charles','+256777889663','sebagalacharles@gmail.com','Wakiso','2025-01-14 10:47:32');

--
-- Table structure for table `withdrawal`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `withdrawal` (
  `withdrawal_id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_id` int(11) DEFAULT NULL,
  `account_id` int(11) NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `withdrawal_method` varchar(50) DEFAULT NULL,
  `status` varchar(20) DEFAULT 'pending',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `processed_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`withdrawal_id`),
  KEY `fk_withdrawal_account` (`account_id`),
  KEY `fk_withdrawal_transfer` (`transfer_id`),
  KEY `fk_withdrawal_created_by` (`created_by`),
  KEY `fk_withdrawal_updated_by` (`updated_by`),
  CONSTRAINT `fk_withdrawal_account` FOREIGN KEY (`account_id`) REFERENCES `account` (`account_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_withdrawal_created_by` FOREIGN KEY (`created_by`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_withdrawal_transfer` FOREIGN KEY (`transfer_id`) REFERENCES `transfer` (`transfer_id`) ON DELETE SET NULL,
  CONSTRAINT `fk_withdrawal_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `auth_user` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `withdrawal`
--

INSERT INTO `withdrawal` VALUES (2,NULL,2,900.00,'Over the Counter','pending',1,1,'2025-05-15 08:49:36','2025-05-15 18:58:29',NULL),(3,NULL,2,200.00,'Over the Counter','success',1,1,'2025-05-15 09:21:47','2025-05-15 18:58:29','2025-05-15 10:35:50'),(4,NULL,2,100.00,'Over the Counter','success',1,1,'2025-05-15 13:55:24','2025-05-15 18:58:29','2025-05-15 13:55:24'),(17,NULL,2,100.00,'Over the Counter','success',1,1,'2025-05-15 15:31:36','2025-05-15 18:58:29','2025-05-15 15:31:36'),(18,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-15 16:19:32','2025-05-15 16:19:32','2025-05-15 16:19:32'),(19,NULL,3,200.00,'Over the Counter','success',1,1,'2025-05-15 18:14:31','2025-05-15 18:14:31','2025-05-15 18:14:31'),(20,NULL,3,398.00,'Over the Counter','pending',1,1,'2025-05-15 18:17:12','2025-05-15 18:17:12',NULL),(21,NULL,3,398.00,'Over the Counter','pending',1,1,'2025-05-15 18:18:22','2025-05-15 18:18:22',NULL),(30,NULL,3,398.00,'Over the Counter','success',1,1,'2025-05-15 18:39:45','2025-05-15 18:39:45','2025-05-15 18:39:45'),(35,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-15 18:59:00','2025-05-15 18:59:00','2025-05-15 18:59:00'),(36,NULL,3,900.00,'Over the Counter','success',1,1,'2025-05-15 19:00:29','2025-05-15 19:00:29','2025-05-15 19:00:29'),(37,NULL,3,150000.00,'Over the Counter','success',1,1,'2025-05-16 07:01:01','2025-05-16 08:03:48','2025-05-16 08:03:48'),(38,NULL,2,1000.00,'Over the Counter','success',1,1,'2025-05-16 07:43:10','2025-05-16 07:52:02','2025-05-16 07:52:02'),(39,NULL,2,100.00,'Over the Counter','success',1,1,'2025-05-22 14:25:59','2025-05-22 14:25:59','2025-05-22 14:25:59'),(40,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-22 14:33:32','2025-05-22 14:33:32','2025-05-22 14:33:32'),(41,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-22 14:40:18','2025-05-22 14:40:18','2025-05-22 14:40:18'),(42,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-22 14:46:14','2025-05-22 14:46:14','2025-05-22 14:46:14'),(43,NULL,3,100.00,'Over the Counter','success',1,1,'2025-05-22 14:47:16','2025-05-22 14:47:16','2025-05-22 14:47:16'),(44,NULL,2,100.00,'Over the Counter','success',1,1,'2025-05-22 14:49:44','2025-05-22 14:49:44','2025-05-22 14:49:44');


