--
-- Host: localhost    Database: egiscom_lardi_uat
-- ------------------------------------------------------


--
-- Table structure for table `account_charts`
--

CREATE TABLE `account_charts` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `glcode` varchar(225) DEFAULT NULL,
  `type` varchar(225) NOT NULL,
  `account_usage` varchar(225) NOT NULL,
  `gl_group` varchar(225) DEFAULT NULL,
  `balance` float NOT NULL DEFAULT '0',
  `unreconciled_balance` float NOT NULL DEFAULT '0',
  `manual_entries` varchar(3) NOT NULL,
  `description` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `account_charts`
--

INSERT INTO `account_charts` VALUES (1,'Savings Balances','0001','LIABILITY','GL Group','',0,0,'No','Savings Balances','Active'),(2,'Loan Balances','0002','ASSET','GL Group','',0,0,'No','Loan Balances','Active'),(3,'Write Off Savings Balances','0003','EXPENSE','GL Group','',0,0,'No','Write Off Savings Balances','Active'),(4,'Income From Fees','0004','INCOME','GL Group','',0,0,'No','Income From Fees','Active'),(5,'Income From Penalties','0005','INCOME','GL Group','',0,0,'No','Income From Penalties','Active'),(6,'Income From Interest Overdraft','0006','INCOME','GL Group','',0,0,'No','Income From Interest Overdraft','Active'),(7,'Interest Expense On Savings','0007','EXPENSE','GL Group','',0,0,'No','Interest Expense On Savings','Active'),(8,'Overdraft Balances','0008','ASSET','GL Group','',0,0,'No','Overdraft Balances','Active'),(9,'Miscellaneous Income From Savings','0009','INCOME','GL Group','',0,0,'No','Miscellaneous Income From Savings','Active'),(10,'Escheat Savings Balances','00010','LIABILITY','GL Group','',0,0,'No','Escheat Savings Balances','Active'),(11,'Write Off Account Regular Savings','00011','EXPENSE','GL Account','3',0,0,'No','Write Off Account Regular Savings','Active'),(12,'Income From Fees Regular Savings','00012','INCOME','GL Account','4',0,0,'No','Income From Fees Regular Savings','Active'),(13,'Income From Penalties Regular Savings','00013','INCOME','GL Account','5',0,0,'No','Income From Penalties Regular Savings','Active'),(14,'Regular Savings','00014','LIABILITY','GL Account','1',0,0,'No','Regular Savings','Active'),(15,'Income From Interest Overdraft (Regular Savings)','00015','INCOME','GL Account','6',0,0,'No','Income From Interest Overdraft (Regular Savings)','Active'),(16,'Interest Expense On Regular Savings','00016','EXPENSE','GL Account','7',0,0,'No','Interest Expense On Regular Savings','Active'),(17,'Overdraft Balance (Regular Savings)','00017','ASSET','GL Account','8',0,0,'No','Overdraft Balance (Regular Savings)','Active'),(18,'Miscellaneous Income From Savings (Regular Savings)','00018','INCOME','GL Account','9',0,0,'No','Miscellaneous Income From Savings (Regular Savings)','Active'),(19,'Escheat Regular Savings','00019','LIABILITY','GL Account','10',0,0,'No','Escheat Regular Savings','Active'),(20,'Write Off Account Voluntary Savings','00020','EXPENSE','GL Account','3',0,0,'No','Write Off Account Voluntary Savings','Active'),(21,'Income From Fees Voluntary Savings','00021','INCOME','GL Account','4',0,0,'No','Income From Fees Voluntary Savings','Active'),(22,'Income From Penalties Voluntary Savings','00022','INCOME','GL Account','5',0,0,'No','Income From Penalties Voluntary Savings','Active'),(23,'Income From Interest Overdraft (Voluntary Savings)','00023','INCOME','GL Account','6',0,0,'No','Income From Interest Overdraft (Voluntary Savings)','Active'),(24,'Interest Expense On Voluntary Savings','00024','EXPENSE','GL Account','7',0,0,'No','Interest Expense On Voluntary Savings','Active'),(25,'Overdraft Balance (Voluntary Savings)','00025','ASSET','GL Account','8',0,0,'No','Overdraft Balance (Voluntary Savings)','Active'),(26,'Miscellaneous Income From Savings (Voluntary Savings)','00026','INCOME','GL Account','9',0,0,'No','Miscellaneous Income From Savings (Voluntary Savings)','Active'),(27,'Voluntary Savings','00027','LIABILITY','GL Account','1',0,0,'No','Voluntary Savings','Active'),(28,'Escheat Voluntary Savings','00028','LIABILITY','GL Account','10',0,0,'No','Escheat Voluntary Savings','Active'),(29,'Write Off Account My Pikin Savings','00029','EXPENSE','GL Account','3',0,0,'No','Write Off Account My Pikin Savings','Active'),(30,'Income From Fees My Pikin Savings','00030','INCOME','GL Account','4',0,0,'No','Income From Fees My Pikin Savings','Active'),(31,'Income From Penalty My Pikin Savings','00031','INCOME','GL Account','5',0,0,'No','Income From Penalty My Pikin Savings','Active'),(32,'My Pikin Savings','00032','LIABILITY','GL Account','1',0,0,'No','My Pikin Savings','Active'),(33,'Income From Interest Overdraft (My Pikin Savings)','00033','INCOME','GL Account','6',0,0,'No','Income From Interest Overdraft (My Pikin Savings)','Active'),(34,'Interest Expense On My Pikin Savings','00034','EXPENSE','GL Account','7',0,0,'No','Interest Expense On My Pikin Savings','Active'),(35,'Overdraft Balance (My Pikin Savings)','00035','ASSET','GL Account','8',0,0,'No','Overdraft Balance (My Pikin Savings)','Active'),(36,'Miscellaneous Income From Savings (My Pikin Savings)','00036','INCOME','GL Account','9',0,0,'No','Miscellaneous Income From Savings (My Pikin Savings)','Active'),(37,'Escheat My Pikin Savings','00037','LIABILITY','GL Account','10',0,0,'No','Escheat My Pikin Savings','Active'),(38,'Cash balances','00038','ASSET','GL Group','',0,0,'No','Cash balances','Active'),(39,'Cash in hand','00039','ASSET','GL Account','38',0,0,'Yes','Cash in hand','Active'),(40,'Passbook Sales','00040','INCOME','GL Account','4',0,0,'No','Passbook Sales','Active'),(41,'Admin Fee','00041','INCOME','GL Account','4',0,0,'No','Admin Fee','Active'),(42,'Maintenance Fee','00042','INCOME','GL Account','4',0,0,'No','Maintenance Fee','Active'),(43,'SMS','00043','INCOME','GL Account','4',0,0,'No','SMS','Active'),(44,'Outbound Transfer Fee','00044','INCOME','GL Account','4',0,0,'No','Outbound Transfer Fee','Active'),(45,'BVN validation Fee','00045','INCOME','GL Account','4',0,0,'No','BVN validation Fee','Active'),(46,'Insurance income','00046','INCOME','GL Account','4',0,0,'No','Insurance income','Active'),(47,'Insurance liability','00047','LIABILITY','GL Account','48',0,0,'No','Insurance liability','Active'),(48,'Other Liabilities','00048','LIABILITY','GL Group','',0,0,'No','Other Liabilities','Active'),(49,'Branch Council Fund','00049','LIABILITY','GL Account','48',0,0,'No','Branch Council Fund','Active'),(50,'Regular Loan Weekly','00050','ASSET','GL Account','2',0,0,'No','Regular Loan Weekly','Active'),(51,'Income From Fees (Regular Loan Weekly)','00051','INCOME','GL Account','4',0,0,'No','Income From Fees (Regular Loan Weekly)','Active'),(52,'Interest income from loan','00052','INCOME','GL Group','',0,0,'No','Interest income from loan','Active'),(53,'Loan Write Off Principal','00053','EXPENSE','GL Group','',0,0,'No','Loan Write Off Principal','Active'),(54,'Loan Write Off Interest','00054','EXPENSE','GL Group','',0,0,'No','Loan Write Off Interest','Active'),(55,'Income From Penalties (Regular Loan Weekly)','00055','INCOME','GL Account','5',0,0,'No','Income From Penalties (Regular Loan Weekly)','Active'),(56,'Interest Income From (Regular Loan Weekly)','00056','INCOME','GL Account','52',0,0,'No','Interest Income From (Regular Loan Weekly)','Active'),(57,'Loan Write Off Principal (Regular Loan Weekly)','00057','EXPENSE','GL Account','53',0,0,'No','Loan Write Off Principal (Regular Loan Weekly)','Active'),(58,'Loan Write Off Interest (Regular Loan Weekly)','00058','EXPENSE','GL Account','54',0,0,'No','Loan Write Off Interest (Regular Loan Weekly)','Active'),(59,'Interest Income From Regular Loan Weekly Recovery','00059','INCOME','GL Account','52',0,0,'No','Interest Income From Regular Loan Weekly Recovery','Active'),(60,'Staff Loan Individual','00060','ASSET','GL Account','2',0,0,'No','Staff Loan Individual','Active'),(61,'Income From Fees (Staff Loan Individual)','00061','INCOME','GL Account','4',0,0,'No','Income From Fees (Staff Loan Individual)','Active'),(62,'Income From Penalties (Staff Loan Individual)','00062','INCOME','GL Account','5',0,0,'No','Income From Penalties (Staff Loan Individual)','Active'),(63,'Interest Income From (Staff Loan Individual)','00063','INCOME','GL Account','52',0,0,'No','Interest Income From (Staff Loan Individual)','Active'),(64,'Loan Write Off Principal (Staff Loan Individual)','00064','EXPENSE','GL Account','53',0,0,'No','Loan Write Off Principal (Staff Loan Individual)','Active'),(65,'Loan Write Off Interest (Staff Loan Individual)','00065','EXPENSE','GL Account','54',0,0,'No','Loan Write Off Interest (Staff Loan Individual)','Active'),(66,'Interest Income From Staff Loan Individual Recovery','00066','INCOME','GL Account','52',0,0,'No','Interest Income From Staff Loan Individual Recovery','Active'),(67,'Regular Loan Fortnight','00067','ASSET','GL Account','2',0,0,'No','Regular Loan Fortnight','Active'),(68,'Income From Fees (Regular Loan Fortnight)','00068','INCOME','GL Account','4',0,0,'No','Income From Fees (Regular Loan Fortnight)','Active'),(69,'Income From Penalties (Regular Loan Fortnight)','00069','INCOME','GL Account','5',0,0,'No','Income From Penalties (Regular Loan Fortnight)','Active'),(70,'Interest Income From (Regular Loan Fortnight)','00070','INCOME','GL Account','52',0,0,'No','Interest Income From (Regular Loan Fortnight)','Active'),(71,'Loan Write Off Principal (Regular Loan Fortnight)','00071','EXPENSE','GL Account','53',0,0,'No','Loan Write Off Principal (Regular Loan Fortnight)','Active'),(72,'Loan Write Off Interest (Regular Loan Fortnight)','00072','EXPENSE','GL Account','54',0,0,'No','Loan Write Off Interest (Regular Loan Fortnight)','Active'),(73,'Interest Income From Regular Loan Fortnight Recovery','00073','INCOME','GL Account','52',0,0,'No','Interest Income From Regular Loan Fortnight Recovery','Active'),(74,'Period Closure','00074','EQUITY','GL Group','',0,0,'No','Period Closure','Active'),(75,'Surplus','00075','EQUITY','GL Account','74',0,0,'No','Surplus','Active'),(76,'Profit / Loss','00076','EQUITY','GL Account','74',0,0,'No','Profit / Loss','Active'),(77,'Direct expense','00077','EXPENSE','GL Group','',0,0,'No','Direct expense','Active'),(78,'Generator fueling','00078','EXPENSE','GL Account','77',0,0,'Yes','Generator fueling','Active'),(79,'Transportation','00079','EXPENSE','GL Account','77',0,0,'Yes','Transportation','Active'),(80,'Meals and entertainment','00080','EXPENSE','GL Account','77',0,0,'Yes','Meals and entertainment','Active'),(81,'Internet subscription','00081','EXPENSE','GL Account','77',0,0,'Yes','Internet subscription','Active'),(82,'Agric loan monthly','00082','ASSET','GL Account','2',0,0,'No','Agric loan monthly','Active'),(83,'Income From Fees (Agric Loan Monthly)','00083','INCOME','GL Account','4',0,0,'No','Income From Fees (Agric Loan Monthly)','Active'),(84,'Income From Penalties (Agric Loan Monthly)','00084','INCOME','GL Account','5',0,0,'No','Income From Penalties (Agric Loan Monthly)','Active'),(85,'Interest Income From (Agric Loan Monthly)','00085','INCOME','GL Account','52',0,0,'No','Interest Income From (Agric Loan Monthly)','Active'),(86,'Loan Write Off Principal (Agric Loan Monthly)','00086','EXPENSE','GL Account','53',0,0,'No','Loan Write Off Principal (Agric Loan Monthly)','Active'),(87,'Loan Write Off Interest (Agric Loan Monthly)','00087','EXPENSE','GL Account','54',0,0,'No','Loan Write Off Interest (Agric Loan Monthly)','Active'),(88,'Interest Income From Agric Loan monthly Recovery','00088','INCOME','GL Account','52',0,0,'No','Interest Income From Agric Loan monthly Recovery','Active'),(89,'Electricity bill','00089','EXPENSE','GL Account','77',0,0,'Yes','Electricity bill','Inactive'),(90,'Clean energy','00090','ASSET','GL Account','2',0,0,'No','Clean energy','Active'),(91,'Income From Fees (Clean energy)','00091','INCOME','GL Account','4',0,0,'No','Income From Fees (Clean energy)','Active'),(92,'Income From Penalties (Clean energy)','00092','INCOME','GL Account','5',0,0,'No','Income From Penalties (Clean energy)','Active'),(93,'Interest income From (Clean energy)','00093','INCOME','GL Account','52',0,0,'No','Interest income From (Clean energy)','Active'),(94,'Loan Write Off Principal (Clean energy)','00094','EXPENSE','GL Account','53',0,0,'No','Loan Write Off Principal (Clean energy)','Active'),(95,'Loan Write Off Interest (Clean energy)','00095','EXPENSE','GL Account','54',0,0,'No','Loan Write Off Interest (Clean energy)','Active'),(96,'Interest Income From Clean Energy Recovery','00096','INCOME','GL Account','52',0,0,'No','Interest Income From Clean Energy Recovery','Active'),(97,'Support Loan','00097','ASSET','GL Account','2',0,0,'No','Support Loan','Active'),(98,'Income From Fees (Support Loan)','00098','INCOME','GL Account','4',0,0,'No','Income From Fees (Support Loan)','Active'),(99,'Income From Penalties (Support Loan)','00099','INCOME','GL Account','5',0,0,'No','Income From Penalties (Support Loan)','Active'),(100,'Interest Income From (Support Loan)','000100','INCOME','GL Account','52',0,0,'No','Interest Income From (Support Loan)','Active'),(101,'Loan Write Off Principal (Support Loan)','000101','EXPENSE','GL Account','53',0,0,'No','Loan Write Off Principal (Support Loan)','Active'),(102,'Loan Write Off Interest (Support Loan)','000102','EXPENSE','GL Account','54',0,0,'No','Loan Write Off Interest (Support Loan)','Active'),(103,'Interest Income From Support Loan Recovery','000103','INCOME','GL Account','52',0,0,'No','Interest Income From Support Loan Recovery','Active'),(104,'Outbound settlement','000104','CONTRA','GL Group','',0,0,'No','Outbound settlement','Active'),(105,'Settlement funding','000105','CONTRA','GL Account','104',0,0,'No','Settlement funding','Active');

--
-- Table structure for table `account_comments`
--

CREATE TABLE `account_comments` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `area_id` bigint(20) NOT NULL,
  `type` varchar(225) DEFAULT NULL,
  `comment` varchar(1000) NOT NULL,
  `added_by` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `area_id` (`area_id`,`type`),
  KEY `added_by` (`added_by`),
  KEY `area_id_2` (`area_id`,`type`),
  KEY `added_by_2` (`added_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `account_comments`
--


--
-- Table structure for table `account_documents`
--

CREATE TABLE `account_documents` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `docs` varchar(1000) NOT NULL,
  `doc_name` varchar(225) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`),
  KEY `account_id_2` (`account_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `account_documents`
--

INSERT INTO `account_documents` VALUES (1,8,'account_documents/64c001e3d9e6e.png','Loan form'),(2,9,'account_documents/64c00768c036f.png','LAF');

--
-- Table structure for table `account_numbers_generation`
--

CREATE TABLE `account_numbers_generation` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `customer_id` bigint(20) DEFAULT NULL,
  `gip` bigint(20) NOT NULL DEFAULT '0',
  `wk1` bigint(20) NOT NULL DEFAULT '0',
  `processing_status` bigint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `account_id` (`account_id`),
  KEY `customer_id` (`customer_id`),
  KEY `gip` (`gip`),
  KEY `wk1` (`wk1`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `account_numbers_generation`
--


--
-- Table structure for table `account_transfers`
--

CREATE TABLE `account_transfers` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `account_id` bigint(20) NOT NULL,
  `transfer_type` varchar(225) NOT NULL,
  `from_relationship_manager` bigint(20) NOT NULL,
  `destination_relationship_manager` bigint(20) NOT NULL,
  `from_branch` bigint(20) DEFAULT NULL,
  `destination_branch` bigint(20) DEFAULT NULL,
  `status` varchar(225) NOT NULL COMMENT '(Pending, Approved, Invalid)',
  `created_by` bigint(20) NOT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `created_date` date NOT NULL,
  `approved_date` date DEFAULT NULL,
  `live_date` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `customer_id` (`customer_id`,`account_id`,`transfer_type`,`from_relationship_manager`,`destination_relationship_manager`,`from_branch`,`destination_branch`,`status`,`created_by`,`approved_by`,`created_date`,`approved_date`),
  KEY `customer_id_2` (`customer_id`,`account_id`,`transfer_type`,`from_relationship_manager`,`destination_relationship_manager`,`from_branch`,`destination_branch`,`status`,`created_by`,`approved_by`,`created_date`,`approved_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `account_transfers`
--


--
-- Table structure for table `accounts`
--

CREATE TABLE `accounts` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `account_number` varchar(225) DEFAULT NULL,
  `product_type` varchar(225) NOT NULL,
  `product` varchar(225) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `secondary_branch` bigint(20) DEFAULT NULL,
  `primary_relationship_manager` bigint(20) NOT NULL,
  `secondary_relationship_manager` bigint(20) DEFAULT NULL,
  `opening_amount` double DEFAULT NULL,
  `creation_date` date DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `loan_amount` double DEFAULT NULL,
  `plan_amount` double DEFAULT NULL,
  `linked_savings_account` varchar(225) DEFAULT NULL,
  `origin_of_funding` varchar(225) DEFAULT NULL,
  `loan_term` bigint(20) DEFAULT NULL,
  `term_type` varchar(225) DEFAULT NULL,
  `repayment_date` varchar(225) DEFAULT NULL,
  `repayment_day` varchar(225) DEFAULT NULL,
  `application_date` date DEFAULT NULL,
  `payment_frequency` varchar(225) DEFAULT NULL,
  `plan_duration` bigint(20) DEFAULT NULL,
  `term_duration` bigint(20) DEFAULT NULL,
  `term_duration_type` varchar(225) DEFAULT NULL,
  `agreed_interest_rate` decimal(65,20) DEFAULT NULL,
  `maturity_roll_over` varchar(225) DEFAULT NULL,
  `beneficiary_account_type` varchar(225) DEFAULT NULL,
  `beneficiary_account_own` varchar(225) DEFAULT NULL,
  `beneficiary_acc_other` varchar(225) DEFAULT NULL,
  `customer_old` varchar(225) DEFAULT NULL,
  `beneficiary_acc_bank` varchar(225) DEFAULT NULL,
  `beneficiary_acc_number` varchar(225) DEFAULT NULL,
  `rollover_duration` bigint(20) DEFAULT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active' COMMENT 'Active, Closed, Pending, Rejected',
  `cleared_balance` double NOT NULL DEFAULT '0',
  `ledger_balance` double NOT NULL DEFAULT '0',
  `created_by` bigint(20) DEFAULT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `creation_datetime` datetime DEFAULT NULL,
  `channel` bigint(20) DEFAULT NULL,
  `savings_id` bigint(20) DEFAULT NULL COMMENT 'For auto created linked savings account',
  `rollover_interest_rate` double DEFAULT NULL,
  `capitalized_interest` double DEFAULT NULL,
  `interest_capitalization_period` text,
  `approval_date` date DEFAULT NULL,
  `interest_credit_count` bigint(20) DEFAULT NULL,
  `planned_liquidation_date` date DEFAULT NULL,
  `last_interest_accrual_date` date DEFAULT NULL,
  `closed_date` date DEFAULT NULL,
  `disbursement_method` varchar(225) NOT NULL DEFAULT 'Cheque',
  `disbursement_account_no` varchar(225) DEFAULT NULL COMMENT 'for live disbursement',
  `total_debited_thrift_fee` double DEFAULT NULL,
  `sms_alert` varchar(3) NOT NULL DEFAULT 'No',
  `email_alert` varchar(3) NOT NULL DEFAULT 'No',
  `online_enabled` bigint(1) NOT NULL DEFAULT '1' COMMENT '1-Disabled, 2-Enabled',
  `currency` varchar(20) NOT NULL DEFAULT 'NGN',
  `offline_id` bigint(20) DEFAULT NULL,
  `substatus` varchar(225) NOT NULL DEFAULT 'Active',
  `auto_approve` bigint(1) NOT NULL DEFAULT '0' COMMENT '0- NO, 1- YES',
  `customer_code` varchar(225) DEFAULT NULL,
  `dva_account` varchar(225) DEFAULT NULL,
  `dva_bank` varchar(225) DEFAULT NULL,
  `dv_account_name` varchar(225) DEFAULT NULL,
  `isfirst` bigint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `account_number` (`account_number`),
  KEY `customer_id` (`customer_id`),
  KEY `product_type` (`product_type`),
  KEY `secondary_branch` (`secondary_branch`),
  KEY `secondary_relationship_manager` (`secondary_relationship_manager`),
  KEY `product` (`product`),
  KEY `disbursement_method` (`disbursement_method`),
  KEY `status` (`status`),
  KEY `created_by` (`created_by`),
  KEY `creation_date` (`creation_date`),
  KEY `approval_date` (`approval_date`),
  KEY `term_type` (`term_type`),
  KEY `application_date` (`application_date`),
  KEY `linked_savings_account` (`linked_savings_account`),
  KEY `dva_account` (`dva_account`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `accounts`
--

INSERT INTO `accounts` VALUES (1,18,'1011270377','Savings','S1',7,7,8,8,0,'2023-01-02','2023-07-25 14:20:08',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Active',20100,0,8,7,'2023-07-24 14:26:43',6,NULL,NULL,NULL,NULL,'2023-01-02',NULL,NULL,NULL,NULL,'Cheque',NULL,NULL,'No','No',1,'NGN',NULL,'Active',1,NULL,NULL,NULL,NULL,1),(3,18,'2029767782','Loan','L2',7,7,8,8,NULL,NULL,'2023-07-25 13:20:23',-100000,NULL,'1011270377','1',30,'Weeks',NULL,NULL,'2023-07-11',NULL,NULL,NULL,NULL,20.00000000000000000000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Closed',0,0,7,7,'2023-07-24 16:53:57',6,NULL,NULL,NULL,NULL,'2023-07-11',NULL,NULL,NULL,'2023-07-11','Cheque',NULL,NULL,'No','No',1,'NGN',NULL,'Active',0,NULL,NULL,NULL,NULL,0),(4,18,'2039960430','Loan','L4',7,7,8,8,NULL,NULL,'2023-07-25 13:15:51',-100000,NULL,'1011270377','1',4,'Months',NULL,NULL,'2023-07-11',NULL,NULL,NULL,NULL,14.31000000000000000000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Active',-114310,0,7,7,'2023-07-25 14:15:50',6,NULL,NULL,NULL,NULL,'2023-07-11',NULL,NULL,NULL,NULL,'Cheque',NULL,NULL,'No','No',1,'NGN',NULL,'Active',0,NULL,NULL,NULL,NULL,0),(5,18,'2019183772','Loan','L1',7,7,8,8,NULL,NULL,'2023-07-25 14:19:11',-100000,NULL,'1011270377','1',10,'Months',NULL,NULL,'2023-07-11',NULL,NULL,NULL,NULL,25.00000000000000000000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Closed',0,0,7,7,'2023-07-25 14:44:52',6,NULL,NULL,NULL,NULL,'2023-07-11',NULL,NULL,NULL,'2023-07-11','Cheque',NULL,NULL,'No','No',1,'NGN',NULL,'Active',0,NULL,NULL,NULL,NULL,0),(6,19,'1011440089','Savings','S1',7,7,8,8,0,'2023-07-10','2023-07-25 17:46:49',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Active',9986,0,8,7,'2023-07-25 16:34:21',6,NULL,NULL,NULL,NULL,'2023-07-10',NULL,NULL,NULL,NULL,'Cheque',NULL,NULL,'Yes','No',1,'NGN',NULL,'Active',1,NULL,NULL,NULL,NULL,1),(7,19,'2022434914','Loan','L2',7,7,8,8,NULL,NULL,'2023-07-25 16:54:30',-200,NULL,'1011440089','1',30,'Weeks',NULL,NULL,'2023-07-10',NULL,NULL,NULL,NULL,20.00000000000000000000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Closed',0,0,7,7,'2023-07-25 17:06:40',6,NULL,NULL,NULL,NULL,'2023-07-10',NULL,NULL,NULL,'2023-07-10','Transfer to Account (Outbound)','2122207000',NULL,'Yes','No',1,'NGN',NULL,'Active',0,NULL,NULL,NULL,NULL,0),(8,19,'2013897420','Loan','L1',7,7,8,8,NULL,NULL,'2023-07-25 17:17:12',-100000,NULL,'1011440089','1',10,'Months',NULL,NULL,'2023-07-10',NULL,NULL,NULL,NULL,25.00000000000000000000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Closed',0,0,7,7,'2023-07-25 18:09:55',6,NULL,NULL,NULL,NULL,'2023-07-10',NULL,NULL,NULL,NULL,'Cheque',NULL,NULL,'Yes','No',1,'NGN',NULL,'Active',0,NULL,NULL,NULL,NULL,0),(9,19,'2011214352','Loan','L1',7,7,8,8,NULL,NULL,'2023-07-25 17:46:48',-100000,NULL,'1011440089','1',10,'Months',NULL,NULL,'2023-07-10',NULL,NULL,NULL,NULL,25.00000000000000000000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Active',-125000,0,7,6,'2023-07-25 18:33:28',6,NULL,NULL,NULL,NULL,'2023-07-10',NULL,NULL,NULL,NULL,'Cheque',NULL,NULL,'Yes','No',1,'NGN',NULL,'Active',0,NULL,NULL,NULL,NULL,0);

--
-- Table structure for table `actions`
--

CREATE TABLE `actions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `entity_id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=170 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `actions`
--



--
-- Table structure for table `activities`
--

CREATE TABLE `activities` (
  `id` bigint(225) NOT NULL AUTO_INCREMENT,
  `activity_description` varchar(225) NOT NULL,
  `action_type` varchar(225) NOT NULL,
  `entity_id` varchar(225) NOT NULL,
  `activity_by` bigint(20) NOT NULL,
  `branch` bigint(20) DEFAULT NULL,
  `channel` bigint(20) DEFAULT NULL,
  `datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `activity_description` (`activity_description`,`action_type`,`activity_by`,`branch`,`channel`),
  KEY `activity_description_2` (`activity_description`,`action_type`,`activity_by`,`branch`,`channel`)
) ENGINE=InnoDB AUTO_INCREMENT=340 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `activities`
--

INSERT INTO `activities` VALUES (1,'New Branch (Benin 1 - id: 7) Created','Audit','BRNC7',1,1,6,'2023-07-24 10:12:10'),(2,'New Branch (Head Office - id: 8) Created','Audit','BRNC8',1,1,6,'2023-07-24 10:15:31'),(3,'Branch Updated - id: 7','Audit','BRNU7',1,1,6,'2023-07-24 10:16:49'),(4,'Branch Updated - id: 8','Audit','BRNU8',1,1,6,'2023-07-24 10:18:06'),(5,'Branch Updated - id: 5','Audit','BRNU5',1,1,6,'2023-07-24 10:18:28'),(6,'Branch Updated - id: 7','Audit','BRNU7',1,1,6,'2023-07-24 10:20:04'),(7,'Branch Updated - id: 6','Audit','BRNU6',1,1,6,'2023-07-24 10:21:11'),(8,'New Role (Divisional Manager - id: 105) Created','Audit','ROLC105',1,1,6,'2023-07-24 10:22:24'),(9,'User Login to Core','Login','LG6',1,1,6,'2023-07-24 10:24:54'),(10,'User Signout of Core','Signout','SO6',1,1,6,'2023-07-24 10:25:57'),(11,'New User Created','Audit','USCR6',1,1,NULL,'2023-07-24 10:27:23'),(12,'User Updated - username: LARD100','Audit','USRU6',1,1,6,'2023-07-24 10:28:36'),(13,'User Updated - username: LARD100','Audit','USRU6',1,1,6,'2023-07-24 10:30:13'),(14,'New City (Ikeja - id: 2) Created','Audit','CTTC2',1,1,6,'2023-07-24 10:32:56'),(15,'New Branch (Ikeja Division - id: 9) Created','Audit','BRNC9',1,1,6,'2023-07-24 10:33:48'),(16,'User Updated - username: LARD100','Audit','USRU6',1,1,6,'2023-07-24 10:34:27'),(17,'User Updated - username: LARD100','Audit','USRU6',1,1,6,'2023-07-24 10:36:05'),(18,'User Updated - username: LARD100','Audit','USRU6',1,1,6,'2023-07-24 10:36:19'),(19,'New Role (Data Entry Staff - id: 106) Created','Audit','ROLC106',1,1,6,'2023-07-24 10:49:15'),(20,'New User Created','Audit','USCR7',1,1,NULL,'2023-07-24 10:53:12'),(21,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 10:53:54'),(22,'New Password Created for lard101','Audit','PSSC7',7,NULL,NULL,'2023-07-24 10:54:05'),(23,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 10:54:16'),(24,'New Financial Period Created','Audit','AUD-A1',1,1,6,'2023-07-24 10:56:32'),(25,'New System Processing Date Created','Audit','AUD-B1',1,1,6,'2023-07-24 11:01:35'),(26,'Date Settings Updated','Audit','DSTUP',1,1,6,'2023-07-24 11:02:15'),(27,'New Branch Processing Date Created','Audit','AUD-C1',7,7,6,'2023-07-24 11:02:51'),(28,'New User Created','Audit','USCR8',1,1,NULL,'2023-07-24 11:04:56'),(29,'New Role (Client Support Officer - id: 107) Created','Audit','ROLC107',1,1,6,'2023-07-24 11:05:17'),(30,'User Updated - username: LARD102','Audit','USRU8',1,1,6,'2023-07-24 11:05:36'),(31,'New Group (Abundance - id: 1) Created','Audit','GRPC1',7,7,6,'2023-07-24 11:06:31'),(32,'Group Updated - id: 1','Audit','GRPU1',7,7,6,'2023-07-24 11:07:09'),(33,'Group Updated - id: 1','Audit','GRPU1',7,7,6,'2023-07-24 11:07:31'),(34,'New User Created','Audit','USCR9',1,1,NULL,'2023-07-24 11:09:45'),(35,'Group Updated - id: 1','Audit','GRPU1',7,7,6,'2023-07-24 11:13:56'),(36,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:21:01'),(37,'System Settings Updated','Audit','SYSUPD',1,1,6,'2023-07-24 11:21:20'),(38,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:21:48'),(39,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:22:20'),(40,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:22:21'),(41,'New Customer Created','Audit','NEWC1',7,7,6,'2023-07-24 11:24:12'),(42,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:24:16'),(43,'New Customer Created','Audit','NEWC2',7,7,6,'2023-07-24 11:24:33'),(44,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:24:44'),(45,'New Customer Created','Audit','NEWC3',7,7,6,'2023-07-24 11:25:16'),(46,'New Customer Created','Audit','NEWC4',7,7,6,'2023-07-24 11:25:28'),(47,'New Customer Created','Audit','NEWC5',7,7,6,'2023-07-24 11:26:24'),(48,'New Customer Created','Audit','NEWC6',7,7,6,'2023-07-24 11:26:28'),(49,'Customer Profile Update','Audit','UPDC6',7,7,6,'2023-07-24 11:27:05'),(50,'Customer Profile Update','Audit','UPDC6',7,7,6,'2023-07-24 11:27:21'),(51,'Customer Profile Update','Audit','UPDC4',7,7,6,'2023-07-24 11:28:45'),(52,'New Branch (Egor 2 - id: 10) Created','Audit','BRNC10',1,1,6,'2023-07-24 11:29:18'),(53,'Group Updated - id: 1','Audit','GRPU1',7,7,6,'2023-07-24 11:30:11'),(54,'New User Created','Audit','USCR10',1,1,NULL,'2023-07-24 11:30:23'),(55,'Group Updated - id: 1','Audit','GRPU1',7,7,6,'2023-07-24 11:33:21'),(56,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:38:33'),(57,'Group Updated - id: 1','Audit','GRPU1',7,7,6,'2023-07-24 11:39:53'),(58,'Customer Profile Update','Audit','UPDC4',7,7,6,'2023-07-24 11:40:34'),(59,'Customer Profile Update','Audit','UPDC4',7,7,6,'2023-07-24 11:40:40'),(60,'Customer Profile Update','Audit','UPDC6',7,7,6,'2023-07-24 11:40:59'),(61,'Group Updated - id: 1','Audit','GRPU1',7,7,6,'2023-07-24 11:41:28'),(62,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:41:46'),(63,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 11:48:22'),(64,'New User Created','Audit','USCR11',1,1,NULL,'2023-07-24 12:08:51'),(65,'User Login to Core','Login','LG6',11,10,6,'2023-07-24 12:09:29'),(66,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 12:11:37'),(67,'New Branch Processing Date Created','Audit','AUD-C2',11,10,6,'2023-07-24 12:12:24'),(68,'New Group (Super - id: 2) Created','Audit','GRPC2',11,10,6,'2023-07-24 12:30:02'),(69,'Transfer of customr from one office, group and/or relationship manager to another','Customer Transfer','CTR1',11,NULL,NULL,'2023-07-24 12:36:44'),(70,'Transfer of customr from one office, group and/or relationship manager to another','Customer Transfer','CTR2',11,NULL,NULL,'2023-07-24 12:36:44'),(71,'Transfer of customr from one office, group and/or relationship manager to another','Customer Transfer','CTR3',11,NULL,NULL,'2023-07-24 12:36:44'),(72,'Transfer of customr from one office, group and/or relationship manager to another','Customer Transfer','CTR4',11,NULL,NULL,'2023-07-24 12:36:44'),(73,'Transfer of customr from one office, group and/or relationship manager to another','Customer Transfer','CTR5',11,NULL,NULL,'2023-07-24 12:36:44'),(74,'Transfer of customr from one office, group and/or relationship manager to another','Customer Transfer','CTR6',11,NULL,NULL,'2023-07-24 12:36:44'),(75,'User Login to Core','Login','LG6',1,1,6,'2023-07-24 12:38:20'),(76,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 12:42:10'),(77,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 12:43:35'),(78,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 12:44:34'),(79,'User Login to Core','Login','LG6',1,1,6,'2023-07-24 12:44:57'),(80,'NONE Policy Added','Audit','PPLCAD1',1,1,6,'2023-07-24 12:46:33'),(81,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 12:46:59'),(82,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 12:47:15'),(83,'User Signout of Core','Signout','SO6',11,10,6,'2023-07-24 12:47:52'),(84,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 12:48:08'),(85,'New Group (Edosa - id: 3) Created','Audit','GRPC3',7,7,6,'2023-07-24 12:48:54'),(86,'New Customer Created','Audit','NEWC7',7,7,6,'2023-07-24 12:49:20'),(87,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 12:49:43'),(88,'New Customer Created','Audit','NEWC8',7,7,6,'2023-07-24 12:52:45'),(89,'New Customer Created','Audit','NEWC9',7,7,6,'2023-07-24 12:53:42'),(90,'New Customer Created','Audit','NEWC10',7,7,6,'2023-07-24 12:53:43'),(91,'New Customer Created','Audit','NEWC11',7,7,6,'2023-07-24 12:54:06'),(92,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 13:01:25'),(93,'New Customer Created','Audit','NEWC12',7,7,6,'2023-07-24 13:01:30'),(94,'New Customer Created','Audit','NEWC13',7,7,6,'2023-07-24 13:01:37'),(95,'New Customer Created','Audit','NEWC14',7,7,6,'2023-07-24 13:01:49'),(96,'Customer Profile Update','Audit','UPDC12',7,7,6,'2023-07-24 13:02:07'),(97,'New Customer Created','Audit','NEWC15',7,7,6,'2023-07-24 13:02:22'),(98,'New Customer Created','Audit','NEWC16',7,7,6,'2023-07-24 13:03:17'),(99,'New Group (Glorious - id: 4) Created','Audit','GRPC4',7,7,6,'2023-07-24 13:05:06'),(100,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 13:05:13'),(101,'New Customer Created','Audit','NEWC17',7,7,6,'2023-07-24 13:05:47'),(102,'Maximum Group Per Relationship Officer Policy Added','Audit','PPLCAD2',1,1,6,'2023-07-24 13:11:17'),(103,'NONE Policy Updated','Audit','PPLUPD1',1,1,6,'2023-07-24 13:12:00'),(104,'Product Created by lardi','Audit','PRD1',1,1,6,'2023-07-24 13:24:27'),(105,'New Template (Regular Savings - id: 1) Created','Audit','TMPC1',1,1,6,'2023-07-24 13:25:04'),(106,'New Customer Created','Audit','NEWC18',7,7,6,'2023-07-24 13:26:42'),(107,'Funds Deposit to customer account','Deposit','TRR1',7,7,6,'2023-07-24 13:29:08'),(108,'Funds Withdrawal from customer account','Withdrawal','TRR2',7,7,6,'2023-07-24 13:34:41'),(109,'New Chart of Account (Agric loan monthly - id: 82) Created','Audit','CHTAC82',1,1,6,'2023-07-24 13:41:10'),(110,'New Chart of Account (Income From Fees (Agric Loan Monthly) - id: 83) Created','Audit','CHTAC83',1,1,6,'2023-07-24 13:42:02'),(111,'New Chart of Account (Income From Penalties (Agric Loan Monthly) - id: 84) Created','Audit','CHTAC84',1,1,6,'2023-07-24 13:42:21'),(112,'New Chart of Account (Interest Income From (Agric Loan Monthly) - id: 85) Created','Audit','CHTAC85',1,1,6,'2023-07-24 13:43:49'),(113,'New Chart of Account (Loan Write Off Principal (Agric Loan Monthly) - id: 86) Created','Audit','CHTAC86',1,1,6,'2023-07-24 13:44:39'),(114,'New Chart of Account (Loan Write Off Interest (Agric Loan Monthly) - id: 87) Created','Audit','CHTAC87',1,1,6,'2023-07-24 13:44:57'),(115,'New Chart of Account (Interest Income From Agric Loan monthly Recovery - id: 88) Created','Audit','CHTAC88',1,1,6,'2023-07-24 13:45:50'),(116,'New Charge (BVN validation - id: 1) Created','Audit','CHRC1',1,1,6,'2023-07-24 13:47:46'),(117,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 13:48:46'),(118,'New Charge (BVN validation - id: 2) Created','Audit','CHRC2',1,1,6,'2023-07-24 13:49:17'),(119,'New Charge (Passbook Sales - id: 3) Created','Audit','CHRC3',1,1,6,'2023-07-24 13:50:27'),(120,'New Charge (Admin Fee - id: 4) Created','Audit','CHRC4',1,1,6,'2023-07-24 13:51:55'),(121,'New Charge (Account maintenance - id: 5) Created','Audit','CHRC5',1,1,6,'2023-07-24 13:52:29'),(122,'New Charge (Branch council fund (liability) - id: 6) Created','Audit','CHRC6',1,1,6,'2023-07-24 13:53:05'),(123,'New Charge (Insurance income - id: 7) Created','Audit','CHRC7',1,1,6,'2023-07-24 13:54:47'),(124,'New Charge (Insurance liability - id: 8) Created','Audit','CHRC8',1,1,6,'2023-07-24 13:55:21'),(125,'Product Created by lardi','Audit','PRD1',1,1,6,'2023-07-24 14:01:21'),(126,'Chart of Account Updated - id: 49','Audit','CHTAU49',1,1,6,'2023-07-24 14:02:01'),(127,'New Chart of Account (Other Liabilities - id: 89) Created','Audit','CHTAC89',1,1,6,'2023-07-24 14:02:42'),(128,'Chart of Account Updated - id: 89','Audit','CHTAU89',1,1,6,'2023-07-24 14:03:40'),(129,'Chart of Account Updated - id: 89','Audit','CHTAU89',1,1,6,'2023-07-24 14:03:59'),(130,'New Template (Agric Loan Monthly - id: 2) Created','Audit','TMPC2',1,1,6,'2023-07-24 14:11:32'),(131,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 14:13:01'),(132,'Charge Updated - id: 6','Audit','CHRU6',1,1,6,'2023-07-24 14:15:49'),(133,'Product Updated by lardi','Audit','PRD1',1,1,6,'2023-07-24 14:16:28'),(134,'Charge Updated - id: 5','Audit','CHRU5',1,1,6,'2023-07-24 14:16:42'),(135,'Funds Deposit to customer account','Deposit','TRR3',7,7,6,'2023-07-24 14:18:23'),(136,'Loan approved and disbursed','Loan Disbursement','TRR4',7,7,6,'2023-07-24 14:37:52'),(137,'Passbook','Fee','TRR5',7,7,6,'2023-07-24 14:37:52'),(138,'Admin Fee','Fee','TRR6',7,7,6,'2023-07-24 14:37:52'),(139,'Branch council fund (liability)','Fee','TRR7',7,7,6,'2023-07-24 14:37:52'),(140,'Insurance income','Fee','TRR8',7,7,6,'2023-07-24 14:37:52'),(141,'Product Updated by lardi','Audit','PRD1',1,1,6,'2023-07-24 14:40:06'),(142,'Chart of Account Updated - id: 49','Audit','CHTAU49',1,1,6,'2023-07-24 14:41:31'),(143,'Product Updated by lardi','Audit','PRD1',1,1,6,'2023-07-24 14:52:38'),(144,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 14:53:15'),(145,'Control GL Settings Updated','Audit','CGLUPD',1,1,6,'2023-07-24 15:21:01'),(146,'Control GL Settings Updated','Audit','CGLUPD',1,1,6,'2023-07-24 15:21:25'),(147,'Control GL Settings Updated','Audit','CGLUPD',1,1,6,'2023-07-24 15:21:27'),(148,'Interest Waiver Policy Added','Audit','PPLCAD3',1,1,6,'2023-07-24 15:42:18'),(149,'Control GL Settings Updated','Audit','CGLUPD',1,1,6,'2023-07-24 15:43:04'),(150,'Closed System Processing Date','Audit','AUD-B1',1,1,6,'2023-07-24 15:43:35'),(151,'New System Processing Date Created','Audit','AUD-B2',1,1,6,'2023-07-24 15:44:17'),(152,'New Branch Processing Date Created','Audit','AUD-C3',1,7,6,'2023-07-24 15:44:38'),(153,'User Login to Core','Login','LG6',7,7,6,'2023-07-24 15:45:06'),(154,'Product Created by lardi','Audit','PRD2',1,1,6,'2023-07-24 15:48:56'),(155,'New Template (Regular Loan Weekly - id: 3) Created','Audit','TMPC3',1,1,6,'2023-07-24 15:50:06'),(156,'Interest Waiver Policy Updated','Audit','PPLUPD3',1,1,6,'2023-07-24 15:51:38'),(157,'Funds Deposit to customer account','Deposit','TRR9',7,7,6,'2023-07-24 15:53:23'),(158,'Loan approved and disbursed','Loan Disbursement','TRR10',7,7,6,'2023-07-24 15:54:02'),(159,'Passbook','Fee','TRR11',7,7,6,'2023-07-24 15:54:03'),(160,'Admin Fee','Fee','TRR12',7,7,6,'2023-07-24 15:54:03'),(161,'Branch council fund (liability)','Fee','TRR13',7,7,6,'2023-07-24 15:54:03'),(162,'Insurance income','Fee','TRR14',7,7,6,'2023-07-24 15:54:03'),(163,'Insurance liability','Fee','TRR15',7,7,6,'2023-07-24 15:54:03'),(164,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 06:15:24'),(165,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 08:51:59'),(166,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 08:56:44'),(167,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 08:58:19'),(168,'Interest Waiver Policy Updated','Audit','PPLUPD3',1,1,6,'2023-07-25 09:03:46'),(169,'New Chart of Account (Clean energy - id: 90) Created','Audit','CHTAC90',1,1,6,'2023-07-25 09:10:36'),(170,'New Chart of Account (Income From Fees (Clean energy) - id: 91) Created','Audit','CHTAC91',1,1,6,'2023-07-25 09:11:30'),(171,'New Chart of Account (Income From Penalties (Clean energy) - id: 92) Created','Audit','CHTAC92',1,1,6,'2023-07-25 09:11:58'),(172,'New Chart of Account (Interest income From (Clean energy) - id: 93) Created','Audit','CHTAC93',1,1,6,'2023-07-25 09:12:39'),(173,'New Chart of Account (Loan Write Off Principal (Clean energy) - id: 94) Created','Audit','CHTAC94',1,1,6,'2023-07-25 09:13:16'),(174,'New Chart of Account (Loan Write Off Interest (Clean energy) - id: 95) Created','Audit','CHTAC95',1,1,6,'2023-07-25 09:13:41'),(175,'New Chart of Account (Interest Income From Clean Energy Recovery - id: 96) Created','Audit','CHTAC96',1,1,6,'2023-07-25 09:14:38'),(176,'Product Created by lardi','Audit','PRD0',1,1,6,'2023-07-25 09:21:07'),(177,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 09:33:48'),(178,'Product Created by lardi','Audit','PRD4',1,1,6,'2023-07-25 09:34:22'),(179,'New Template (Clean energy - id: 4) Created','Audit','TMPC4',1,1,6,'2023-07-25 09:34:53'),(180,'Maximum Loan Accounts Policy Added','Audit','PPLCAD4',1,1,6,'2023-07-25 09:35:25'),(181,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 09:36:28'),(182,'Access Loan on Loan Policy Added','Audit','PPLCAD5',1,1,6,'2023-07-25 09:37:29'),(183,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 09:41:03'),(184,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 09:41:48'),(185,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 09:43:46'),(186,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 09:44:10'),(187,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 09:46:48'),(188,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 09:50:26'),(189,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 09:51:18'),(190,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 09:51:32'),(191,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 09:52:48'),(192,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 10:15:43'),(193,'New Chart of Account (Business support - id: 97) Created','Audit','CHTAC97',1,1,6,'2023-07-25 10:19:50'),(194,'New Chart of Account (Income From Fees (Business support) - id: 98) Created','Audit','CHTAC98',1,1,6,'2023-07-25 10:20:27'),(195,'New Chart of Account (Income From Penalties (Business support) - id: 99) Created','Audit','CHTAC99',1,1,6,'2023-07-25 10:20:49'),(196,'New Chart of Account (Interest Income From (Business support) - id: 100) Created','Audit','CHTAC100',1,1,6,'2023-07-25 10:22:28'),(197,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 10:22:41'),(198,'New Chart of Account (Loan Write Off Principal (Business support) - id: 101) Created','Audit','CHTAC101',1,1,6,'2023-07-25 10:23:10'),(199,'New Chart of Account (Loan Write Off Interest (Business support) - id: 102) Created','Audit','CHTAC102',1,1,6,'2023-07-25 10:23:33'),(200,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 10:24:19'),(201,'New Chart of Account (Interest Income From Business support Recovery - id: 103) Created','Audit','CHTAC103',1,1,6,'2023-07-25 10:25:03'),(202,'Product Created by lardi','Audit','PRD5',1,1,6,'2023-07-25 10:33:26'),(203,'New Template (Business support Loan - id: 5) Created','Audit','TMPC5',1,1,6,'2023-07-25 10:34:14'),(204,'Product Updated by lardi','Audit','PRD1',1,1,6,'2023-07-25 10:36:57'),(205,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 10:41:46'),(206,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 10:42:17'),(207,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 11:08:54'),(208,'Access Loan on Loan Policy Updated','Audit','PPLUPD5',1,1,6,'2023-07-25 11:30:16'),(209,'Access Loan on Loan Policy Updated','Audit','PPLUPD5',1,1,6,'2023-07-25 11:40:38'),(210,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 12:25:38'),(211,'User Signout of Core','Signout','SO6',7,7,6,'2023-07-25 12:26:06'),(212,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 12:26:12'),(213,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 12:34:27'),(214,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 12:34:50'),(215,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 12:35:56'),(216,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 12:39:26'),(217,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 12:42:49'),(218,'Access Loan on Loan Policy Updated','Audit','PPLUPD5',1,1,6,'2023-07-25 12:43:31'),(219,'Access Loan on Loan Policy Updated','Audit','PPLUPD5',1,1,6,'2023-07-25 12:44:17'),(220,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 13:06:16'),(221,'Access Loan on Loan Policy Updated','Audit','PPLUPD5',1,1,6,'2023-07-25 13:07:06'),(222,'Product Updated by lardi','Audit','PRD4',1,1,6,'2023-07-25 13:09:21'),(223,'Loan approved and disbursed','Loan Disbursement','TRR16',7,7,6,'2023-07-25 13:15:52'),(224,'Loan repayment of 48000 for account number 2029767782','Loan Repayment','TRR17',7,7,6,'2023-07-25 13:18:32'),(225,'Loan repayment of 72000 for account number 2029767782','Loan Repayment','TRR18',7,7,6,'2023-07-25 13:20:21'),(226,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 13:21:34'),(227,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 13:35:12'),(228,'Chart of Account Updated - id: 100','Audit','CHTAU100',1,1,6,'2023-07-25 13:38:09'),(229,'Chart of Account Updated - id: 101','Audit','CHTAU101',1,1,6,'2023-07-25 13:38:38'),(230,'Chart of Account Updated - id: 102','Audit','CHTAU102',1,1,6,'2023-07-25 13:39:02'),(231,'Chart of Account Updated - id: 103','Audit','CHTAU103',1,1,6,'2023-07-25 13:39:28'),(232,'Chart of Account Updated - id: 97','Audit','CHTAU97',1,1,6,'2023-07-25 13:39:51'),(233,'Chart of Account Updated - id: 98','Audit','CHTAU98',1,1,6,'2023-07-25 13:40:13'),(234,'Chart of Account Updated - id: 99','Audit','CHTAU99',1,1,6,'2023-07-25 13:40:33'),(235,'Chart of Account Updated - id: 100','Audit','CHTAU100',1,1,6,'2023-07-25 13:40:59'),(236,'Product Updated by lardi','Audit','PRD5',1,1,6,'2023-07-25 13:42:14'),(237,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 13:44:01'),(238,'Loan approved and disbursed','Loan Disbursement','TRR19',7,7,6,'2023-07-25 13:45:03'),(239,'Admin Fee','Fee','TRR20',7,7,6,'2023-07-25 13:45:03'),(240,'Branch council fund (liability)','Fee','TRR21',7,7,6,'2023-07-25 13:45:03'),(241,'Insurance income','Fee','TRR22',7,7,6,'2023-07-25 13:45:03'),(242,'Insurance liability','Fee','TRR23',7,7,6,'2023-07-25 13:45:03'),(243,'Loan repayment of 50000 for account number 2019183772','Loan Repayment','TRR24',7,7,6,'2023-07-25 13:47:37'),(244,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 13:50:05'),(245,'Loan Repayment Reversal','Debit','TRR25',7,7,6,'2023-07-25 13:50:46'),(246,'Loan repayment of 50000 for account number 2019183772','Loan Repayment','TRR26',7,7,6,'2023-07-25 13:51:41'),(247,'User Signout of Core','Signout','SO6',1,1,6,'2023-07-25 13:52:19'),(248,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 13:52:26'),(249,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 13:54:35'),(250,'Loan Amount Increment Policy Added','Audit','PPLCAD6',1,1,6,'2023-07-25 14:01:42'),(251,'Loan Amount Increment Policy Updated','Audit','PPLUPD6',1,1,6,'2023-07-25 14:18:50'),(252,'Loan repayment of 75000 for account number 2019183772','Loan Repayment','TRR27',7,7,6,'2023-07-25 14:19:10'),(253,'Funds Deposit to customer account','Deposit','TRR28',7,7,6,'2023-07-25 14:20:09'),(254,'New Sector (Agriculture - id: 2) Created','Audit','SECTC2',1,1,6,'2023-07-25 14:35:17'),(255,'New Sub-sector (Fish farming - id: 0) Created','Audit','SBSECTC0',1,1,6,'2023-07-25 14:35:33'),(256,'New PND Reason (Personal - id: 1) Created','Audit','PNDRC1',1,1,6,'2023-07-25 14:37:36'),(257,'New PND Reason (Missing identification - id: 2) Created','Audit','PNDRC2',1,1,6,'2023-07-25 14:37:51'),(258,'New PND Reason (Expired ID - id: 3) Created','Audit','PNDRC3',1,1,6,'2023-07-25 14:38:02'),(259,'PND added to David  Samson\'s Accounts','Audit','PNDST18',7,7,6,'2023-07-25 14:41:24'),(260,'New Template (Nigerian BVN - id: 6) Created','Audit','TMPC6',1,1,6,'2023-07-25 15:08:13'),(261,'ID Validation Policy Added','Audit','PPLCAD7',1,1,6,'2023-07-25 15:08:47'),(262,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 15:10:35'),(263,'Product Updated by lardi','Audit','PRD1',1,1,6,'2023-07-25 15:11:49'),(264,'New Charge (SMS - id: 9) Created','Audit','CHRC9',1,1,6,'2023-07-25 15:12:28'),(265,'New Charge (External tranfer - id: 10) Created','Audit','CHRC10',1,1,6,'2023-07-25 15:14:06'),(266,'New Chart of Account (Outbound settlement - id: 104) Created','Audit','CHTAC104',1,1,6,'2023-07-25 15:15:01'),(267,'New Chart of Account (Settlement funding - id: 105) Created','Audit','CHTAC105',1,1,6,'2023-07-25 15:15:25'),(268,'Chart of Account Updated - id: 104','Audit','CHTAU104',1,1,6,'2023-07-25 15:18:17'),(269,'Chart of Account Updated - id: 105','Audit','CHTAU105',1,1,6,'2023-07-25 15:18:35'),(270,'Control GL Settings Updated','Audit','CGLUPD',1,1,6,'2023-07-25 15:19:15'),(271,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 15:21:51'),(272,'Control GL Settings Updated','Audit','CGLUPD',1,1,6,'2023-07-25 15:22:17'),(273,'Closed System Processing Date','Audit','AUD-B2',1,1,6,'2023-07-25 15:22:59'),(274,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 15:23:07'),(275,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 15:24:39'),(276,'New System Processing Date Created','Audit','AUD-B3',1,1,6,'2023-07-25 15:25:21'),(277,'Date Settings Updated','Audit','DSTUP',1,1,6,'2023-07-25 15:28:05'),(278,'New Branch Processing Date Created','Audit','AUD-C4',1,7,6,'2023-07-25 15:28:29'),(279,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 15:29:08'),(280,'Product Updated by lardi','Audit','PRD1',1,1,6,'2023-07-25 15:34:15'),(281,'New Customer Created','Audit','NEWC19',7,7,6,'2023-07-25 15:34:21'),(282,'BVN Validation Fee debit from customer account','Debit','TRR29',7,7,6,'2023-07-25 15:34:22'),(283,'Funds Deposit to customer account','Deposit','TRR30',7,7,6,'2023-07-25 15:34:58'),(284,'SMS debit from customer account','Debit','TRR31',7,7,6,'2023-07-25 15:34:58'),(285,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 15:37:35'),(286,'Require Profile Photo Policy Added','Audit','PPLCAD8',1,1,6,'2023-07-25 15:40:03'),(287,'SMS Alert Phone Number Added','Audit','ALT6',7,7,6,'2023-07-25 15:44:47'),(288,'Funds Deposit to customer account','Deposit','TRR32',7,7,6,'2023-07-25 15:46:00'),(289,'SMS debit from customer account','Debit','TRR33',7,7,6,'2023-07-25 15:46:01'),(290,'Product Updated by lardi','Audit','PRD2',1,1,6,'2023-07-25 15:53:25'),(291,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 15:56:51'),(292,'Password Reset for LARD101','Audit','PSSR7',7,7,6,'2023-07-25 16:00:28'),(293,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 16:01:03'),(294,'Maximum Loan Accounts Policy Updated','Audit','PPLUPD4',1,1,6,'2023-07-25 16:04:12'),(295,'Loan approved and disbursed','Loan Disbursement','TRR34',7,7,6,'2023-07-25 16:06:43'),(296,'Passbook','Fee','TRR35',7,7,6,'2023-07-25 16:06:43'),(297,'Admin Fee','Fee','TRR36',7,7,6,'2023-07-25 16:06:43'),(298,'Branch council fund (liability)','Fee','TRR37',7,7,6,'2023-07-25 16:06:43'),(299,'Insurance income','Fee','TRR38',7,7,6,'2023-07-25 16:06:43'),(300,'Insurance liability','Fee','TRR39',7,7,6,'2023-07-25 16:06:43'),(301,'Require Document Upload Policy Added','Audit','PPLCAD9',1,1,6,'2023-07-25 16:36:30'),(302,'Guarantor Policy Added','Audit','PPLCAD10',1,1,6,'2023-07-25 16:41:00'),(303,'Loan account 2022434914 has been written off','Audit','WRT7',7,7,6,'2023-07-25 16:54:30'),(304,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 16:55:23'),(305,'Guarantor Policy Updated','Audit','PPLUPD10',1,1,6,'2023-07-25 16:58:49'),(306,'Loan approved and disbursed','Loan Disbursement','TRR41',7,7,6,'2023-07-25 17:10:03'),(307,'Admin Fee','Fee','TRR42',7,7,6,'2023-07-25 17:10:03'),(308,'Branch council fund (liability)','Fee','TRR43',7,7,6,'2023-07-25 17:10:03'),(309,'Insurance income','Fee','TRR44',7,7,6,'2023-07-25 17:10:03'),(310,'Insurance liability','Fee','TRR45',7,7,6,'2023-07-25 17:10:03'),(311,'Loan repayment of 50000 for account number 2013897420','Loan Repayment','TRR46',7,7,6,'2023-07-25 17:14:34'),(312,'Loan Repayment Reversal','Debit','TRR47',7,7,6,'2023-07-25 17:16:32'),(313,'Loan Disbursement Reversal','Credit','TRR48',7,7,6,'2023-07-25 17:17:12'),(314,'New Role (Audit Officer - id: 108) Created','Audit','ROLC108',1,1,6,'2023-07-25 17:22:13'),(315,'New User Created','Audit','USCR12',1,1,NULL,'2023-07-25 17:36:24'),(316,'User Login to Core','Login','LG6',6,9,6,'2023-07-25 17:37:31'),(317,'User Login to Core','Login','LG6',12,8,6,'2023-07-25 17:37:32'),(318,'New Password Created for lard100','Audit','PSSC6',6,NULL,NULL,'2023-07-25 17:37:39'),(319,'User Login to Core','Login','LG6',6,9,6,'2023-07-25 17:37:46'),(320,'User Login to Core','Login','LG6',6,9,6,'2023-07-25 17:37:59'),(321,'User Login to Core','Login','LG6',12,8,6,'2023-07-25 17:40:04'),(322,'New Branch Processing Date Created','Audit','AUD-C5',12,8,6,'2023-07-25 17:43:42'),(323,'New Branch Processing Date Created','Audit','AUD-C6',6,9,6,'2023-07-25 17:43:56'),(324,'Disbursement Validated','Audit','AUDCV9',12,8,6,'2023-07-25 17:44:35'),(325,'Loan approved and disbursed','Loan Disbursement','TRR53',6,9,6,'2023-07-25 17:46:48'),(326,'Admin Fee','Fee','TRR54',6,9,6,'2023-07-25 17:46:48'),(327,'Branch council fund (liability)','Fee','TRR55',6,9,6,'2023-07-25 17:46:49'),(328,'Insurance income','Fee','TRR56',6,9,6,'2023-07-25 17:46:49'),(329,'Insurance liability','Fee','TRR57',6,9,6,'2023-07-25 17:46:49'),(330,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 19:10:27'),(331,'User Login to Core','Login','LG6',7,7,6,'2023-07-25 19:13:58'),(332,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 19:45:32'),(333,'User Signout of Core','Signout','SO6',1,1,6,'2023-07-25 19:50:22'),(334,'User Login to Core','Login','LG6',1,1,6,'2023-07-25 19:54:16'),(335,'User Signout of Core','Signout','SO6',1,1,6,'2023-07-25 19:55:08'),(336,'User Login to Core','Login','LG6',7,7,6,'2023-07-26 12:37:06'),(337,'User Login to Core','Login','LG6',1,1,6,'2023-07-26 12:39:58'),(338,'User Signout of Core','Signout','SO6',7,7,6,'2023-07-26 12:45:20'),(339,'User Login to Core','Login','LG6',7,7,6,'2023-07-27 12:13:48');

--
-- Table structure for table `advanced_account_rule`
--

CREATE TABLE `advanced_account_rule` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `payment_type` varchar(225) NOT NULL,
  `funding_source` varchar(1000) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `advanced_account_rule`
--

INSERT INTO `advanced_account_rule` VALUES (6,'L0','Cash','39'),(9,'L1','Cash','39'),(10,'L4','Cash','39'),(11,'L5','Cash','39'),(13,'S1','Cash','39'),(14,'L2','Cash','39');

--
-- Table structure for table `amount_policy_events`
--

CREATE TABLE `amount_policy_events` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `amount_policy_events`
--

INSERT INTO `amount_policy_events` VALUES (1,'Loan Disbursement'),(2,'Deposits'),(3,'Withdrawals'),(4,'Internal Fund Transfer'),(5,'First Deposit'),(9,'External Fund Transfer'),(10,'Loan Repayments'),(11,'Loan Recoveries');

--
-- Table structure for table `approval`
--

CREATE TABLE `approval` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `assign_user_id` bigint(20) DEFAULT NULL,
  `assign_role_id` bigint(20) DEFAULT NULL,
  `assign_service_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `approval`
--


--
-- Table structure for table `approval_details`
--

CREATE TABLE `approval_details` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `approval_id` bigint(20) NOT NULL,
  `approval_user_ids` bigint(20) DEFAULT NULL,
  `approval_branch_ids` bigint(20) DEFAULT NULL,
  `approval_channel_ids` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `approval_details`
--


--
-- Table structure for table `asset_disposal`
--

CREATE TABLE `asset_disposal` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `asset_id` bigint(20) NOT NULL,
  `disposal_option` varchar(225) NOT NULL,
  `disposal_reason` bigint(20) NOT NULL,
  `profit_loss` decimal(65,4) NOT NULL,
  `disposal_status` varchar(225) NOT NULL,
  `disposal_date` date NOT NULL,
  `dispose_by` bigint(20) NOT NULL,
  `datetime` datetime NOT NULL,
  `branch` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `asset_id` (`asset_id`,`disposal_option`,`disposal_status`,`disposal_date`,`branch`),
  KEY `asset_id_2` (`asset_id`,`disposal_option`,`disposal_status`,`disposal_date`,`branch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `asset_disposal`
--


--
-- Table structure for table `asset_sub_class`
--

CREATE TABLE `asset_sub_class` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `mainClass` varchar(225) NOT NULL,
  `scode` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `asset_sub_class`
--


--
-- Table structure for table `asset_transfer`
--

CREATE TABLE `asset_transfer` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `asset_id` bigint(20) NOT NULL,
  `originating_branch` bigint(20) NOT NULL,
  `destination_branch` bigint(20) NOT NULL,
  `date_transferred` date NOT NULL,
  `transferred_by` bigint(20) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Approved',
  `datetime` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `asset_id` (`asset_id`,`originating_branch`,`destination_branch`,`status`),
  KEY `asset_id_2` (`asset_id`,`originating_branch`,`destination_branch`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `asset_transfer`
--


--
-- Table structure for table `assets`
--

CREATE TABLE `assets` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `branch` bigint(1) NOT NULL,
  `purchase_amount` decimal(65,4) NOT NULL,
  `asset_value` decimal(65,4) NOT NULL DEFAULT '0.0000',
  `purchase_date` date NOT NULL,
  `class` varchar(225) NOT NULL,
  `sub_class` bigint(20) NOT NULL,
  `asset_group` varchar(225) NOT NULL,
  `type` varchar(225) NOT NULL,
  `policy` varchar(225) NOT NULL,
  `depreciate` varchar(225) NOT NULL,
  `depreciation_method` varchar(225) DEFAULT NULL,
  `salvage_amount` decimal(65,4) DEFAULT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `currency` varchar(225) NOT NULL,
  `datetime` datetime NOT NULL,
  `created_by` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `assets`
--


--
-- Table structure for table `assigned_roles`
--

CREATE TABLE `assigned_roles` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `uid` bigint(20) NOT NULL,
  `rid` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `assigned_roles`
--


--
-- Table structure for table `authorizations`
--

CREATE TABLE `authorizations` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `type` varchar(225) NOT NULL,
  `value` bigint(20) DEFAULT NULL,
  `usertypes` varchar(225) NOT NULL,
  `apply_to` varchar(1000) NOT NULL,
  `affected_roles` varchar(1000) DEFAULT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `authorizations`
--


--
-- Table structure for table `banks`
--

CREATE TABLE `banks` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `code` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6837 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `banks`
--

INSERT INTO `banks` VALUES (1,'Abbey Mortgage Bank','801','2022-04-20 08:36:21'),(2,'Above Only MFB','51204','2022-04-20 08:36:21'),(3,'Access Bank','044','2022-04-20 08:36:21'),(4,'Access Bank (Diamond)','063','2022-04-20 08:36:21'),(5,'ALAT by WEMA','035A','2022-04-20 08:36:21'),(6,'Amju Unique MFB','50926','2022-04-20 08:36:21'),(7,'ASO Savings and Loans','401','2022-04-20 08:36:21'),(8,'Bainescredit MFB','51229','2022-04-20 08:36:21'),(9,'Bowen Microfinance Bank','50931','2022-04-20 08:36:21'),(10,'Carbon','565','2022-04-20 08:36:21'),(11,'CEMCS Microfinance Bank','50823','2022-04-20 08:36:21'),(12,'Chanelle Microfinance Bank Limited','50171','2022-04-20 08:36:21'),(13,'Citibank Nigeria','023','2022-04-20 08:36:21'),(14,'Corestep MFB','50204','2022-04-20 08:36:21'),(15,'Coronation Merchant Bank','559','2022-04-20 08:36:21'),(16,'Ecobank Nigeria','050','2022-04-20 08:36:21'),(17,'Ekondo Microfinance Bank','562','2022-04-20 08:36:21'),(18,'Eyowo','50126','2022-04-20 08:36:21'),(19,'Fidelity Bank','070','2022-04-20 08:36:21'),(20,'Firmus MFB','51314','2022-04-20 08:36:21'),(21,'First Bank of Nigeria','011','2022-04-20 08:36:21'),(22,'First City Monument Bank','214','2022-04-20 08:36:21'),(23,'FSDH Merchant Bank Limited','501','2022-04-20 08:36:21'),(24,'Gateway Mortgage Bank LTD','812','2022-04-20 08:36:21'),(25,'Globus Bank','00103','2022-04-20 08:36:21'),(26,'GoMoney','100022','2022-04-20 08:36:21'),(27,'Guaranty Trust Bank','058','2022-04-20 08:36:21'),(28,'Hackman Microfinance Bank','51251','2022-04-20 08:36:21'),(29,'Hasal Microfinance Bank','50383','2022-04-20 08:36:21'),(30,'Heritage Bank','030','2022-04-20 08:36:21'),(31,'Ibile Microfinance Bank','51244','2022-04-20 08:36:21'),(32,'Infinity MFB','50457','2022-04-20 08:36:21'),(33,'Jaiz Bank','301','2022-04-20 08:36:21'),(34,'Kadpoly MFB','50502','2022-04-20 08:36:21'),(35,'Keystone Bank','082','2022-04-20 08:36:21'),(36,'Kredi Money MFB LTD','50200','2022-04-20 08:36:21'),(37,'Kuda Bank','50211','2022-04-20 08:36:21'),(38,'Lagos Building Investment Company Plc.','90052','2022-04-20 08:36:21'),(39,'Links MFB','50549','2022-04-20 08:36:21'),(40,'Lotus Bank','303','2022-04-20 08:36:21'),(41,'Mayfair MFB','50563','2022-04-20 08:36:21'),(42,'Mint MFB','50304','2022-04-20 08:36:21'),(43,'Paga','100002','2022-04-20 08:36:21'),(44,'PalmPay','999991','2022-04-20 08:36:21'),(45,'Parallex Bank','104','2022-04-20 08:36:21'),(46,'Parkway - ReadyCash','311','2022-04-20 08:36:21'),(47,'Paycom','999992','2022-04-20 08:36:21'),(48,'Petra Mircofinance Bank Plc','50746','2022-04-20 08:36:21'),(49,'Polaris Bank','076','2022-04-20 08:36:21'),(50,'Providus Bank','101','2022-04-20 08:36:21'),(51,'QuickFund MFB','51293','2022-04-20 08:36:21'),(52,'Rand Merchant Bank','502','2022-04-20 08:36:21'),(53,'Rubies MFB','125','2022-04-20 08:36:21'),(54,'Safe Haven MFB','51113','2022-04-20 08:36:21'),(55,'Sparkle Microfinance Bank','51310','2022-04-20 08:36:21'),(56,'Stanbic IBTC Bank','221','2022-04-20 08:36:21'),(57,'Standard Chartered Bank','068','2022-04-20 08:36:21'),(58,'Stellas MFB','51253','2022-04-20 08:36:21'),(59,'Sterling Bank','232','2022-04-20 08:36:21'),(60,'Suntrust Bank','100','2022-04-20 08:36:21'),(61,'TAJ Bank','302','2022-04-20 08:36:21'),(62,'Tangerine Money','51269','2022-04-20 08:36:21'),(63,'TCF MFB','51211','2022-04-20 08:36:21'),(64,'Titan Bank','102','2022-04-20 08:36:21'),(65,'Unical MFB','50871','2022-04-20 08:36:21'),(66,'Union Bank of Nigeria','032','2022-04-20 08:36:21'),(67,'United Bank For Africa','033','2022-04-20 08:36:21'),(68,'Unity Bank','215','2022-04-20 08:36:21'),(69,'VFD Microfinance Bank Limited','566','2022-04-20 08:36:21'),(70,'Wema Bank','035','2022-04-20 08:36:21'),(71,'Zenith Bank','057','2022-04-20 08:36:21'),(72,'9mobile 9Payment Service Bank','120001','2023-01-28 18:14:55'),(73,'Abulesoro MFB','51312','2023-01-28 18:14:55'),(74,'Accion Microfinance Bank','602','2023-01-28 18:14:55'),(75,'Ahmadu Bello University Microfinance Bank','50036','2023-01-28 18:14:55'),(76,'Airtel Smartcash PSB','120004','2023-01-28 18:14:55'),(77,'Aramoko MFB','50083','2023-01-28 18:14:55'),(78,'Astrapolaris MFB LTD','MFB50094','2023-01-28 18:14:55'),(79,'Crescent MFB','51297','2023-01-28 18:14:55'),(80,'Dot Microfinance Bank','50162','2023-01-28 18:14:55'),(81,'Ekimogun MFB','50263','2023-01-28 18:14:55'),(82,'Fairmoney Microfinance Bank','51318','2023-01-28 18:14:55'),(83,'Goodnews Microfinance Bank','50739','2023-01-28 18:14:55'),(85,'HopePSB','120002','2023-01-28 18:14:55'),(86,'Ikoyi Osun MFB','50439','2023-01-28 18:14:55'),(87,'Ilaro Poly Microfinance Bank','50442','2023-01-28 18:14:55'),(88,'Living Trust Mortgage Bank','031','2023-01-28 18:14:55'),(89,'MTN Momo PSB','120003','2023-01-28 18:14:55'),(90,'Polyunwana MFB','50864','2023-01-28 18:14:55'),(91,'PremiumTrust Bank','105','2023-01-28 18:14:55'),(92,'Refuge Mortgage Bank','90067','2023-01-28 18:14:55'),(93,'ROCKSHIELD MICROFINANCE BANK','50767','2023-01-28 18:14:55'),(94,'Safe Haven Microfinance Bank Limited','951113','2023-01-28 18:14:55'),(95,'Shield MFB','50582','2023-01-28 18:14:55'),(96,'Solid Rock MFB','50800','2023-01-28 18:14:55'),(97,'Supreme MFB','50968','2023-01-28 18:14:55'),(98,'Tanadi Microfinance Bank','090560','2023-01-28 18:14:55'),(99,'Titan Paystack','100039','2023-01-28 18:14:55'),(100,'Uhuru MFB','MFB51322','2023-01-28 18:14:55'),(101,'Unaab Microfinance Bank Limited','50870','2023-01-28 18:14:55'),(102,'Unilag Microfinance Bank','51316','2023-01-28 18:14:55'),(106,'Abbey Mortage Bank','','2023-06-20 12:47:45'),(108,'AMPERSAND MICROFINANCE BANK','51341','2023-06-20 12:47:45'),(109,'Banc Corp Microfinance Bank','50117','2023-06-20 12:47:45'),(110,'FirstTrust Mortgage Bank Nigeria','107','2023-06-20 12:47:45'),(111,'FLOURISH MFB','50315','2023-06-20 12:47:45'),(112,'Moniepoint MFB','50515','2023-06-20 12:47:45'),(113,'Personal Trust MFB','51146','2023-06-20 12:47:45'),(114,'AKU Microfinance Bank','51336','2023-06-20 12:47:45'),(115,'Branch International Financial Services Limited','FC40163','2023-06-20 12:47:45'),(116,'CASHCONNECT MFB','865','2023-06-20 12:47:45'),(117,'Consumer Microfinance Bank','50910','2023-06-20 12:47:45'),(118,'County Finance Limited','FC40128','2023-06-20 12:47:45'),(119,'Optimus Bank Limited','00107','2023-06-20 12:47:45'),(120,'Peace Microfinance Bank','50743','2023-06-20 12:47:45'),(121,'Rigo Microfinance Bank Limited','51286','2023-06-20 12:47:45'),(122,'Solid Allianze MFB','51062','2023-06-20 12:47:45'),(123,'U&C Microfinance Bank Ltd (U AND C MFB)','50840','2023-06-20 12:47:45'),(124,'Waya Microfinance Bank','51355','2023-06-20 12:47:45'),(6829,'Imowo MFB','50453','2023-06-30 09:26:45'),(6834,'Chikum Microfinance bank','312','2023-07-25 06:08:03'),(6835,'Platinum Mortgage Bank','268','2023-07-25 06:08:03'),(6836,'SAGE GREY FINANCE LIMITED','40165','2023-07-25 06:08:03');

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

CREATE TABLE `branch` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `external_id` varchar(225) DEFAULT NULL,
  `name` varchar(225) NOT NULL,
  `parent` bigint(20) NOT NULL,
  `office_address` varchar(225) NOT NULL,
  `country` bigint(20) DEFAULT NULL,
  `state` bigint(20) DEFAULT NULL,
  `city` varchar(225) NOT NULL,
  `phone` varchar(225) NOT NULL,
  `email` varchar(225) NOT NULL,
  `branch_manager` varchar(225) NOT NULL,
  `opening_date` date NOT NULL,
  `branch_type` varchar(225) DEFAULT 'Yes',
  `status` varchar(225) NOT NULL DEFAULT 'Active' COMMENT 'Active, Inactive',
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  `operational_model` varchar(225) NOT NULL DEFAULT 'Cash' COMMENT 'Cash, Tellering',
  `approved_by` bigint(20) NOT NULL DEFAULT '1',
  `migration_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `parent` (`parent`,`state`,`city`,`branch_manager`),
  KEY `created_by` (`created_by`,`approved_by`,`migration_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `branch` VALUES (1,NULL,'Organization',0,'18 Dawnson Road',NULL,NULL,'Benin','08018282000','info@lapo-ngo.org','','2021-01-01','No','Active',0,'Cash',1,NULL),(5,'','Edo Division',8,'Benin Depot, Agbor Road',1,13,'1','09059492983','philipudu1984@yahoo.com','','2016-10-14','No','Active',1,'Cash',1,NULL),(6,'','Egor Area',5,'100, siluko road',1,13,'1','08066278299','lapolardibenin1@gmail.com','','2008-11-01','No','Active',1,'Cash',1,NULL),(7,'','Benin 2',6,'139, new lagos road, opposite medical junction',1,13,'1','09088876543','benin1@lapo-ngo.org','','1990-01-01','Yes','Active',1,'Cash',1,NULL),(8,'','Head Office',1,'18 Dawson road',1,13,'1','07011234567','headoffice@lapo-ngo.org','','1990-01-01','No','Active',1,'Cash',1,NULL),(9,'','Ikeja Division',8,'Ikeja',1,25,'2','09098761234','ikejadiv@gmail.com','','1990-01-01','No','Active',1,'Cash',1,NULL),(10,'','Egor 2',6,'Egor',1,13,'1','07078786758','egor2@gmail.com','','1990-01-01','Yes','Active',1,'Cash',1,NULL);

--
-- Table structure for table `branch_processing_dates`
--

CREATE TABLE `branch_processing_dates` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `start_date` date NOT NULL,
  `closed_date` date DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Open' COMMENT 'Open, Closed',
  `created_by` bigint(20) NOT NULL,
  `branch` bigint(20) DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `start_date` (`start_date`),
  KEY `closed_date` (`closed_date`),
  KEY `status` (`status`),
  KEY `branch` (`branch`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `branch_processing_dates`
--

INSERT INTO `branch_processing_dates` VALUES (1,'2023-01-02','2023-01-02','Closed',7,7,'2023-07-24 15:43:35'),(2,'2023-01-02','2023-01-02','Closed',11,10,'2023-07-24 15:43:35'),(3,'2023-07-11','2023-07-11','Closed',1,7,'2023-07-25 15:22:59'),(4,'2023-07-10',NULL,'Open',1,7,'2023-07-25 15:28:29'),(5,'2023-07-10',NULL,'Open',12,8,'2023-07-25 17:43:42'),(6,'2023-07-10',NULL,'Open',6,9,'2023-07-25 17:43:56');

--
-- Table structure for table `bulk_account_history`
--

CREATE TABLE `bulk_account_history` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_collection_id` bigint(20) NOT NULL,
  `account_id` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_collection_id` (`group_collection_id`,`account_id`),
  KEY `group_collection_id_2` (`group_collection_id`,`account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `bulk_account_history`
--


--
-- Table structure for table `bulk_withdrawal`
--

CREATE TABLE `bulk_withdrawal` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_id` bigint(20) NOT NULL,
  `created_by` bigint(20) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `relationship_manager` bigint(20) NOT NULL,
  `date` date NOT NULL,
  `total` float NOT NULL,
  `status` varchar(225) NOT NULL,
  `currency` varchar(225) NOT NULL DEFAULT 'NGN',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `offline_id` bigint(20) DEFAULT NULL,
  `channel` bigint(20) NOT NULL DEFAULT '6',
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`,`created_by`,`branch`,`relationship_manager`,`date`,`status`,`channel`),
  KEY `group_id_2` (`group_id`,`created_by`,`branch`,`relationship_manager`,`date`,`status`,`channel`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `bulk_withdrawal`
--


--
-- Table structure for table `bulk_withdrawal_details`
--

CREATE TABLE `bulk_withdrawal_details` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `bulk_withdrawal_id` bigint(20) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `account_no` varchar(225) NOT NULL,
  `amount` double NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Pending',
  `reason` varchar(225) DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `bulk_withdrawal_id` (`bulk_withdrawal_id`,`customer_id`,`account_no`,`status`),
  KEY `bulk_withdrawal_id_2` (`bulk_withdrawal_id`,`customer_id`,`account_no`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `bulk_withdrawal_details`
--


--
-- Table structure for table `business_scale`
--

CREATE TABLE `business_scale` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `business_scale`
--

INSERT INTO `business_scale` VALUES (1,'Micro'),(2,'Small'),(3,'Medium'),(4,'Large');

--
-- Table structure for table `bvn_count`
--

CREATE TABLE `bvn_count` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `branch` bigint(20) NOT NULL,
  `date` date NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `branch` (`branch`,`date`),
  KEY `branch_2` (`branch`,`date`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `bvn_count`
--

INSERT INTO `bvn_count` VALUES (1,7,'2023-07-11','2023-07-25 15:11:18'),(2,7,'2023-07-11','2023-07-25 15:20:07'),(3,7,'2023-07-11','2023-07-25 15:22:55'),(4,7,'2023-07-10','2023-07-25 17:01:34'),(5,7,'2023-07-10','2023-07-25 17:03:15');

--
-- Table structure for table `channel`
--

CREATE TABLE `channel` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `description` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active' COMMENT 'Active, Inactive',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `channel`
--

INSERT INTO `channel` VALUES (5,'USSD','this is ussd chanel','Inactive','2021-07-17 10:28:02'),(6,'Core','this is core','Active','2021-07-06 08:51:40'),(7,'Mobile App','this is mobile app','Inactive','2021-06-15 11:35:08'),(8,'Internet Banking','internet access','Inactive','2021-06-15 11:35:16'),(9,'Digital Field System (DFS)','Channel to carry out branchless transactions','Active','2022-01-16 15:30:44');

--
-- Table structure for table `charge_amount`
--

CREATE TABLE `charge_amount` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `charge_id` bigint(20) NOT NULL,
  `amount_range` varchar(225) NOT NULL,
  `amount` double NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `charge_amount`
--


--
-- Table structure for table `charge_amount_new`
--

CREATE TABLE `charge_amount_new` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `charge_id` bigint(20) NOT NULL,
  `minimum_amount` bigint(20) NOT NULL,
  `maximum_amount` bigint(20) NOT NULL,
  `amount` double NOT NULL,
  PRIMARY KEY (`id`),
  KEY `charge_id` (`charge_id`),
  KEY `charge_id_2` (`charge_id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `charge_amount_new`
--

INSERT INTO `charge_amount_new` VALUES (1,1,1,100,100),(2,2,1,100,100),(3,3,1,500,500),(4,4,1,2,1),(5,5,1,500,500),(7,7,1,3,0.8),(8,8,1,2,1.2),(9,6,1,700,700),(10,9,1,4,4),(11,10,1,100,100);

--
-- Table structure for table `charge_guarantor`
--

CREATE TABLE `charge_guarantor` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `bvn` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `charge_guarantor`
--

INSERT INTO `charge_guarantor` VALUES (1,0,'22266426064'),(2,0,'22370554460');

--
-- Table structure for table `charges`
--

CREATE TABLE `charges` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `product` varchar(225) NOT NULL,
  `chargetype` varchar(225) NOT NULL,
  `triggertype` varchar(225) DEFAULT NULL,
  `amount` float DEFAULT NULL,
  `charge_option` varchar(225) NOT NULL,
  `currency` varchar(225) NOT NULL,
  `charge_payment_mode` varchar(225) NOT NULL,
  `penalty` varchar(3) NOT NULL,
  `active` varchar(3) NOT NULL,
  `allowOverride` varchar(3) NOT NULL,
  `recursive` varchar(225) DEFAULT NULL,
  `charge_frequency` varchar(225) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `charges`
--

INSERT INTO `charges` VALUES (1,'BVN validation','Savings','BVN Validation Fee','Per Transaction',NULL,'Flat','Nigerian naira','Regular','No','Yes','No','No',''),(2,'BVN validation','Loan','Guarantor BVN Fee','Per Transaction',NULL,'Flat','Nigerian naira','Regular','No','Yes','No','No',''),(3,'Passbook Sales','Loan','Passbook','Per Transaction',NULL,'Flat','Nigerian naira','Regular','No','Yes','No','No',''),(4,'Admin Fee','Loan','Disbursement Fee','Per Transaction',NULL,'Percentage','Nigerian naira','Regular','No','Yes','No','No',''),(5,'Account maintenance','Loan','Disbursement Fee','Per Transaction',NULL,'Flat','Nigerian naira','Regular','No','No','No','No',''),(6,'Branch council fund (liability)','Loan','Disbursement Fee','Per Transaction',NULL,'Flat','Nigerian naira','Regular','No','Yes','No','No',''),(7,'Insurance income','Loan','Disbursement Fee','Per Transaction',NULL,'Percentage','Nigerian naira','Regular','No','Yes','No','No',''),(8,'Insurance liability','Loan','Disbursement Fee','Per Transaction',NULL,'Percentage','Nigerian naira','Regular','No','Yes','No','No',''),(9,'SMS','Savings','Single SMS Fee','Per Transaction',NULL,'Flat','Nigerian naira','Regular','No','Yes','No','No',''),(10,'External tranfer','Savings','Outbound Transfer Fee','Per Transaction',NULL,'Flat','Nigerian naira','Regular','No','Yes','No','No','');

--
-- Table structure for table `cheque_templates`
--

CREATE TABLE `cheque_templates` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `description` varchar(225) DEFAULT NULL,
  `display_codes` varchar(1000) NOT NULL,
  `products` varchar(2000) DEFAULT NULL,
  `channels` varchar(225) DEFAULT NULL,
  `status` varchar(225) NOT NULL,
  `date_added` datetime NOT NULL,
  `modified_by` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `cheque_templates`
--


--
-- Table structure for table `city`
--

CREATE TABLE `city` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `state_id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `state_id` (`state_id`),
  KEY `name` (`name`),
  KEY `name_2` (`name`),
  CONSTRAINT `city_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `city`
--

INSERT INTO `city` VALUES (1,13,'Benin'),(2,25,'Ikeja');

--
-- Table structure for table `collateral_type`
--

CREATE TABLE `collateral_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `collateral_type`
--

INSERT INTO `collateral_type` VALUES (3,'Farm Produce'),(4,'House'),(1,'Land'),(2,'TV Set');

--
-- Table structure for table `collection_disbursement`
--

CREATE TABLE `collection_disbursement` (
  `id` bigint(225) NOT NULL AUTO_INCREMENT,
  `collection_id` bigint(20) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `account_no` varchar(225) NOT NULL,
  `amount` double NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Pending',
  `reason` varchar(225) DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `recovered_by` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `collection_id` (`collection_id`,`customer_id`,`account_no`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `collection_disbursement`
--


--
-- Table structure for table `collections`
--

CREATE TABLE `collections` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_id` bigint(20) NOT NULL,
  `created_by` varchar(225) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `relationship_manager` bigint(20) NOT NULL,
  `date` date NOT NULL,
  `total` float NOT NULL,
  `status` varchar(225) NOT NULL,
  `currency` varchar(225) NOT NULL DEFAULT 'NGN',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `offline_id` bigint(20) DEFAULT NULL,
  `channel` bigint(20) NOT NULL DEFAULT '6',
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`),
  KEY `branch` (`branch`),
  KEY `relationship_manager` (`relationship_manager`),
  KEY `date` (`date`),
  KEY `status` (`status`),
  KEY `created_by` (`created_by`),
  KEY `channel` (`channel`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `collections`
--


--
-- Table structure for table `compound_posted`
--

CREATE TABLE `compound_posted` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`date`),
  KEY `account_id_2` (`account_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `compound_posted`
--


--
-- Table structure for table `compounded_interest`
--

CREATE TABLE `compounded_interest` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `amount` decimal(65,4) NOT NULL,
  `datetime` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`datetime`),
  KEY `account_id_2` (`account_id`,`datetime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `compounded_interest`
--


--
-- Table structure for table `config_customer_type`
--

CREATE TABLE `config_customer_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `typename` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `config_customer_type`
--

INSERT INTO `config_customer_type` VALUES (25,'L0',3),(26,'L0',4),(27,'L0',5),(28,'L0',6),(37,'L1',3),(38,'L1',4),(39,'L1',5),(40,'L1',6),(41,'L4',3),(42,'L4',4),(43,'L4',5),(44,'L4',6),(45,'L5',3),(46,'L5',4),(47,'L5',5),(48,'L5',6),(53,'S1',3),(54,'S1',4),(55,'S1',5),(56,'S1',6),(57,'L2',3),(58,'L2',4),(59,'L2',5),(60,'L2',6);

--
-- Table structure for table `config_head_tellers`
--

CREATE TABLE `config_head_tellers` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `gl` bigint(20) NOT NULL,
  `htlimit` decimal(65,2) NOT NULL,
  `currency` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `config_head_tellers`
--


--
-- Table structure for table `config_tellers`
--

CREATE TABLE `config_tellers` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `gl` bigint(20) NOT NULL,
  `tlimit` decimal(65,2) NOT NULL,
  `slimit` decimal(65,2) NOT NULL,
  `olimit` decimal(65,2) NOT NULL,
  `currency` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `config_tellers`
--


--
-- Table structure for table `config_vaults`
--

CREATE TABLE `config_vaults` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `gl` bigint(20) NOT NULL,
  `vlimit` decimal(65,2) NOT NULL,
  `currency` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `config_vaults`
--


--
-- Table structure for table `control_gl`
--

CREATE TABLE `control_gl` (
  `inbound` bigint(20) DEFAULT NULL,
  `outbound` bigint(20) DEFAULT NULL,
  `interbranch_manual` bigint(20) DEFAULT NULL,
  `vault` bigint(20) DEFAULT NULL,
  `head_teller` bigint(20) DEFAULT NULL,
  `teller` varchar(225) DEFAULT NULL,
  `inbound_currency` varchar(225) NOT NULL DEFAULT '9',
  `outbound_currency` varchar(225) NOT NULL DEFAULT '9',
  `interbranch_manual_currency` varchar(225) NOT NULL DEFAULT '9',
  `vault_currency` varchar(225) NOT NULL DEFAULT '9',
  `head_teller_currency` varchar(225) NOT NULL DEFAULT '9',
  `teller_currency` varchar(225) NOT NULL DEFAULT '9',
  `vault_limit` decimal(65,2) DEFAULT NULL,
  `head_teller_limit` decimal(65,2) DEFAULT NULL,
  `teller_limit` decimal(65,2) DEFAULT NULL,
  `shortage_limit` decimal(65,2) DEFAULT NULL,
  `overage_limit` decimal(65,2) DEFAULT NULL,
  `declare_currency_denomination` varchar(3) DEFAULT NULL,
  `denomination` varchar(1000) DEFAULT NULL,
  `reserve` bigint(20) DEFAULT NULL,
  `profit_loss` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `control_gl`
--

INSERT INTO `control_gl` VALUES (NULL,105,NULL,4,21,'25                 ,                 26                 ,                 6','9','9','9','9','9','9',20000000.00,100000000.00,10000000.00,1.00,1.00,'Yes','1          ,          5          ,          10          ,          20          ,          50          ,          100          ,          200          ,          500          ,          1000',75,76);

--
-- Table structure for table `corporate_privilege`
--

CREATE TABLE `corporate_privilege` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `account_id` bigint(20) NOT NULL,
  `view_account` varchar(3) NOT NULL DEFAULT 'No',
  `transfer_initiate` varchar(3) NOT NULL DEFAULT 'No',
  `transfer_validate` varchar(3) NOT NULL DEFAULT 'No',
  `transfer_recommend` varchar(3) NOT NULL DEFAULT 'No',
  `transfer_approve` varchar(3) NOT NULL DEFAULT 'No',
  `digitalsservice_initiate` varchar(3) NOT NULL DEFAULT 'No',
  `digitalsservice_validate` varchar(3) NOT NULL DEFAULT 'No',
  `digitalsservice_recommend` varchar(3) NOT NULL DEFAULT 'No',
  `digitalsservice_approve` varchar(3) NOT NULL DEFAULT 'No',
  `pnd_activate` varchar(3) NOT NULL DEFAULT 'No',
  `pnd_deactivate` varchar(3) NOT NULL DEFAULT 'No',
  `token_request` varchar(3) NOT NULL DEFAULT 'No',
  `token_block` varchar(3) NOT NULL DEFAULT 'No',
  `token_unblock` varchar(3) NOT NULL DEFAULT 'No',
  `cheque_request` varchar(3) NOT NULL DEFAULT 'No',
  `cheque_block` varchar(3) NOT NULL DEFAULT 'No',
  `cheque_unblock` varchar(3) NOT NULL DEFAULT 'No',
  `standinginstruction_initiate` varchar(3) NOT NULL DEFAULT 'No',
  `standinginstruction_validate` varchar(3) NOT NULL DEFAULT 'No',
  `standinginstruction_recommend` varchar(3) NOT NULL DEFAULT 'No',
  `standinginstruction_approve` varchar(3) NOT NULL DEFAULT 'No',
  `standinginstruction_cancel` varchar(3) NOT NULL DEFAULT 'No',
  `lien_activate` varchar(3) NOT NULL DEFAULT 'No',
  `lien_deactivate` varchar(3) NOT NULL DEFAULT 'No',
  `account_statement` varchar(3) NOT NULL DEFAULT 'No',
  `set_transfer_limit` varchar(3) NOT NULL DEFAULT 'No',
  `atm_request` varchar(3) NOT NULL DEFAULT 'No',
  `atm_block` varchar(3) NOT NULL DEFAULT 'No',
  `atm_unblock` varchar(3) NOT NULL DEFAULT 'No',
  `date_added` datetime NOT NULL,
  `last_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`),
  KEY `account_id` (`account_id`,`date_added`,`modified_by`),
  KEY `account_id_2` (`account_id`,`date_added`,`modified_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `corporate_privilege`
--


--
-- Table structure for table `country`
--

CREATE TABLE `country` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `country`
--

INSERT INTO `country` VALUES (2,'Ghana'),(1,'Nigeria');

--
-- Table structure for table `currency`
--

CREATE TABLE `currency` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `shortcode` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `currency`
--

INSERT INTO `currency` VALUES (9,'Nigerian naira','NGN');

--
-- Table structure for table `currency_branches`
--

CREATE TABLE `currency_branches` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `currency_id` bigint(20) NOT NULL,
  `branch_name` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `currency_branches`
--

INSERT INTO `currency_branches` VALUES (42,9,1);

--
-- Table structure for table `currency_denominations`
--

CREATE TABLE `currency_denominations` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `deno` bigint(20) NOT NULL,
  `currency` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `currency_denominations`
--


--
-- Table structure for table `currencylist`
--

CREATE TABLE `currencylist` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `shortcode` varchar(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `shortcode` (`shortcode`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=163 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `currencylist`
--

INSERT INTO `currencylist` VALUES (1,'AED','United Arab Emirates dirham'),(2,'AFN','Afghan afghani'),(3,'ALL','Albanian lek'),(4,'AMD','Armenian dram'),(5,'ANG','Netherlands Antillean guilder'),(6,'AOA','Angolan kwanza'),(7,'ARS','Argentine peso'),(8,'AUD','Australian dollar'),(9,'AWG','Aruban florin'),(10,'AZN','Azerbaijani manat'),(11,'BAM','Bosnia and Herzegovina convertible mark'),(12,'BBD','Barbados dollar'),(13,'BDT','Bangladeshi taka'),(14,'BGN','Bulgarian lev'),(15,'BHD','Bahraini dinar'),(16,'BIF','Burundian franc'),(17,'BMD','Bermudian dollar'),(18,'BND','Brunei dollar'),(19,'BOB','Boliviano'),(20,'BRL','Brazilian real'),(21,'BSD','Bahamian dollar'),(22,'BTN','Bhutanese ngultrum'),(23,'BWP','Botswana pula'),(24,'BYN','New Belarusian ruble'),(25,'BYR','Belarusian ruble'),(26,'BZD','Belize dollar'),(27,'CAD','Canadian dollar'),(28,'CDF','Congolese franc'),(29,'CHF','Swiss franc'),(30,'CLF','Unidad de Fomento'),(31,'CLP','Chilean peso'),(32,'CNY','Renminbi|Chinese yuan'),(33,'COP','Colombian peso'),(34,'CRC','Costa Rican colon'),(35,'CUC','Cuban convertible peso'),(36,'CUP','Cuban peso'),(37,'CVE','Cape Verde escudo'),(38,'CZK','Czech koruna'),(39,'DJF','Djiboutian franc'),(40,'DKK','Danish krone'),(41,'DOP','Dominican peso'),(42,'DZD','Algerian dinar'),(43,'EGP','Egyptian pound'),(44,'ERN','Eritrean nakfa'),(45,'ETB','Ethiopian birr'),(46,'EUR','Euro'),(47,'FJD','Fiji dollar'),(48,'FKP','Falkland Islands pound'),(49,'GBP','Pound sterling'),(50,'GEL','Georgian lari'),(51,'GHS','Ghanaian cedi'),(52,'GIP','Gibraltar pound'),(53,'GMD','Gambian dalasi'),(54,'GNF','Guinean franc'),(55,'GTQ','Guatemalan quetzal'),(56,'GYD','Guyanese dollar'),(57,'HKD','Hong Kong dollar'),(58,'HNL','Honduran lempira'),(59,'HRK','Croatian kuna'),(60,'HTG','Haitian gourde'),(61,'HUF','Hungarian forint'),(62,'IDR','Indonesian rupiah'),(63,'ILS','Israeli new shekel'),(64,'INR','Indian rupee'),(65,'IQD','Iraqi dinar'),(66,'IRR','Iranian rial'),(67,'ISK','Icelandic króna'),(68,'JMD','Jamaican dollar'),(69,'JOD','Jordanian dinar'),(70,'JPY','Japanese yen'),(71,'KES','Kenyan shilling'),(72,'KGS','Kyrgyzstani som'),(73,'KHR','Cambodian riel'),(74,'KMF','Comoro franc'),(75,'KPW','North Korean won'),(76,'KRW','South Korean won'),(77,'KWD','Kuwaiti dinar'),(78,'KYD','Cayman Islands dollar'),(79,'KZT','Kazakhstani tenge'),(80,'LAK','Lao kip'),(81,'LBP','Lebanese pound'),(82,'LKR','Sri Lankan rupee'),(83,'LRD','Liberian dollar'),(84,'LSL','Lesotho loti'),(85,'LYD','Libyan dinar'),(86,'MAD','Moroccan dirham'),(87,'MDL','Moldovan leu'),(88,'MGA','Malagasy ariary'),(89,'MKD','Macedonian denar'),(90,'MMK','Myanmar kyat'),(91,'MNT','Mongolian tögrög'),(92,'MOP','Macanese pataca'),(93,'MRO','Mauritanian ouguiya'),(94,'MUR','Mauritian rupee'),(95,'MVR','Maldivian rufiyaa'),(96,'MWK','Malawian kwacha'),(97,'MXN','Mexican peso'),(98,'MXV','Mexican Unidad de Inversion'),(99,'MYR','Malaysian ringgit'),(100,'MZN','Mozambican metical'),(101,'NAD','Namibian dollar'),(102,'NGN','Nigerian naira'),(103,'NIO','Nicaraguan córdoba'),(104,'NOK','Norwegian krone'),(105,'NPR','Nepalese rupee'),(106,'NZD','New Zealand dollar'),(107,'OMR','Omani rial'),(108,'PAB','Panamanian balboa'),(109,'PEN','Peruvian Sol'),(110,'PGK','Papua New Guinean kina'),(111,'PHP','Philippine peso'),(112,'PKR','Pakistani rupee'),(113,'PLN','Polish złoty'),(114,'PYG','Paraguayan guaraní'),(115,'QAR','Qatari riyal'),(116,'RON','Romanian leu'),(117,'RSD','Serbian dinar'),(118,'RUB','Russian ruble'),(119,'RWF','Rwandan franc'),(120,'SAR','Saudi riyal'),(121,'SBD','Solomon Islands dollar'),(122,'SCR','Seychelles rupee'),(123,'SDG','Sudanese pound'),(124,'SEK','Swedish krona'),(125,'SGD','Singapore dollar'),(126,'SHP','Saint Helena pound'),(127,'SLL','Sierra Leonean leone'),(128,'SOS','Somali shilling'),(129,'SRD','Surinamese dollar'),(130,'SSP','South Sudanese pound'),(131,'STD','São Tomé and Príncipe dobra'),(132,'SVC','Salvadoran colón'),(133,'SYP','Syrian pound'),(134,'SZL','Swazi lilangeni'),(135,'THB','Thai baht'),(136,'TJS','Tajikistani somoni'),(137,'TMT','Turkmenistani manat'),(138,'TND','Tunisian dinar'),(139,'TOP','Tongan paʻanga'),(140,'TRY','Turkish lira'),(141,'TTD','Trinidad and Tobago dollar'),(142,'TWD','New Taiwan dollar'),(143,'TZS','Tanzanian shilling'),(144,'UAH','Ukrainian hryvnia'),(145,'UGX','Ugandan shilling'),(146,'USD','United States dollar'),(147,'UYI','Uruguay Peso en Unidades Indexadas'),(148,'UYU','Uruguayan peso'),(149,'UZS','Uzbekistan som'),(150,'VEF','Venezuelan bolívar'),(151,'VND','Vietnamese đồng'),(152,'VUV','Vanuatu vatu'),(153,'WST','Samoan tala'),(154,'XAF','Central African CFA franc'),(155,'XCD','East Caribbean dollar'),(156,'XOF','West African CFA franc'),(157,'XPF','CFP franc'),(158,'XXX','No currency'),(159,'YER','Yemeni rial'),(160,'ZAR','South African rand'),(161,'ZMW','Zambian kwacha'),(162,'ZWL','Zimbabwean dollar');

--
-- Table structure for table `currentproduct`
--

CREATE TABLE `currentproduct` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_type` varchar(225) NOT NULL,
  `name` varchar(225) NOT NULL,
  `sname` varchar(225) NOT NULL,
  `productGroup` varchar(225) DEFAULT NULL,
  `description` varchar(225) DEFAULT NULL,
  `toDecimalPlace` bigint(20) DEFAULT NULL,
  `nominalRate` double DEFAULT NULL,
  `automaticOpeningBalance` double DEFAULT NULL,
  `autoCreate` varchar(225) DEFAULT NULL,
  `currency` varchar(225) DEFAULT NULL,
  `compoundPeriod` varchar(225) DEFAULT NULL,
  `interestPostingPeriodType` varchar(225) DEFAULT NULL,
  `interestCalculationType` varchar(225) DEFAULT NULL,
  `interestCalculationDaysInYearType` varchar(225) DEFAULT NULL,
  `minimumBalInterestCal` double DEFAULT NULL,
  `minimumPositiveBalance` double DEFAULT NULL,
  `minimumNegativeBalance` double DEFAULT NULL,
  `lockingPeriod` varchar(225) DEFAULT NULL,
  `lockingPeriodType` varchar(225) NOT NULL,
  `allowOverdraft` varchar(225) DEFAULT NULL,
  `trackDormancy` varchar(225) DEFAULT NULL,
  `enableWithdrawalNotice` varchar(225) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `accounting_rule` varchar(225) DEFAULT NULL,
  `saving_reference` varchar(1000) DEFAULT NULL,
  `overdraft_portfolio` varchar(1000) DEFAULT NULL,
  `saving_control` varchar(1000) DEFAULT NULL,
  `interest_on_savings` varchar(1000) DEFAULT NULL,
  `write_off_account` varchar(1000) DEFAULT NULL,
  `expense_small_negative_balance` varchar(1000) DEFAULT NULL,
  `income_from_fees` varchar(1000) DEFAULT NULL,
  `income_from_penalties` varchar(1000) DEFAULT NULL,
  `income_from_interest` varchar(1000) DEFAULT NULL,
  `income_from_small_positive_balance` varchar(1000) DEFAULT NULL,
  `escheat_control` varchar(1000) DEFAULT NULL,
  `lastupdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(225) DEFAULT 'Active',
  `minAmount` double DEFAULT NULL,
  `maxAmount` double DEFAULT NULL,
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`,`sname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `currentproduct`
--


--
-- Table structure for table `customer`
--

CREATE TABLE `customer` (
  `customer_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `ctype` bigint(20) NOT NULL,
  `fname` varchar(225) NOT NULL,
  `mname` varchar(225) DEFAULT NULL,
  `lname` varchar(225) NOT NULL,
  `company_name` varchar(225) DEFAULT NULL,
  `company_reg_no` varchar(225) DEFAULT NULL,
  `creation_date_time` date NOT NULL,
  `date_of_birth` date NOT NULL,
  `gender` varchar(225) NOT NULL,
  `marital_status` varchar(225) NOT NULL,
  `primary_relationship_manager` varchar(225) NOT NULL,
  `secondary_relationship_manager` varchar(225) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `primary_branch` bigint(20) DEFAULT NULL,
  `group_id` bigint(20) DEFAULT NULL,
  `channel` bigint(20) NOT NULL,
  `main_sector` varchar(225) DEFAULT NULL,
  `sub_sector` varchar(225) DEFAULT NULL,
  `business_scale` varchar(225) DEFAULT NULL,
  `social_class` varchar(225) DEFAULT NULL,
  `referrer` varchar(225) DEFAULT NULL,
  `phone_no` varchar(225) DEFAULT NULL,
  `phone_no_sec` varchar(225) DEFAULT NULL,
  `email` varchar(225) DEFAULT NULL,
  `address` varchar(1000) DEFAULT NULL,
  `address_type` varchar(225) DEFAULT NULL,
  `country` varchar(225) DEFAULT NULL,
  `state` varchar(225) DEFAULT NULL,
  `city` varchar(225) DEFAULT NULL,
  `passport_photo` varchar(1000) DEFAULT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Open' COMMENT 'Open, Closed, Pending',
  `date_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `open_date` date DEFAULT NULL,
  `closed_date` date DEFAULT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `closed_by` bigint(20) DEFAULT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `create_datetime` datetime DEFAULT NULL,
  `offline_id` bigint(20) DEFAULT NULL,
  `updated_photo` varchar(1000) DEFAULT NULL,
  `photo_change` bigint(1) NOT NULL DEFAULT '0',
  `migration_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`customer_id`),
  KEY `migration_id` (`migration_id`),
  KEY `ctype` (`ctype`),
  KEY `fname` (`fname`),
  KEY `mname` (`mname`),
  KEY `lname` (`lname`),
  KEY `creation_date_time` (`creation_date_time`),
  KEY `secondary_relationship_manager` (`secondary_relationship_manager`),
  KEY `branch` (`branch`),
  KEY `group_id` (`group_id`),
  KEY `phone_no` (`phone_no`),
  KEY `status` (`status`),
  KEY `created_by` (`created_by`),
  KEY `email` (`email`),
  KEY `gender` (`gender`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `customer`
--

INSERT INTO `customer` VALUES (1,4,'Ogo','','CXhuks','','','2023-01-02','1980-01-01','Female','Married','8','10',10,7,1,6,'1','0','3','2','1','08030000000','','','No','Home','1','11',NULL,'PassportPhotos/Ogo64be5f5c8e002.png','Open','2023-07-24 12:36:44',NULL,NULL,7,NULL,NULL,'2023-07-24 12:24:12',NULL,NULL,0,NULL),(2,4,'Helen','','Lawal','','','2023-01-02','1990-02-06','Female','Single','8','10',10,7,1,6,'1','0','1','2','3',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Open','2023-07-24 12:36:44',NULL,NULL,7,NULL,NULL,'2023-07-24 12:24:33',NULL,NULL,0,NULL),(3,4,'Faith','','Abhulimen','','','2023-01-02','1975-07-24','Female','Married','8','10',10,7,1,6,'1','0','1','2','2','07084598754','','','Ojo Street','Home','1','13','1','PassportPhotos/Faith64be5f9c6e3e6.png','Open','2023-07-24 12:36:44',NULL,NULL,7,NULL,NULL,'2023-07-24 12:25:16',NULL,NULL,0,NULL),(4,4,'Grace','','Adewale','','','2023-01-02','1984-07-24','Female','Married','8','10',10,7,1,6,'1','0','2','2','2','08066278484','','','20 Edo street off Medical','Home','1','13','1',NULL,'Open','2023-07-24 12:36:44',NULL,NULL,7,NULL,NULL,'2023-07-24 12:25:28',NULL,NULL,0,NULL),(5,4,'Daniel','','Daniel','','','2023-01-02','1985-05-05','Male','Married','8','10',10,7,1,6,'1','0','2','2','1','08122335564','','','benin','Home','1','13','1','PassportPhotos/Daniel64be5fe01f5ff.png','Open','2023-07-24 12:36:44',NULL,NULL,7,NULL,NULL,'2023-07-24 12:26:24',NULL,NULL,0,NULL),(6,4,'Matthew','','James','','','2023-01-02','1997-12-05','Male','Single','8','10',10,7,1,6,'1','0','2','2','2','08145844265','','','benin road','Home','1','13','1',NULL,'Open','2023-07-24 12:36:44',NULL,NULL,7,NULL,NULL,'2023-07-24 12:26:28',NULL,NULL,0,NULL),(7,4,'Obadiora','','John','','','2023-01-02','1980-01-07','Female','Married','8','8',7,7,4,6,'1','0','3','2','2','08030000045','','','No','Home','1','13','1','PassportPhotos/Obadiora64be7350ae44c.png','Open','2023-07-24 13:05:05',NULL,NULL,7,NULL,NULL,'2023-07-24 13:49:20',NULL,NULL,0,NULL),(8,4,'Blessing','','Oba','','','2023-01-02','1984-07-24','Female','Married','8','8',7,7,3,6,'1','0','2','2','2','08066848457','','','25 Edosa street off Medical stores','Home','1','13','1',NULL,'Open','2023-07-24 12:52:45',NULL,NULL,7,NULL,NULL,'2023-07-24 13:52:45',NULL,NULL,0,NULL),(9,4,'Yakubu','','Blessing','','','2023-01-02','1997-12-05','Female','Single','8','8',7,7,3,6,'1','0','2','2','2','08152442652','','','benin 1','Home','1','13','1',NULL,'Open','2023-07-24 12:53:42',NULL,NULL,7,NULL,NULL,'2023-07-24 13:53:42',NULL,NULL,0,NULL),(10,4,'DAniel','','Michika','','','2023-01-02','1986-05-05','Male','Married','8','8',7,7,3,6,'1','0','1','2','1','09062621456','','','benin','Home','1','13','1','PassportPhotos/DAniel64be745722351.png','Open','2023-07-24 12:53:43',NULL,NULL,7,NULL,NULL,'2023-07-24 13:53:43',NULL,NULL,0,NULL),(11,4,'Adesuwa','','ego','','','2023-01-02','1980-10-10','Female','Married','8','8',7,7,4,6,'1','0','2','2','2','08145059188','','','abak','Home','1','4',NULL,NULL,'Open','2023-07-24 13:05:06',NULL,NULL,7,NULL,NULL,'2023-07-24 13:54:06',NULL,NULL,0,NULL),(12,4,'Dee Dee','','Ajiri','','','2023-01-02','1986-05-05','Male','Married','8','8',7,7,4,6,'1','0','1','2','1','08165897485','','','edo ','Home','1','13','1','PassportPhotos/DAniel64be762ad6b51.png','Open','2023-07-24 13:05:05',NULL,NULL,7,NULL,NULL,'2023-07-24 14:01:30',NULL,NULL,0,NULL),(13,4,'Esther','','Moses','','','2023-01-02','1997-12-05','Female','Married','8','8',7,7,4,6,'1','0','2','2','2','08156752345','','','Benin 1','Home','1','13','1',NULL,'Open','2023-07-24 13:05:05',NULL,NULL,7,NULL,NULL,'2023-07-24 14:01:37',NULL,NULL,0,NULL),(14,4,'Blessing','','Idemudia','','','2023-01-02','1986-07-24','Female','Married','8','8',7,7,4,6,'1','0','2','2','2','08145457874','','','30 Isibor street ','Home','1','13','1',NULL,'Open','2023-07-24 13:05:05',NULL,NULL,7,NULL,NULL,'2023-07-24 14:01:49',NULL,NULL,0,NULL),(15,4,'Ada','ajayi','pat','','','2023-01-02','1980-10-10','Male','Married','8','8',7,7,4,6,'1','0','1','2','2','08145059187','','','road','Home','1','4',NULL,NULL,'Open','2023-07-24 13:05:06',NULL,NULL,7,NULL,NULL,'2023-07-24 14:02:22',NULL,NULL,0,NULL),(16,4,'Faith','','Opume','','','2023-01-02','1995-07-18','Female','Married','8','8',7,7,4,6,'1','0','1','2','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'PassportPhotos/Faith64be76955a228.png','Open','2023-07-24 13:05:06',NULL,NULL,7,NULL,NULL,'2023-07-24 14:03:17',NULL,NULL,0,NULL),(17,4,'Blessing','','Godwin','','','2023-01-02','1997-12-05','Female','Single','8','8',7,7,0,6,'1','0','2','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Open','2023-07-24 13:05:47',NULL,NULL,7,NULL,NULL,'2023-07-24 14:05:47',NULL,NULL,0,NULL),(18,4,'David','','Samson','','','2023-01-02','2000-02-08','Male','Single','8','8',7,7,0,6,'1','0','1','2','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Open','2023-07-24 13:26:42',NULL,NULL,7,NULL,NULL,'2023-07-24 14:26:42',NULL,NULL,0,NULL),(19,4,'NOAH','','AKPOVEGHO','','','2023-07-10','1985-06-12','Male','Married','8','8',7,7,0,6,'1','0','1','2','3','08038786721','','osaschris6@yahoo.com','1 Dawson road','Home','1','13','1',NULL,'Open','2023-07-25 15:34:21',NULL,NULL,7,NULL,NULL,'2023-07-25 16:34:21',NULL,NULL,0,NULL);

--
-- Table structure for table `customer_token`
--

CREATE TABLE `customer_token` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `serial_number` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active',
  `expiry_date` date DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`status`,`expiry_date`),
  KEY `user_id_2` (`user_id`,`status`,`expiry_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `customer_token`
--


--
-- Table structure for table `customer_transfers`
--

CREATE TABLE `customer_transfers` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `releasing_office` bigint(20) DEFAULT NULL,
  `destination_office` bigint(20) DEFAULT NULL,
  `releasing_group` bigint(20) DEFAULT NULL,
  `destination_group` bigint(20) DEFAULT NULL,
  `releasing_officer` bigint(20) DEFAULT NULL,
  `destination_officer` bigint(20) DEFAULT NULL,
  `tr_accounts` varchar(1000) DEFAULT NULL,
  `status` varchar(225) NOT NULL COMMENT 'Approved, Pending',
  `value_date` date NOT NULL,
  `submited_by` bigint(20) NOT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `approved_on` date DEFAULT NULL,
  `reversed_by` bigint(20) DEFAULT NULL,
  `reversed_on` date DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `customer_id` (`customer_id`,`releasing_office`,`destination_office`,`releasing_group`,`destination_group`,`releasing_officer`,`destination_officer`,`status`,`value_date`,`submited_by`,`approved_by`,`approved_on`,`reversed_by`,`reversed_on`) USING BTREE,
  KEY `customer_id_2` (`customer_id`,`releasing_office`,`destination_office`,`releasing_group`,`destination_group`,`releasing_officer`,`destination_officer`,`status`,`value_date`,`submited_by`,`approved_by`,`approved_on`,`reversed_by`,`reversed_on`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `customer_transfers`
--

INSERT INTO `customer_transfers` VALUES (1,1,7,10,1,0,8,10,NULL,'Approved','2023-01-02',11,11,'2023-01-02',NULL,NULL,'2023-07-24 12:36:44'),(2,2,7,10,1,0,8,10,NULL,'Approved','2023-01-02',11,11,'2023-01-02',NULL,NULL,'2023-07-24 12:36:44'),(3,3,7,10,1,0,8,10,NULL,'Approved','2023-01-02',11,11,'2023-01-02',NULL,NULL,'2023-07-24 12:36:44'),(4,4,7,10,1,0,8,10,NULL,'Approved','2023-01-02',11,11,'2023-01-02',NULL,NULL,'2023-07-24 12:36:44'),(5,5,7,10,1,0,8,10,NULL,'Approved','2023-01-02',11,11,'2023-01-02',NULL,NULL,'2023-07-24 12:36:44'),(6,6,7,10,1,0,8,10,NULL,'Approved','2023-01-02',11,11,'2023-01-02',NULL,NULL,'2023-07-24 12:36:44');

--
-- Table structure for table `customer_update`
--

CREATE TABLE `customer_update` (
  `customer_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `up_customer_id` bigint(20) NOT NULL,
  `ctype` bigint(20) NOT NULL,
  `fname` varchar(225) NOT NULL,
  `mname` varchar(225) DEFAULT NULL,
  `lname` varchar(225) NOT NULL,
  `company_name` varchar(225) DEFAULT NULL,
  `company_reg_no` varchar(225) DEFAULT NULL,
  `creation_date_time` date NOT NULL,
  `date_of_birth` date NOT NULL,
  `gender` varchar(225) NOT NULL,
  `marital_status` varchar(225) NOT NULL,
  `primary_relationship_manager` varchar(225) NOT NULL,
  `secondary_relationship_manager` varchar(225) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `primary_branch` bigint(20) DEFAULT NULL,
  `group_id` bigint(20) DEFAULT NULL,
  `channel` bigint(20) NOT NULL,
  `main_sector` varchar(225) DEFAULT NULL,
  `sub_sector` varchar(225) DEFAULT NULL,
  `business_scale` varchar(225) DEFAULT NULL,
  `social_class` varchar(225) DEFAULT NULL,
  `referrer` varchar(225) DEFAULT NULL,
  `phone_no` varchar(225) DEFAULT NULL,
  `phone_no_sec` varchar(225) DEFAULT NULL,
  `email` varchar(225) DEFAULT NULL,
  `address` varchar(1000) DEFAULT NULL,
  `address_type` varchar(225) DEFAULT NULL,
  `country` varchar(225) DEFAULT NULL,
  `state` varchar(225) DEFAULT NULL,
  `city` varchar(225) DEFAULT NULL,
  `passport_photo` varchar(1000) DEFAULT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Open' COMMENT 'Open, Closed, Pending',
  `date_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `open_date` date DEFAULT NULL,
  `closed_date` date DEFAULT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `closed_by` bigint(20) DEFAULT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `create_datetime` datetime DEFAULT NULL,
  `offline_id` bigint(20) DEFAULT NULL,
  `updated_photo` varchar(1000) DEFAULT NULL,
  `photo_change` bigint(1) NOT NULL DEFAULT '0',
  `is_used` bigint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`customer_id`),
  KEY `up_customer_id` (`up_customer_id`),
  KEY `up_customer_id_2` (`up_customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `customer_update`
--


--
-- Table structure for table `customer_user`
--

CREATE TABLE `customer_user` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `role` bigint(20) NOT NULL,
  `username` varchar(225) NOT NULL,
  `password` varchar(1000) NOT NULL,
  `pin` varchar(1000) DEFAULT NULL,
  `fname` varchar(225) DEFAULT NULL,
  `lname` varchar(225) DEFAULT NULL,
  `status` varchar(225) NOT NULL,
  `photo` varchar(1000) DEFAULT NULL,
  `is_authenticate` bigint(1) NOT NULL DEFAULT '0',
  `us_agent` varchar(1000) DEFAULT NULL,
  `ist_log` bigint(1) NOT NULL DEFAULT '1' COMMENT '1- Not Logged, 2- Logged',
  `last_updated_password` datetime NOT NULL,
  `created_by` bigint(20) NOT NULL,
  `date_created` datetime NOT NULL,
  `modified_by` bigint(20) DEFAULT NULL,
  `date_modified` datetime DEFAULT NULL,
  `last_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `customer_id` (`customer_id`,`role`,`status`,`created_by`,`modified_by`),
  KEY `customer_id_2` (`customer_id`,`role`,`status`,`created_by`,`modified_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `customer_user`
--


--
-- Table structure for table `customertype`
--

CREATE TABLE `customertype` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `description` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `customertype`
--

INSERT INTO `customertype` VALUES (3,'Corporate','Corporate Customers','Active','2021-06-10 18:57:44'),(4,'Individual','Individual test','Active','2021-06-10 18:57:44'),(5,'Staff','Employee','Active','2022-11-22 20:14:00'),(6,'Bank','This is a customer that holds other banks transactions','Active','2022-11-22 20:14:04');

--
-- Table structure for table `dashboard_show`
--

CREATE TABLE `dashboard_show` (
  `id` bigint(100) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `user_role` bigint(20) NOT NULL,
  `outstanding_principal` decimal(65,4) DEFAULT NULL,
  `outstanding_principal_interest` decimal(65,4) DEFAULT NULL,
  `cleared_loans` decimal(65,4) DEFAULT NULL,
  `total_deposit` decimal(65,4) DEFAULT NULL,
  `active_customers` bigint(20) DEFAULT NULL,
  `active_loans` bigint(20) DEFAULT NULL,
  `total_loan_bal` decimal(65,4) DEFAULT NULL,
  `total_savings` decimal(65,4) DEFAULT NULL,
  `total_overdue` decimal(65,4) DEFAULT NULL,
  `all_customers` bigint(20) DEFAULT NULL,
  `closed_customers` bigint(20) DEFAULT NULL,
  `jan` bigint(20) DEFAULT NULL,
  `feb` bigint(20) DEFAULT NULL,
  `mar` bigint(20) DEFAULT NULL,
  `apr` bigint(20) DEFAULT NULL,
  `may` bigint(20) DEFAULT NULL,
  `jun` bigint(20) DEFAULT NULL,
  `jul` bigint(20) DEFAULT NULL,
  `aug` bigint(20) DEFAULT NULL,
  `sep` bigint(20) DEFAULT NULL,
  `oct` bigint(20) DEFAULT NULL,
  `nov` bigint(20) DEFAULT NULL,
  `decm` bigint(20) DEFAULT NULL,
  `status` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`),
  KEY `user_role` (`user_role`),
  KEY `status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `dashboard_show`
--

INSERT INTO `dashboard_show` VALUES (1,1,1,200000.0000,239310.0000,245240.0000,30086.0000,19,2,239310.0000,30086.0000,0.0000,19,0,18,0,0,0,0,0,1,0,0,0,0,0,'Completed','2023-07-26 12:40:02'),(2,7,106,0.0000,0.0000,0.0000,0.0000,0,0,0.0000,0.0000,0.0000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'Completed','2023-07-27 12:25:27'),(3,11,106,0.0000,0.0000,0.0000,0.0000,0,0,0.0000,0.0000,0.0000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'Completed','2023-07-24 12:30:57'),(4,12,108,0.0000,0.0000,0.0000,0.0000,0,0,0.0000,0.0000,0.0000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'Completed','2023-07-25 17:43:52'),(5,6,105,0.0000,0.0000,0.0000,0.0000,0,0,0.0000,0.0000,0.0000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'Completed','2023-07-25 17:45:06');

--
-- Table structure for table `date_type_settings`
--

CREATE TABLE `date_type_settings` (
  `value` varchar(225) NOT NULL DEFAULT 'Automatic' COMMENT 'Automatic, Manual',
  `allow_prd_reopen` varchar(225) NOT NULL DEFAULT 'Yes',
  `allow_sd_reopen` varchar(225) NOT NULL DEFAULT 'Yes',
  `allow_bd_reopen` varchar(225) NOT NULL DEFAULT 'Yes',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `book_closure_method` varchar(225) NOT NULL DEFAULT 'EOY',
  `enable_force_closure` varchar(225) NOT NULL DEFAULT 'No'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `date_type_settings`
--

INSERT INTO `date_type_settings` VALUES ('Manual','No','Yes','Yes','2023-07-25 15:28:05','EOY','Yes');

--
-- Table structure for table `default_ranges`
--

CREATE TABLE `default_ranges` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `value` varchar(225) NOT NULL,
  `label` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `default_ranges`
--

INSERT INTO `default_ranges` VALUES (1,'1-5000','1-5,000'),(2,'5001-10000','5,001-10,000'),(3,'10001-20000','10,001-20,000'),(4,'20001-50000','20,001-50,000'),(5,'50001-100000','50,001-100,000'),(6,'100001-500000','100,001-500,000'),(7,'500001-1000000','500,001-1,000,000'),(8,'1000001-3000000','1,000,001-3,000,000'),(9,'3000001-5000000','3,000,001-5,000,000'),(10,'5000001-10000000','5,000,001-10,000,000'),(11,'10000001-50000000','10,000,001-50,000,000'),(12,'50000001-100000000','50,000,001-100,000,000');

--
-- Table structure for table `disposal_reasons`
--

CREATE TABLE `disposal_reasons` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`),
  KEY `name_2` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `disposal_reasons`
--


--
-- Table structure for table `documents`
--

CREATE TABLE `documents` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  `doc_link` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `customer_id` (`customer_id`,`name`),
  KEY `customer_id_2` (`customer_id`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `documents`
--

INSERT INTO `documents` VALUES (1,1,'Signature','Documents/64be5f5c9b353.png'),(2,3,'Signature','Documents/64be5f9c7b5d3.png'),(3,5,'Signature','Documents/64be5fe02cc47.png'),(4,7,'Signature','Documents/64be7350ba7e0.png'),(5,10,'Signature','Documents/64be74572e931.png'),(6,12,'Signature','Documents/64be762ae2bce.png'),(7,16,'Signature','Documents/64be76956cf6a.png');

--
-- Table structure for table `documents_old`
--

CREATE TABLE `documents_old` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `doc_id` bigint(20) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  `doc_link` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `doc_id` (`doc_id`,`customer_id`),
  KEY `doc_id_2` (`doc_id`,`customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `documents_old`
--


--
-- Table structure for table `egis_transfer_accounts`
--

CREATE TABLE `egis_transfer_accounts` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `account_no` varchar(10) NOT NULL,
  `account_name` varchar(225) NOT NULL,
  `bank_code` varchar(225) NOT NULL,
  `egis_paystack_id` varchar(225) DEFAULT NULL,
  `recipient_code` varchar(225) DEFAULT NULL,
  `egis_paystack_date` varchar(225) DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `customer_id` (`customer_id`,`account_no`,`bank_code`),
  KEY `customer_id_2` (`customer_id`,`account_no`,`bank_code`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `egis_transfer_accounts`
--

INSERT INTO `egis_transfer_accounts` VALUES (1,19,'2122207000','OVBIAGELE JOB','033','57542289','RCP_56gqilzfbdwfi58','2023-07-25T16:02:39.734Z','2023-07-25 16:02:39');

--
-- Table structure for table `email_alert`
--

CREATE TABLE `email_alert` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `email` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(8) NOT NULL DEFAULT 'Active',
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  KEY `account_id` (`account_id`),
  KEY `account_id_2` (`account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `email_alert`
--


--
-- Table structure for table `emergency_releaf`
--

CREATE TABLE `emergency_releaf` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `extend_by` bigint(20) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Pending',
  `datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `start_date` (`start_date`),
  KEY `end_date` (`end_date`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `emergency_releaf`
--


--
-- Table structure for table `emergency_releaf_processed`
--

CREATE TABLE `emergency_releaf_processed` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `er_id` bigint(20) NOT NULL,
  `loan_id` bigint(20) NOT NULL,
  `schedule_id` bigint(20) NOT NULL,
  `old_date` date NOT NULL,
  `new_date` date NOT NULL,
  `datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `loan_id` (`loan_id`),
  KEY `er_id` (`er_id`),
  KEY `schedule_id` (`schedule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `emergency_releaf_processed`
--


--
-- Table structure for table `entities`
--

CREATE TABLE `entities` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `entities`
--

INSERT INTO `entities` VALUES (35,'Accounts'),(43,'Activities'),(50,'Branch'),(56,'Campaign Birthdays'),(57,'Campaign Holidays'),(51,'Configuration: Charges'),(52,'Configuration: Chart of Accounts'),(42,'Configuration: Currency'),(62,'Configuration: Customer'),(45,'Configuration: Holiday'),(37,'Configuration: Role'),(39,'Configuration: Template'),(36,'Configuration: User'),(38,'Configuration: Workday'),(1,'Customer'),(54,'Dashboard'),(48,'Dates & Periods'),(59,'Egis Services'),(65,'Fixed Asset'),(28,'Group'),(46,'Identification'),(53,'Manual Journal Entry'),(49,'Miscellaneous'),(61,'Policies'),(27,'Product'),(64,'Public Facing'),(47,'Reports'),(44,'Service: Loan Autosweep'),(55,'SMS'),(63,'System'),(60,'Tellering'),(41,'Transaction: Deposit'),(34,'Transaction: Loan'),(40,'Transaction: Reversal'),(58,'Workflow');

--
-- Table structure for table `er_branches`
--

CREATE TABLE `er_branches` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `er_id` bigint(20) NOT NULL,
  `branch` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `er_id` (`er_id`),
  KEY `branch` (`branch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `er_branches`
--


--
-- Table structure for table `escheat`
--

CREATE TABLE `escheat` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `balance` decimal(65,4) NOT NULL,
  `datetime` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`datetime`),
  KEY `account_id_2` (`account_id`,`datetime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `escheat`
--


--
-- Table structure for table `faq`
--

CREATE TABLE `faq` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `title` varchar(1000) NOT NULL,
  `description` varchar(3000) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `faq`
--


--
-- Table structure for table `financial_periods`
--

CREATE TABLE `financial_periods` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `start_date` date NOT NULL,
  `closed_date` date DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Open' COMMENT 'Open, Closed',
  `created_by` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `start_date` (`start_date`,`closed_date`,`status`),
  KEY `start_date_2` (`start_date`,`closed_date`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `financial_periods`
--

INSERT INTO `financial_periods` VALUES (1,'2023-01-02',NULL,'Open',1,'2023-07-24 10:56:32');

--
-- Table structure for table `fixed_asset_config`
--

CREATE TABLE `fixed_asset_config` (
  `minimum_asset_amount` decimal(65,4) DEFAULT NULL,
  `expensed_amount` decimal(65,4) DEFAULT NULL,
  `useful_property` bigint(20) DEFAULT NULL,
  `useful_equipment` bigint(20) DEFAULT NULL,
  `useful_plant` bigint(20) DEFAULT NULL,
  `cash_gl` bigint(20) DEFAULT NULL,
  `property_gl` bigint(20) DEFAULT NULL,
  `equipment_gl` bigint(20) DEFAULT NULL,
  `plant_gl` bigint(20) DEFAULT NULL,
  `salvage_property` decimal(65,4) DEFAULT NULL,
  `salvage_amount_property` varchar(225) DEFAULT NULL,
  `salvage_amount_type_property` varchar(225) DEFAULT NULL,
  `salvage_equipment` decimal(65,4) DEFAULT NULL,
  `salvage_amount_equipment` varchar(225) DEFAULT NULL,
  `salvage_amount_type_equipment` varchar(225) DEFAULT NULL,
  `salvage_plant` decimal(65,4) DEFAULT NULL,
  `salvage_amount_plant` varchar(225) DEFAULT NULL,
  `salvage_amount_type_plant` varchar(225) DEFAULT NULL,
  `depreciation_frequency` varchar(225) DEFAULT NULL,
  `depreciation_frequency_type` varchar(225) DEFAULT NULL,
  `accumulated_depreciation_credit_gl` bigint(20) DEFAULT NULL,
  `accumulated_depreciation_expense_debit_gl` bigint(20) DEFAULT NULL,
  `inter_branch_asset_transfer` bigint(20) NOT NULL DEFAULT '0',
  `disposal_option` varchar(225) NOT NULL DEFAULT '0',
  `disposal_gl` bigint(20) NOT NULL,
  `disposal_profit_gl` bigint(20) NOT NULL DEFAULT '0',
  `disposal_loss_gl` bigint(20) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `fixed_asset_config`
--

INSERT INTO `fixed_asset_config` VALUES (10000.0000,100000.0000,2,2,2,4,6,21,23,5000.0000,'Open','Percentage',5000.0000,'Fixed','Percentage',5000.0000,'Fixed','Percentage','Yearly','Fixed',25,10,31,'Asset Value',0,15,20);

--
-- Table structure for table `floatproduct`
--

CREATE TABLE `floatproduct` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_type` varchar(225) NOT NULL,
  `name` varchar(225) NOT NULL,
  `sname` varchar(225) NOT NULL,
  `productGroup` varchar(225) DEFAULT NULL,
  `description` varchar(225) DEFAULT NULL,
  `toDecimalPlace` bigint(20) DEFAULT NULL,
  `nominalRate` double DEFAULT NULL,
  `automaticOpeningBalance` double DEFAULT NULL,
  `autoCreate` varchar(225) DEFAULT NULL,
  `currency` varchar(225) DEFAULT NULL,
  `compoundPeriod` varchar(225) DEFAULT NULL,
  `interestPostingPeriodType` varchar(225) DEFAULT NULL,
  `interestCalculationType` varchar(225) DEFAULT NULL,
  `interestCalculationDaysInYearType` varchar(225) DEFAULT NULL,
  `minimumBalInterestCal` double DEFAULT NULL,
  `minimumPositiveBalance` double DEFAULT NULL,
  `minimumNegativeBalance` double DEFAULT NULL,
  `lockingPeriod` varchar(225) DEFAULT NULL,
  `lockingPeriodType` varchar(225) NOT NULL,
  `allowOverdraft` varchar(225) DEFAULT NULL,
  `trackDormancy` varchar(225) DEFAULT NULL,
  `enableWithdrawalNotice` varchar(225) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `accounting_rule` varchar(225) DEFAULT NULL,
  `saving_reference` varchar(1000) DEFAULT NULL,
  `overdraft_portfolio` varchar(1000) DEFAULT NULL,
  `saving_control` varchar(1000) DEFAULT NULL,
  `interest_on_savings` varchar(1000) DEFAULT NULL,
  `write_off_account` varchar(1000) DEFAULT NULL,
  `expense_small_negative_balance` varchar(1000) DEFAULT NULL,
  `income_from_fees` varchar(1000) DEFAULT NULL,
  `income_from_penalties` varchar(1000) DEFAULT NULL,
  `income_from_interest` varchar(1000) DEFAULT NULL,
  `income_from_small_positive_balance` varchar(1000) DEFAULT NULL,
  `escheat_control` varchar(1000) DEFAULT NULL,
  `lastupdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(225) DEFAULT 'Active',
  `minAmount` double DEFAULT NULL,
  `maxAmount` double DEFAULT NULL,
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`,`sname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `floatproduct`
--


--
-- Table structure for table `globalproducts`
--

CREATE TABLE `globalproducts` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `type` varchar(225) NOT NULL,
  `name` varchar(225) NOT NULL,
  `description` varchar(225) NOT NULL,
  `productGroup` varchar(225) NOT NULL,
  `start_date` date NOT NULL,
  `global_pid` varchar(225) DEFAULT NULL,
  `migration_id` varchar(1000) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `global_pid` (`global_pid`),
  KEY `product_id` (`product_id`),
  KEY `type` (`type`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `globalproducts`
--

INSERT INTO `globalproducts` VALUES (1,'1','Savings','Regular Savings','Regular Savings','','2005-06-07','S1',NULL),(2,'1','Loan','Agric Loan Monthly','Agric Loan Monthly','','2000-02-01','L1',NULL),(3,'2','Loan','Regular loan weekly','Regular loan weekly','','2000-02-01','L2',NULL),(5,'4','Loan','Clean Energy','Clean Energy','','1990-02-06','L4',NULL),(6,'5','Loan','Support Loan','Support Loan','','2000-02-01','L5',NULL);

--
-- Table structure for table `group_accounts`
--

CREATE TABLE `group_accounts` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_id` bigint(20) NOT NULL,
  `product_type` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Pending' COMMENT 'Pending, Processing, Processed, Rejected',
  `created_by` bigint(20) NOT NULL,
  `creation_date` date NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`,`product_type`,`status`,`created_by`),
  KEY `group_id_2` (`group_id`,`product_type`,`status`,`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `group_accounts`
--


--
-- Table structure for table `groups`
--

CREATE TABLE `groups` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `relationship_manager` bigint(20) NOT NULL,
  `reg_date` date NOT NULL,
  `min_members` bigint(20) NOT NULL DEFAULT '0',
  `max_members` bigint(20) NOT NULL DEFAULT '0',
  `meeting_day` varchar(10) NOT NULL,
  `meeting_frequency` varchar(225) NOT NULL,
  `union_address` varchar(1000) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active' COMMENT 'Active, Inactive',
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  `offline_id` bigint(20) DEFAULT NULL,
  `group_type` varchar(225) DEFAULT NULL,
  `union_purse_account` bigint(20) DEFAULT NULL,
  `migration_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `branch` (`branch`),
  KEY `relationship_manager` (`relationship_manager`),
  KEY `status` (`status`),
  KEY `meeting_day` (`meeting_day`),
  KEY `created_by` (`created_by`),
  KEY `reg_date` (`reg_date`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `groups`
--

INSERT INTO `groups` VALUES (1,'Goodness',10,10,'1990-01-01',0,0,'Monday','Once Every Week','New benin','Active',7,NULL,'Union',0,NULL),(2,'Super',10,10,'1990-01-01',0,0,'Monday','Once Every Week','high way','Active',11,NULL,'Union',0,NULL),(3,'Edosa',7,8,'1990-01-01',0,0,'Monday','Once Every Week','Edosa str','Active',7,NULL,'Union',0,NULL),(4,'Glorious',7,8,'1990-01-01',0,0,'Monday','Once Every Week','Uwa str','Active',7,NULL,'Union',0,NULL);

--
-- Table structure for table `guarantor_images`
--

CREATE TABLE `guarantor_images` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `guarantor_id` bigint(20) DEFAULT NULL,
  `filepath` varchar(1000) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`guarantor_id`),
  KEY `account_id_2` (`account_id`,`guarantor_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `guarantor_images`
--

INSERT INTO `guarantor_images` VALUES (1,4031947690366,1,'GuarantorImages/64c001231870b.png','2023-07-25 17:06:43'),(3,9,2,'GuarantorImages/64c0075e831d0.png','2023-07-25 17:33:28');

--
-- Table structure for table `guarantors`
--

CREATE TABLE `guarantors` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `guarantor_type` varchar(225) NOT NULL,
  `guarantor_id` bigint(20) DEFAULT NULL,
  `guarantor_fname` varchar(225) DEFAULT NULL,
  `guarantor_lname` varchar(225) DEFAULT NULL,
  `guarantor_dob` date DEFAULT NULL,
  `guarantor_address1` varchar(225) DEFAULT NULL,
  `guarantor_address2` varchar(225) DEFAULT NULL,
  `guarantor_city` varchar(225) DEFAULT NULL,
  `guarantor_state` varchar(225) DEFAULT NULL,
  `guarantor_zipcode` varchar(225) DEFAULT NULL,
  `guarantor_country` varchar(225) DEFAULT NULL,
  `guarantor_hphone` varchar(225) DEFAULT NULL,
  `guarantor_mphone` varchar(225) DEFAULT NULL,
  `guarantor_comment` varchar(225) DEFAULT NULL,
  `relationship` varchar(225) NOT NULL,
  `guarantor_gender` varchar(225) DEFAULT NULL,
  `guarantor_bvn` varchar(225) DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`),
  KEY `guarantor_id` (`guarantor_id`),
  KEY `guarantor_fname` (`guarantor_fname`),
  KEY `guarantor_lname` (`guarantor_lname`),
  KEY `guarantor_dob` (`guarantor_dob`),
  KEY `guarantor_bvn` (`guarantor_bvn`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `guarantors`
--

INSERT INTO `guarantors` VALUES (2,9,'External Client',NULL,'AGHAMA','OSAZUWA','1997-09-08','Ojo','','Benin','Edo','225','Nigeria','09098765432','','','Friend',NULL,'22370554460','2023-07-25 17:33:28');

--
-- Table structure for table `holiday`
--

CREATE TABLE `holiday` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `description` varchar(225) DEFAULT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `pullover_method` varchar(225) NOT NULL DEFAULT 'Move to Next Work Day',
  `status` varchar(225) NOT NULL DEFAULT 'Active' COMMENT 'Active, Revoked',
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `start_date` (`start_date`,`end_date`,`pullover_method`,`status`),
  KEY `holdetails` (`id`,`start_date`,`end_date`),
  KEY `holdetailsag` (`id`,`start_date`,`end_date`,`pullover_method`),
  KEY `hoidquery` (`status`,`start_date`,`end_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `holiday`
--


--
-- Table structure for table `holiday_branches`
--

CREATE TABLE `holiday_branches` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `holiday_id` bigint(20) NOT NULL,
  `branch` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `holiday_id` (`holiday_id`,`branch`),
  KEY `holiday_id_2` (`holiday_id`,`branch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `holiday_branches`
--


--
-- Table structure for table `holiday_products`
--

CREATE TABLE `holiday_products` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `holiday_id` bigint(20) NOT NULL,
  `product` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `holiday_id` (`holiday_id`,`product`),
  KEY `holiday_id_2` (`holiday_id`,`product`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `holiday_products`
--


--
-- Table structure for table `identification`
--

CREATE TABLE `identification` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `template_id` bigint(20) NOT NULL,
  `id_number` varchar(225) DEFAULT NULL,
  `type` varchar(225) DEFAULT NULL,
  `file_upload` varchar(1000) DEFAULT NULL,
  `issue_date` date DEFAULT NULL,
  `expiry_date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `customer_id` (`customer_id`,`template_id`,`id_number`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `identification`
--

INSERT INTO `identification` VALUES (1,19,6,'22201927614',NULL,NULL,NULL,NULL);

--
-- Table structure for table `income_account_map`
--

CREATE TABLE `income_account_map` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `fee` varchar(225) NOT NULL,
  `income_acc` varchar(1000) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`),
  KEY `income_acc` (`income_acc`(768))
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `income_account_map`
--

INSERT INTO `income_account_map` VALUES (32,'L0','2','45'),(41,'L1','2','45'),(42,'L1','3','40'),(43,'L1','4','41'),(44,'L1','5','42'),(45,'L1','6','49'),(46,'L1','7','46'),(47,'L1','8','47'),(48,'L4','2','45'),(49,'L5','2','45'),(50,'L5','3','40'),(51,'L5','4','41'),(52,'L5','5','42'),(53,'L5','6','49'),(54,'L5','7','46'),(55,'L5','8','47'),(57,'S1','1','45'),(58,'S1','9','43'),(59,'S1','10','44'),(60,'L2','2','45'),(61,'L2','3','40'),(62,'L2','4','41'),(63,'L2','6','49'),(64,'L2','7','46'),(65,'L2','8','47');

--
-- Table structure for table `income_account_map_fees_receivable`
--

CREATE TABLE `income_account_map_fees_receivable` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `fee` varchar(225) NOT NULL,
  `income_acc` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`income_acc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `income_account_map_fees_receivable`
--


--
-- Table structure for table `income_account_map_penalties`
--

CREATE TABLE `income_account_map_penalties` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `fee` varchar(225) NOT NULL,
  `income_acc` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`income_acc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `income_account_map_penalties`
--


--
-- Table structure for table `income_account_map_penalties_receivable`
--

CREATE TABLE `income_account_map_penalties_receivable` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `fee` varchar(225) NOT NULL,
  `income_acc` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`income_acc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `income_account_map_penalties_receivable`
--


--
-- Table structure for table `income_account_map_penalties_suspended`
--

CREATE TABLE `income_account_map_penalties_suspended` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `fee` varchar(225) NOT NULL,
  `income_acc` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`income_acc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `income_account_map_penalties_suspended`
--


--
-- Table structure for table `income_account_map_penalties_suspended_gl`
--

CREATE TABLE `income_account_map_penalties_suspended_gl` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `fee` varchar(225) NOT NULL,
  `income_acc` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`income_acc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `income_account_map_penalties_suspended_gl`
--


--
-- Table structure for table `income_account_map_penalties_suspended_gl_2`
--

CREATE TABLE `income_account_map_penalties_suspended_gl_2` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `fee` varchar(225) NOT NULL,
  `income_acc` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`income_acc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `income_account_map_penalties_suspended_gl_2`
--


--
-- Table structure for table `income_account_map_suspended_fee`
--

CREATE TABLE `income_account_map_suspended_fee` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `fee` varchar(225) NOT NULL,
  `income_acc` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`income_acc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `income_account_map_suspended_fee`
--


--
-- Table structure for table `institution_type`
--

CREATE TABLE `institution_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `sname` varchar(225) NOT NULL,
  `description` varchar(1000) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `institution_type`
--


--
-- Table structure for table `institutions`
--

CREATE TABLE `institutions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `sname` varchar(225) NOT NULL,
  `description` varchar(1000) NOT NULL,
  `type` varchar(225) NOT NULL,
  `gl` bigint(20) DEFAULT NULL COMMENT 'for teller transfer to bank only',
  PRIMARY KEY (`id`),
  KEY `name` (`name`,`sname`,`type`,`gl`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `institutions`
--


--
-- Table structure for table `instruction_processed`
--

CREATE TABLE `instruction_processed` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `instruction_id` bigint(20) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `instruction_id` (`instruction_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `instruction_processed`
--


--
-- Table structure for table `interest_chat`
--

CREATE TABLE `interest_chat` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `iname` varchar(225) NOT NULL,
  `fromdate` date NOT NULL,
  `todate` date NOT NULL,
  `interest_rate` float NOT NULL,
  `description` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `interest_chat`
--


--
-- Table structure for table `journal_transactions`
--

CREATE TABLE `journal_transactions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `journal_id` bigint(20) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `account` bigint(20) NOT NULL,
  `type` varchar(225) NOT NULL,
  `amount` float NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `journal_transactions`
--


--
-- Table structure for table `journals`
--

CREATE TABLE `journals` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `transaction_id` bigint(20) DEFAULT NULL,
  `credit` decimal(65,4) NOT NULL,
  `debit` decimal(65,4) NOT NULL,
  `credit_account` bigint(20) NOT NULL,
  `debit_account` bigint(20) NOT NULL,
  `created_by` bigint(20) NOT NULL,
  `type` varchar(225) NOT NULL DEFAULT 'Automatic',
  `description` varchar(225) NOT NULL DEFAULT 'Manual Journal Entry',
  `branch` bigint(20) NOT NULL,
  `reversal_id` bigint(20) DEFAULT NULL,
  `date` date NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Approved' COMMENT 'Approved, Reversed',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `interbranch_jornal_id` bigint(20) DEFAULT NULL,
  `group_id` bigint(20) DEFAULT NULL,
  `currency` varchar(225) DEFAULT NULL,
  `is_rv` bigint(20) DEFAULT NULL,
  `group_reverse` bigint(20) DEFAULT NULL,
  `asset_id` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `credit_account` (`credit_account`),
  KEY `debit_account` (`debit_account`),
  KEY `credit` (`credit`),
  KEY `debit` (`debit`),
  KEY `type` (`type`),
  KEY `description` (`description`),
  KEY `branch` (`branch`),
  KEY `status` (`status`),
  KEY `date` (`date`),
  KEY `transaction_id` (`transaction_id`),
  KEY `group_id` (`group_id`),
  KEY `interbranch_jornal_id` (`interbranch_jornal_id`),
  KEY `group_reverse` (`group_reverse`),
  KEY `asset_id` (`asset_id`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `journals`
--

INSERT INTO `journals` VALUES (1,1,-10000.0000,10000.0000,14,39,7,'Automatic','Funds Deposit to customer account',7,NULL,'2023-01-02','Approved','2023-07-24 13:29:08',NULL,NULL,'NGN',NULL,NULL,0),(2,2,-10000.0000,10000.0000,39,14,7,'Automatic','Funds Withdrawal from customer account',7,NULL,'2023-01-02','Approved','2023-07-24 13:34:41',NULL,NULL,'NGN',NULL,NULL,0),(3,3,-7000.0000,7000.0000,14,39,7,'Automatic','Funds Deposit to customer account',7,NULL,'2023-01-02','Approved','2023-07-24 14:18:23',NULL,NULL,'NGN',NULL,NULL,0),(9,9,-10000.0000,10000.0000,14,39,7,'Automatic','Funds Deposit to customer account',7,NULL,'2023-07-11','Approved','2023-07-24 15:53:23',NULL,NULL,'NGN',NULL,NULL,0),(10,10,-100000.0000,100000.0000,39,50,7,'Automatic','Loan approved and disbursed',7,NULL,'2023-07-11','Approved','2023-07-24 15:54:02',NULL,NULL,'NGN',NULL,NULL,0),(11,11,-500.0000,500.0000,40,14,7,'Automatic','Passbook',7,NULL,'2023-07-11','Approved','2023-07-24 15:54:03',NULL,NULL,'NGN',NULL,NULL,0),(12,12,-1000.0000,1000.0000,41,14,7,'Automatic','Admin Fee',7,NULL,'2023-07-11','Approved','2023-07-24 15:54:03',NULL,NULL,'NGN',NULL,NULL,0),(13,13,-700.0000,700.0000,49,14,7,'Automatic','Branch council fund (liability)',7,NULL,'2023-07-11','Approved','2023-07-24 15:54:03',NULL,NULL,'NGN',NULL,NULL,0),(14,14,-800.0000,800.0000,46,14,7,'Automatic','Insurance income',7,NULL,'2023-07-11','Approved','2023-07-24 15:54:03',NULL,NULL,'NGN',NULL,NULL,0),(15,15,-1200.0000,1200.0000,47,14,7,'Automatic','Insurance liability',7,NULL,'2023-07-11','Approved','2023-07-24 15:54:03',NULL,NULL,'NGN',NULL,NULL,0),(16,16,-100000.0000,100000.0000,39,90,7,'Automatic','Loan approved and disbursed',7,NULL,'2023-07-11','Approved','2023-07-25 13:15:52',NULL,NULL,'NGN',NULL,NULL,0),(17,17,-39999.9996,48000.0000,50,39,7,'Automatic','Loan Repayment',7,NULL,'2023-07-11','Approved','2023-07-25 13:18:33',NULL,NULL,'NGN',NULL,NULL,0),(18,17,-8000.0004,0.0000,56,39,7,'Automatic','Loan Interest',7,NULL,'2023-07-11','Approved','2023-07-25 13:18:33',NULL,NULL,'NGN',NULL,NULL,0),(19,18,-59999.9994,71999.9999,50,39,7,'Automatic','Loan Repayment',7,NULL,'2023-07-11','Approved','2023-07-25 13:20:23',NULL,NULL,'NGN',NULL,NULL,0),(20,18,-12000.0006,0.0000,56,39,7,'Automatic','Loan Interest',7,NULL,'2023-07-11','Approved','2023-07-25 13:20:23',NULL,NULL,'NGN',NULL,NULL,0),(21,19,-100000.0000,100000.0000,39,82,7,'Automatic','Loan approved and disbursed',7,NULL,'2023-07-11','Approved','2023-07-25 13:45:03',NULL,NULL,'NGN',NULL,NULL,0),(22,20,-1000.0000,1000.0000,41,14,7,'Automatic','Admin Fee',7,NULL,'2023-07-11','Approved','2023-07-25 13:45:03',NULL,NULL,'NGN',NULL,NULL,0),(23,21,-700.0000,700.0000,49,14,7,'Automatic','Branch council fund (liability)',7,NULL,'2023-07-11','Approved','2023-07-25 13:45:03',NULL,NULL,'NGN',NULL,NULL,0),(24,22,-800.0000,800.0000,46,14,7,'Automatic','Insurance income',7,NULL,'2023-07-11','Approved','2023-07-25 13:45:03',NULL,NULL,'NGN',NULL,NULL,0),(25,23,-1200.0000,1200.0000,47,14,7,'Automatic','Insurance liability',7,NULL,'2023-07-11','Approved','2023-07-25 13:45:03',NULL,NULL,'NGN',NULL,NULL,0),(26,24,-40000.0000,50000.0000,82,39,7,'Automatic','Loan Repayment',7,NULL,'2023-07-11','Approved','2023-07-25 13:47:38',NULL,NULL,'NGN',NULL,NULL,0),(27,24,-10000.0000,0.0000,85,39,7,'Automatic','Loan Interest',7,NULL,'2023-07-11','Approved','2023-07-25 13:47:38',NULL,NULL,'NGN',NULL,NULL,0),(28,25,-40000.0000,40000.0000,39,82,7,'Automatic','Loan Repayment Reversal',7,24,'2023-07-11','Approved','2023-07-25 13:50:46',NULL,NULL,'NGN',NULL,NULL,0),(29,25,-10000.0000,10000.0000,39,85,7,'Automatic','Loan Interest Reversal',7,24,'2023-07-11','Approved','2023-07-25 13:50:46',NULL,NULL,'NGN',NULL,NULL,0),(30,26,-40000.0000,50000.0000,82,39,7,'Automatic','Loan Repayment',7,NULL,'2023-07-11','Approved','2023-07-25 13:51:42',NULL,NULL,'NGN',NULL,NULL,0),(31,26,-10000.0000,0.0000,85,39,7,'Automatic','Loan Interest',7,NULL,'2023-07-11','Approved','2023-07-25 13:51:42',NULL,NULL,'NGN',NULL,NULL,0),(32,27,-60000.0000,75000.0000,82,39,7,'Automatic','Loan Repayment',7,NULL,'2023-07-11','Approved','2023-07-25 14:19:11',NULL,NULL,'NGN',NULL,NULL,0),(33,27,-15000.0000,0.0000,85,39,7,'Automatic','Loan Interest',7,NULL,'2023-07-11','Approved','2023-07-25 14:19:11',NULL,NULL,'NGN',NULL,NULL,0),(34,28,-11000.0000,11000.0000,14,39,7,'Automatic','Funds Deposit to customer account',7,NULL,'2023-07-11','Approved','2023-07-25 14:20:09',NULL,NULL,'NGN',NULL,NULL,0),(35,29,-100.0000,100.0000,45,14,7,'Automatic','BVN Validation Fee',7,NULL,'2023-07-10','Approved','2023-07-25 15:34:22',NULL,NULL,'NGN',NULL,NULL,0),(36,30,-10000.0000,10000.0000,14,39,7,'Automatic','Funds Deposit to customer account',7,NULL,'2023-07-10','Approved','2023-07-25 15:34:58',NULL,NULL,'NGN',NULL,NULL,0),(37,31,-4.0000,4.0000,43,14,7,'Automatic','SMS',7,NULL,'2023-07-10','Approved','2023-07-25 15:34:58',NULL,NULL,'NGN',NULL,NULL,0),(38,32,-5000.0000,5000.0000,14,39,7,'Automatic','Funds Deposit to customer account',7,NULL,'2023-07-10','Approved','2023-07-25 15:46:01',NULL,NULL,'NGN',NULL,NULL,0),(39,33,-4.0000,4.0000,43,14,7,'Automatic','SMS',7,NULL,'2023-07-10','Approved','2023-07-25 15:46:01',NULL,NULL,'NGN',NULL,NULL,0),(40,34,-200.0000,200.0000,105,50,7,'Automatic','Loan approved and disbursed',7,NULL,'2023-07-10','Approved','2023-07-25 16:06:43',NULL,NULL,'NGN',NULL,NULL,0),(41,35,-500.0000,500.0000,40,14,7,'Automatic','Passbook',7,NULL,'2023-07-10','Approved','2023-07-25 16:06:43',NULL,NULL,'NGN',NULL,NULL,0),(42,36,-2.0000,2.0000,41,14,7,'Automatic','Admin Fee',7,NULL,'2023-07-10','Approved','2023-07-25 16:06:43',NULL,NULL,'NGN',NULL,NULL,0),(43,37,-700.0000,700.0000,49,14,7,'Automatic','Branch council fund (liability)',7,NULL,'2023-07-10','Approved','2023-07-25 16:06:43',NULL,NULL,'NGN',NULL,NULL,0),(44,38,-1.6000,1.6000,46,14,7,'Automatic','Insurance income',7,NULL,'2023-07-10','Approved','2023-07-25 16:06:43',NULL,NULL,'NGN',NULL,NULL,0),(45,39,-2.4000,2.4000,47,14,7,'Automatic','Insurance liability',7,NULL,'2023-07-10','Approved','2023-07-25 16:06:43',NULL,NULL,'NGN',NULL,NULL,0),(46,40,-200.0010,200.0010,57,39,7,'Automatic','Loan Written Off',7,NULL,'2023-07-10','Approved','2023-07-25 16:54:30',NULL,NULL,'NGN',NULL,NULL,0),(47,41,-100000.0000,100000.0000,39,82,7,'Automatic','Loan approved and disbursed',7,NULL,'2023-07-10','Reversed','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(48,42,-1000.0000,1000.0000,41,14,7,'Automatic','Admin Fee',7,NULL,'2023-07-10','Reversed','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(49,43,-700.0000,700.0000,49,14,7,'Automatic','Branch council fund (liability)',7,NULL,'2023-07-10','Reversed','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(50,44,-800.0000,800.0000,46,14,7,'Automatic','Insurance income',7,NULL,'2023-07-10','Reversed','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(51,45,-1200.0000,1200.0000,47,14,7,'Automatic','Insurance liability',7,NULL,'2023-07-10','Reversed','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(52,46,-40000.0000,50000.0000,82,39,7,'Automatic','Loan Repayment',7,NULL,'2023-07-10','Approved','2023-07-25 17:14:34',NULL,NULL,'NGN',NULL,NULL,0),(53,46,-10000.0000,0.0000,85,39,7,'Automatic','Loan Interest',7,NULL,'2023-07-10','Approved','2023-07-25 17:14:34',NULL,NULL,'NGN',NULL,NULL,0),(54,47,-40000.0000,40000.0000,39,82,7,'Automatic','Loan Repayment Reversal',7,46,'2023-07-10','Approved','2023-07-25 17:16:32',NULL,NULL,'NGN',NULL,NULL,0),(55,47,-10000.0000,10000.0000,39,85,7,'Automatic','Loan Interest Reversal',7,46,'2023-07-10','Approved','2023-07-25 17:16:32',NULL,NULL,'NGN',NULL,NULL,0),(56,48,-100000.0000,100000.0000,82,39,7,'Automatic','Loan Disbursement Reversal',7,41,'2023-07-10','Approved','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(57,49,-1000.0000,1000.0000,14,41,7,'Automatic','Admin Fee Reversal',7,41,'2023-07-10','Approved','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(58,50,-700.0000,700.0000,14,49,7,'Automatic','Branch council fund (liability) Reversal',7,41,'2023-07-10','Approved','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(59,51,-800.0000,800.0000,14,46,7,'Automatic','Insurance income Reversal',7,41,'2023-07-10','Approved','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(60,52,-1200.0000,1200.0000,14,47,7,'Automatic','Insurance liability Reversal',7,41,'2023-07-10','Approved','2023-07-25 17:17:13',NULL,NULL,'NGN',NULL,NULL,0),(61,53,-100000.0000,100000.0000,39,82,6,'Automatic','Loan approved and disbursed',7,NULL,'2023-07-10','Approved','2023-07-25 17:46:48',NULL,NULL,'NGN',NULL,NULL,0),(62,54,-1000.0000,1000.0000,41,14,6,'Automatic','Admin Fee',7,NULL,'2023-07-10','Approved','2023-07-25 17:46:48',NULL,NULL,'NGN',NULL,NULL,0),(63,55,-700.0000,700.0000,49,14,6,'Automatic','Branch council fund (liability)',7,NULL,'2023-07-10','Approved','2023-07-25 17:46:49',NULL,NULL,'NGN',NULL,NULL,0),(64,56,-800.0000,800.0000,46,14,6,'Automatic','Insurance income',7,NULL,'2023-07-10','Approved','2023-07-25 17:46:49',NULL,NULL,'NGN',NULL,NULL,0),(65,57,-1200.0000,1200.0000,47,14,6,'Automatic','Insurance liability',7,NULL,'2023-07-10','Approved','2023-07-25 17:46:49',NULL,NULL,'NGN',NULL,NULL,0);

--
-- Table structure for table `lien`
--

CREATE TABLE `lien` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `amount` float NOT NULL,
  `added_by` bigint(20) NOT NULL,
  `datetime` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`added_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `lien`
--


--
-- Table structure for table `loan_account_purpose`
--

CREATE TABLE `loan_account_purpose` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `purpose` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_account_purpose`
--

INSERT INTO `loan_account_purpose` VALUES (1,2,'Fishery'),(2,3,'Fishery'),(3,4,'Fishery'),(4,5,'Fishery'),(5,7,'Fishery'),(6,8,'Fishery'),(7,9,'Fishery');

--
-- Table structure for table `loan_amount_increment`
--

CREATE TABLE `loan_amount_increment` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `policy_id` bigint(20) NOT NULL,
  `product_id` bigint(20) NOT NULL,
  `increment_ami` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_amount_increment`
--

INSERT INTO `loan_amount_increment` VALUES (2,6,1,35);

--
-- Table structure for table `loan_autosweep`
--

CREATE TABLE `loan_autosweep` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `execution_type` varchar(225) NOT NULL COMMENT 'Automatic, Manual',
  `affected_account` varchar(225) NOT NULL,
  `product_id` bigint(20) NOT NULL,
  `branch` varchar(225) NOT NULL,
  `channel` bigint(20) NOT NULL DEFAULT '6',
  `due_amount` double NOT NULL,
  `amount_settlled` double NOT NULL,
  `start_time` datetime NOT NULL,
  `end_time` datetime NOT NULL,
  `executed_by` bigint(20) NOT NULL COMMENT '0-System',
  `run_status` varchar(225) NOT NULL COMMENT 'Success, Failed',
  `date_added` date DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `execution_type` (`execution_type`,`branch`,`channel`,`start_time`,`end_time`,`run_status`,`date_added`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `loan_autosweep`
--


--
-- Table structure for table `loan_autosweep_settings`
--

CREATE TABLE `loan_autosweep_settings` (
  `execution_type` varchar(225) NOT NULL,
  `branch` varchar(5000) NOT NULL,
  `start_time` time NOT NULL,
  `sweep_savings` varchar(5000) NOT NULL,
  `loan_product` varchar(5000) NOT NULL,
  `status` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_autosweep_settings`
--

INSERT INTO `loan_autosweep_settings` VALUES ('Manual','','00:01:00','','','Inactive','2023-06-03 07:12:33');

--
-- Table structure for table `loan_collateral`
--

CREATE TABLE `loan_collateral` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `type` varchar(225) NOT NULL,
  `collateral_value` double NOT NULL,
  `description` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_collateral`
--


--
-- Table structure for table `loan_minimum`
--

CREATE TABLE `loan_minimum` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `policy_id` bigint(20) NOT NULL,
  `product_id` bigint(20) NOT NULL,
  `min_amount` float NOT NULL,
  `max_amount` float NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_minimum`
--


--
-- Table structure for table `loan_product_guarantor`
--

CREATE TABLE `loan_product_guarantor` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `policy_id` bigint(20) NOT NULL,
  `product_id` bigint(20) NOT NULL,
  `value` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `policy_id` (`policy_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_product_guarantor`
--

INSERT INTO `loan_product_guarantor` VALUES (1,10,1,1);

--
-- Table structure for table `loan_provisioning`
--

CREATE TABLE `loan_provisioning` (
  `paw` bigint(20) NOT NULL DEFAULT '0',
  `substandard` bigint(20) NOT NULL DEFAULT '0',
  `doubtful` bigint(20) NOT NULL DEFAULT '0',
  `lost` bigint(20) NOT NULL DEFAULT '0',
  `frequency` varchar(225) NOT NULL DEFAULT 'Monthly',
  `loan_loss_reserve` bigint(20) NOT NULL DEFAULT '0',
  `pass_and_watch` bigint(20) NOT NULL DEFAULT '0',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(225) NOT NULL DEFAULT 'Inactive',
  `performing` bigint(20) NOT NULL DEFAULT '0',
  `lost_dr` bigint(20) NOT NULL DEFAULT '0',
  `lost_cr` bigint(20) NOT NULL DEFAULT '0',
  `doubtful_dr` bigint(20) NOT NULL DEFAULT '0',
  `doubtful_cr` bigint(20) NOT NULL DEFAULT '0',
  `substandard_dr` bigint(20) NOT NULL DEFAULT '0',
  `substandard_cr` bigint(20) NOT NULL DEFAULT '0',
  `performing_dr` bigint(20) NOT NULL DEFAULT '0',
  `performing_cr` bigint(20) NOT NULL DEFAULT '0',
  `post_entire_value` varchar(225) NOT NULL DEFAULT 'Yes'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_provisioning`
--

INSERT INTO `loan_provisioning` VALUES (5,20,50,100,'Monthly',0,0,'2023-07-24 15:21:01','Active',1,0,25,0,0,0,0,0,0,'No');

--
-- Table structure for table `loan_purpose`
--

CREATE TABLE `loan_purpose` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_purpose`
--

INSERT INTO `loan_purpose` VALUES (2,'Fishery'),(1,'Petty trading');

--
-- Table structure for table `loan_recovery`
--

CREATE TABLE `loan_recovery` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `loan_id` bigint(20) NOT NULL,
  `transaction_id` bigint(20) NOT NULL,
  `amount` decimal(65,4) NOT NULL,
  `recovered_by` bigint(20) NOT NULL,
  `recovery_type` varchar(225) NOT NULL DEFAULT 'Internal' COMMENT 'Internal, External',
  `recovery_date` date NOT NULL,
  `transaction_date` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `loan_id` (`loan_id`,`transaction_id`,`recovered_by`,`recovery_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_recovery`
--


--
-- Table structure for table `loan_repayment_by_transfer_settings`
--

CREATE TABLE `loan_repayment_by_transfer_settings` (
  `loan_product` varchar(1000) NOT NULL,
  `status` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_repayment_by_transfer_settings`
--

INSERT INTO `loan_repayment_by_transfer_settings` VALUES ('1, 4, ','Inactive','2023-02-21 14:52:02');

--
-- Table structure for table `loan_schedule`
--

CREATE TABLE `loan_schedule` (
  `id` bigint(225) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `loan_id` bigint(20) NOT NULL,
  `account_no` varchar(225) DEFAULT NULL,
  `expected_interest` double NOT NULL,
  `expected_principal` double NOT NULL,
  `expected_principal_interest` double NOT NULL,
  `settlled_principal` double NOT NULL DEFAULT '0',
  `settlled_interest` double NOT NULL DEFAULT '0',
  `settlled_principal_interest` double NOT NULL DEFAULT '0',
  `due_principal` double NOT NULL DEFAULT '0',
  `due_interest` double NOT NULL DEFAULT '0',
  `due_principal_interest` double NOT NULL DEFAULT '0',
  `original_expected_date` date NOT NULL,
  `expected_date` date NOT NULL,
  `overdue` double NOT NULL DEFAULT '0',
  `transaction_id` bigint(20) DEFAULT NULL,
  `last_paid_principal` double NOT NULL DEFAULT '0',
  `last_paid_interest` double NOT NULL DEFAULT '0',
  `last_paid_principal_interest` double NOT NULL DEFAULT '0',
  `due_updated` bigint(1) DEFAULT NULL COMMENT '1-Updated, null-not updated',
  `interest_status` bigint(20) DEFAULT NULL COMMENT '1-Paid, 2-Waived',
  `penalty` decimal(65,4) NOT NULL DEFAULT '0.0000',
  `settlled_date` date DEFAULT NULL,
  `settlled_status` varchar(1) DEFAULT NULL,
  `days_difference` bigint(20) NOT NULL DEFAULT '0',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `loan_id` (`loan_id`),
  KEY `account_no` (`account_no`),
  KEY `expected_interest` (`expected_interest`),
  KEY `expected_principal` (`expected_principal`),
  KEY `expected_principal_interest` (`expected_principal_interest`),
  KEY `settlled_principal` (`settlled_principal`),
  KEY `settlled_interest` (`settlled_interest`),
  KEY `settlled_principal_interest` (`settlled_principal_interest`),
  KEY `due_principal` (`due_principal`),
  KEY `due_interest` (`due_interest`),
  KEY `due_principal_interest` (`due_principal_interest`),
  KEY `expected_date` (`expected_date`),
  KEY `due_updated` (`due_updated`),
  KEY `customer_id` (`customer_id`)
) ENGINE=InnoDB AUTO_INCREMENT=95 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_schedule`
--

INSERT INTO `loan_schedule` VALUES (1,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-07-25','2023-07-25',0,17,0,0,0,1,NULL,0.0000,'2023-07-25','A',0,'2023-07-25 13:18:32'),(2,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-08-01','2023-08-01',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',7,'2023-07-25 13:18:32'),(3,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-08-08','2023-08-08',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',14,'2023-07-25 13:18:32'),(4,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-08-15','2023-08-15',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',21,'2023-07-25 13:18:32'),(5,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-08-22','2023-08-22',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',28,'2023-07-25 13:18:32'),(6,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-08-29','2023-08-29',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',35,'2023-07-25 13:18:32'),(7,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-09-05','2023-09-05',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',42,'2023-07-25 13:18:32'),(8,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-09-12','2023-09-12',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',49,'2023-07-25 13:18:33'),(9,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-09-19','2023-09-19',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',56,'2023-07-25 13:18:33'),(10,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-09-26','2023-09-26',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',63,'2023-07-25 13:18:33'),(11,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-10-03','2023-10-03',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',70,'2023-07-25 13:18:33'),(12,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-10-10','2023-10-10',0,17,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',77,'2023-07-25 13:18:33'),(13,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-10-17','2023-10-17',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',84,'2023-07-25 13:20:21'),(14,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-10-24','2023-10-24',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',91,'2023-07-25 13:20:21'),(15,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-10-31','2023-10-31',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',98,'2023-07-25 13:20:21'),(16,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-11-07','2023-11-07',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',105,'2023-07-25 13:20:21'),(17,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-11-14','2023-11-14',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',112,'2023-07-25 13:20:21'),(18,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-11-21','2023-11-21',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',119,'2023-07-25 13:20:21'),(19,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-11-28','2023-11-28',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',126,'2023-07-25 13:20:22'),(20,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-12-05','2023-12-05',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',133,'2023-07-25 13:20:22'),(21,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-12-12','2023-12-12',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',140,'2023-07-25 13:20:22'),(22,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-12-19','2023-12-19',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',147,'2023-07-25 13:20:22'),(23,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2023-12-26','2023-12-26',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',154,'2023-07-25 13:20:22'),(24,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2024-01-02','2024-01-02',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',161,'2023-07-25 13:20:22'),(25,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2024-01-09','2024-01-09',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',168,'2023-07-25 13:20:22'),(26,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2024-01-16','2024-01-16',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',175,'2023-07-25 13:20:22'),(27,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2024-01-23','2024-01-23',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',182,'2023-07-25 13:20:22'),(28,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2024-01-30','2024-01-30',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',189,'2023-07-25 13:20:22'),(29,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2024-02-06','2024-02-06',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',196,'2023-07-25 13:20:22'),(30,18,3,'2029767782',666.6667,3333.3333,4000,3333.3333,666.6667,4000,0,0,0,'2024-02-13','2024-02-13',0,18,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',203,'2023-07-25 13:20:22'),(31,18,4,'2039960430',3577.5,25000,28577.5,0,0,0,0,0,0,'2023-08-11','2023-08-11',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 13:15:51'),(32,18,4,'2039960430',3577.5,25000,28577.5,0,0,0,0,0,0,'2023-09-11','2023-09-11',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 13:15:51'),(33,18,4,'2039960430',3577.5,25000,28577.5,0,0,0,0,0,0,'2023-10-11','2023-10-11',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 13:15:52'),(34,18,4,'2039960430',3577.5,25000,28577.5,0,0,0,0,0,0,'2023-11-13','2023-11-13',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 13:15:52'),(35,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2023-08-11','2023-08-11',0,26,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',17,'2023-07-25 13:51:41'),(36,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2023-09-11','2023-09-11',0,26,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',48,'2023-07-25 13:51:41'),(37,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2023-10-11','2023-10-11',0,26,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',78,'2023-07-25 13:51:41'),(38,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2023-11-13','2023-11-13',0,26,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',111,'2023-07-25 13:51:41'),(39,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2023-12-11','2023-12-11',0,27,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',139,'2023-07-25 14:19:10'),(40,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2024-01-11','2024-01-11',0,27,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',170,'2023-07-25 14:19:10'),(41,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2024-02-12','2024-02-12',0,27,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',202,'2023-07-25 14:19:11'),(42,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2024-03-11','2024-03-11',0,27,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',230,'2023-07-25 14:19:11'),(43,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2024-04-11','2024-04-11',0,27,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',261,'2023-07-25 14:19:11'),(44,18,5,'2019183772',2500,10000,12500,10000,2500,12500,0,0,0,'2024-05-13','2024-05-13',0,27,0,0,0,NULL,NULL,0.0000,'2023-07-25','E',293,'2023-07-25 14:19:11'),(45,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-07-24','2023-07-24',0,NULL,0,0,0,1,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(46,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-07-31','2023-07-31',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(47,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-08-07','2023-08-07',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(48,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-08-14','2023-08-14',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(49,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-08-21','2023-08-21',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(50,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-08-28','2023-08-28',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(51,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-09-04','2023-09-04',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(52,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-09-11','2023-09-11',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(53,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-09-18','2023-09-18',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(54,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-09-25','2023-09-25',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(55,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-10-02','2023-10-02',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(56,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-10-09','2023-10-09',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(57,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-10-16','2023-10-16',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(58,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-10-23','2023-10-23',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(59,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-10-30','2023-10-30',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(60,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-11-06','2023-11-06',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(61,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-11-13','2023-11-13',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(62,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-11-20','2023-11-20',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(63,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-11-27','2023-11-27',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(64,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-12-04','2023-12-04',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(65,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-12-11','2023-12-11',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(66,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-12-18','2023-12-18',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(67,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2023-12-25','2023-12-25',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(68,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2024-01-01','2024-01-01',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(69,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2024-01-08','2024-01-08',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(70,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2024-01-15','2024-01-15',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(71,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2024-01-22','2024-01-22',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(72,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2024-01-29','2024-01-29',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(73,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2024-02-05','2024-02-05',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(74,19,7,'2022434914',1.3333,6.6667,8,6.6667,1.3333,8,0,0,0,'2024-02-12','2024-02-12',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 16:54:30'),(85,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2023-08-10','2023-08-10',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(86,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2023-09-11','2023-09-11',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(87,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2023-10-10','2023-10-10',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(88,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2023-11-10','2023-11-10',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(89,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2023-12-11','2023-12-11',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(90,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2024-01-10','2024-01-10',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(91,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2024-02-12','2024-02-12',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(92,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2024-03-11','2024-03-11',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(93,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2024-04-10','2024-04-10',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48'),(94,19,9,'2011214352',2500,10000,12500,0,0,0,0,0,0,'2024-05-10','2024-05-10',0,NULL,0,0,0,NULL,NULL,0.0000,NULL,NULL,0,'2023-07-25 17:46:48');

--
-- Table structure for table `loan_schedule_backup`
--

CREATE TABLE `loan_schedule_backup` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `schedule_id` bigint(20) NOT NULL,
  `last_paid_principal` double NOT NULL,
  `last_paid_interest` double NOT NULL,
  `last_paid_principal_interest` double NOT NULL,
  `waived_interest` decimal(65,4) DEFAULT NULL,
  `last_penalty` decimal(65,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=143 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loan_schedule_backup`
--


--
-- Table structure for table `lock_funds`
--

CREATE TABLE `lock_funds` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `loan_id` bigint(20) NOT NULL,
  `savings_id` bigint(20) NOT NULL,
  `locked_amount` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `loan_id` (`loan_id`),
  KEY `savings_id` (`savings_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `lock_funds`
--

INSERT INTO `lock_funds` VALUES (1,3,1,0),(2,5,1,0),(3,7,6,14),(4,8,6,0),(5,9,6,7000);

--
-- Table structure for table `login_attempts`
--

CREATE TABLE `login_attempts` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `attempts` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `login_attempts`
--


--
-- Table structure for table `login_attempts_customer`
--

CREATE TABLE `login_attempts_customer` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `attempts` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `login_attempts_customer`
--


--
-- Table structure for table `mandate`
--

CREATE TABLE `mandate` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `mandate` varchar(1000) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`),
  KEY `account_id_2` (`account_id`),
  KEY `account_id_3` (`account_id`),
  KEY `account_id_4` (`account_id`),
  KEY `account_id_5` (`account_id`),
  KEY `account_id_6` (`account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `mandate`
--


--
-- Table structure for table `marketing`
--

CREATE TABLE `marketing` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `title_main` varchar(225) NOT NULL,
  `sub_title` varchar(225) NOT NULL,
  `picture` varchar(1000) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `marketing`
--

INSERT INTO `marketing` VALUES (1,'Low Interest Rate','Farming Loan for small and large scale farmers','../../egis_app/images/marketing_images/1688305513-5.jpg'),(2,'15% Interest on Investment','Voluntary Savings with attractive offers to keep you going','images/pictures/savings.jpg'),(3,'Get Solar!','Low Interest Solar Loan provided as a solution for your lack of power supply issue Low Interest','images/pictures/solar.jpg');

--
-- Table structure for table `multisession_roles`
--

CREATE TABLE `multisession_roles` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `role_id` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `role_id` (`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `multisession_roles`
--

INSERT INTO `multisession_roles` VALUES (1,106,'2023-07-24 11:21:20');

--
-- Table structure for table `next_of_kin`
--

CREATE TABLE `next_of_kin` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  `relationship` varchar(225) NOT NULL,
  `address` varchar(225) NOT NULL,
  `phone_no` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `customer_id` (`customer_id`),
  KEY `customer_id_2` (`customer_id`),
  KEY `customer_id_3` (`customer_id`),
  KEY `customer_id_4` (`customer_id`),
  KEY `customer_id_5` (`customer_id`),
  KEY `customer_id_6` (`customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `next_of_kin`
--


--
-- Table structure for table `origin_of_funds`
--

CREATE TABLE `origin_of_funds` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `origin_of_funds`
--

INSERT INTO `origin_of_funds` VALUES (1,'Board of Directors');

--
-- Table structure for table `otp_codes`
--

CREATE TABLE `otp_codes` (
  `id` bigint(100) NOT NULL AUTO_INCREMENT,
  `cuid` bigint(20) NOT NULL COMMENT 'customer_id, account_id, etc',
  `receiver` varchar(225) NOT NULL COMMENT 'phone number or email',
  `username` varchar(225) DEFAULT NULL COMMENT 'for app users only',
  `stype` varchar(225) DEFAULT NULL COMMENT 'phone, email',
  `otp` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `otp_codes`
--


--
-- Table structure for table `password_expiry`
--

CREATE TABLE `password_expiry` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `role_id` bigint(20) NOT NULL,
  `days` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `role_id` (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `password_expiry`
--


--
-- Table structure for table `penalty_charge_treated`
--

CREATE TABLE `penalty_charge_treated` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `loan_id` bigint(20) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `loan_id` (`loan_id`,`date`),
  KEY `loan_id_2` (`loan_id`,`date`),
  KEY `loan_id_3` (`loan_id`,`date`),
  KEY `loan_id_4` (`loan_id`,`date`),
  KEY `loan_id_5` (`loan_id`,`date`),
  KEY `loan_id_6` (`loan_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `penalty_charge_treated`
--


--
-- Table structure for table `pending_report_parameters`
--

CREATE TABLE `pending_report_parameters` (
  `id` bigint(50) NOT NULL AUTO_INCREMENT,
  `pending_report_id` bigint(20) NOT NULL,
  `parameter_slug` varchar(225) NOT NULL,
  `parameter` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `pending_report_parameters`
--


--
-- Table structure for table `pending_reports`
--

CREATE TABLE `pending_reports` (
  `id` bigint(100) NOT NULL AUTO_INCREMENT,
  `report_id` bigint(20) NOT NULL,
  `reportname` varchar(225) NOT NULL,
  `aid` bigint(20) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Pending',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `pending_reports`
--


--
-- Table structure for table `pnd`
--

CREATE TABLE `pnd` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `reason` bigint(20) NOT NULL,
  `added_by` bigint(20) NOT NULL,
  `datetime` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`reason`,`added_by`,`datetime`),
  KEY `account_id_2` (`account_id`,`reason`,`added_by`,`datetime`),
  KEY `account_id_3` (`account_id`,`reason`,`added_by`,`datetime`),
  KEY `account_id_4` (`account_id`,`reason`,`added_by`,`datetime`),
  KEY `account_id_5` (`account_id`,`reason`,`added_by`,`datetime`),
  KEY `account_id_6` (`account_id`,`reason`,`added_by`,`datetime`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `pnd`
--

INSERT INTO `pnd` VALUES (1,1,2,7,'2023-07-25 15:41:24','2023-07-25 14:41:24');

--
-- Table structure for table `pnd_reason`
--

CREATE TABLE `pnd_reason` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `pnd_reason`
--

INSERT INTO `pnd_reason` VALUES (3,'Expired ID'),(2,'Missing identification'),(1,'Personal');

--
-- Table structure for table `policies`
--

CREATE TABLE `policies` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_type` varchar(225) NOT NULL,
  `name` varchar(225) NOT NULL,
  `rule_type` varchar(225) DEFAULT NULL,
  `max_withdrawal` bigint(20) DEFAULT NULL,
  `min_age` bigint(20) DEFAULT NULL,
  `max_age` bigint(20) DEFAULT NULL,
  `overdue_count` bigint(20) DEFAULT NULL,
  `affected_products` varchar(3000) DEFAULT NULL,
  `status` varchar(225) NOT NULL,
  `datetime` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `min_hours_daily_compounding` bigint(20) NOT NULL DEFAULT '0',
  `channels` varchar(225) DEFAULT NULL,
  `validate_identity` varchar(225) DEFAULT NULL,
  `id_type` varchar(225) DEFAULT NULL,
  `duplicate_id` varchar(225) DEFAULT NULL,
  `days_to_due` bigint(20) DEFAULT NULL,
  `trv_order` varchar(225) DEFAULT NULL,
  `days_of_inactivity` bigint(20) DEFAULT NULL,
  `max_overdraft` decimal(65,2) DEFAULT NULL,
  `days_to_escheat` bigint(20) DEFAULT NULL,
  `restrict_events` varchar(3000) DEFAULT NULL,
  `minimum_guarantor` bigint(20) DEFAULT NULL,
  `max_existing_guaranteed_loans` bigint(20) DEFAULT NULL,
  `reject_if_impired` varchar(225) DEFAULT NULL,
  `force_id_validation` varchar(225) DEFAULT NULL,
  `require_doc_upload` varchar(225) DEFAULT NULL,
  `force_g_upload` varchar(225) DEFAULT NULL,
  `affected_branches` varchar(3000) DEFAULT NULL,
  `t_limit` decimal(65,4) DEFAULT NULL,
  `t_event` varchar(225) DEFAULT NULL,
  `t_channel` bigint(20) DEFAULT NULL,
  `max_products` bigint(20) DEFAULT NULL,
  `min_total_paid` bigint(20) DEFAULT NULL,
  `max_total_paid` bigint(20) DEFAULT NULL,
  `flat_guarantor_charge` varchar(225) DEFAULT NULL,
  `included_loan` varchar(1000) DEFAULT NULL,
  `side_loan` varchar(1000) DEFAULT NULL,
  `standalone_loan` text,
  `running_list` text,
  PRIMARY KEY (`id`),
  KEY `product_type` (`product_type`,`name`),
  KEY `product_type_2` (`product_type`,`name`),
  KEY `product_type_3` (`product_type`,`name`),
  KEY `product_type_4` (`product_type`,`name`),
  KEY `product_type_5` (`product_type`,`name`),
  KEY `product_type_6` (`product_type`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `policies`
--

INSERT INTO `policies` VALUES (1,'Customers in Union','NONE',NULL,NULL,5,7,NULL,NULL,'Inactive','2023-07-24 13:46:33','2023-07-24 13:12:00',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,'Maximum Group Per Relationship Officer','2',NULL,NULL,NULL,NULL,NULL,NULL,'Active','2023-07-24 14:11:17','2023-07-24 13:11:17',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,'Loan Account','Interest Waiver',NULL,NULL,NULL,NULL,NULL,'L2','Inactive','2023-07-24 16:42:18','2023-07-25 09:03:46',0,'6 , 9',NULL,NULL,NULL,13,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'5 , 6 , 7 , 8 , 9 , 10',NULL,NULL,NULL,NULL,NULL,NULL,'No',NULL,NULL,NULL,NULL),(4,'Loan Account','Maximum Loan Accounts',NULL,NULL,NULL,NULL,NULL,NULL,'Active','2023-07-25 10:35:25','2023-07-25 16:04:12',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,NULL,'No','1 , 2 , 5',NULL,NULL,NULL),(5,'Loan Account','Access Loan on Loan',NULL,NULL,NULL,NULL,NULL,NULL,'Active','2023-07-25 10:37:29','2023-07-25 13:07:06',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,40,60,'No',NULL,'4',NULL,NULL),(6,'Loan Account','Loan Amount Increment',NULL,NULL,NULL,NULL,NULL,NULL,'Active','2023-07-25 15:01:42','2023-07-25 14:01:42',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'No',NULL,NULL,NULL,NULL),(7,'Customer','ID Validation',NULL,NULL,NULL,NULL,NULL,NULL,'Active','2023-07-25 16:08:47','2023-07-25 15:08:47',0,'6 , 9','Yes','BVN','No',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(8,'Customer','Require Profile Photo',NULL,NULL,NULL,NULL,NULL,NULL,'Active','2023-07-25 16:40:02','2023-07-25 15:40:02',0,'6 , 9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(9,'Account Documents','Require Document Upload',NULL,NULL,NULL,NULL,NULL,'S1 , L1 , L2 , L4 , L5','Active','2023-07-25 17:36:30','2023-07-25 16:36:30',0,'6 , 9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Yes',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(10,'Loan Account','Guarantor',NULL,NULL,23,65,NULL,NULL,'Active','2023-07-25 17:41:00','2023-07-25 16:41:00',0,'6 , 9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'Yes','Yes',NULL,'Yes',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'No',NULL,NULL,NULL,NULL);

--
-- Table structure for table `policy_charges`
--

CREATE TABLE `policy_charges` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `policy_id` bigint(20) NOT NULL,
  `min_amount` bigint(20) NOT NULL,
  `max_amount` bigint(20) NOT NULL,
  `validate_type` varchar(1000) DEFAULT NULL,
  `recommend_type` varchar(1000) DEFAULT NULL,
  `approve_type` varchar(1000) DEFAULT NULL,
  `validator` varchar(1000) DEFAULT NULL,
  `recommender` varchar(1000) DEFAULT NULL,
  `approver` varchar(1000) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `policy_id` (`policy_id`),
  KEY `policy_id_2` (`policy_id`),
  KEY `policy_id_3` (`policy_id`),
  KEY `policy_id_4` (`policy_id`),
  KEY `policy_id_5` (`policy_id`),
  KEY `policy_id_6` (`policy_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `policy_charges`
--


--
-- Table structure for table `privilege_branches`
--

CREATE TABLE `privilege_branches` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `right_id` bigint(20) NOT NULL,
  `branch_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `right_id` (`right_id`,`branch_id`),
  KEY `right_id_2` (`right_id`,`branch_id`),
  KEY `right_id_3` (`right_id`,`branch_id`),
  KEY `right_id_4` (`right_id`,`branch_id`),
  KEY `right_id_5` (`right_id`,`branch_id`),
  KEY `pv2` (`branch_id`,`right_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `privilege_branches`
--


--
-- Table structure for table `privilege_channel`
--

CREATE TABLE `privilege_channel` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `right_id` bigint(20) NOT NULL,
  `channel_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `right_id` (`right_id`,`channel_id`),
  KEY `right_id_2` (`right_id`,`channel_id`),
  KEY `right_id_3` (`right_id`,`channel_id`),
  KEY `right_id_4` (`right_id`,`channel_id`),
  KEY `right_id_5` (`right_id`,`channel_id`),
  KEY `pv3` (`channel_id`,`right_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `privilege_channel`
--


--
-- Table structure for table `privilege_customer_type`
--

CREATE TABLE `privilege_customer_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `right_id` bigint(20) NOT NULL,
  `customer_type_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `right_id` (`right_id`,`customer_type_id`),
  KEY `right_id_2` (`right_id`,`customer_type_id`),
  KEY `right_id_3` (`right_id`,`customer_type_id`),
  KEY `right_id_4` (`right_id`,`customer_type_id`),
  KEY `right_id_5` (`right_id`,`customer_type_id`),
  KEY `right_id_6` (`right_id`,`customer_type_id`),
  KEY `pv4` (`customer_type_id`,`right_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `privilege_customer_type`
--


--
-- Table structure for table `privilege_limit_products`
--

CREATE TABLE `privilege_limit_products` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `right_id` bigint(20) NOT NULL,
  `product_id` varchar(225) NOT NULL,
  `minAmount` double NOT NULL,
  `maxAmount` double NOT NULL,
  PRIMARY KEY (`id`),
  KEY `right_id` (`right_id`,`product_id`),
  KEY `right_id_2` (`right_id`,`product_id`),
  KEY `right_id_3` (`right_id`,`product_id`),
  KEY `right_id_4` (`right_id`,`product_id`),
  KEY `right_id_5` (`right_id`,`product_id`),
  KEY `right_id_6` (`right_id`,`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `privilege_limit_products`
--


--
-- Table structure for table `privilege_rights`
--

CREATE TABLE `privilege_rights` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `privilege_id` bigint(20) NOT NULL,
  `action_id` bigint(20) NOT NULL,
  `apply_to_branch` varchar(225) NOT NULL,
  `apply_to_channel` varchar(225) NOT NULL,
  `apply_to_customertype` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `privilege_id` (`privilege_id`,`action_id`),
  KEY `privilege_id_2` (`privilege_id`,`action_id`),
  KEY `privilege_id_3` (`privilege_id`,`action_id`),
  KEY `privilege_id_4` (`privilege_id`,`action_id`),
  KEY `privilege_id_5` (`privilege_id`,`action_id`),
  KEY `privilege_id_6` (`privilege_id`,`action_id`),
  KEY `pv1` (`action_id`,`privilege_id`),
  KEY `pv8` (`privilege_id`,`action_id`),
  KEY `pv9` (`id`,`apply_to_branch`,`apply_to_channel`,`apply_to_customertype`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `privilege_rights`
--

INSERT INTO `privilege_rights` VALUES (1,1,8,'Own Branch','All Channels','All Customer Types'),(2,1,5,'Own Branch','All Channels','All Customer Types'),(3,1,6,'Own Branch','All Channels','All Customer Types'),(4,1,78,'Own Branch','All Channels','All Customer Types'),(5,1,80,'Own Branch','All Channels','All Customer Types'),(6,1,1,'Own Branch','All Channels','All Customer Types'),(7,1,4,'Own Branch','All Channels','All Customer Types'),(8,1,2,'Own Branch','All Channels','All Customer Types'),(9,1,16,'Own Branch','All Channels','All Customer Types'),(10,1,144,'Own Branch','All Channels','All Customer Types'),(11,1,23,'Own Branch','All Channels','All Customer Types'),(12,1,24,'Own Branch','All Channels','All Customer Types'),(13,1,25,'Own Branch','All Channels','All Customer Types'),(14,1,93,'Own Branch','All Channels','All Customer Types'),(15,1,92,'Own Branch','All Channels','All Customer Types'),(16,1,39,'Own Branch','All Channels','All Customer Types'),(17,1,20,'Own Branch','All Channels','All Customer Types'),(18,1,40,'Own Branch','All Channels','All Customer Types'),(19,1,28,'Own Branch','All Channels','All Customer Types'),(20,1,142,'Own Branch','All Channels','All Customer Types'),(21,1,19,'Own Branch','All Channels','All Customer Types'),(22,1,159,'Own Branch','All Channels','All Customer Types'),(23,1,32,'Own Branch','All Channels','All Customer Types'),(24,1,33,'Own Branch','All Channels','All Customer Types'),(25,1,133,'Own Branch','All Channels','All Customer Types'),(26,1,134,'Own Branch','All Channels','All Customer Types'),(27,1,146,'Own Branch','All Channels','All Customer Types'),(28,1,147,'Own Branch','All Channels','All Customer Types'),(29,1,151,'Own Branch','All Channels','All Customer Types'),(30,1,148,'Own Branch','All Channels','All Customer Types'),(31,1,145,'Own Branch','All Channels','All Customer Types'),(32,1,34,'Own Branch','All Channels','All Customer Types'),(33,1,35,'Own Branch','All Channels','All Customer Types'),(34,1,143,'Own Branch','All Channels','All Customer Types'),(35,1,29,'Own Branch','All Channels','All Customer Types'),(36,2,20,'All Branches','All Channels','All Customer Types'),(37,2,4,'All Branches','All Channels','All Customer Types'),(38,3,20,'All Branches','All Channels','All Customer Types'),(39,3,4,'All Branches','All Channels','All Customer Types'),(40,3,78,'Own Branch','All Channels','All Customer Types'),(41,3,80,'Own Branch','All Channels','All Customer Types'),(42,2,78,'Own Branch','All Channels','All Customer Types'),(43,2,80,'Own Branch','All Channels','All Customer Types');

--
-- Table structure for table `privilege_workflow`
--

CREATE TABLE `privilege_workflow` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `right_id` bigint(20) NOT NULL,
  `validation_type` varchar(225) DEFAULT NULL,
  `recommendation_type` varchar(225) DEFAULT NULL,
  `approval_type` varchar(225) DEFAULT NULL,
  `validate_see` varchar(225) DEFAULT NULL,
  `recommend_see` varchar(225) DEFAULT NULL,
  `approval_see` varchar(225) DEFAULT NULL,
  `escalate_to` varchar(225) DEFAULT NULL,
  `escalate_see` varchar(225) DEFAULT NULL,
  `escalate_time` varchar(225) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `right_id` (`right_id`),
  KEY `right_id_2` (`right_id`),
  KEY `right_id_3` (`right_id`),
  KEY `right_id_4` (`right_id`),
  KEY `right_id_5` (`right_id`),
  KEY `right_id_6` (`right_id`),
  KEY `pv10` (`id`,`right_id`,`validate_see`,`recommend_see`,`approval_see`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `privilege_workflow`
--

INSERT INTO `privilege_workflow` VALUES (1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(6,6,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(7,7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(8,8,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(9,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(10,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(11,11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(12,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(13,13,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(14,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(15,15,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(16,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(17,17,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(18,18,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(19,19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(20,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(21,21,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(22,22,'Role',NULL,'Role','All Branch Users',NULL,'All Users',NULL,NULL,NULL),(23,23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(24,24,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(25,25,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(26,26,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(27,27,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(28,28,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(29,29,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(30,30,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(31,31,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(32,32,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(33,33,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(34,34,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(35,35,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(36,36,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(37,37,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(38,38,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(39,39,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40,40,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(41,41,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(42,42,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(43,43,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `privileges`
--

CREATE TABLE `privileges` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `role_id` bigint(20) NOT NULL,
  `datetime` datetime NOT NULL,
  `created_by` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `role_id` (`role_id`),
  KEY `role_id_2` (`role_id`),
  KEY `role_id_3` (`role_id`),
  KEY `role_id_4` (`role_id`),
  KEY `role_id_5` (`role_id`),
  KEY `role_id_6` (`role_id`),
  KEY `pv7` (`id`,`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `privileges`
--

INSERT INTO `privileges` VALUES (1,106,'2023-07-24 11:51:42',1,'2023-07-24 10:51:42'),(2,105,'2023-07-25 18:28:49',1,'2023-07-25 17:28:49'),(3,108,'2023-07-25 18:29:37',1,'2023-07-25 17:29:37');

--
-- Table structure for table `product_branches`
--

CREATE TABLE `product_branches` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `branchname` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`branchname`),
  KEY `product_id_2` (`product_id`,`branchname`),
  KEY `product_id_3` (`product_id`,`branchname`),
  KEY `product_id_4` (`product_id`,`branchname`),
  KEY `product_id_5` (`product_id`,`branchname`),
  KEY `product_id_6` (`product_id`,`branchname`)
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `product_branches`
--

INSERT INTO `product_branches` VALUES (55,'L1',5),(56,'L1',6),(57,'L1',7),(58,'L1',8),(59,'L1',9),(60,'L1',10),(85,'L2',5),(86,'L2',6),(87,'L2',7),(88,'L2',8),(89,'L2',9),(90,'L2',10),(61,'L4',5),(62,'L4',6),(63,'L4',7),(64,'L4',8),(65,'L4',9),(66,'L4',10),(67,'L5',5),(68,'L5',6),(69,'L5',7),(70,'L5',8),(71,'L5',9),(72,'L5',10),(79,'S1',5),(80,'S1',6),(81,'S1',7),(82,'S1',8),(83,'S1',9),(84,'S1',10);

--
-- Table structure for table `product_channel`
--

CREATE TABLE `product_channel` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `channelname` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`,`channelname`),
  KEY `product_id_2` (`product_id`,`channelname`),
  KEY `product_id_3` (`product_id`,`channelname`),
  KEY `product_id_4` (`product_id`,`channelname`),
  KEY `product_id_5` (`product_id`,`channelname`),
  KEY `product_id_6` (`product_id`,`channelname`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `product_channel`
--

INSERT INTO `product_channel` VALUES (13,'L0',6),(14,'L0',9),(19,'L1',6),(20,'L1',9),(29,'L2',6),(30,'L2',9),(21,'L4',6),(22,'L4',9),(23,'L5',6),(24,'L5',9),(27,'S1',6),(28,'S1',9);

--
-- Table structure for table `product_charges`
--

CREATE TABLE `product_charges` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(225) NOT NULL,
  `cid` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`),
  KEY `product_id_2` (`product_id`,`cid`),
  KEY `product_id_3` (`product_id`,`cid`),
  KEY `product_id_4` (`product_id`,`cid`),
  KEY `product_id_5` (`product_id`,`cid`),
  KEY `product_id_6` (`product_id`,`cid`)
) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `product_charges`
--

INSERT INTO `product_charges` VALUES (30,'L0',2),(38,'L1',2),(39,'L1',3),(40,'L1',4),(41,'L1',6),(42,'L1',7),(43,'L1',8),(55,'L2',2),(56,'L2',3),(57,'L2',4),(58,'L2',6),(59,'L2',7),(60,'L2',8),(44,'L4',2),(45,'L5',2),(46,'L5',3),(47,'L5',4),(48,'L5',6),(49,'L5',7),(50,'L5',8),(52,'S1',1),(53,'S1',9),(54,'S1',10);

--
-- Table structure for table `product_group`
--

CREATE TABLE `product_group` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `type` varchar(225) NOT NULL,
  `parent` varchar(225) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `product_group`
--


--
-- Table structure for table `prospects`
--

CREATE TABLE `prospects` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(225) NOT NULL,
  `middlename` varchar(225) DEFAULT NULL,
  `lastname` varchar(225) NOT NULL,
  `phone_no` varchar(225) NOT NULL,
  `bvn` varchar(225) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `channel` bigint(20) NOT NULL,
  `state` bigint(20) NOT NULL,
  `city` bigint(20) NOT NULL,
  `business_type` bigint(20) NOT NULL,
  `photo` varchar(1000) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Pending',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `prospects`
--


--
-- Table structure for table `recommendation`
--

CREATE TABLE `recommendation` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `assign_user_id` bigint(20) DEFAULT NULL,
  `assign_role_id` bigint(20) DEFAULT NULL,
  `assign_service_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `recommendation`
--


--
-- Table structure for table `recommendation_details`
--

CREATE TABLE `recommendation_details` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `recommendation_id` bigint(20) NOT NULL,
  `recommendation_user_ids` bigint(20) DEFAULT NULL,
  `recommendation_branch_ids` bigint(20) DEFAULT NULL,
  `recommendation_channel_ids` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `recommendation_details`
--


--
-- Table structure for table `recovery_organizations`
--

CREATE TABLE `recovery_organizations` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `address` varchar(1000) NOT NULL,
  `phone_no` varchar(225) NOT NULL,
  `email` varchar(225) DEFAULT NULL,
  `percentage` float NOT NULL,
  `datetime` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `recovery_organizations`
--


--
-- Table structure for table `recursive_penalty_charge`
--

CREATE TABLE `recursive_penalty_charge` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `loan_id` bigint(20) NOT NULL,
  `charge` decimal(65,4) NOT NULL,
  `frequency` varchar(225) NOT NULL,
  `date_added` date NOT NULL,
  `shedule_id` bigint(20) NOT NULL,
  `charge_name` varchar(225) NOT NULL,
  `triggertype` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `loan_id` (`loan_id`,`shedule_id`),
  KEY `loan_id_2` (`loan_id`,`shedule_id`),
  KEY `loan_id_3` (`loan_id`,`shedule_id`),
  KEY `loan_id_4` (`loan_id`,`shedule_id`),
  KEY `loan_id_5` (`loan_id`,`shedule_id`),
  KEY `loan_id_6` (`loan_id`,`shedule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `recursive_penalty_charge`
--


--
-- Table structure for table `recursive_treated`
--

CREATE TABLE `recursive_treated` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `recursive_id` bigint(20) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `recursive_id` (`recursive_id`,`date`),
  KEY `recursive_id_2` (`recursive_id`,`date`),
  KEY `recursive_id_3` (`recursive_id`,`date`),
  KEY `recursive_id_4` (`recursive_id`,`date`),
  KEY `recursive_id_5` (`recursive_id`,`date`),
  KEY `recursive_id_6` (`recursive_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `recursive_treated`
--


--
-- Table structure for table `reference`
--

CREATE TABLE `reference` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `reference1` varchar(1000) DEFAULT NULL,
  `comment` varchar(1000) DEFAULT NULL,
  `status` varchar(225) NOT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `approval_date` datetime DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`status`,`approved_by`),
  KEY `account_id_2` (`account_id`,`status`,`approved_by`),
  KEY `account_id_3` (`account_id`,`status`,`approved_by`),
  KEY `account_id_4` (`account_id`,`status`,`approved_by`),
  KEY `account_id_5` (`account_id`,`status`,`approved_by`),
  KEY `account_id_6` (`account_id`,`status`,`approved_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `reference`
--


--
-- Table structure for table `referrer`
--

CREATE TABLE `referrer` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `referrer`
--

INSERT INTO `referrer` VALUES (3,'Facebook'),(4,'Instagram'),(2,'Marketer'),(1,'Walk in');

--
-- Table structure for table `report_and_groups`
--

CREATE TABLE `report_and_groups` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_id` bigint(20) NOT NULL,
  `report_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`,`report_id`),
  KEY `group_id_2` (`group_id`,`report_id`),
  KEY `group_id_3` (`group_id`,`report_id`),
  KEY `group_id_4` (`group_id`,`report_id`),
  KEY `group_id_5` (`group_id`,`report_id`),
  KEY `group_id_6` (`group_id`,`report_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `report_and_groups`
--


--
-- Table structure for table `report_group`
--

CREATE TABLE `report_group` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `report_group`
--


--
-- Table structure for table `report_parameters`
--

CREATE TABLE `report_parameters` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `report_id` bigint(20) NOT NULL,
  `param_name` varchar(225) NOT NULL,
  `param_slug` varchar(225) NOT NULL,
  `param_type` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `report_id` (`report_id`),
  KEY `report_id_2` (`report_id`),
  KEY `report_id_3` (`report_id`),
  KEY `report_id_4` (`report_id`),
  KEY `report_id_5` (`report_id`),
  KEY `report_id_6` (`report_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `report_parameters`
--

INSERT INTO `report_parameters` VALUES (4,3,'Branch','branch','Branch'),(5,3,'Overdue Date','overdue_date','Date'),(12,2,'Branch','branch','Branch'),(13,2,'From','start_date','Date'),(14,2,'To','end_date','Date'),(15,4,'Collection date','collection_date','Date'),(16,4,'Branch','branch','Branch'),(17,4,'CSO','marketter_name','Relationship Officer'),(18,4,'Union','union_name','Group');

--
-- Table structure for table `report_roles`
--

CREATE TABLE `report_roles` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `report_id` bigint(20) NOT NULL,
  `role` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `report_id` (`report_id`,`role`),
  KEY `report_id_2` (`report_id`,`role`),
  KEY `report_id_3` (`report_id`,`role`),
  KEY `report_id_4` (`report_id`,`role`),
  KEY `report_id_5` (`report_id`,`role`),
  KEY `report_id_6` (`report_id`,`role`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `report_roles`
--

INSERT INTO `report_roles` VALUES (1,1,100),(2,1,105),(19,2,100),(20,2,105),(21,2,106),(22,2,107),(7,3,100),(8,3,105),(9,3,106),(10,3,107),(23,4,100),(24,4,105),(25,4,106),(26,4,107),(27,4,108);

--
-- Table structure for table `reports`
--

CREATE TABLE `reports` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `description` varchar(1000) DEFAULT NULL,
  `report_file` varchar(1000) DEFAULT NULL,
  `process_level` varchar(225) NOT NULL DEFAULT 'Light',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `reports`
--

INSERT INTO `reports` VALUES (1,'consolidated users','consolidated users','consolidated_users','Light'),(2,'Branch trial balance','Branch trial balance','branch_trial_balance','Light'),(3,'Detail branch ageing loan','Detail branch ageing loan','detail_branch_ageing_loan','Light'),(4,'Daily Field Collection','Daily Field Collection','group_daily_field_collection','Light');

--
-- Table structure for table `restructured_loan`
--

CREATE TABLE `restructured_loan` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `loan_id` bigint(20) NOT NULL,
  `old_interest` float NOT NULL,
  `new_interest` float NOT NULL,
  `old_term` bigint(20) NOT NULL,
  `new_term` bigint(20) NOT NULL,
  `old_term_type` varchar(225) NOT NULL,
  `new_term_type` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL,
  `installment_due` text,
  `loan_balance` text,
  `loan_interest` text,
  `expected_principal` text,
  `initiated_by` bigint(20) NOT NULL,
  `validated_by` bigint(20) DEFAULT NULL,
  `recommended_by` bigint(20) DEFAULT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `initiation_date` date NOT NULL,
  `validation_date` date DEFAULT NULL,
  `recomendation_date` date DEFAULT NULL,
  `approval_date` date DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `loan_id` (`loan_id`,`status`,`initiated_by`,`validated_by`,`recommended_by`,`approved_by`,`initiation_date`,`validation_date`,`approval_date`),
  KEY `loan_id_2` (`loan_id`,`status`,`initiated_by`,`validated_by`,`recommended_by`,`approved_by`,`initiation_date`,`validation_date`,`approval_date`),
  KEY `loan_id_3` (`loan_id`,`status`,`initiated_by`,`validated_by`,`recommended_by`,`approved_by`,`initiation_date`,`validation_date`,`approval_date`),
  KEY `loan_id_4` (`loan_id`,`status`,`initiated_by`,`validated_by`,`recommended_by`,`approved_by`,`initiation_date`,`validation_date`,`approval_date`),
  KEY `loan_id_5` (`loan_id`,`status`,`initiated_by`,`validated_by`,`recommended_by`,`approved_by`,`initiation_date`,`validation_date`,`approval_date`),
  KEY `loan_id_6` (`loan_id`,`status`,`initiated_by`,`validated_by`,`recommended_by`,`approved_by`,`initiation_date`,`validation_date`,`approval_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `restructured_loan`
--


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

CREATE TABLE `roles` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `description` varchar(225) DEFAULT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'Active',
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  `migration_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `migration_id` (`migration_id`)
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `roles` VALUES (1,'Super Administrator','This user has all platform privileges','Active',0,NULL),(100,'Mobile Banking','Role for all customer users','Active',0,NULL),(105,'Divisional Manager','Manages a division','Active',0,NULL),(106,'Data Entry Staff','Data Entry Staff','Active',0,NULL),(107,'Client Support Officer','Client management','Active',0,NULL),(108,'Audit Officer','Internal Audit','Active',0,NULL);

--
-- Table structure for table `savingsproduct`
--

CREATE TABLE `savingsproduct` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_type` varchar(225) NOT NULL,
  `name` varchar(225) NOT NULL,
  `sname` varchar(225) NOT NULL,
  `productGroup` varchar(225) DEFAULT NULL,
  `description` varchar(225) DEFAULT NULL,
  `toDecimalPlace` bigint(20) DEFAULT NULL,
  `nominalRate` double DEFAULT NULL,
  `automaticOpeningBalance` double DEFAULT NULL,
  `autoCreate` varchar(225) DEFAULT NULL,
  `currency` varchar(225) DEFAULT NULL,
  `compoundPeriod` varchar(225) DEFAULT NULL,
  `interestPostingPeriodType` varchar(225) DEFAULT NULL,
  `interestCalculationType` varchar(225) DEFAULT NULL,
  `interestCalculationDaysInYearType` varchar(225) DEFAULT NULL,
  `minimumBalInterestCal` double DEFAULT NULL,
  `minimumPositiveBalance` double DEFAULT NULL,
  `minimumNegativeBalance` double DEFAULT NULL,
  `lockingPeriod` varchar(225) DEFAULT NULL,
  `lockingPeriodType` varchar(225) NOT NULL,
  `allowOverdraft` varchar(225) DEFAULT NULL,
  `trackDormancy` varchar(225) DEFAULT NULL,
  `enableWithdrawalNotice` varchar(225) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `accounting_rule` varchar(225) DEFAULT NULL,
  `saving_reference` varchar(1000) DEFAULT NULL,
  `overdraft_portfolio` varchar(1000) DEFAULT NULL,
  `saving_control` varchar(1000) DEFAULT NULL,
  `interest_on_savings` varchar(1000) DEFAULT NULL,
  `write_off_account` varchar(1000) DEFAULT NULL,
  `expense_small_negative_balance` varchar(1000) DEFAULT NULL,
  `income_from_fees` varchar(1000) DEFAULT NULL,
  `income_from_penalties` varchar(1000) DEFAULT NULL,
  `income_from_interest` varchar(1000) DEFAULT NULL,
  `income_from_small_positive_balance` varchar(1000) DEFAULT NULL,
  `escheat_control` varchar(1000) DEFAULT NULL,
  `lastupdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(225) DEFAULT 'Active',
  `minAmount` double DEFAULT NULL,
  `maxAmount` double DEFAULT NULL,
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  `migration_id` varchar(1000) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`,`sname`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `savingsproduct`
--

INSERT INTO `savingsproduct` VALUES (1,'Savings','Regular Savings','REGSAV','','Regular Savings',2,2,0,'Yes','NGN','Annually','Annually','Simple Interest','360 Days',1000,0,0,'0','Days','No','No','No','2005-06-07',NULL,'OK','39','17','14','16','11','16','12','13','15','18','19','2023-07-24 13:24:26','Active',0,0,1,NULL);

--
-- Table structure for table `schedule_reverse`
--

CREATE TABLE `schedule_reverse` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `shid` bigint(20) NOT NULL,
  `tid` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `shid` (`shid`,`tid`)
) ENGINE=InnoDB AUTO_INCREMENT=143 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `schedule_reverse`
--


--
-- Table structure for table `sectors`
--

CREATE TABLE `sectors` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `sectors`
--

INSERT INTO `sectors` VALUES (1,'Commerce'),(2,'Agriculture');

--
-- Table structure for table `sms_alert_phone`
--

CREATE TABLE `sms_alert_phone` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `phone_no` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(8) NOT NULL DEFAULT 'Active',
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`phone_no`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `sms_alert_phone`
--

INSERT INTO `sms_alert_phone` VALUES (1,6,'08038786721','2023-07-25 15:44:27','Inactive'),(2,6,'08110769758','2023-07-25 15:44:47','Active'),(3,7,'08038786721','2023-07-25 16:06:41','Active'),(4,8,'08038786721','2023-07-25 17:09:55','Active'),(5,9,'08038786721','2023-07-25 17:33:28','Active');

--
-- Table structure for table `sms_campaign`
--

CREATE TABLE `sms_campaign` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `type` varchar(225) NOT NULL,
  `product_type` varchar(225) NOT NULL,
  `business_rule` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL,
  `date_submitted` date NOT NULL,
  `schedule_date` date DEFAULT NULL,
  `frequency` varchar(225) DEFAULT NULL,
  `days_to_due` bigint(20) DEFAULT NULL,
  `branches` varchar(3000) DEFAULT NULL,
  `relationship_officers` varchar(3000) DEFAULT NULL,
  `product_groups` varchar(3000) DEFAULT NULL,
  `message` varchar(1000) NOT NULL,
  `created_by` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `schedule_time` time DEFAULT NULL,
  `schedule_end` date DEFAULT NULL,
  `last_sent_date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`,`product_type`),
  KEY `name_2` (`name`,`product_type`),
  KEY `name_3` (`name`,`product_type`),
  KEY `name_4` (`name`,`product_type`),
  KEY `name_5` (`name`,`product_type`),
  KEY `name_6` (`name`,`product_type`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `sms_campaign`
--

INSERT INTO `sms_campaign` VALUES (1,'Savings Deposit','Triggered','Savings','Funds Deposited','Active','2023-07-25','1970-01-01','',0,NULL,NULL,NULL,'Acct:[accountNo]\r\nCR:#[amount]\r\nDesc:Savings deposit\r\nDate:[vdate]\r\nBal:#[balance]\r\nLAHPI',1,'2023-07-25 15:06:12',NULL,'1970-01-01',NULL),(2,'Loan Disbursement','Triggered','Loan','Loan Disbursed','Active','2023-07-25','1970-01-01','',0,NULL,NULL,NULL,'Acct:[accountNo]\r\nCR:#[amount]\r\nDesc:Loan Disbursement\r\nDate:[vdate]\r\nBal:#[balance]\r\nLAHPI',1,'2023-07-25 15:58:49',NULL,'1970-01-01',NULL);

--
-- Table structure for table `social_class`
--

CREATE TABLE `social_class` (
  `id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `social_class`
--

INSERT INTO `social_class` VALUES (2,'Middle Class'),(1,'Poor'),(3,'Rich');

--
-- Table structure for table `staff_token`
--

CREATE TABLE `staff_token` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `serial_number` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active',
  `expiry_date` date DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`status`,`expiry_date`),
  KEY `user_id_2` (`user_id`,`status`,`expiry_date`),
  KEY `user_id_3` (`user_id`,`status`,`expiry_date`),
  KEY `user_id_4` (`user_id`,`status`,`expiry_date`),
  KEY `user_id_5` (`user_id`,`status`,`expiry_date`),
  KEY `user_id_6` (`user_id`,`status`,`expiry_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `staff_token`
--


--
-- Table structure for table `standing_instruction`
--

CREATE TABLE `standing_instruction` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `instruction_amount` decimal(65,4) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `ins_comment` varchar(225) DEFAULT NULL,
  `frequency` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL,
  `instruction_type` varchar(225) NOT NULL,
  `repayment_account_type` varchar(225) DEFAULT NULL,
  `beneficiary_loan_ins_own` varchar(225) DEFAULT NULL,
  `repayment_beneficiary_other` varchar(225) DEFAULT NULL,
  `destination_type` varchar(225) DEFAULT NULL,
  `beneficiary_inbound_ins` varchar(225) DEFAULT NULL,
  `beneficiary_old_ins` varchar(225) DEFAULT NULL,
  `beneficiary_acc_bank_ins` varchar(225) DEFAULT NULL,
  `disbursement_acc_number_ins` varchar(225) DEFAULT NULL,
  `beneficiary_own_ins` varchar(225) DEFAULT NULL,
  `electricity_provider` varchar(225) DEFAULT NULL,
  `meter_type` varchar(225) DEFAULT NULL,
  `meter_number` varchar(225) DEFAULT NULL,
  `electricity_mobile` varchar(225) DEFAULT NULL,
  `cable_provider` varchar(225) DEFAULT NULL,
  `cable_plan` varchar(225) DEFAULT NULL,
  `decoder_number` varchar(225) DEFAULT NULL,
  `cable_mobile` varchar(225) DEFAULT NULL,
  `databundle_provider` varchar(225) DEFAULT NULL,
  `databundle_mobile` varchar(225) DEFAULT NULL,
  `airtime_provider` varchar(225) DEFAULT NULL,
  `airtime_mobile` varchar(225) DEFAULT NULL,
  `date_added` datetime NOT NULL,
  `added_by` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `customer_name` varchar(225) DEFAULT NULL,
  `code` varchar(225) DEFAULT NULL,
  `package_name` varchar(225) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`start_date`,`end_date`,`frequency`,`status`,`instruction_type`,`date_added`,`added_by`),
  KEY `account_id_2` (`account_id`,`start_date`,`end_date`,`frequency`,`status`,`instruction_type`,`date_added`,`added_by`),
  KEY `account_id_3` (`account_id`,`start_date`,`end_date`,`frequency`,`status`,`instruction_type`,`date_added`,`added_by`),
  KEY `account_id_4` (`account_id`,`start_date`,`end_date`,`frequency`,`status`,`instruction_type`,`date_added`,`added_by`),
  KEY `account_id_5` (`account_id`,`start_date`,`end_date`,`frequency`,`status`,`instruction_type`,`date_added`,`added_by`),
  KEY `account_id_6` (`account_id`,`start_date`,`end_date`,`frequency`,`status`,`instruction_type`,`date_added`,`added_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `standing_instruction`
--


--
-- Table structure for table `state`
--

CREATE TABLE `state` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `country_id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `country_id` (`country_id`),
  KEY `name` (`name`),
  KEY `name_2` (`name`),
  KEY `name_3` (`name`),
  KEY `name_4` (`name`),
  KEY `name_5` (`name`),
  KEY `name_6` (`name`),
  CONSTRAINT `state_ibfk_1` FOREIGN KEY (`country_id`) REFERENCES `country` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `state`
--

INSERT INTO `state` VALUES (1,1,'FCT'),(2,1,'Abia'),(3,1,'Adamawa'),(4,1,'Akwa Ibom'),(5,1,'Anambra'),(6,1,'Bauchi'),(7,1,'Bayelsa'),(8,1,'Benue'),(9,1,'Borno'),(10,1,'Cross River'),(11,1,'Delta'),(12,1,'Ebonyi'),(13,1,'Edo'),(14,1,'Ekiti'),(15,1,'Enugu'),(16,1,'Gombe'),(17,1,'Imo'),(18,1,'Jigawa'),(19,1,'Kaduna'),(20,1,'Kano'),(21,1,'Katsina'),(22,1,'Kebbi'),(23,1,'Kogi'),(24,1,'Kwara'),(25,1,'Lagos'),(26,1,'Nasarawa'),(27,1,'Niger'),(28,1,'Ogun'),(29,1,'Ondo'),(30,1,'Osun'),(31,1,'Oyo'),(32,1,'Plateau'),(33,1,'Rivers'),(34,1,'Sokoto'),(35,1,'Taraba'),(36,1,'Yobe'),(37,1,'Zamfara'),(54,1,'Oyo'),(55,1,'FCT'),(56,1,'Auchi');

--
-- Table structure for table `sub_sectors`
--

CREATE TABLE `sub_sectors` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `sec_id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sec_id` (`sec_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `sub_sectors`
--

INSERT INTO `sub_sectors` VALUES (1,1,'Petty trading');

--
-- Table structure for table `support_loan`
--

CREATE TABLE `support_loan` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `policy_id` bigint(20) NOT NULL,
  `product_id` bigint(20) NOT NULL,
  `value` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `support_loan`
--


--
-- Table structure for table `system_processing_date`
--

CREATE TABLE `system_processing_date` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `start_date` date NOT NULL,
  `closed_date` date DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Open' COMMENT 'Open, Closed',
  `created_by` bigint(20) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `start_date` (`start_date`),
  KEY `closed_date` (`closed_date`),
  KEY `status` (`status`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `system_processing_date`
--

INSERT INTO `system_processing_date` VALUES (1,'2023-01-02','2023-01-02','Closed',1,'2023-07-24 15:43:35'),(2,'2023-07-11','2023-07-11','Closed',1,'2023-07-25 15:22:59'),(3,'2023-07-10',NULL,'Open',1,'2023-07-25 15:25:21');

--
-- Table structure for table `td_posted`
--

CREATE TABLE `td_posted` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`date`),
  KEY `account_id_2` (`account_id`,`date`),
  KEY `account_id_3` (`account_id`,`date`),
  KEY `account_id_4` (`account_id`,`date`),
  KEY `account_id_5` (`account_id`,`date`),
  KEY `account_id_6` (`account_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `td_posted`
--


--
-- Table structure for table `teller_balances`
--

CREATE TABLE `teller_balances` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `type` varchar(225) NOT NULL COMMENT '(Vault, Head Teller, Teller)',
  `branch` bigint(20) NOT NULL,
  `user_id` bigint(20) DEFAULT NULL,
  `balance` decimal(65,2) NOT NULL,
  `gl` bigint(20) NOT NULL,
  `currency` varchar(225) DEFAULT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Closed Out' COMMENT 'Open, Closed, Closed Out',
  `creation_date` date NOT NULL,
  `last_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `type` (`type`,`branch`,`user_id`,`gl`,`currency`,`status`,`creation_date`),
  KEY `type_2` (`type`,`branch`,`user_id`,`gl`,`currency`,`status`,`creation_date`),
  KEY `type_3` (`type`,`branch`,`user_id`,`gl`,`currency`,`status`,`creation_date`),
  KEY `type_4` (`type`,`branch`,`user_id`,`gl`,`currency`,`status`,`creation_date`),
  KEY `type_5` (`type`,`branch`,`user_id`,`gl`,`currency`,`status`,`creation_date`),
  KEY `type_6` (`type`,`branch`,`user_id`,`gl`,`currency`,`status`,`creation_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `teller_balances`
--


--
-- Table structure for table `teller_transactions`
--

CREATE TABLE `teller_transactions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `transaction_id` varchar(225) NOT NULL,
  `from_balance_id` bigint(20) NOT NULL,
  `to_balance_id` bigint(20) NOT NULL,
  `from_user` bigint(20) DEFAULT NULL,
  `to_user` bigint(20) DEFAULT NULL,
  `amount` decimal(65,2) NOT NULL,
  `branch` bigint(20) NOT NULL,
  `description` varchar(225) NOT NULL,
  `comment` varchar(225) NOT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Approved',
  `channel` bigint(20) NOT NULL,
  `value_date` date NOT NULL,
  `transaction_date` datetime NOT NULL,
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  `currency` varchar(225) DEFAULT NULL,
  `difference` decimal(65,4) NOT NULL DEFAULT '0.0000',
  `treated_by` bigint(20) NOT NULL DEFAULT '0',
  `date_treated` datetime DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `transaction_id` (`transaction_id`,`from_balance_id`,`to_balance_id`,`from_user`,`to_user`),
  KEY `branch` (`branch`,`description`,`status`,`channel`,`value_date`),
  KEY `created_by` (`created_by`,`currency`,`treated_by`,`date_treated`),
  KEY `transaction_id_2` (`transaction_id`,`from_balance_id`,`to_balance_id`,`from_user`,`to_user`),
  KEY `branch_2` (`branch`,`description`,`status`,`channel`,`value_date`),
  KEY `created_by_2` (`created_by`,`currency`,`treated_by`,`date_treated`),
  KEY `transaction_id_3` (`transaction_id`,`from_balance_id`,`to_balance_id`,`from_user`,`to_user`),
  KEY `branch_3` (`branch`,`description`,`status`,`channel`,`value_date`),
  KEY `created_by_3` (`created_by`,`currency`,`treated_by`,`date_treated`),
  KEY `transaction_id_4` (`transaction_id`,`from_balance_id`,`to_balance_id`,`from_user`,`to_user`),
  KEY `branch_4` (`branch`,`description`,`status`,`channel`,`value_date`),
  KEY `created_by_4` (`created_by`,`currency`,`treated_by`,`date_treated`),
  KEY `transaction_id_5` (`transaction_id`,`from_balance_id`,`to_balance_id`,`from_user`,`to_user`),
  KEY `branch_5` (`branch`,`description`,`status`,`channel`,`value_date`),
  KEY `created_by_5` (`created_by`,`currency`,`treated_by`,`date_treated`),
  KEY `transaction_id_6` (`transaction_id`,`from_balance_id`,`to_balance_id`,`from_user`,`to_user`),
  KEY `branch_6` (`branch`,`description`,`status`,`channel`,`value_date`),
  KEY `created_by_6` (`created_by`,`currency`,`treated_by`,`date_treated`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `teller_transactions`
--


--
-- Table structure for table `teller_usage`
--

CREATE TABLE `teller_usage` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `balance_id` bigint(20) NOT NULL,
  `user_balance` double NOT NULL DEFAULT '0',
  `last_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`),
  KEY `balance_id` (`balance_id`),
  KEY `balance_id_2` (`balance_id`),
  KEY `balance_id_3` (`balance_id`),
  KEY `balance_id_4` (`balance_id`),
  KEY `balance_id_5` (`balance_id`),
  KEY `balance_id_6` (`balance_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `teller_usage`
--


--
-- Table structure for table `temp_bvn`
--

CREATE TABLE `temp_bvn` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `bvn` varchar(11) NOT NULL,
  `aid` bigint(20) NOT NULL,
  `bvfname` varchar(225) DEFAULT NULL,
  `bvmname` varchar(225) DEFAULT NULL,
  `bvlname` varchar(225) DEFAULT NULL,
  `bvdob` varchar(225) DEFAULT NULL,
  `bvmobile` varchar(225) DEFAULT NULL,
  `bvgender` varchar(225) DEFAULT NULL,
  `bvphoto` varchar(1000) DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `bvfname` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_2` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_2` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_3` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_3` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_4` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_4` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_5` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_5` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_6` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_6` (`aid`,`bvdob`,`bvmobile`,`bvgender`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temp_bvn`
--

INSERT INTO `temp_bvn` VALUES (1,'22243191853',7,'TESSY','OGHOMWEN','EHIGIAMUSOE','04-02-1984','08066278299','Female',NULL,'2023-07-25 15:11:19'),(2,'22201927614',7,'NOAH','','AKPOVEGHO','12-06-1985','08038786721','Male',NULL,'2023-07-25 15:20:07'),(3,'22251452605',7,'TITILAYO','','AFOLABI','15-10-1980','08161193927','Female',NULL,'2023-07-25 15:22:55');

--
-- Table structure for table `temp_bvn_g`
--

CREATE TABLE `temp_bvn_g` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `bvn` varchar(11) NOT NULL,
  `aid` bigint(20) NOT NULL,
  `bvfname` varchar(225) DEFAULT NULL,
  `bvmname` varchar(225) DEFAULT NULL,
  `bvlname` varchar(225) DEFAULT NULL,
  `bvdob` varchar(225) DEFAULT NULL,
  `bvmobile` varchar(225) DEFAULT NULL,
  `bvgender` varchar(225) DEFAULT NULL,
  `bvphoto` varchar(1000) DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `bvfname` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_2` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_2` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_3` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_3` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_4` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_4` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_5` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_5` (`aid`,`bvdob`,`bvmobile`,`bvgender`),
  KEY `bvfname_6` (`bvfname`,`bvmname`,`bvlname`),
  KEY `aid_6` (`aid`,`bvdob`,`bvmobile`,`bvgender`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temp_bvn_g`
--

INSERT INTO `temp_bvn_g` VALUES (1,'22266426064',7,'JOB','','OVBIAGELE','24-07-1983','08050889595','Male',NULL,'2023-07-25 17:01:34'),(2,'22370554460',7,'AGHAMA','BECKY','OSAZUWA','08-09-1997','08145844265','Female',NULL,'2023-07-25 17:03:15');

--
-- Table structure for table `temp_charge`
--

CREATE TABLE `temp_charge` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_number` varchar(225) NOT NULL,
  `charge_amount` double NOT NULL,
  `charge_name` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `frequency` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `account_number` (`account_number`,`charge_name`,`frequency`),
  KEY `account_number_2` (`account_number`,`charge_name`,`frequency`),
  KEY `account_number_3` (`account_number`,`charge_name`,`frequency`),
  KEY `account_number_4` (`account_number`,`charge_name`,`frequency`),
  KEY `account_number_5` (`account_number`,`charge_name`,`frequency`),
  KEY `account_number_6` (`account_number`,`charge_name`,`frequency`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temp_charge`
--


--
-- Table structure for table `temp_g`
--

CREATE TABLE `temp_g` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `tid` bigint(20) NOT NULL,
  `aid` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tid` (`tid`,`aid`),
  KEY `tid_2` (`tid`,`aid`),
  KEY `tid_3` (`tid`,`aid`),
  KEY `tid_4` (`tid`,`aid`),
  KEY `tid_5` (`tid`,`aid`),
  KEY `tid_6` (`tid`,`aid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temp_g`
--


--
-- Table structure for table `temp_loan`
--

CREATE TABLE `temp_loan` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `installment_due` varchar(1000) NOT NULL,
  `loan_balance` varchar(1000) NOT NULL,
  `loan_interest` varchar(1000) NOT NULL,
  `expected_principal` varchar(1000) NOT NULL,
  `gracePeriod` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`customer_id`),
  KEY `account_id_2` (`account_id`,`customer_id`),
  KEY `account_id_3` (`account_id`,`customer_id`),
  KEY `account_id_4` (`account_id`,`customer_id`),
  KEY `account_id_5` (`account_id`,`customer_id`),
  KEY `account_id_6` (`account_id`,`customer_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temp_loan`
--


--
-- Table structure for table `temp_repay`
--

CREATE TABLE `temp_repay` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `amount` decimal(65,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`),
  KEY `account_id_2` (`account_id`),
  KEY `account_id_3` (`account_id`),
  KEY `account_id_4` (`account_id`),
  KEY `repam` (`account_id`,`amount`),
  KEY `account_id_5` (`account_id`),
  KEY `account_id_6` (`account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temp_repay`
--


--
-- Table structure for table `temp_token`
--

CREATE TABLE `temp_token` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `token_serial` varchar(225) NOT NULL,
  `csv_path` varchar(1000) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `user_id_2` (`user_id`),
  KEY `user_id_3` (`user_id`),
  KEY `user_id_4` (`user_id`),
  KEY `user_id_5` (`user_id`),
  KEY `user_id_6` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temp_token`
--


--
-- Table structure for table `temp_token_customer`
--

CREATE TABLE `temp_token_customer` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `token_serial` varchar(225) NOT NULL,
  `csv_path` varchar(1000) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `user_id_2` (`user_id`),
  KEY `user_id_3` (`user_id`),
  KEY `user_id_4` (`user_id`),
  KEY `user_id_5` (`user_id`),
  KEY `user_id_6` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temp_token_customer`
--


--
-- Table structure for table `template`
--

CREATE TABLE `template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `type` varchar(225) NOT NULL,
  `rule` varchar(225) DEFAULT NULL,
  `prefix` varchar(3) DEFAULT NULL,
  `product_type` varchar(225) DEFAULT NULL,
  `product` bigint(20) DEFAULT NULL,
  `character_type` varchar(225) DEFAULT NULL,
  `character_length` varchar(225) DEFAULT NULL,
  `is_upload_required` varchar(225) DEFAULT NULL,
  `is_issue_date_required` varchar(225) DEFAULT NULL,
  `is_expiry_date_required` varchar(225) DEFAULT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Active' COMMENT 'Active, Inactive',
  `is_bvn` varchar(225) DEFAULT NULL,
  `validate_bvn` varchar(225) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `product_type` (`product_type`),
  KEY `product` (`product`),
  KEY `status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `template`
--

INSERT INTO `template` VALUES (1,'Regular Savings','Account Number','NUBAN','101','Savings',1,NULL,NULL,NULL,NULL,NULL,'Active',NULL,NULL),(2,'Agric Loan Monthly','Account Number','NUBAN','201','Loan',1,NULL,NULL,NULL,NULL,NULL,'Active',NULL,NULL),(3,'Regular Loan Weekly','Account Number','NUBAN','202','Loan',2,NULL,NULL,NULL,NULL,NULL,'Active',NULL,NULL),(4,'Clean energy','Account Number','NUBAN','203','Loan',4,NULL,NULL,NULL,NULL,NULL,'Active',NULL,NULL),(5,'Business support Loan','Account Number','NUBAN','204','Loan',5,NULL,NULL,NULL,NULL,NULL,'Active',NULL,NULL),(6,'Nigerian BVN','Identification',NULL,NULL,NULL,NULL,'Numeric Only','11','No','','','Active','Yes','Yes');

--
-- Table structure for table `template_branches`
--

CREATE TABLE `template_branches` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `template_id` bigint(20) NOT NULL,
  `branchname` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `template_id` (`template_id`,`branchname`),
  KEY `template_id_2` (`template_id`,`branchname`),
  KEY `template_id_3` (`template_id`,`branchname`),
  KEY `template_id_4` (`template_id`,`branchname`),
  KEY `template_id_5` (`template_id`,`branchname`),
  KEY `template_id_6` (`template_id`,`branchname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `template_branches`
--


--
-- Table structure for table `template_entity`
--

CREATE TABLE `template_entity` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `template_id` bigint(20) NOT NULL,
  `name` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `template_id` (`template_id`,`name`),
  KEY `template_id_2` (`template_id`,`name`),
  KEY `template_id_3` (`template_id`,`name`),
  KEY `template_id_4` (`template_id`,`name`),
  KEY `template_id_5` (`template_id`,`name`),
  KEY `template_id_6` (`template_id`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `template_entity`
--

INSERT INTO `template_entity` VALUES (1,6,'Accounts');

--
-- Table structure for table `template_products`
--

CREATE TABLE `template_products` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `template_id` bigint(20) NOT NULL,
  `product_id` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `template_id` (`template_id`,`product_id`),
  KEY `template_id_2` (`template_id`,`product_id`),
  KEY `template_id_3` (`template_id`,`product_id`),
  KEY `template_id_4` (`template_id`,`product_id`),
  KEY `template_id_5` (`template_id`,`product_id`),
  KEY `template_id_6` (`template_id`,`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `template_products`
--

INSERT INTO `template_products` VALUES (2,6,'L1'),(3,6,'L2'),(4,6,'L4'),(5,6,'L5'),(1,6,'S1');

--
-- Table structure for table `term_deposit_product`
--

CREATE TABLE `term_deposit_product` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_type` varchar(225) NOT NULL,
  `name` varchar(225) NOT NULL,
  `sname` varchar(225) NOT NULL,
  `productGroup` varchar(225) DEFAULT NULL,
  `description` varchar(225) NOT NULL,
  `toDecimalPlace` bigint(20) NOT NULL,
  `automaticOpeningBalance` double NOT NULL,
  `autoCreate` varchar(225) NOT NULL,
  `currency` varchar(225) NOT NULL,
  `compoundPeriod` varchar(225) NOT NULL,
  `interestPostingPeriodType` varchar(225) NOT NULL,
  `interestCalculationType` varchar(225) NOT NULL,
  `interestCalculationDaysInYearType` varchar(225) NOT NULL,
  `minimumBalInterestCal` double NOT NULL,
  `minimumPositiveBalance` double NOT NULL,
  `minimumNegativeBalance` double NOT NULL,
  `lockingPeriod` varchar(225) NOT NULL,
  `lockingPeriodType` varchar(225) NOT NULL,
  `allowOverdraft` varchar(225) DEFAULT NULL,
  `trackDormancy` varchar(225) DEFAULT NULL,
  `enableWithdrawalNotice` varchar(225) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `accounting_rule` varchar(225) NOT NULL,
  `saving_reference` varchar(1000) DEFAULT NULL,
  `overdraft_portfolio` varchar(1000) DEFAULT NULL,
  `saving_control` varchar(1000) DEFAULT NULL,
  `interest_on_savings` varchar(1000) DEFAULT NULL,
  `write_off_account` varchar(1000) DEFAULT NULL,
  `expense_small_negative_balance` varchar(1000) DEFAULT NULL,
  `income_from_fees` varchar(1000) DEFAULT NULL,
  `income_from_penalties` varchar(1000) DEFAULT NULL,
  `income_from_interest` varchar(1000) DEFAULT NULL,
  `income_from_small_positive_balance` varchar(1000) DEFAULT NULL,
  `escheat_control` varchar(1000) DEFAULT NULL,
  `lastupdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(225) NOT NULL DEFAULT 'Active',
  `minDuration` bigint(20) NOT NULL,
  `maxDuration` bigint(20) NOT NULL,
  `allow_premature_withdrawal` varchar(225) NOT NULL,
  `allow_premature_closure` varchar(225) NOT NULL,
  `minDurationType` varchar(225) NOT NULL,
  `maxDurationType` varchar(225) NOT NULL,
  `defaulfPrincipal` double NOT NULL,
  `minPrincipal` double NOT NULL,
  `maxPrincipal` double NOT NULL,
  `defaultInterestRate` double NOT NULL,
  `minInterestRate` double NOT NULL,
  `maxInterestRate` double NOT NULL,
  `deposit_type` text,
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`,`sname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `term_deposit_product`
--


--
-- Table structure for table `thrift_posted`
--

CREATE TABLE `thrift_posted` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`date`),
  KEY `account_id_2` (`account_id`,`date`),
  KEY `account_id_3` (`account_id`,`date`),
  KEY `account_id_4` (`account_id`,`date`),
  KEY `account_id_5` (`account_id`,`date`),
  KEY `account_id_6` (`account_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `thrift_posted`
--


--
-- Table structure for table `thriftproduct`
--

CREATE TABLE `thriftproduct` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `product_type` varchar(225) NOT NULL,
  `name` varchar(225) NOT NULL,
  `sname` varchar(225) NOT NULL,
  `productGroup` varchar(225) DEFAULT NULL,
  `description` varchar(225) NOT NULL,
  `toDecimalPlace` bigint(20) NOT NULL,
  `nominalRate` double NOT NULL,
  `automaticOpeningBalance` double NOT NULL,
  `autoCreate` varchar(225) NOT NULL,
  `currency` varchar(225) NOT NULL,
  `compoundPeriod` varchar(225) NOT NULL,
  `interestPostingPeriodType` varchar(225) NOT NULL,
  `interestCalculationType` varchar(225) NOT NULL,
  `interestCalculationDaysInYearType` varchar(225) NOT NULL,
  `minimumBalInterestCal` double NOT NULL,
  `minimumPositiveBalance` double NOT NULL,
  `minimumNegativeBalance` double NOT NULL,
  `lockingPeriod` varchar(225) NOT NULL,
  `lockingPeriodType` varchar(225) NOT NULL,
  `allowOverdraft` varchar(225) DEFAULT NULL,
  `trackDormancy` varchar(225) DEFAULT NULL,
  `enableWithdrawalNotice` varchar(225) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `accounting_rule` varchar(225) NOT NULL,
  `saving_reference` varchar(1000) DEFAULT NULL,
  `overdraft_portfolio` varchar(1000) DEFAULT NULL,
  `saving_control` varchar(1000) DEFAULT NULL,
  `interest_on_savings` varchar(1000) DEFAULT NULL,
  `write_off_account` varchar(1000) DEFAULT NULL,
  `expense_small_negative_balance` varchar(1000) DEFAULT NULL,
  `income_from_fees` varchar(1000) DEFAULT NULL,
  `income_from_penalties` varchar(1000) DEFAULT NULL,
  `income_from_interest` varchar(1000) DEFAULT NULL,
  `income_from_small_positive_balance` varchar(1000) DEFAULT NULL,
  `escheat_control` varchar(1000) DEFAULT NULL,
  `lastupdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(225) NOT NULL DEFAULT 'Active',
  `minAmount` double DEFAULT NULL,
  `maxAmount` double DEFAULT NULL,
  `minDuration` bigint(20) NOT NULL,
  `maxDuration` bigint(20) NOT NULL,
  `keep_circle_track` varchar(225) NOT NULL,
  `allow_premature_withdrawal` varchar(225) NOT NULL,
  `allow_premature_closure` varchar(225) NOT NULL,
  `minDurationType` varchar(225) NOT NULL,
  `maxDurationType` varchar(225) NOT NULL,
  `plan_count` bigint(20) DEFAULT NULL,
  `created_by` bigint(20) NOT NULL DEFAULT '0',
  `deduct_charge_per_tenure` varchar(3) NOT NULL DEFAULT 'No',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`,`sname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `thriftproduct`
--


--
-- Table structure for table `tldifference`
--

CREATE TABLE `tldifference` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `bid` bigint(20) NOT NULL,
  `user_id` bigint(20) NOT NULL,
  `amount` decimal(65,4) NOT NULL,
  `type` varchar(225) NOT NULL,
  `transfer_id` bigint(20) DEFAULT NULL,
  `date` date NOT NULL,
  `datetime` datetime NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `bid` (`bid`,`user_id`,`type`,`transfer_id`,`date`),
  KEY `bid_2` (`bid`,`user_id`,`type`,`transfer_id`,`date`),
  KEY `bid_3` (`bid`,`user_id`,`type`,`transfer_id`,`date`),
  KEY `bid_4` (`bid`,`user_id`,`type`,`transfer_id`,`date`),
  KEY `bid_5` (`bid`,`user_id`,`type`,`transfer_id`,`date`),
  KEY `bid_6` (`bid`,`user_id`,`type`,`transfer_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `tldifference`
--


--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` bigint(200) NOT NULL AUTO_INCREMENT,
  `transaction_id` varchar(225) NOT NULL,
  `account_number` varchar(225) DEFAULT NULL,
  `customer_id` bigint(20) DEFAULT NULL,
  `previous_balance` double NOT NULL,
  `current_balance` double NOT NULL,
  `transaction_amount` double NOT NULL,
  `transaction_type` varchar(225) NOT NULL,
  `transaction_description` varchar(225) NOT NULL,
  `transaction_date` datetime NOT NULL,
  `value_date` date NOT NULL,
  `comment` varchar(225) DEFAULT NULL,
  `to_account` varchar(225) DEFAULT NULL,
  `bank` varchar(225) DEFAULT NULL,
  `transfer_type` varchar(225) DEFAULT NULL,
  `transfer_id` bigint(20) DEFAULT NULL,
  `overpayment_id` bigint(20) DEFAULT NULL,
  `status` varchar(225) NOT NULL DEFAULT 'Approved' COMMENT 'Approved, Reversed, X-no reversal',
  `branch_id` bigint(20) NOT NULL,
  `relationship_manager` bigint(20) NOT NULL,
  `channel` bigint(20) DEFAULT NULL,
  `created_by` bigint(20) DEFAULT NULL,
  `tr_group` varchar(225) DEFAULT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `is_disbursement` bigint(1) NOT NULL DEFAULT '1' COMMENT '1- Not Disbursement, 2- Disbursement',
  `teller_id` bigint(20) NOT NULL DEFAULT '0',
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `offline_id` bigint(20) DEFAULT NULL,
  `asset_id` bigint(20) NOT NULL DEFAULT '0',
  `is_digital_charge` bigint(20) NOT NULL DEFAULT '0' COMMENT '0-No, 1-Yes',
  PRIMARY KEY (`id`),
  KEY `account_number` (`account_number`),
  KEY `customer_id` (`customer_id`),
  KEY `transaction_type` (`transaction_type`),
  KEY `transaction_description` (`transaction_description`),
  KEY `value_date` (`value_date`),
  KEY `to_account` (`to_account`),
  KEY `transaction_id` (`transaction_id`),
  KEY `overpayment_id` (`overpayment_id`),
  KEY `comment` (`comment`),
  KEY `relationship_manager` (`relationship_manager`),
  KEY `branch_id` (`branch_id`),
  KEY `created_by` (`created_by`),
  KEY `channel` (`channel`),
  KEY `tr_group` (`tr_group`)
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `transactions`
--

INSERT INTO `transactions` VALUES (1,'CD2023022908443476','1011270377',18,0,10000,10000,'Credit','Deposit','2023-07-24 14:29:08','2023-01-02','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023022908',NULL,1,0,'2023-07-24 13:29:08',NULL,0,0),(2,'DD2023023441240886','1011270377',18,10000,0,10000,'Debit','Withdraw','2023-07-24 14:34:41','2023-01-02','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023023441',NULL,1,0,'2023-07-24 13:34:41',NULL,0,0),(3,'CD2023031823233801','1011270377',18,0,7000,7000,'Credit','Deposit','2023-07-24 15:18:23','2023-01-02','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023031823',NULL,1,0,'2023-07-24 14:18:23',NULL,0,0),(9,'CD2023045323716775','1011270377',18,7000,17000,10000,'Credit','Deposit','2023-07-24 16:53:23','2023-07-11','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023045323',NULL,1,0,'2023-07-24 15:53:23',NULL,0,0),(10,'DD2023045401124836','2029767782',18,0,-120000,100000,'Debit','Loan Disbursement','2023-07-24 16:54:01','2023-07-11','Loan Disbursed',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023045401',NULL,2,0,'2023-07-24 15:54:02',NULL,0,0),(11,'DD2023045402922044','1011270377',18,17000,16500,500,'Debit','Passbook','2023-07-24 16:54:01','2023-07-11','Passbook',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023045401',NULL,1,0,'2023-07-24 15:54:02',NULL,0,1),(12,'DD2023045403874010','1011270377',18,16500,15500,1000,'Debit','Admin Fee','2023-07-24 16:54:01','2023-07-11','Admin Fee',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023045401',NULL,1,0,'2023-07-24 15:54:03',NULL,0,0),(13,'DD2023045403878633','1011270377',18,15500,14800,700,'Debit','Branch council fund (liability)','2023-07-24 16:54:01','2023-07-11','Branch council fund (liability)',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023045401',NULL,1,0,'2023-07-24 15:54:03',NULL,0,0),(14,'DD2023045403928100','1011270377',18,14800,14000,800,'Debit','Insurance income','2023-07-24 16:54:01','2023-07-11','Insurance income',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023045401',NULL,1,0,'2023-07-24 15:54:03',NULL,0,0),(15,'DD2023045403791060','1011270377',18,14000,12800,1200,'Debit','Insurance liability','2023-07-24 16:54:01','2023-07-11','Insurance liability',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023045401',NULL,1,0,'2023-07-24 15:54:03',NULL,0,0),(16,'DD2023021551555213','2039960430',18,0,-114310,100000,'Debit','Loan Disbursement','2023-07-25 14:15:51','2023-07-11','Loan Disbursed',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023021551',NULL,2,0,'2023-07-25 13:15:52',NULL,0,0),(17,'RD2023021832528982','2029767782',18,-120000,-72000,48000,'Credit','Repayment','2023-07-25 14:18:32','2023-07-11','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023021832',NULL,1,0,'2023-07-25 13:18:32',NULL,0,0),(18,'RD2023022020240198','2029767782',18,-72000,0,72000,'Credit','Repayment','2023-07-25 14:20:20','2023-07-11','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023022020',NULL,1,0,'2023-07-25 13:20:21',NULL,0,0),(19,'DD2023024502109587','2019183772',18,0,-125000,100000,'Debit','Loan Disbursement','2023-07-25 14:45:02','2023-07-11','Loan Disbursed',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023024502',NULL,2,0,'2023-07-25 13:45:02',NULL,0,0),(20,'DD2023024503340846','1011270377',18,12800,11800,1000,'Debit','Admin Fee','2023-07-25 14:45:02','2023-07-11','Admin Fee',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023024502',NULL,1,0,'2023-07-25 13:45:03',NULL,0,0),(21,'DD2023024503485251','1011270377',18,11800,11100,700,'Debit','Branch council fund (liability)','2023-07-25 14:45:02','2023-07-11','Branch council fund (liability)',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023024502',NULL,1,0,'2023-07-25 13:45:03',NULL,0,0),(22,'DD2023024503952070','1011270377',18,11100,10300,800,'Debit','Insurance income','2023-07-25 14:45:02','2023-07-11','Insurance income',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023024502',NULL,1,0,'2023-07-25 13:45:03',NULL,0,0),(23,'DD2023024503884322','1011270377',18,10300,9100,1200,'Debit','Insurance liability','2023-07-25 14:45:02','2023-07-11','Insurance liability',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023024502',NULL,1,0,'2023-07-25 13:45:03',NULL,0,0),(24,'RD2023024737304017','2019183772',18,-125000,-75000,50000,'Credit','Repayment','2023-07-25 14:47:37','2023-07-11','',NULL,NULL,NULL,NULL,NULL,'Reversed',7,8,6,7,'2023024737',NULL,1,0,'2023-07-25 13:50:46',NULL,0,0),(25,'RV-D2023025046787005','2019183772',18,-75000,-125000,50000,'Debit','Reversal','2023-07-25 14:50:46','2023-07-11','Loan Repayment Reversal',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,NULL,NULL,1,0,'2023-07-25 13:50:46',NULL,0,0),(26,'RD2023025141317863','2019183772',18,-125000,-75000,50000,'Credit','Repayment','2023-07-25 14:51:41','2023-07-11','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023025141',NULL,1,0,'2023-07-25 13:51:41',NULL,0,0),(27,'RD2023031910262035','2019183772',18,-75000,0,75000,'Credit','Repayment','2023-07-25 15:19:10','2023-07-11','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023031910',NULL,1,0,'2023-07-25 14:19:10',NULL,0,0),(28,'CD2023032008186706','1011270377',18,9100,20100,11000,'Credit','Deposit','2023-07-25 15:20:08','2023-07-11','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023032008',NULL,1,0,'2023-07-25 14:20:08',NULL,0,0),(29,'DN2023043422444992','1011440089',19,0,-100,100,'Debit','BVN Validation Fee','2023-07-25 16:34:21','2023-07-10','BVN Validation Fee',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023043421',NULL,2,0,'2023-07-25 15:34:22',NULL,0,1),(30,'CN2023043458946186','1011440089',19,-100,9900,10000,'Credit','Deposit','2023-07-25 16:34:58','2023-07-10','Self',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023043458',NULL,1,0,'2023-07-25 15:34:58',NULL,0,0),(31,'DN2023043458385473','1011440089',19,9900,9896,4,'Debit','SMS','2023-07-25 16:34:58','2023-07-10','SMS',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023043458',NULL,1,0,'2023-07-25 15:34:58',NULL,0,0),(32,'CN2023044600802119','1011440089',19,9896,14896,5000,'Credit','Deposit','2023-07-25 16:46:00','2023-07-10','',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,'2023044600',NULL,1,0,'2023-07-25 15:46:00',NULL,0,0),(33,'DN2023044601621873','1011440089',19,14896,14892,4,'Debit','SMS','2023-07-25 16:46:00','2023-07-10','SMS',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023044600',NULL,1,0,'2023-07-25 15:46:01',NULL,0,0),(34,'DN2023050641270499','2022434914',19,0,-240,200,'Debit','Loan Disbursement','2023-07-25 17:06:41','2023-07-10','Loan Disbursed',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023050641',NULL,2,0,'2023-07-25 16:06:43',NULL,0,0),(35,'DN2023050643543177','1011440089',19,14892,14392,500,'Debit','Passbook','2023-07-25 17:06:41','2023-07-10','Passbook',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023050641',NULL,1,0,'2023-07-25 16:06:43',NULL,0,1),(36,'DN2023050643578269','1011440089',19,14392,14390,2,'Debit','Admin Fee','2023-07-25 17:06:41','2023-07-10','Admin Fee',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023050641',NULL,1,0,'2023-07-25 16:06:43',NULL,0,0),(37,'DN2023050643651889','1011440089',19,14390,13690,700,'Debit','Branch council fund (liability)','2023-07-25 17:06:41','2023-07-10','Branch council fund (liability)',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023050641',NULL,1,0,'2023-07-25 16:06:43',NULL,0,0),(38,'DN2023050643373245','1011440089',19,13690,13688.4,1.6,'Debit','Insurance income','2023-07-25 17:06:41','2023-07-10','Insurance income',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023050641',NULL,1,0,'2023-07-25 16:06:43',NULL,0,0),(39,'DN2023050643828592','1011440089',19,13688.4,13686,2.4,'Debit','Insurance liability','2023-07-25 17:06:41','2023-07-10','Insurance liability',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023050641',NULL,1,0,'2023-07-25 16:06:43',NULL,0,0),(40,'WN2023055430860084','2022434914',19,-240,0,200.00099999999998,'Credit','Loan Written Off','2023-07-25 17:54:30','2023-07-10','Loan Written Off',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,7,NULL,NULL,1,0,'2023-07-25 16:54:30',NULL,0,0),(41,'DN2023061002731762','2013897420',19,0,-125000,100000,'Debit','Loan Disbursement','2023-07-25 18:10:02','2023-07-10','Loan Disbursed',NULL,NULL,NULL,NULL,NULL,'Reversed',7,8,6,7,'2023061002',NULL,2,0,'2023-07-25 17:17:12',NULL,0,0),(42,'DN2023061003255136','1011440089',19,13686,12686,1000,'Debit','Admin Fee','2023-07-25 18:10:02','2023-07-10','Admin Fee',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023061002',NULL,1,0,'2023-07-25 17:10:03',NULL,0,0),(43,'DN2023061003426641','1011440089',19,12686,11986,700,'Debit','Branch council fund (liability)','2023-07-25 18:10:02','2023-07-10','Branch council fund (liability)',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023061002',NULL,1,0,'2023-07-25 17:10:03',NULL,0,0),(44,'DN2023061003271491','1011440089',19,11986,11186,800,'Debit','Insurance income','2023-07-25 18:10:02','2023-07-10','Insurance income',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023061002',NULL,1,0,'2023-07-25 17:10:03',NULL,0,0),(45,'DN2023061003111238','1011440089',19,11186,9986,1200,'Debit','Insurance liability','2023-07-25 18:10:02','2023-07-10','Insurance liability',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,'2023061002',NULL,1,0,'2023-07-25 17:10:03',NULL,0,0),(46,'RN2023061434225183','2013897420',19,-125000,-75000,50000,'Credit','Repayment','2023-07-25 18:14:34','2023-07-10','',NULL,NULL,NULL,NULL,NULL,'Reversed',7,8,6,7,'2023061434',NULL,1,0,'2023-07-25 17:16:32',NULL,0,0),(47,'RV-N2023061632888802','2013897420',19,-75000,-125000,50000,'Debit','Reversal','2023-07-25 18:16:32','2023-07-10','Loan Repayment Reversal',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,NULL,NULL,1,0,'2023-07-25 17:16:32',NULL,0,0),(48,'RV-N2023061712755362','2013897420',19,-125000,0,100000,'Credit','Reversal','2023-07-25 18:17:12','2023-07-10','Loan Disbursement Reversal',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,NULL,NULL,1,0,'2023-07-25 17:17:12',NULL,0,0),(49,'RV-N2023061713861707','1011440089',19,9986,10986,1000,'Credit','Reversal','2023-07-25 18:17:12','2023-07-10','Admin Fee Reversal',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,NULL,NULL,1,0,'2023-07-25 17:17:13',NULL,0,0),(50,'RV-N2023061713994932','1011440089',19,10986,11686,700,'Credit','Reversal','2023-07-25 18:17:12','2023-07-10','Branch council fund (liability) Reversal',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,NULL,NULL,1,0,'2023-07-25 17:17:13',NULL,0,0),(51,'RV-N2023061713859719','1011440089',19,11686,12486,800,'Credit','Reversal','2023-07-25 18:17:12','2023-07-10','Insurance income Reversal',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,NULL,NULL,1,0,'2023-07-25 17:17:13',NULL,0,0),(52,'RV-N2023061713551223','1011440089',19,12486,13686,1200,'Credit','Reversal','2023-07-25 18:17:12','2023-07-10','Insurance liability Reversal',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,7,NULL,NULL,1,0,'2023-07-25 17:17:13',NULL,0,0),(53,'DN2023064648505774','2011214352',19,0,-125000,100000,'Debit','Loan Disbursement','2023-07-25 18:46:48','2023-07-10','Loan Disbursed',NULL,NULL,NULL,NULL,NULL,'Approved',7,8,6,6,'2023064648',NULL,2,0,'2023-07-25 17:46:48',NULL,0,0),(54,'DN2023064648686896','1011440089',19,13686,12686,1000,'Debit','Admin Fee','2023-07-25 18:46:48','2023-07-10','Admin Fee',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,6,'2023064648',NULL,1,0,'2023-07-25 17:46:48',NULL,0,0),(55,'DN2023064649236746','1011440089',19,12686,11986,700,'Debit','Branch council fund (liability)','2023-07-25 18:46:48','2023-07-10','Branch council fund (liability)',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,6,'2023064648',NULL,1,0,'2023-07-25 17:46:49',NULL,0,0),(56,'DN2023064649770768','1011440089',19,11986,11186,800,'Debit','Insurance income','2023-07-25 18:46:48','2023-07-10','Insurance income',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,6,'2023064648',NULL,1,0,'2023-07-25 17:46:49',NULL,0,0),(57,'DN2023064649868635','1011440089',19,11186,9986,1200,'Debit','Insurance liability','2023-07-25 18:46:48','2023-07-10','Insurance liability',NULL,NULL,NULL,NULL,NULL,'X',7,8,6,6,'2023064648',NULL,1,0,'2023-07-25 17:46:49',NULL,0,0);

--
-- Table structure for table `union_purse_paid`
--

CREATE TABLE `union_purse_paid` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `loan_id` bigint(20) NOT NULL,
  `credit_id` bigint(20) NOT NULL,
  `debit_id` bigint(20) NOT NULL,
  `transaction_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `loan_id` (`loan_id`),
  KEY `transaction_id` (`transaction_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `union_purse_paid`
--


--
-- Table structure for table `user_login`
--

CREATE TABLE `user_login` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `datetime` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `user_login`
--

INSERT INTO `user_login` VALUES (1,1,'2023-07-26 13:41:01'),(2,2,'2023-07-24 11:03:07'),(3,5,'2023-07-23 23:23:24'),(4,4,'2023-07-23 23:31:37'),(5,7,'2023-07-27 13:25:37'),(6,11,'2023-07-24 13:47:51'),(7,6,'2023-07-25 18:47:43'),(8,12,'2023-07-25 18:44:45');

--
-- Table structure for table `user_login_customer`
--

CREATE TABLE `user_login_customer` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `datetime` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `user_login_customer`
--


--
-- Table structure for table `user_session_customer`
--

CREATE TABLE `user_session_customer` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `token` varchar(225) NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `user_session_customer`
--


--
-- Table structure for table `validation`
--

CREATE TABLE `validation` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `assign_user_id` bigint(20) DEFAULT NULL,
  `assign_role_id` bigint(20) DEFAULT NULL,
  `assign_service_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `validation`
--


--
-- Table structure for table `validation_details`
--

CREATE TABLE `validation_details` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `validation_id` bigint(20) NOT NULL,
  `validation_user_ids` bigint(20) DEFAULT NULL,
  `validation_branch_ids` bigint(20) DEFAULT NULL,
  `validation_channel_ids` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `validation_details`
--


--
-- Table structure for table `verify_transactions`
--

CREATE TABLE `verify_transactions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `account_number` varchar(225) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `amount` double NOT NULL,
  `comment` varchar(225) NOT NULL,
  `type` varchar(225) NOT NULL,
  `to_account` varchar(225) DEFAULT NULL,
  `beneficiary_acc_bank` varchar(225) DEFAULT NULL,
  `transfer_type` varchar(225) DEFAULT NULL,
  `status` varchar(225) NOT NULL,
  `created_by` bigint(20) NOT NULL,
  `creation_date` date NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `offline_id` bigint(20) DEFAULT NULL,
  `update_delinquent_amount` decimal(65,4) DEFAULT NULL,
  `recovery_type` varchar(225) DEFAULT NULL,
  `recovered_by` bigint(20) DEFAULT NULL,
  `proof` varchar(1000) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`),
  KEY `account_number` (`account_number`),
  KEY `customer_id` (`customer_id`),
  KEY `created_by` (`created_by`),
  KEY `type` (`type`),
  KEY `status` (`status`),
  KEY `creation_date` (`creation_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `verify_transactions`
--


--
-- Table structure for table `verify_transactions_digital`
--

CREATE TABLE `verify_transactions_digital` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `account_id` bigint(20) NOT NULL,
  `account_number` varchar(225) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `amount` decimal(65,4) NOT NULL,
  `total_due` decimal(65,4) NOT NULL,
  `action_rb` varchar(225) NOT NULL,
  `device_no` varchar(225) DEFAULT NULL,
  `smart_card_no` varchar(225) DEFAULT NULL,
  `code` varchar(225) DEFAULT NULL,
  `network` varchar(225) NOT NULL,
  `product_name` varchar(225) DEFAULT NULL,
  `meter_no` varchar(225) DEFAULT NULL,
  `meter_type` varchar(225) DEFAULT NULL,
  `phone_no` varchar(225) DEFAULT NULL,
  `customer_name` varchar(225) DEFAULT NULL,
  `status` varchar(225) NOT NULL,
  `created_by` bigint(20) NOT NULL,
  `creation_date` date NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`,`account_number`,`customer_id`),
  KEY `device_no` (`device_no`,`smart_card_no`,`code`),
  KEY `network` (`network`,`product_name`,`meter_no`),
  KEY `meter_type` (`meter_type`,`status`,`created_by`,`creation_date`),
  KEY `phone_no` (`phone_no`,`customer_name`),
  KEY `account_id_2` (`account_id`,`account_number`,`customer_id`),
  KEY `device_no_2` (`device_no`,`smart_card_no`,`code`),
  KEY `network_2` (`network`,`product_name`,`meter_no`),
  KEY `meter_type_2` (`meter_type`,`status`,`created_by`,`creation_date`),
  KEY `phone_no_2` (`phone_no`,`customer_name`),
  KEY `account_id_3` (`account_id`,`account_number`,`customer_id`),
  KEY `device_no_3` (`device_no`,`smart_card_no`,`code`),
  KEY `network_3` (`network`,`product_name`,`meter_no`),
  KEY `meter_type_3` (`meter_type`,`status`,`created_by`,`creation_date`),
  KEY `phone_no_3` (`phone_no`,`customer_name`),
  KEY `account_id_4` (`account_id`,`account_number`,`customer_id`),
  KEY `device_no_4` (`device_no`,`smart_card_no`,`code`),
  KEY `network_4` (`network`,`product_name`,`meter_no`),
  KEY `meter_type_4` (`meter_type`,`status`,`created_by`,`creation_date`),
  KEY `phone_no_4` (`phone_no`,`customer_name`),
  KEY `account_id_5` (`account_id`,`account_number`,`customer_id`),
  KEY `device_no_5` (`device_no`,`smart_card_no`,`code`),
  KEY `network_5` (`network`,`product_name`,`meter_no`),
  KEY `meter_type_5` (`meter_type`,`status`,`created_by`,`creation_date`),
  KEY `phone_no_5` (`phone_no`,`customer_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `verify_transactions_digital`
--


--
-- Table structure for table `work_queue`
--

CREATE TABLE `work_queue` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `main_area_id` bigint(20) NOT NULL,
  `entity_id` bigint(20) NOT NULL,
  `action_id` bigint(20) NOT NULL,
  `type` varchar(225) NOT NULL DEFAULT 'Approve' COMMENT 'Validate, Recommend, Approve',
  `validated_by` bigint(20) DEFAULT NULL,
  `recommend_by` bigint(20) DEFAULT NULL,
  `approved_by` bigint(20) DEFAULT NULL,
  `date_added` date NOT NULL,
  `status` varchar(225) NOT NULL,
  `bulk_id` bigint(20) NOT NULL DEFAULT '0',
  `created_by` bigint(20) DEFAULT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `main_area_id` (`main_area_id`),
  KEY `entity_id` (`entity_id`),
  KEY `action_id` (`action_id`),
  KEY `type` (`type`),
  KEY `status` (`status`),
  KEY `date_added` (`date_added`),
  KEY `created_by` (`created_by`),
  KEY `bulk_id` (`bulk_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `work_queue`
--

INSERT INTO `work_queue` VALUES (1,9,35,159,'Approve',12,NULL,6,'2023-07-10','Treated',0,7,'2023-07-25 17:46:48');

--
-- Table structure for table `workdays`
--

CREATE TABLE `workdays` (
  `mon` bigint(1) NOT NULL DEFAULT '2',
  `tue` bigint(1) NOT NULL DEFAULT '2',
  `wed` bigint(1) NOT NULL DEFAULT '2',
  `thu` bigint(1) NOT NULL DEFAULT '2',
  `fri` bigint(1) NOT NULL DEFAULT '2',
  `sat` bigint(1) NOT NULL DEFAULT '1',
  `sun` bigint(1) NOT NULL DEFAULT '1',
  KEY `mon` (`mon`,`tue`,`wed`,`thu`,`fri`,`sat`,`sun`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `workdays`
--

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

--
-- Table structure for table `workflow_branch_channel`
--

CREATE TABLE `workflow_branch_channel` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `workflow_id` int(11) NOT NULL,
  `branch_id` int(11) DEFAULT NULL,
  `channel_id` int(11) DEFAULT NULL,
  `type` varchar(225) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `workflow_id` (`workflow_id`,`branch_id`,`channel_id`),
  KEY `workflow_id_2` (`workflow_id`,`branch_id`,`channel_id`),
  KEY `workflow_id_3` (`workflow_id`,`branch_id`,`channel_id`),
  KEY `workflow_id_4` (`workflow_id`,`branch_id`,`channel_id`),
  KEY `workflow_id_5` (`workflow_id`,`branch_id`,`channel_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `workflow_branch_channel`
--


--
-- Table structure for table `workflow_users`
--

CREATE TABLE `workflow_users` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `workflow_id` bigint(20) NOT NULL,
  `user_id` bigint(20) DEFAULT NULL,
  `role_id` bigint(20) DEFAULT NULL,
  `type` varchar(225) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `workflow_id` (`workflow_id`),
  KEY `user_id` (`user_id`),
  KEY `role_id` (`role_id`),
  KEY `type` (`type`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `workflow_users`
--

INSERT INTO `workflow_users` VALUES (1,22,NULL,108,'Validate'),(2,22,NULL,105,'Approve');


