update sample data for 1.23 release
This commit is contained in:
@@ -57,9 +57,9 @@ CREATE TABLE IF NOT EXISTS `acc_gl_account` (
|
|||||||
KEY `FKGLACC000000002` (`tag_id`),
|
KEY `FKGLACC000000002` (`tag_id`),
|
||||||
CONSTRAINT `FKGLACC000000002` FOREIGN KEY (`tag_id`) REFERENCES `m_code_value` (`id`),
|
CONSTRAINT `FKGLACC000000002` FOREIGN KEY (`tag_id`) REFERENCES `m_code_value` (`id`),
|
||||||
CONSTRAINT `FK_ACC_0000000001` FOREIGN KEY (`parent_id`) REFERENCES `acc_gl_account` (`id`)
|
CONSTRAINT `FK_ACC_0000000001` FOREIGN KEY (`parent_id`) REFERENCES `acc_gl_account` (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.acc_gl_account: ~53 rows (approximately)
|
-- Dumping data for table mifostenant-default.acc_gl_account: ~54 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `acc_gl_account` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `acc_gl_account` DISABLE KEYS */;
|
||||||
INSERT INTO `acc_gl_account` (`id`, `name`, `parent_id`, `hierarchy`, `gl_code`, `disabled`, `manual_journal_entries_allowed`, `account_usage`, `classification_enum`, `tag_id`, `description`) VALUES
|
INSERT INTO `acc_gl_account` (`id`, `name`, `parent_id`, `hierarchy`, `gl_code`, `disabled`, `manual_journal_entries_allowed`, `account_usage`, `classification_enum`, `tag_id`, `description`) VALUES
|
||||||
(1, 'Deposit Accounts Portfolio', NULL, '.', '10100', 0, 1, 2, 2, NULL, NULL),
|
(1, 'Deposit Accounts Portfolio', NULL, '.', '10100', 0, 1, 2, 2, NULL, NULL),
|
||||||
@@ -114,7 +114,8 @@ INSERT INTO `acc_gl_account` (`id`, `name`, `parent_id`, `hierarchy`, `gl_code`,
|
|||||||
(50, 'Telephone Charges', 48, '.21.48.', '40702', 0, 1, 1, 5, NULL, NULL),
|
(50, 'Telephone Charges', 48, '.21.48.', '40702', 0, 1, 1, 5, NULL, NULL),
|
||||||
(51, 'Electricity Charges', 48, '.21.48.', '40703', 0, 1, 1, 5, NULL, NULL),
|
(51, 'Electricity Charges', 48, '.21.48.', '40703', 0, 1, 1, 5, NULL, NULL),
|
||||||
(52, 'Rent Paid', 48, '.21.48.', '40704', 0, 1, 1, 5, NULL, NULL),
|
(52, 'Rent Paid', 48, '.21.48.', '40704', 0, 1, 1, 5, NULL, NULL),
|
||||||
(53, 'Internet Charges', 48, '.21.48.', '40705', 0, 1, 1, 5, NULL, NULL);
|
(53, 'Internet Charges', 48, '.21.48.', '40705', 0, 1, 1, 5, NULL, NULL),
|
||||||
|
(54, 'Loan Recovery (Temp)', NULL, '.', '220002-Temp', 0, 1, 1, 4, NULL, 'Temporary account to track income from Loan recovery');
|
||||||
/*!40000 ALTER TABLE `acc_gl_account` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `acc_gl_account` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -197,6 +198,25 @@ CREATE TABLE IF NOT EXISTS `acc_gl_journal_entry` (
|
|||||||
/*!40000 ALTER TABLE `acc_gl_journal_entry` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `acc_gl_journal_entry` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
|
-- Dumping structure for table mifostenant-default.acc_gl_office_mapping
|
||||||
|
DROP TABLE IF EXISTS `acc_gl_office_mapping`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `acc_gl_office_mapping` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`gl_account_id` bigint(20) NOT NULL DEFAULT '0',
|
||||||
|
`office_id` bigint(20) NOT NULL,
|
||||||
|
`financial_account_type` smallint(5) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `FK_office_mapping_acc_gl_account` (`gl_account_id`),
|
||||||
|
KEY `FK_office_mapping_office` (`office_id`),
|
||||||
|
CONSTRAINT `FK_office_mapping_acc_gl_account` FOREIGN KEY (`gl_account_id`) REFERENCES `acc_gl_account` (`id`),
|
||||||
|
CONSTRAINT `FK_office_mapping_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- Dumping data for table mifostenant-default.acc_gl_office_mapping: ~0 rows (approximately)
|
||||||
|
/*!40000 ALTER TABLE `acc_gl_office_mapping` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `acc_gl_office_mapping` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
-- Dumping structure for table mifostenant-default.acc_product_mapping
|
-- Dumping structure for table mifostenant-default.acc_product_mapping
|
||||||
DROP TABLE IF EXISTS `acc_product_mapping`;
|
DROP TABLE IF EXISTS `acc_product_mapping`;
|
||||||
CREATE TABLE IF NOT EXISTS `acc_product_mapping` (
|
CREATE TABLE IF NOT EXISTS `acc_product_mapping` (
|
||||||
@@ -212,9 +232,9 @@ CREATE TABLE IF NOT EXISTS `acc_product_mapping` (
|
|||||||
KEY `FK_acc_product_mapping_m_charge` (`charge_id`),
|
KEY `FK_acc_product_mapping_m_charge` (`charge_id`),
|
||||||
CONSTRAINT `FK_acc_product_mapping_m_charge` FOREIGN KEY (`charge_id`) REFERENCES `m_charge` (`id`),
|
CONSTRAINT `FK_acc_product_mapping_m_charge` FOREIGN KEY (`charge_id`) REFERENCES `m_charge` (`id`),
|
||||||
CONSTRAINT `FK_acc_product_mapping_m_code_value` FOREIGN KEY (`payment_type`) REFERENCES `m_code_value` (`id`)
|
CONSTRAINT `FK_acc_product_mapping_m_code_value` FOREIGN KEY (`payment_type`) REFERENCES `m_code_value` (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.acc_product_mapping: ~17 rows (approximately)
|
-- Dumping data for table mifostenant-default.acc_product_mapping: ~18 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `acc_product_mapping` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `acc_product_mapping` DISABLE KEYS */;
|
||||||
INSERT INTO `acc_product_mapping` (`id`, `gl_account_id`, `product_id`, `product_type`, `payment_type`, `charge_id`, `financial_account_type`) VALUES
|
INSERT INTO `acc_product_mapping` (`id`, `gl_account_id`, `product_id`, `product_type`, `payment_type`, `charge_id`, `financial_account_type`) VALUES
|
||||||
(1, 32, 1, 1, NULL, NULL, 1),
|
(1, 32, 1, 1, NULL, NULL, 1),
|
||||||
@@ -233,7 +253,8 @@ INSERT INTO `acc_product_mapping` (`id`, `gl_account_id`, `product_id`, `product
|
|||||||
(14, 41, 1, 2, NULL, NULL, 3),
|
(14, 41, 1, 2, NULL, NULL, 3),
|
||||||
(15, 42, 1, 2, NULL, NULL, 13),
|
(15, 42, 1, 2, NULL, NULL, 13),
|
||||||
(16, 30, 1, 2, NULL, NULL, 2),
|
(16, 30, 1, 2, NULL, NULL, 2),
|
||||||
(17, 30, 1, 2, NULL, NULL, 10);
|
(17, 30, 1, 2, NULL, NULL, 10),
|
||||||
|
(18, 54, 1, 1, NULL, NULL, 12);
|
||||||
/*!40000 ALTER TABLE `acc_product_mapping` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `acc_product_mapping` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -265,7 +286,7 @@ CREATE TABLE IF NOT EXISTS `c_cache` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.c_cache: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.c_cache: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `c_cache` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `c_cache` DISABLE KEYS */;
|
||||||
INSERT INTO `c_cache` (`id`, `cache_type_enum`) VALUES
|
INSERT INTO `c_cache` (`id`, `cache_type_enum`) VALUES
|
||||||
(1, 1);
|
(1, 1);
|
||||||
@@ -280,9 +301,9 @@ CREATE TABLE IF NOT EXISTS `c_configuration` (
|
|||||||
`value` int(11) DEFAULT NULL,
|
`value` int(11) DEFAULT NULL,
|
||||||
`enabled` tinyint(1) NOT NULL DEFAULT '0',
|
`enabled` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.c_configuration: ~10 rows (approximately)
|
-- Dumping data for table mifostenant-default.c_configuration: ~12 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `c_configuration` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `c_configuration` DISABLE KEYS */;
|
||||||
INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`) VALUES
|
INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`) VALUES
|
||||||
(1, 'maker-checker', NULL, 0),
|
(1, 'maker-checker', NULL, 0),
|
||||||
@@ -294,7 +315,9 @@ INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`) VALUES
|
|||||||
(9, 'constraint_approach_for_datatables', NULL, 0),
|
(9, 'constraint_approach_for_datatables', NULL, 0),
|
||||||
(10, 'penalty-wait-period', 2, 1),
|
(10, 'penalty-wait-period', 2, 1),
|
||||||
(11, 'force-password-reset-days', 0, 0),
|
(11, 'force-password-reset-days', 0, 0),
|
||||||
(12, 'grace-on-penalty-posting', 0, 1);
|
(12, 'grace-on-penalty-posting', 0, 1),
|
||||||
|
(13, 'age_limit_for_senior_citizen', 65, 1),
|
||||||
|
(14, 'age_limit_for_children', 15, 1);
|
||||||
/*!40000 ALTER TABLE `c_configuration` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `c_configuration` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -335,24 +358,26 @@ CREATE TABLE IF NOT EXISTS `job` (
|
|||||||
`scheduler_group` smallint(2) NOT NULL DEFAULT '0',
|
`scheduler_group` smallint(2) NOT NULL DEFAULT '0',
|
||||||
`is_misfired` tinyint(1) NOT NULL DEFAULT '0',
|
`is_misfired` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.job: ~13 rows (approximately)
|
-- Dumping data for table mifostenant-default.job: ~15 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `job` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `job` DISABLE KEYS */;
|
||||||
INSERT INTO `job` (`id`, `name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES
|
INSERT INTO `job` (`id`, `name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES
|
||||||
(1, 'Update loan Summary', 'Update loan Summary', '0 0 22 1/1 * ? *', '2014-03-07 18:29:14', 5, NULL, NULL, '2014-05-01 22:00:00', 'Update loan SummaryJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(1, 'Update loan Summary', 'Update loan Summary', '0 0 22 1/1 * ? *', '2014-03-07 18:29:14', 5, NULL, '2014-06-11 09:30:00', '2014-06-12 09:30:00', 'Update loan SummaryJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(2, 'Update Loan Arrears Ageing', 'Update Loan Arrears Ageing', '0 1 0 1/1 * ? *', '2014-03-07 18:29:14', 5, NULL, NULL, '2014-05-02 00:01:00', 'Update Loan Arrears AgeingJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(2, 'Update Loan Arrears Ageing', 'Update Loan Arrears Ageing', '0 1 0 1/1 * ? *', '2014-03-07 18:29:14', 5, NULL, NULL, '2014-06-11 11:31:00', 'Update Loan Arrears AgeingJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(3, 'Update Loan Paid In Advance', 'Update Loan Paid In Advance', '0 5 0 1/1 * ? *', '2014-03-07 18:29:14', 5, NULL, NULL, '2014-05-02 00:05:00', 'Update Loan Paid In AdvanceJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(3, 'Update Loan Paid In Advance', 'Update Loan Paid In Advance', '0 5 0 1/1 * ? *', '2014-03-07 18:29:14', 5, NULL, NULL, '2014-06-11 11:35:00', 'Update Loan Paid In AdvanceJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(4, 'Apply Annual Fee For Savings', 'Apply Annual Fee For Savings', '0 20 22 1/1 * ? *', '2014-03-07 18:29:14', 5, NULL, NULL, '2014-05-01 22:20:00', 'Apply Annual Fee For SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(4, 'Apply Annual Fee For Savings', 'Apply Annual Fee For Savings', '0 20 22 1/1 * ? *', '2014-03-07 18:29:14', 5, NULL, '2014-06-11 09:50:00', '2014-06-12 09:50:00', 'Apply Annual Fee For SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(5, 'Apply Holidays To Loans', 'Apply Holidays To Loans', '0 0 12 * * ?', '2014-03-07 18:29:14', 5, NULL, '2014-03-24 12:00:04', '2014-05-02 12:00:00', 'Apply Holidays To LoansJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(5, 'Apply Holidays To Loans', 'Apply Holidays To Loans', '0 0 12 * * ?', '2014-03-07 18:29:14', 5, NULL, '2014-03-24 12:00:04', '2014-06-11 23:30:00', 'Apply Holidays To LoansJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(6, 'Post Interest For Savings', 'Post Interest For Savings', '0 0 0 1/1 * ? *', '2014-03-07 18:29:21', 5, NULL, NULL, '2014-05-02 00:00:00', 'Post Interest For SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(6, 'Post Interest For Savings', 'Post Interest For Savings', '0 0 0 1/1 * ? *', '2014-03-07 18:29:21', 5, NULL, NULL, '2014-06-11 11:30:00', 'Post Interest For SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 1, 0),
|
||||||
(7, 'Transfer Fee For Loans From Savings', 'Transfer Fee For Loans From Savings', '0 1 0 1/1 * ? *', '2014-03-07 18:29:32', 5, NULL, NULL, '2014-05-02 00:01:00', 'Transfer Fee For Loans From SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(7, 'Transfer Fee For Loans From Savings', 'Transfer Fee For Loans From Savings', '0 1 0 1/1 * ? *', '2014-03-07 18:29:32', 5, NULL, NULL, '2014-06-11 11:31:00', 'Transfer Fee For Loans From SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(8, 'Pay Due Savings Charges', 'Pay Due Savings Charges', '0 0 12 * * ?', '2013-09-23 00:00:00', 5, NULL, '2014-03-24 12:00:04', '2014-05-02 12:00:00', 'Pay Due Savings ChargesJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(8, 'Pay Due Savings Charges', 'Pay Due Savings Charges', '0 0 12 * * ?', '2013-09-23 00:00:00', 5, NULL, '2014-03-24 12:00:04', '2014-06-11 23:30:00', 'Pay Due Savings ChargesJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(9, 'Update Accounting Running Balances', 'Update Accounting Running Balances', '0 1 0 1/1 * ? *', '2014-03-07 18:29:37', 5, NULL, NULL, '2014-05-02 00:01:00', 'Update Accounting Running BalancesJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(9, 'Update Accounting Running Balances', 'Update Accounting Running Balances', '0 1 0 1/1 * ? *', '2014-03-07 18:29:37', 5, NULL, NULL, '2014-06-11 11:31:00', 'Update Accounting Running BalancesJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(10, 'Execute Standing Instruction', 'Execute Standing Instruction', '0 0 0 1/1 * ? *', '2014-05-01 16:10:35', 5, NULL, NULL, '2014-05-02 00:00:00', 'Execute Standing InstructionJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(10, 'Execute Standing Instruction', 'Execute Standing Instruction', '0 0 0 1/1 * ? *', '2014-05-01 16:10:35', 5, NULL, NULL, '2014-06-11 11:30:00', 'Execute Standing InstructionJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(11, 'Add Accrual Transactions', 'Add Accrual Transactions', '0 1 0 1/1 * ? *', '2014-05-01 16:10:36', 5, NULL, NULL, '2014-05-02 00:01:00', 'Add Accrual TransactionsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(11, 'Add Accrual Transactions', 'Add Accrual Transactions', '0 1 0 1/1 * ? *', '2014-05-01 16:10:36', 5, NULL, NULL, '2014-06-11 11:31:00', 'Add Accrual TransactionsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(12, 'Apply penalty to overdue loans', 'Apply penalty to overdue loans', '0 0 0 1/1 * ? *', '2014-05-01 16:10:36', 5, NULL, NULL, '2014-05-02 00:00:00', 'Apply penalty to overdue loansJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
(12, 'Apply penalty to overdue loans', 'Apply penalty to overdue loans', '0 0 0 1/1 * ? *', '2014-05-01 16:10:36', 5, NULL, NULL, '2014-06-11 11:30:00', 'Apply penalty to overdue loansJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
(13, 'Update Non Performing Assets', 'Update Non Performing Assets', '0 0 0 1/1 * ? *', '2014-05-01 16:10:41', 5, NULL, NULL, '2014-05-02 00:00:00', 'Update Non Performing AssetsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0);
|
(13, 'Update Non Performing Assets', 'Update Non Performing Assets', '0 0 0 1/1 * ? *', '2014-05-01 16:10:41', 5, NULL, NULL, '2014-06-11 11:30:00', 'Update Non Performing AssetsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
|
||||||
|
(14, 'Transfer Interest To Savings', 'Transfer Interest To Savings', '0 2 0 1/1 * ? *', '2014-06-11 09:09:15', 4, NULL, NULL, '2014-06-11 11:32:00', 'Transfer Interest To SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 1, 0),
|
||||||
|
(15, 'Update Deposit Accounts Maturity details', 'Update Deposit Accounts Maturity details', '0 0 0 1/1 * ? *', '2014-06-11 09:09:15', 5, NULL, NULL, '2014-06-11 11:30:00', 'Update Deposit Accounts Maturity detailsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0);
|
||||||
/*!40000 ALTER TABLE `job` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `job` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -365,15 +390,15 @@ CREATE TABLE IF NOT EXISTS `job_run_history` (
|
|||||||
`start_time` datetime NOT NULL,
|
`start_time` datetime NOT NULL,
|
||||||
`end_time` datetime NOT NULL,
|
`end_time` datetime NOT NULL,
|
||||||
`status` varchar(10) CHARACTER SET latin1 NOT NULL,
|
`status` varchar(10) CHARACTER SET latin1 NOT NULL,
|
||||||
`error_message` varchar(500) DEFAULT NULL,
|
`error_message` text,
|
||||||
`trigger_type` varchar(25) NOT NULL,
|
`trigger_type` varchar(25) NOT NULL,
|
||||||
`error_log` text,
|
`error_log` text,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `scheduledjobsFK` (`job_id`),
|
KEY `scheduledjobsFK` (`job_id`),
|
||||||
CONSTRAINT `scheduledjobsFK` FOREIGN KEY (`job_id`) REFERENCES `job` (`id`)
|
CONSTRAINT `scheduledjobsFK` FOREIGN KEY (`job_id`) REFERENCES `job` (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.job_run_history: ~16 rows (approximately)
|
-- Dumping data for table mifostenant-default.job_run_history: ~18 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `job_run_history` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `job_run_history` DISABLE KEYS */;
|
||||||
INSERT INTO `job_run_history` (`id`, `job_id`, `version`, `start_time`, `end_time`, `status`, `error_message`, `trigger_type`, `error_log`) VALUES
|
INSERT INTO `job_run_history` (`id`, `job_id`, `version`, `start_time`, `end_time`, `status`, `error_message`, `trigger_type`, `error_log`) VALUES
|
||||||
(1, 8, 1, '2014-03-14 12:00:00', '2014-03-14 12:00:01', 'success', NULL, 'cron', NULL),
|
(1, 8, 1, '2014-03-14 12:00:00', '2014-03-14 12:00:01', 'success', NULL, 'cron', NULL),
|
||||||
@@ -391,7 +416,9 @@ INSERT INTO `job_run_history` (`id`, `job_id`, `version`, `start_time`, `end_tim
|
|||||||
(13, 8, 7, '2014-03-21 12:00:00', '2014-03-21 12:00:01', 'success', NULL, 'cron', NULL),
|
(13, 8, 7, '2014-03-21 12:00:00', '2014-03-21 12:00:01', 'success', NULL, 'cron', NULL),
|
||||||
(14, 5, 7, '2014-03-21 12:00:00', '2014-03-21 12:00:01', 'success', NULL, 'cron', NULL),
|
(14, 5, 7, '2014-03-21 12:00:00', '2014-03-21 12:00:01', 'success', NULL, 'cron', NULL),
|
||||||
(15, 5, 8, '2014-03-24 12:00:04', '2014-03-24 12:00:12', 'success', NULL, 'cron', NULL),
|
(15, 5, 8, '2014-03-24 12:00:04', '2014-03-24 12:00:12', 'success', NULL, 'cron', NULL),
|
||||||
(16, 8, 8, '2014-03-24 12:00:04', '2014-03-24 12:00:12', 'success', NULL, 'cron', NULL);
|
(16, 8, 8, '2014-03-24 12:00:04', '2014-03-24 12:00:12', 'success', NULL, 'cron', NULL),
|
||||||
|
(17, 1, 1, '2014-06-11 09:30:00', '2014-06-11 09:30:01', 'success', NULL, 'cron', NULL),
|
||||||
|
(18, 4, 1, '2014-06-11 09:50:00', '2014-06-11 09:50:01', 'success', NULL, 'cron', NULL);
|
||||||
/*!40000 ALTER TABLE `job_run_history` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `job_run_history` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -473,7 +500,7 @@ CREATE TABLE IF NOT EXISTS `mix_taxonomy_mapping` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.mix_taxonomy_mapping: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.mix_taxonomy_mapping: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `mix_taxonomy_mapping` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `mix_taxonomy_mapping` DISABLE KEYS */;
|
||||||
INSERT INTO `mix_taxonomy_mapping` (`id`, `identifier`, `config`, `last_update_date`, `currency`) VALUES
|
INSERT INTO `mix_taxonomy_mapping` (`id`, `identifier`, `config`, `last_update_date`, `currency`) VALUES
|
||||||
(1, 'default', NULL, NULL, '');
|
(1, 'default', NULL, NULL, '');
|
||||||
@@ -775,7 +802,7 @@ CREATE TABLE IF NOT EXISTS `m_charge` (
|
|||||||
UNIQUE KEY `name` (`name`)
|
UNIQUE KEY `name` (`name`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_charge: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_charge: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_charge` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_charge` DISABLE KEYS */;
|
||||||
INSERT INTO `m_charge` (`id`, `name`, `currency_code`, `charge_applies_to_enum`, `charge_time_enum`, `charge_calculation_enum`, `charge_payment_mode_enum`, `amount`, `fee_on_day`, `fee_interval`, `fee_on_month`, `is_penalty`, `is_active`, `is_deleted`, `min_cap`, `max_cap`, `fee_frequency`) VALUES
|
INSERT INTO `m_charge` (`id`, `name`, `currency_code`, `charge_applies_to_enum`, `charge_time_enum`, `charge_calculation_enum`, `charge_payment_mode_enum`, `amount`, `fee_on_day`, `fee_interval`, `fee_on_month`, `is_penalty`, `is_active`, `is_deleted`, `min_cap`, `max_cap`, `fee_frequency`) VALUES
|
||||||
(1, 'Processing Fee', 'USD', 1, 1, 1, 0, 500.000000, NULL, NULL, NULL, 0, 1, 0, NULL, NULL, NULL);
|
(1, 'Processing Fee', 'USD', 1, 1, 1, 0, 500.000000, NULL, NULL, NULL, 0, 1, 0, NULL, NULL, NULL);
|
||||||
@@ -811,6 +838,8 @@ CREATE TABLE IF NOT EXISTS `m_client` (
|
|||||||
`closedon_userid` bigint(20) DEFAULT NULL,
|
`closedon_userid` bigint(20) DEFAULT NULL,
|
||||||
`default_savings_product` bigint(20) DEFAULT NULL,
|
`default_savings_product` bigint(20) DEFAULT NULL,
|
||||||
`default_savings_account` bigint(20) DEFAULT NULL,
|
`default_savings_account` bigint(20) DEFAULT NULL,
|
||||||
|
`client_type_cv_id` int(11) DEFAULT NULL,
|
||||||
|
`client_classification_cv_id` int(11) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `account_no_UNIQUE` (`account_no`),
|
UNIQUE KEY `account_no_UNIQUE` (`account_no`),
|
||||||
UNIQUE KEY `external_id` (`external_id`),
|
UNIQUE KEY `external_id` (`external_id`),
|
||||||
@@ -822,6 +851,12 @@ CREATE TABLE IF NOT EXISTS `m_client` (
|
|||||||
KEY `FK_m_client_m_office` (`transfer_to_office_id`),
|
KEY `FK_m_client_m_office` (`transfer_to_office_id`),
|
||||||
KEY `FK_m_client_m_savings_product` (`default_savings_product`),
|
KEY `FK_m_client_m_savings_product` (`default_savings_product`),
|
||||||
KEY `FK_m_client_m_savings_account` (`default_savings_account`),
|
KEY `FK_m_client_m_savings_account` (`default_savings_account`),
|
||||||
|
KEY `FK_m_client_type_m_code_value` (`client_type_cv_id`),
|
||||||
|
KEY `FK_m_client_classification_m_code_value` (`client_classification_cv_id`),
|
||||||
|
KEY `FK1_m_client_gender_m_code_value` (`gender_cv_id`),
|
||||||
|
CONSTRAINT `FK_m_client_type_m_code_value` FOREIGN KEY (`client_type_cv_id`) REFERENCES `m_code_value` (`id`),
|
||||||
|
CONSTRAINT `FK_m_client_classification_m_code_value` FOREIGN KEY (`client_classification_cv_id`) REFERENCES `m_code_value` (`id`),
|
||||||
|
CONSTRAINT `FK1_m_client_gender_m_code_value` FOREIGN KEY (`gender_cv_id`) REFERENCES `m_code_value` (`id`),
|
||||||
CONSTRAINT `FKCE00CAB3E0DD567A` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`),
|
CONSTRAINT `FKCE00CAB3E0DD567A` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`),
|
||||||
CONSTRAINT `FK_m_client_m_code` FOREIGN KEY (`closure_reason_cv_id`) REFERENCES `m_code_value` (`id`),
|
CONSTRAINT `FK_m_client_m_code` FOREIGN KEY (`closure_reason_cv_id`) REFERENCES `m_code_value` (`id`),
|
||||||
CONSTRAINT `FK_m_client_m_image` FOREIGN KEY (`image_id`) REFERENCES `m_image` (`id`),
|
CONSTRAINT `FK_m_client_m_image` FOREIGN KEY (`image_id`) REFERENCES `m_image` (`id`),
|
||||||
@@ -833,14 +868,14 @@ CREATE TABLE IF NOT EXISTS `m_client` (
|
|||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_client: ~7 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_client: ~7 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_client` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_client` DISABLE KEYS */;
|
||||||
INSERT INTO `m_client` (`id`, `account_no`, `external_id`, `status_enum`, `activation_date`, `office_joining_date`, `office_id`, `transfer_to_office_id`, `staff_id`, `firstname`, `middlename`, `lastname`, `fullname`, `display_name`, `mobile_no`, `gender_cv_id`, `date_of_birth`, `image_id`, `closure_reason_cv_id`, `closedon_date`, `submittedon_date`, `submittedon_userid`, `activatedon_userid`, `closedon_userid`, `default_savings_product`, `default_savings_account`) VALUES
|
INSERT INTO `m_client` (`id`, `account_no`, `external_id`, `status_enum`, `activation_date`, `office_joining_date`, `office_id`, `transfer_to_office_id`, `staff_id`, `firstname`, `middlename`, `lastname`, `fullname`, `display_name`, `mobile_no`, `gender_cv_id`, `date_of_birth`, `image_id`, `closure_reason_cv_id`, `closedon_date`, `submittedon_date`, `submittedon_userid`, `activatedon_userid`, `closedon_userid`, `default_savings_product`, `default_savings_account`, `client_type_cv_id`, `client_classification_cv_id`) VALUES
|
||||||
(1, '000000001', NULL, 300, '2014-03-07', '2014-03-07', 1, NULL, 1, 'Smith', NULL, 'R', NULL, 'Smith R', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-01', 1, 1, NULL, NULL, NULL),
|
(1, '000000001', NULL, 300, '2014-03-07', '2014-03-07', 1, NULL, 1, 'Smith', NULL, 'R', NULL, 'Smith R', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-01', 1, 1, NULL, NULL, NULL, NULL, NULL),
|
||||||
(2, '000000002', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Johnson', NULL, 'D', NULL, 'Johnson D', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL),
|
(2, '000000002', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Johnson', NULL, 'D', NULL, 'Johnson D', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL),
|
||||||
(4, '000000004', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Williams', NULL, 'G', NULL, 'Williams G', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL),
|
(4, '000000004', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Williams', NULL, 'G', NULL, 'Williams G', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL),
|
||||||
(5, '000000005', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Harris', NULL, 'P', NULL, 'Harris P', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL),
|
(5, '000000005', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Harris', NULL, 'P', NULL, 'Harris P', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL),
|
||||||
(6, '000000006', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Allen', NULL, 'E', NULL, 'Allen E', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL),
|
(6, '000000006', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Allen', NULL, 'E', NULL, 'Allen E', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL),
|
||||||
(7, '000000007', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Scott', NULL, 'C', NULL, 'Scott C', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL),
|
(7, '000000007', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Scott', NULL, 'C', NULL, 'Scott C', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL),
|
||||||
(8, '000000008', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Robinson', NULL, 'R', NULL, 'Robinson R', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL);
|
(8, '000000008', NULL, 300, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Robinson', NULL, 'R', NULL, 'Robinson R', NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL);
|
||||||
/*!40000 ALTER TABLE `m_client` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_client` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -897,9 +932,9 @@ CREATE TABLE IF NOT EXISTS `m_code` (
|
|||||||
`is_system_defined` tinyint(1) NOT NULL DEFAULT '0',
|
`is_system_defined` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `code_name` (`code_name`)
|
UNIQUE KEY `code_name` (`code_name`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_code: ~15 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_code: ~17 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_code` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_code` DISABLE KEYS */;
|
||||||
INSERT INTO `m_code` (`id`, `code_name`, `is_system_defined`) VALUES
|
INSERT INTO `m_code` (`id`, `code_name`, `is_system_defined`) VALUES
|
||||||
(1, 'Customer Identifier', 1),
|
(1, 'Customer Identifier', 1),
|
||||||
@@ -916,7 +951,9 @@ INSERT INTO `m_code` (`id`, `code_name`, `is_system_defined`) VALUES
|
|||||||
(12, 'PaymentType', 1),
|
(12, 'PaymentType', 1),
|
||||||
(13, 'GROUPROLE', 1),
|
(13, 'GROUPROLE', 1),
|
||||||
(14, 'ClientClosureReason', 1),
|
(14, 'ClientClosureReason', 1),
|
||||||
(15, 'GroupClosureReason', 1);
|
(15, 'GroupClosureReason', 1),
|
||||||
|
(16, 'ClientType', 1),
|
||||||
|
(17, 'ClientClassification', 1);
|
||||||
/*!40000 ALTER TABLE `m_code` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_code` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -927,6 +964,7 @@ CREATE TABLE IF NOT EXISTS `m_code_value` (
|
|||||||
`code_id` int(11) NOT NULL,
|
`code_id` int(11) NOT NULL,
|
||||||
`code_value` varchar(100) DEFAULT NULL,
|
`code_value` varchar(100) DEFAULT NULL,
|
||||||
`order_position` int(11) NOT NULL DEFAULT '0',
|
`order_position` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`code_score` int(11) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `code_value` (`code_id`,`code_value`),
|
UNIQUE KEY `code_value` (`code_id`,`code_value`),
|
||||||
KEY `FKCFCEA42640BE071Z` (`code_id`),
|
KEY `FKCFCEA42640BE071Z` (`code_id`),
|
||||||
@@ -935,30 +973,30 @@ CREATE TABLE IF NOT EXISTS `m_code_value` (
|
|||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_code_value: ~23 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_code_value: ~23 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_code_value` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_code_value` DISABLE KEYS */;
|
||||||
INSERT INTO `m_code_value` (`id`, `code_id`, `code_value`, `order_position`) VALUES
|
INSERT INTO `m_code_value` (`id`, `code_id`, `code_value`, `order_position`, `code_score`) VALUES
|
||||||
(1, 1, 'Passport Id', 1),
|
(1, 1, 'Passport Id', 1, NULL),
|
||||||
(2, 1, 'Government Id', 2),
|
(2, 1, 'Government Id', 2, NULL),
|
||||||
(3, 1, 'Drivers License', 3),
|
(3, 1, 'Drivers License', 3, NULL),
|
||||||
(4, 1, 'Any Other Id Type', 4),
|
(4, 1, 'Any Other Id Type', 4, NULL),
|
||||||
(5, 6, 'Spouse', 0),
|
(5, 6, 'Spouse', 0, NULL),
|
||||||
(6, 6, 'Parent', 0),
|
(6, 6, 'Parent', 0, NULL),
|
||||||
(7, 6, 'Sibling', 0),
|
(7, 6, 'Sibling', 0, NULL),
|
||||||
(8, 6, 'Business Associate', 0),
|
(8, 6, 'Business Associate', 0, NULL),
|
||||||
(9, 6, 'Other', 0),
|
(9, 6, 'Other', 0, NULL),
|
||||||
(10, 3, 'Cattle Rearing', 104),
|
(10, 3, 'Cattle Rearing', 104, NULL),
|
||||||
(11, 3, 'Others', 105),
|
(11, 3, 'Others', 105, NULL),
|
||||||
(12, 3, 'Tailoring Shop', 101),
|
(12, 3, 'Tailoring Shop', 101, NULL),
|
||||||
(13, 3, 'Small Provisions Store', 102),
|
(13, 3, 'Small Provisions Store', 102, NULL),
|
||||||
(14, 3, 'Agriculture', 103),
|
(14, 3, 'Agriculture', 103, NULL),
|
||||||
(15, 14, 'Blacklisted', 1),
|
(15, 14, 'Blacklisted', 1, NULL),
|
||||||
(16, 14, 'Deceased', 2),
|
(16, 14, 'Deceased', 2, NULL),
|
||||||
(17, 14, 'Transferred', 3),
|
(17, 14, 'Transferred', 3, NULL),
|
||||||
(18, 14, 'Left', 4),
|
(18, 14, 'Left', 4, NULL),
|
||||||
(19, 14, 'others', 5),
|
(19, 14, 'others', 5, NULL),
|
||||||
(20, 1, 'Voter ID', 6),
|
(20, 1, 'Voter ID', 6, NULL),
|
||||||
(21, 1, 'Ration Card', 5),
|
(21, 1, 'Ration Card', 5, NULL),
|
||||||
(22, 4, 'Male', 1),
|
(22, 4, 'Male', 1, NULL),
|
||||||
(24, 4, 'Female', 2);
|
(24, 4, 'Female', 2, NULL);
|
||||||
/*!40000 ALTER TABLE `m_code_value` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_code_value` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -1150,10 +1188,13 @@ DROP TABLE IF EXISTS `m_deposit_account_recurring_detail`;
|
|||||||
CREATE TABLE IF NOT EXISTS `m_deposit_account_recurring_detail` (
|
CREATE TABLE IF NOT EXISTS `m_deposit_account_recurring_detail` (
|
||||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
`savings_account_id` bigint(20) NOT NULL DEFAULT '0',
|
`savings_account_id` bigint(20) NOT NULL DEFAULT '0',
|
||||||
`recurring_deposit_amount` decimal(19,6) DEFAULT NULL,
|
`mandatory_recommended_deposit_amount` decimal(19,6) DEFAULT NULL,
|
||||||
`recurring_deposit_type_enum` smallint(5) DEFAULT NULL,
|
`is_mandatory` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`recurring_deposit_frequency` int(11) DEFAULT NULL,
|
`allow_withdrawal` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`recurring_deposit_frequency_type_enum` smallint(5) DEFAULT NULL,
|
`adjust_advance_towards_future_payments` tinyint(4) NOT NULL DEFAULT '1',
|
||||||
|
`is_calendar_inherited` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
|
`total_overdue_amount` decimal(19,6) DEFAULT NULL,
|
||||||
|
`no_of_overdue_installments` int(11) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `FKDARD00000000000001` (`savings_account_id`),
|
KEY `FKDARD00000000000001` (`savings_account_id`),
|
||||||
CONSTRAINT `FKDARD00000000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
|
CONSTRAINT `FKDARD00000000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
|
||||||
@@ -1175,10 +1216,6 @@ CREATE TABLE IF NOT EXISTS `m_deposit_account_term_and_preclosure` (
|
|||||||
`max_deposit_term_type_enum` smallint(5) DEFAULT NULL,
|
`max_deposit_term_type_enum` smallint(5) DEFAULT NULL,
|
||||||
`in_multiples_of_deposit_term` int(11) DEFAULT NULL,
|
`in_multiples_of_deposit_term` int(11) DEFAULT NULL,
|
||||||
`in_multiples_of_deposit_term_type_enum` smallint(5) DEFAULT NULL,
|
`in_multiples_of_deposit_term_type_enum` smallint(5) DEFAULT NULL,
|
||||||
`interest_free_period_applicable` smallint(5) DEFAULT NULL,
|
|
||||||
`interest_free_from_period` int(11) DEFAULT NULL,
|
|
||||||
`interest_free_to_period` int(11) DEFAULT NULL,
|
|
||||||
`interest_free_period_frequency_enum` smallint(5) DEFAULT NULL,
|
|
||||||
`pre_closure_penal_applicable` smallint(5) DEFAULT NULL,
|
`pre_closure_penal_applicable` smallint(5) DEFAULT NULL,
|
||||||
`pre_closure_penal_interest` decimal(19,6) DEFAULT NULL,
|
`pre_closure_penal_interest` decimal(19,6) DEFAULT NULL,
|
||||||
`pre_closure_penal_interest_on_enum` smallint(5) DEFAULT NULL,
|
`pre_closure_penal_interest_on_enum` smallint(5) DEFAULT NULL,
|
||||||
@@ -1189,6 +1226,7 @@ CREATE TABLE IF NOT EXISTS `m_deposit_account_term_and_preclosure` (
|
|||||||
`maturity_date` date DEFAULT NULL,
|
`maturity_date` date DEFAULT NULL,
|
||||||
`on_account_closure_enum` smallint(5) DEFAULT NULL,
|
`on_account_closure_enum` smallint(5) DEFAULT NULL,
|
||||||
`expected_firstdepositon_date` date DEFAULT NULL,
|
`expected_firstdepositon_date` date DEFAULT NULL,
|
||||||
|
`transfer_interest_to_linked_account` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `FKDATP00000000000001` (`savings_account_id`),
|
KEY `FKDATP00000000000001` (`savings_account_id`),
|
||||||
CONSTRAINT `FKDATP00000000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
|
CONSTRAINT `FKDATP00000000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
|
||||||
@@ -1220,9 +1258,9 @@ DROP TABLE IF EXISTS `m_deposit_product_recurring_detail`;
|
|||||||
CREATE TABLE IF NOT EXISTS `m_deposit_product_recurring_detail` (
|
CREATE TABLE IF NOT EXISTS `m_deposit_product_recurring_detail` (
|
||||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
`savings_product_id` bigint(20) NOT NULL DEFAULT '0',
|
`savings_product_id` bigint(20) NOT NULL DEFAULT '0',
|
||||||
`recurring_deposit_type_enum` smallint(5) DEFAULT NULL,
|
`is_mandatory` tinyint(1) NOT NULL DEFAULT '1',
|
||||||
`recurring_deposit_frequency` int(11) DEFAULT NULL,
|
`allow_withdrawal` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`recurring_deposit_frequency_type_enum` smallint(5) DEFAULT NULL,
|
`adjust_advance_towards_future_payments` tinyint(1) NOT NULL DEFAULT '1',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `FKDPRD00000000000001` (`savings_product_id`),
|
KEY `FKDPRD00000000000001` (`savings_product_id`),
|
||||||
CONSTRAINT `FKDPRD00000000000001` FOREIGN KEY (`savings_product_id`) REFERENCES `m_savings_product` (`id`)
|
CONSTRAINT `FKDPRD00000000000001` FOREIGN KEY (`savings_product_id`) REFERENCES `m_savings_product` (`id`)
|
||||||
@@ -1244,10 +1282,6 @@ CREATE TABLE IF NOT EXISTS `m_deposit_product_term_and_preclosure` (
|
|||||||
`max_deposit_term_type_enum` smallint(5) DEFAULT NULL,
|
`max_deposit_term_type_enum` smallint(5) DEFAULT NULL,
|
||||||
`in_multiples_of_deposit_term` int(11) DEFAULT NULL,
|
`in_multiples_of_deposit_term` int(11) DEFAULT NULL,
|
||||||
`in_multiples_of_deposit_term_type_enum` smallint(5) DEFAULT NULL,
|
`in_multiples_of_deposit_term_type_enum` smallint(5) DEFAULT NULL,
|
||||||
`interest_free_period_applicable` smallint(5) DEFAULT NULL,
|
|
||||||
`interest_free_from_period` int(11) DEFAULT NULL,
|
|
||||||
`interest_free_to_period` int(11) DEFAULT NULL,
|
|
||||||
`interest_free_period_frequency_enum` smallint(5) DEFAULT NULL,
|
|
||||||
`pre_closure_penal_applicable` smallint(5) DEFAULT NULL,
|
`pre_closure_penal_applicable` smallint(5) DEFAULT NULL,
|
||||||
`pre_closure_penal_interest` decimal(19,6) DEFAULT NULL,
|
`pre_closure_penal_interest` decimal(19,6) DEFAULT NULL,
|
||||||
`pre_closure_penal_interest_on_enum` smallint(5) DEFAULT NULL,
|
`pre_closure_penal_interest_on_enum` smallint(5) DEFAULT NULL,
|
||||||
@@ -1296,7 +1330,7 @@ CREATE TABLE IF NOT EXISTS `m_fund` (
|
|||||||
UNIQUE KEY `fund_externalid_org` (`external_id`)
|
UNIQUE KEY `fund_externalid_org` (`external_id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_fund: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_fund: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_fund` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_fund` DISABLE KEYS */;
|
||||||
INSERT INTO `m_fund` (`id`, `name`, `external_id`) VALUES
|
INSERT INTO `m_fund` (`id`, `name`, `external_id`) VALUES
|
||||||
(1, 'Loan from Central Bank', NULL);
|
(1, 'Loan from Central Bank', NULL);
|
||||||
@@ -1498,6 +1532,27 @@ CREATE TABLE IF NOT EXISTS `m_image` (
|
|||||||
/*!40000 ALTER TABLE `m_image` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_image` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
|
-- Dumping structure for table mifostenant-default.m_interest_incentives
|
||||||
|
DROP TABLE IF EXISTS `m_interest_incentives`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `m_interest_incentives` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`interest_rate_slab_id` bigint(20) NOT NULL,
|
||||||
|
`entiry_type` smallint(2) NOT NULL,
|
||||||
|
`attribute_name` smallint(2) NOT NULL,
|
||||||
|
`condition_type` smallint(2) NOT NULL,
|
||||||
|
`attribute_value` varchar(50) NOT NULL,
|
||||||
|
`incentive_type` smallint(2) NOT NULL,
|
||||||
|
`amount` decimal(19,6) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `FK_m_interest_incentives_m_interest_rate_slab` (`interest_rate_slab_id`),
|
||||||
|
CONSTRAINT `FK_m_interest_incentives_m_interest_rate_slab` FOREIGN KEY (`interest_rate_slab_id`) REFERENCES `m_interest_rate_slab` (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- Dumping data for table mifostenant-default.m_interest_incentives: ~0 rows (approximately)
|
||||||
|
/*!40000 ALTER TABLE `m_interest_incentives` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `m_interest_incentives` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
-- Dumping structure for table mifostenant-default.m_interest_rate_chart
|
-- Dumping structure for table mifostenant-default.m_interest_rate_chart
|
||||||
DROP TABLE IF EXISTS `m_interest_rate_chart`;
|
DROP TABLE IF EXISTS `m_interest_rate_chart`;
|
||||||
CREATE TABLE IF NOT EXISTS `m_interest_rate_chart` (
|
CREATE TABLE IF NOT EXISTS `m_interest_rate_chart` (
|
||||||
@@ -1626,6 +1681,7 @@ CREATE TABLE IF NOT EXISTS `m_loan` (
|
|||||||
`max_outstanding_loan_balance` decimal(19,6) DEFAULT NULL,
|
`max_outstanding_loan_balance` decimal(19,6) DEFAULT NULL,
|
||||||
`grace_on_arrears_ageing` smallint(5) DEFAULT NULL,
|
`grace_on_arrears_ageing` smallint(5) DEFAULT NULL,
|
||||||
`is_npa` tinyint(1) NOT NULL DEFAULT '0',
|
`is_npa` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
|
`total_recovered_derived` decimal(19,6) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `loan_account_no_UNIQUE` (`account_no`),
|
UNIQUE KEY `loan_account_no_UNIQUE` (`account_no`),
|
||||||
UNIQUE KEY `loan_externalid_UNIQUE` (`external_id`),
|
UNIQUE KEY `loan_externalid_UNIQUE` (`external_id`),
|
||||||
@@ -1657,10 +1713,12 @@ CREATE TABLE IF NOT EXISTS `m_loan` (
|
|||||||
CONSTRAINT `FK_submittedon_userid` FOREIGN KEY (`submittedon_userid`) REFERENCES `m_appuser` (`id`),
|
CONSTRAINT `FK_submittedon_userid` FOREIGN KEY (`submittedon_userid`) REFERENCES `m_appuser` (`id`),
|
||||||
CONSTRAINT `FK_withdrawnon_userid` FOREIGN KEY (`withdrawnon_userid`) REFERENCES `m_appuser` (`id`),
|
CONSTRAINT `FK_withdrawnon_userid` FOREIGN KEY (`withdrawnon_userid`) REFERENCES `m_appuser` (`id`),
|
||||||
CONSTRAINT `m_loan_ibfk_1` FOREIGN KEY (`group_id`) REFERENCES `m_group` (`id`)
|
CONSTRAINT `m_loan_ibfk_1` FOREIGN KEY (`group_id`) REFERENCES `m_group` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_loan: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_loan: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_loan` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_loan` DISABLE KEYS */;
|
||||||
|
INSERT INTO `m_loan` (`id`, `account_no`, `external_id`, `client_id`, `group_id`, `product_id`, `fund_id`, `loan_officer_id`, `loanpurpose_cv_id`, `loan_status_id`, `loan_type_enum`, `currency_code`, `currency_digits`, `currency_multiplesof`, `principal_amount`, `approved_principal`, `arrearstolerance_amount`, `nominal_interest_rate_per_period`, `interest_period_frequency_enum`, `annual_nominal_interest_rate`, `interest_method_enum`, `interest_calculated_in_period_enum`, `term_frequency`, `term_period_frequency_enum`, `repay_every`, `repayment_period_frequency_enum`, `number_of_repayments`, `grace_on_principal_periods`, `grace_on_interest_periods`, `grace_interest_free_periods`, `amortization_method_enum`, `submittedon_date`, `submittedon_userid`, `approvedon_date`, `approvedon_userid`, `expected_disbursedon_date`, `expected_firstrepaymenton_date`, `interest_calculated_from_date`, `disbursedon_date`, `disbursedon_userid`, `expected_maturedon_date`, `maturedon_date`, `closedon_date`, `closedon_userid`, `total_charges_due_at_disbursement_derived`, `principal_disbursed_derived`, `principal_repaid_derived`, `principal_writtenoff_derived`, `principal_outstanding_derived`, `interest_charged_derived`, `interest_repaid_derived`, `interest_waived_derived`, `interest_writtenoff_derived`, `interest_outstanding_derived`, `fee_charges_charged_derived`, `fee_charges_repaid_derived`, `fee_charges_waived_derived`, `fee_charges_writtenoff_derived`, `fee_charges_outstanding_derived`, `penalty_charges_charged_derived`, `penalty_charges_repaid_derived`, `penalty_charges_waived_derived`, `penalty_charges_writtenoff_derived`, `penalty_charges_outstanding_derived`, `total_expected_repayment_derived`, `total_repayment_derived`, `total_expected_costofloan_derived`, `total_costofloan_derived`, `total_waived_derived`, `total_writtenoff_derived`, `total_outstanding_derived`, `total_overpaid_derived`, `rejectedon_date`, `rejectedon_userid`, `rescheduledon_date`, `withdrawnon_date`, `withdrawnon_userid`, `writtenoffon_date`, `loan_transaction_strategy_id`, `sync_disbursement_with_meeting`, `loan_counter`, `loan_product_counter`, `fixed_emi_amount`, `max_outstanding_loan_balance`, `grace_on_arrears_ageing`, `is_npa`, `total_recovered_derived`) VALUES
|
||||||
|
(1, '000000001', NULL, 8, NULL, 1, 1, NULL, NULL, 200, 1, 'USD', 2, 0, 10000.000000, 10000.000000, NULL, 26.000000, 3, 26.000000, 1, 1, 25, 1, 1, 1, 25, NULL, NULL, NULL, 1, '2014-06-02', 1, '2014-06-11', 1, '2014-06-16', NULL, NULL, NULL, NULL, '2014-12-08', '2014-12-08', NULL, NULL, 500.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL);
|
||||||
/*!40000 ALTER TABLE `m_loan` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_loan` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -1712,10 +1770,12 @@ CREATE TABLE IF NOT EXISTS `m_loan_charge` (
|
|||||||
KEY `m_loan_charge_ibfk_2` (`loan_id`),
|
KEY `m_loan_charge_ibfk_2` (`loan_id`),
|
||||||
CONSTRAINT `m_loan_charge_ibfk_1` FOREIGN KEY (`charge_id`) REFERENCES `m_charge` (`id`),
|
CONSTRAINT `m_loan_charge_ibfk_1` FOREIGN KEY (`charge_id`) REFERENCES `m_charge` (`id`),
|
||||||
CONSTRAINT `m_loan_charge_ibfk_2` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
|
CONSTRAINT `m_loan_charge_ibfk_2` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_loan_charge: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_loan_charge: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_loan_charge` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_loan_charge` DISABLE KEYS */;
|
||||||
|
INSERT INTO `m_loan_charge` (`id`, `loan_id`, `charge_id`, `is_penalty`, `charge_time_enum`, `due_for_collection_as_of_date`, `charge_calculation_enum`, `charge_payment_mode_enum`, `calculation_percentage`, `calculation_on_amount`, `charge_amount_or_percentage`, `amount`, `amount_paid_derived`, `amount_waived_derived`, `amount_writtenoff_derived`, `amount_outstanding_derived`, `is_paid_derived`, `waived`, `min_cap`, `max_cap`, `is_active`) VALUES
|
||||||
|
(1, 1, 1, 0, 1, NULL, 1, 0, NULL, NULL, 500.000000, 500.000000, NULL, NULL, NULL, 500.000000, 0, 0, NULL, NULL, 1);
|
||||||
/*!40000 ALTER TABLE `m_loan_charge` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_loan_charge` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -1902,10 +1962,36 @@ CREATE TABLE IF NOT EXISTS `m_loan_repayment_schedule` (
|
|||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `FK488B92AA40BE0710` (`loan_id`),
|
KEY `FK488B92AA40BE0710` (`loan_id`),
|
||||||
CONSTRAINT `FK488B92AA40BE0710` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
|
CONSTRAINT `FK488B92AA40BE0710` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_loan_repayment_schedule: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_loan_repayment_schedule: ~25 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_loan_repayment_schedule` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_loan_repayment_schedule` DISABLE KEYS */;
|
||||||
|
INSERT INTO `m_loan_repayment_schedule` (`id`, `loan_id`, `fromdate`, `duedate`, `installment`, `principal_amount`, `principal_completed_derived`, `principal_writtenoff_derived`, `interest_amount`, `interest_completed_derived`, `interest_writtenoff_derived`, `interest_waived_derived`, `accrual_interest_derived`, `fee_charges_amount`, `fee_charges_completed_derived`, `fee_charges_writtenoff_derived`, `fee_charges_waived_derived`, `accrual_fee_charges_derived`, `penalty_charges_amount`, `penalty_charges_completed_derived`, `penalty_charges_writtenoff_derived`, `penalty_charges_waived_derived`, `accrual_penalty_charges_derived`, `total_paid_in_advance_derived`, `total_paid_late_derived`, `completed_derived`, `obligations_met_on_date`, `createdby_id`, `created_date`, `lastmodified_date`, `lastmodifiedby_id`) VALUES
|
||||||
|
(1, 1, '2014-06-16', '2014-06-23', 1, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(2, 1, '2014-06-23', '2014-06-30', 2, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(3, 1, '2014-06-30', '2014-07-07', 3, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(4, 1, '2014-07-07', '2014-07-14', 4, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(5, 1, '2014-07-14', '2014-07-21', 5, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(6, 1, '2014-07-21', '2014-07-28', 6, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(7, 1, '2014-07-28', '2014-08-04', 7, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(8, 1, '2014-08-04', '2014-08-11', 8, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(9, 1, '2014-08-11', '2014-08-18', 9, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(10, 1, '2014-08-18', '2014-08-25', 10, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(11, 1, '2014-08-25', '2014-09-01', 11, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(12, 1, '2014-09-01', '2014-09-08', 12, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(13, 1, '2014-09-08', '2014-09-15', 13, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(14, 1, '2014-09-15', '2014-09-22', 14, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(15, 1, '2014-09-22', '2014-09-29', 15, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(16, 1, '2014-09-29', '2014-10-06', 16, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(17, 1, '2014-10-06', '2014-10-13', 17, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(18, 1, '2014-10-13', '2014-10-20', 18, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(19, 1, '2014-10-20', '2014-10-27', 19, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(20, 1, '2014-10-27', '2014-11-03', 20, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(21, 1, '2014-11-03', '2014-11-10', 21, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(22, 1, '2014-11-10', '2014-11-17', 22, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(23, 1, '2014-11-17', '2014-11-24', 23, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(24, 1, '2014-11-24', '2014-12-01', 24, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1),
|
||||||
|
(25, 1, '2014-12-01', '2014-12-08', 25, 400.000000, NULL, NULL, 50.000000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', NULL, 1, '2014-06-11 09:17:45', '2014-06-11 09:17:45', 1);
|
||||||
/*!40000 ALTER TABLE `m_loan_repayment_schedule` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_loan_repayment_schedule` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -1959,6 +2045,34 @@ CREATE TABLE IF NOT EXISTS `m_loan_transaction` (
|
|||||||
/*!40000 ALTER TABLE `m_loan_transaction` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_loan_transaction` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
|
-- Dumping structure for table mifostenant-default.m_mandatory_savings_schedule
|
||||||
|
DROP TABLE IF EXISTS `m_mandatory_savings_schedule`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `m_mandatory_savings_schedule` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`savings_account_id` bigint(20) NOT NULL,
|
||||||
|
`fromdate` date DEFAULT NULL,
|
||||||
|
`duedate` date NOT NULL,
|
||||||
|
`installment` smallint(5) NOT NULL,
|
||||||
|
`deposit_amount` decimal(19,6) DEFAULT NULL,
|
||||||
|
`deposit_amount_completed_derived` decimal(19,6) DEFAULT NULL,
|
||||||
|
`total_paid_in_advance_derived` decimal(19,6) DEFAULT NULL,
|
||||||
|
`total_paid_late_derived` decimal(19,6) DEFAULT NULL,
|
||||||
|
`completed_derived` bit(1) NOT NULL,
|
||||||
|
`obligations_met_on_date` date DEFAULT NULL,
|
||||||
|
`createdby_id` bigint(20) DEFAULT NULL,
|
||||||
|
`created_date` datetime DEFAULT NULL,
|
||||||
|
`lastmodified_date` datetime DEFAULT NULL,
|
||||||
|
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `FKMSS0000000001` (`savings_account_id`),
|
||||||
|
CONSTRAINT `FKMSS0000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- Dumping data for table mifostenant-default.m_mandatory_savings_schedule: ~0 rows (approximately)
|
||||||
|
/*!40000 ALTER TABLE `m_mandatory_savings_schedule` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `m_mandatory_savings_schedule` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
-- Dumping structure for table mifostenant-default.m_meeting
|
-- Dumping structure for table mifostenant-default.m_meeting
|
||||||
DROP TABLE IF EXISTS `m_meeting`;
|
DROP TABLE IF EXISTS `m_meeting`;
|
||||||
CREATE TABLE IF NOT EXISTS `m_meeting` (
|
CREATE TABLE IF NOT EXISTS `m_meeting` (
|
||||||
@@ -2074,7 +2188,7 @@ CREATE TABLE IF NOT EXISTS `m_organisation_currency` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_organisation_currency: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_organisation_currency: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_organisation_currency` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_organisation_currency` DISABLE KEYS */;
|
||||||
INSERT INTO `m_organisation_currency` (`id`, `code`, `decimal_places`, `currency_multiplesof`, `name`, `display_symbol`, `internationalized_name_code`) VALUES
|
INSERT INTO `m_organisation_currency` (`id`, `code`, `decimal_places`, `currency_multiplesof`, `name`, `display_symbol`, `internationalized_name_code`) VALUES
|
||||||
(21, 'USD', 2, NULL, 'US Dollar', '$', 'currency.USD');
|
(21, 'USD', 2, NULL, 'US Dollar', '$', 'currency.USD');
|
||||||
@@ -2112,9 +2226,9 @@ CREATE TABLE IF NOT EXISTS `m_permission` (
|
|||||||
`can_maker_checker` tinyint(1) NOT NULL DEFAULT '1',
|
`can_maker_checker` tinyint(1) NOT NULL DEFAULT '1',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `code` (`code`)
|
UNIQUE KEY `code` (`code`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=541 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=550 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_permission: ~518 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_permission: ~527 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_permission` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_permission` DISABLE KEYS */;
|
||||||
INSERT INTO `m_permission` (`id`, `grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES
|
INSERT INTO `m_permission` (`id`, `grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES
|
||||||
(1, 'special', 'ALL_FUNCTIONS', NULL, NULL, 0),
|
(1, 'special', 'ALL_FUNCTIONS', NULL, NULL, 0),
|
||||||
@@ -2634,7 +2748,16 @@ INSERT INTO `m_permission` (`id`, `grouping`, `code`, `entity_name`, `action_nam
|
|||||||
(537, 'transaction_savings', 'PREMATURECLOSE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'PREMATURECLOSE', 1),
|
(537, 'transaction_savings', 'PREMATURECLOSE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'PREMATURECLOSE', 1),
|
||||||
(538, 'transaction_savings', 'PREMATURECLOSE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'PREMATURECLOSE', 0),
|
(538, 'transaction_savings', 'PREMATURECLOSE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'PREMATURECLOSE', 0),
|
||||||
(539, 'transaction_savings', 'PREMATURECLOSE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'PREMATURECLOSE', 1),
|
(539, 'transaction_savings', 'PREMATURECLOSE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'PREMATURECLOSE', 1),
|
||||||
(540, 'transaction_loan', 'DISBURSETOSAVINGS_LOAN', 'LOAN', 'DISBURSETOSAVINGS', 0);
|
(540, 'transaction_loan', 'DISBURSETOSAVINGS_LOAN', 'LOAN', 'DISBURSETOSAVINGS', 0),
|
||||||
|
(541, 'transaction_loan', 'RECOVERYPAYMENT_LOAN', 'LOAN', 'RECOVERYPAYMENT', 0),
|
||||||
|
(542, 'organisation', 'READ_RECURRINGDEPOSITPRODUCT', 'RECURRINGDEPOSITPRODUCT', 'READ', 0),
|
||||||
|
(543, 'organisation', 'READ_FIXEDDEPOSITPRODUCT', 'FIXEDDEPOSITPRODUCT', 'READ', 0),
|
||||||
|
(544, 'accounting', 'READ_OFFICEGLACCOUNT', 'OFFICEGLACCOUNT', 'READ', 0),
|
||||||
|
(545, 'accounting', 'CREATE_OFFICEGLACCOUNT', 'OFFICEGLACCOUNT', 'CREATE', 0),
|
||||||
|
(546, 'accounting', 'DELETE_OFFICEGLACCOUNT', 'OFFICEGLACCOUNT', 'DELETE', 0),
|
||||||
|
(547, 'accounting', 'UPDATE_OFFICEGLACCOUNT', 'OFFICEGLACCOUNT', 'UPDATE', 0),
|
||||||
|
(548, 'datatable', 'UPDATE_LIKELIHOOD', 'likelihood', 'UPDATE', 0),
|
||||||
|
(549, 'survey', 'REGISTER_SURVEY', 'survey', 'CREATE', 0);
|
||||||
/*!40000 ALTER TABLE `m_permission` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_permission` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -2698,9 +2821,9 @@ CREATE TABLE IF NOT EXISTS `m_portfolio_command_source` (
|
|||||||
KEY `loan_id` (`office_id`),
|
KEY `loan_id` (`office_id`),
|
||||||
CONSTRAINT `FK_m_checker_m_appuser` FOREIGN KEY (`checker_id`) REFERENCES `m_appuser` (`id`),
|
CONSTRAINT `FK_m_checker_m_appuser` FOREIGN KEY (`checker_id`) REFERENCES `m_appuser` (`id`),
|
||||||
CONSTRAINT `FK_m_maker_m_appuser` FOREIGN KEY (`maker_id`) REFERENCES `m_appuser` (`id`)
|
CONSTRAINT `FK_m_maker_m_appuser` FOREIGN KEY (`maker_id`) REFERENCES `m_appuser` (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_portfolio_command_source: ~67 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_portfolio_command_source: ~69 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_portfolio_command_source` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_portfolio_command_source` DISABLE KEYS */;
|
||||||
INSERT INTO `m_portfolio_command_source` (`id`, `action_name`, `entity_name`, `office_id`, `group_id`, `client_id`, `loan_id`, `savings_account_id`, `api_get_url`, `resource_id`, `subresource_id`, `command_as_json`, `maker_id`, `made_on_date`, `checker_id`, `checked_on_date`, `processing_result_enum`, `product_id`, `transaction_id`) VALUES
|
INSERT INTO `m_portfolio_command_source` (`id`, `action_name`, `entity_name`, `office_id`, `group_id`, `client_id`, `loan_id`, `savings_account_id`, `api_get_url`, `resource_id`, `subresource_id`, `command_as_json`, `maker_id`, `made_on_date`, `checker_id`, `checked_on_date`, `processing_result_enum`, `product_id`, `transaction_id`) VALUES
|
||||||
(1, 'CREATE', 'STAFF', 1, NULL, NULL, NULL, NULL, '/staff/template', 1, NULL, '{"isLoanOfficer":true,"officeId":1,"firstname":"Aliya","lastname":"A"}', 1, '2014-03-07 19:10:05', NULL, NULL, 1, NULL, NULL),
|
(1, 'CREATE', 'STAFF', 1, NULL, NULL, NULL, NULL, '/staff/template', 1, NULL, '{"isLoanOfficer":true,"officeId":1,"firstname":"Aliya","lastname":"A"}', 1, '2014-03-07 19:10:05', NULL, NULL, 1, NULL, NULL),
|
||||||
@@ -2769,7 +2892,9 @@ INSERT INTO `m_portfolio_command_source` (`id`, `action_name`, `entity_name`, `o
|
|||||||
(64, 'UPDATE', 'GLACCOUNT', NULL, NULL, NULL, NULL, NULL, '/glaccounts/17', 17, NULL, '{"usage":1}', 1, '2014-05-01 16:25:26', NULL, NULL, 1, NULL, NULL),
|
(64, 'UPDATE', 'GLACCOUNT', NULL, NULL, NULL, NULL, NULL, '/glaccounts/17', 17, NULL, '{"usage":1}', 1, '2014-05-01 16:25:26', NULL, NULL, 1, NULL, NULL),
|
||||||
(65, 'UPDATE', 'GLACCOUNT', NULL, NULL, NULL, NULL, NULL, '/glaccounts/2', 2, NULL, '{"usage":1}', 1, '2014-05-01 16:25:56', NULL, NULL, 1, NULL, NULL),
|
(65, 'UPDATE', 'GLACCOUNT', NULL, NULL, NULL, NULL, NULL, '/glaccounts/2', 2, NULL, '{"usage":1}', 1, '2014-05-01 16:25:56', NULL, NULL, 1, NULL, NULL),
|
||||||
(66, 'UPDATE', 'LOANPRODUCT', NULL, NULL, NULL, NULL, NULL, '/loanproducts/1', 1, NULL, '{"inMultiplesOf":0,"penaltyToIncomeAccountMappings":"[]","paymentChannelToFundSourceMappings":"[]","feeToIncomeAccountMappings":"[]"}', 1, '2014-05-01 16:26:06', NULL, NULL, 1, NULL, NULL),
|
(66, 'UPDATE', 'LOANPRODUCT', NULL, NULL, NULL, NULL, NULL, '/loanproducts/1', 1, NULL, '{"inMultiplesOf":0,"penaltyToIncomeAccountMappings":"[]","paymentChannelToFundSourceMappings":"[]","feeToIncomeAccountMappings":"[]"}', 1, '2014-05-01 16:26:06', NULL, NULL, 1, NULL, NULL),
|
||||||
(67, 'UPDATE', 'LOANPRODUCT', NULL, NULL, NULL, NULL, NULL, '/loanproducts/1', 1, NULL, '{"inMultiplesOf":0,"overpaymentLiabilityAccountId":2,"penaltyToIncomeAccountMappings":"[]","paymentChannelToFundSourceMappings":"[]","transfersInSuspenseAccountId":17,"feeToIncomeAccountMappings":"[]"}', 1, '2014-05-01 16:26:37', NULL, NULL, 1, NULL, NULL);
|
(67, 'UPDATE', 'LOANPRODUCT', NULL, NULL, NULL, NULL, NULL, '/loanproducts/1', 1, NULL, '{"inMultiplesOf":0,"overpaymentLiabilityAccountId":2,"penaltyToIncomeAccountMappings":"[]","paymentChannelToFundSourceMappings":"[]","transfersInSuspenseAccountId":17,"feeToIncomeAccountMappings":"[]"}', 1, '2014-05-01 16:26:37', NULL, NULL, 1, NULL, NULL),
|
||||||
|
(68, 'CREATE', 'LOAN', 2, NULL, 8, 1, NULL, '/loans', 1, NULL, '{"clientId":"8","productId":1,"disbursementData":[],"fundId":1,"principal":10000,"loanTermFrequency":25,"loanTermFrequencyType":1,"numberOfRepayments":25,"repaymentEvery":1,"repaymentFrequencyType":1,"interestRatePerPeriod":26,"amortizationType":1,"interestType":1,"interestCalculationPeriodType":1,"transactionProcessingStrategyId":1,"locale":"en","dateFormat":"dd MMMM yyyy","loanType":"individual","expectedDisbursementDate":"16 June 2014","submittedOnDate":"02 June 2014","charges":[{"chargeId":1,"amount":500}]}', 1, '2014-06-11 09:17:45', NULL, NULL, 1, NULL, NULL),
|
||||||
|
(69, 'APPROVE', 'LOAN', 2, NULL, 8, 1, NULL, '/loans/1', 1, NULL, '{"status":{"id":200,"code":"loanStatusType.approved","value":"Approved","pendingApproval":false,"waitingForDisbursal":true,"active":false,"closedObligationsMet":false,"closedWrittenOff":false,"closedRescheduled":false,"closed":false,"overpaid":false},"locale":"en","dateFormat":"dd MMMM yyyy","approvedOnDate":"11 June 2014"}', 1, '2014-06-11 09:18:16', NULL, NULL, 1, NULL, NULL);
|
||||||
/*!40000 ALTER TABLE `m_portfolio_command_source` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_portfolio_command_source` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -2844,7 +2969,7 @@ CREATE TABLE IF NOT EXISTS `m_product_loan_charge` (
|
|||||||
CONSTRAINT `m_product_loan_charge_ibfk_2` FOREIGN KEY (`product_loan_id`) REFERENCES `m_product_loan` (`id`)
|
CONSTRAINT `m_product_loan_charge_ibfk_2` FOREIGN KEY (`product_loan_id`) REFERENCES `m_product_loan` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_product_loan_charge: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_product_loan_charge: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_product_loan_charge` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_product_loan_charge` DISABLE KEYS */;
|
||||||
INSERT INTO `m_product_loan_charge` (`product_loan_id`, `charge_id`) VALUES
|
INSERT INTO `m_product_loan_charge` (`product_loan_id`, `charge_id`) VALUES
|
||||||
(1, 1);
|
(1, 1);
|
||||||
@@ -2900,7 +3025,7 @@ CREATE TABLE IF NOT EXISTS `m_role` (
|
|||||||
UNIQUE KEY `unq_name` (`name`)
|
UNIQUE KEY `unq_name` (`name`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_role: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_role: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_role` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_role` DISABLE KEYS */;
|
||||||
INSERT INTO `m_role` (`id`, `name`, `description`) VALUES
|
INSERT INTO `m_role` (`id`, `name`, `description`) VALUES
|
||||||
(1, 'Super user', 'This role provides all application permissions.');
|
(1, 'Super user', 'This role provides all application permissions.');
|
||||||
@@ -2919,7 +3044,7 @@ CREATE TABLE IF NOT EXISTS `m_role_permission` (
|
|||||||
CONSTRAINT `FK8DEDB04815CEC7AB` FOREIGN KEY (`role_id`) REFERENCES `m_role` (`id`)
|
CONSTRAINT `FK8DEDB04815CEC7AB` FOREIGN KEY (`role_id`) REFERENCES `m_role` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_role_permission: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_role_permission: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_role_permission` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_role_permission` DISABLE KEYS */;
|
||||||
INSERT INTO `m_role_permission` (`role_id`, `permission_id`) VALUES
|
INSERT INTO `m_role_permission` (`role_id`, `permission_id`) VALUES
|
||||||
(1, 1);
|
(1, 1);
|
||||||
@@ -3118,6 +3243,27 @@ CREATE TABLE IF NOT EXISTS `m_savings_account_transaction` (
|
|||||||
/*!40000 ALTER TABLE `m_savings_account_transaction` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_savings_account_transaction` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
|
-- Dumping structure for table mifostenant-default.m_savings_interest_incentives
|
||||||
|
DROP TABLE IF EXISTS `m_savings_interest_incentives`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `m_savings_interest_incentives` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`deposit_account_interest_rate_slab_id` bigint(20) NOT NULL,
|
||||||
|
`entiry_type` smallint(2) NOT NULL,
|
||||||
|
`attribute_name` smallint(2) NOT NULL,
|
||||||
|
`condition_type` smallint(2) NOT NULL,
|
||||||
|
`attribute_value` varchar(50) NOT NULL,
|
||||||
|
`incentive_type` smallint(2) NOT NULL,
|
||||||
|
`amount` decimal(19,6) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `FK_m_savings_interest_incentives_m_savings_interest_rate_slab` (`deposit_account_interest_rate_slab_id`),
|
||||||
|
CONSTRAINT `FK_m_savings_interest_incentives_m_savings_interest_rate_slab` FOREIGN KEY (`deposit_account_interest_rate_slab_id`) REFERENCES `m_savings_account_interest_rate_slab` (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- Dumping data for table mifostenant-default.m_savings_interest_incentives: ~0 rows (approximately)
|
||||||
|
/*!40000 ALTER TABLE `m_savings_interest_incentives` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `m_savings_interest_incentives` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
-- Dumping structure for table mifostenant-default.m_savings_product
|
-- Dumping structure for table mifostenant-default.m_savings_product
|
||||||
DROP TABLE IF EXISTS `m_savings_product`;
|
DROP TABLE IF EXISTS `m_savings_product`;
|
||||||
CREATE TABLE IF NOT EXISTS `m_savings_product` (
|
CREATE TABLE IF NOT EXISTS `m_savings_product` (
|
||||||
@@ -3258,13 +3404,77 @@ CREATE TABLE IF NOT EXISTS `m_working_days` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.m_working_days: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.m_working_days: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `m_working_days` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `m_working_days` DISABLE KEYS */;
|
||||||
INSERT INTO `m_working_days` (`id`, `recurrence`, `repayment_rescheduling_enum`) VALUES
|
INSERT INTO `m_working_days` (`id`, `recurrence`, `repayment_rescheduling_enum`) VALUES
|
||||||
(1, 'FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU', 2);
|
(1, 'FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU', 2);
|
||||||
/*!40000 ALTER TABLE `m_working_days` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `m_working_days` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
|
-- Dumping structure for table mifostenant-default.ppi_likelihoods
|
||||||
|
DROP TABLE IF EXISTS `ppi_likelihoods`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `ppi_likelihoods` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`code` varchar(100) NOT NULL,
|
||||||
|
`name` varchar(250) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- Dumping data for table mifostenant-default.ppi_likelihoods: ~0 rows (approximately)
|
||||||
|
/*!40000 ALTER TABLE `ppi_likelihoods` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `ppi_likelihoods` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
|
-- Dumping structure for table mifostenant-default.ppi_likelihoods_ppi
|
||||||
|
DROP TABLE IF EXISTS `ppi_likelihoods_ppi`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `ppi_likelihoods_ppi` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`likelihood_id` bigint(20) NOT NULL,
|
||||||
|
`ppi_name` varchar(250) NOT NULL,
|
||||||
|
`enabled` int(11) NOT NULL DEFAULT '100',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- Dumping data for table mifostenant-default.ppi_likelihoods_ppi: ~0 rows (approximately)
|
||||||
|
/*!40000 ALTER TABLE `ppi_likelihoods_ppi` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `ppi_likelihoods_ppi` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
|
-- Dumping structure for table mifostenant-default.ppi_scores
|
||||||
|
DROP TABLE IF EXISTS `ppi_scores`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `ppi_scores` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`score_from` int(11) NOT NULL,
|
||||||
|
`score_to` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- Dumping data for table mifostenant-default.ppi_scores: ~20 rows (approximately)
|
||||||
|
/*!40000 ALTER TABLE `ppi_scores` DISABLE KEYS */;
|
||||||
|
INSERT INTO `ppi_scores` (`id`, `score_from`, `score_to`) VALUES
|
||||||
|
(1, 0, 4),
|
||||||
|
(2, 5, 9),
|
||||||
|
(3, 10, 14),
|
||||||
|
(4, 15, 19),
|
||||||
|
(5, 20, 24),
|
||||||
|
(6, 25, 29),
|
||||||
|
(7, 30, 34),
|
||||||
|
(8, 35, 39),
|
||||||
|
(9, 40, 44),
|
||||||
|
(10, 45, 49),
|
||||||
|
(11, 50, 54),
|
||||||
|
(12, 55, 59),
|
||||||
|
(13, 60, 64),
|
||||||
|
(14, 65, 69),
|
||||||
|
(15, 70, 74),
|
||||||
|
(16, 75, 79),
|
||||||
|
(17, 80, 84),
|
||||||
|
(18, 85, 89),
|
||||||
|
(19, 90, 94),
|
||||||
|
(20, 95, 100);
|
||||||
|
/*!40000 ALTER TABLE `ppi_scores` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
-- Dumping structure for table mifostenant-default.ref_loan_transaction_processing_strategy
|
-- Dumping structure for table mifostenant-default.ref_loan_transaction_processing_strategy
|
||||||
DROP TABLE IF EXISTS `ref_loan_transaction_processing_strategy`;
|
DROP TABLE IF EXISTS `ref_loan_transaction_processing_strategy`;
|
||||||
CREATE TABLE IF NOT EXISTS `ref_loan_transaction_processing_strategy` (
|
CREATE TABLE IF NOT EXISTS `ref_loan_transaction_processing_strategy` (
|
||||||
@@ -3390,7 +3600,7 @@ CREATE TABLE IF NOT EXISTS `scheduler_detail` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.scheduler_detail: ~0 rows (approximately)
|
-- Dumping data for table mifostenant-default.scheduler_detail: ~1 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `scheduler_detail` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `scheduler_detail` DISABLE KEYS */;
|
||||||
INSERT INTO `scheduler_detail` (`id`, `is_suspended`, `execute_misfired_jobs`, `reset_scheduler_on_bootup`) VALUES
|
INSERT INTO `scheduler_detail` (`id`, `is_suspended`, `execute_misfired_jobs`, `reset_scheduler_on_bootup`) VALUES
|
||||||
(1, 0, 1, 1);
|
(1, 0, 1, 1);
|
||||||
@@ -3417,7 +3627,7 @@ CREATE TABLE IF NOT EXISTS `schema_version` (
|
|||||||
KEY `schema_version_s_idx` (`success`)
|
KEY `schema_version_s_idx` (`success`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
-- Dumping data for table mifostenant-default.schema_version: ~178 rows (approximately)
|
-- Dumping data for table mifostenant-default.schema_version: ~187 rows (approximately)
|
||||||
/*!40000 ALTER TABLE `schema_version` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `schema_version` DISABLE KEYS */;
|
||||||
INSERT INTO `schema_version` (`version_rank`, `installed_rank`, `version`, `description`, `type`, `script`, `checksum`, `installed_by`, `installed_on`, `execution_time`, `success`) VALUES
|
INSERT INTO `schema_version` (`version_rank`, `installed_rank`, `version`, `description`, `type`, `script`, `checksum`, `installed_by`, `installed_on`, `execution_time`, `success`) VALUES
|
||||||
(1, 1, '1', 'mifosplatform-core-ddl-latest', 'SQL', 'V1__mifosplatform-core-ddl-latest.sql', -1957145051, 'root', '2014-03-07 12:58:38', 10710, 1),
|
(1, 1, '1', 'mifosplatform-core-ddl-latest', 'SQL', 'V1__mifosplatform-core-ddl-latest.sql', -1957145051, 'root', '2014-03-07 12:58:38', 10710, 1),
|
||||||
@@ -3507,7 +3717,16 @@ INSERT INTO `schema_version` (`version_rank`, `installed_rank`, `version`, `desc
|
|||||||
(176, 176, '164', 'fd and rd deposit tables', 'SQL', 'V164__fd_and_rd_deposit_tables.sql', -489803231, 'root', '2014-05-01 10:40:48', 7168, 1),
|
(176, 176, '164', 'fd and rd deposit tables', 'SQL', 'V164__fd_and_rd_deposit_tables.sql', -489803231, 'root', '2014-05-01 10:40:48', 7168, 1),
|
||||||
(177, 177, '165', 'added permission for disburse to saving account', 'SQL', 'V165__added_permission_for_disburse_to_saving_account.sql', -2109143723, 'root', '2014-05-01 10:40:48', 100, 1),
|
(177, 177, '165', 'added permission for disburse to saving account', 'SQL', 'V165__added_permission_for_disburse_to_saving_account.sql', -2109143723, 'root', '2014-05-01 10:40:48', 100, 1),
|
||||||
(178, 178, '166', 'added deposit amount to product term and preclosure', 'SQL', 'V166__added_deposit_amount_to_product_term_and_preclosure.sql', -2068527520, 'root', '2014-05-01 10:40:50', 1411, 1),
|
(178, 178, '166', 'added deposit amount to product term and preclosure', 'SQL', 'V166__added_deposit_amount_to_product_term_and_preclosure.sql', -2068527520, 'root', '2014-05-01 10:40:50', 1411, 1),
|
||||||
|
(179, 179, '167', 'added columns for writtenOff loans recovered', 'SQL', 'V167__added_columns_for_writtenOff_loans_recovered.sql', -901133645, 'root', '2014-06-11 09:09:12', 3242, 1),
|
||||||
|
(180, 180, '168', 'added transfer fixed deposit interest to linked account', 'SQL', 'V168__added_transfer_fixed_deposit_interest_to_linked_account.sql', 1513454871, 'root', '2014-06-11 09:09:15', 2239, 1),
|
||||||
|
(181, 181, '169', 'update dashboard reports to core reports use report to false', 'SQL', 'V169__update_dashboard_reports_to_core_reports_use_report_to_false.sql', 1910199831, 'root', '2014-06-11 09:09:15', 39, 1),
|
||||||
(17, 17, '17', 'update stretchy reporting ddl', 'SQL', 'V17__update_stretchy_reporting_ddl.sql', 2040068410, 'root', '2014-03-07 12:58:48', 1519, 1),
|
(17, 17, '17', 'update stretchy reporting ddl', 'SQL', 'V17__update_stretchy_reporting_ddl.sql', 2040068410, 'root', '2014-03-07 12:58:48', 1519, 1),
|
||||||
|
(182, 182, '170', 'update deposit accounts maturity details job', 'SQL', 'V170__update_deposit_accounts_maturity_details_job.sql', 348328732, 'root', '2014-06-11 09:09:15', 31, 1),
|
||||||
|
(183, 183, '171', 'added mandatory savings and rd changes', 'SQL', 'V171__added_mandatory_savings_and_rd_changes.sql', -219494664, 'root', '2014-06-11 09:09:21', 5645, 1),
|
||||||
|
(184, 184, '172', 'accounting changes for transfers', 'SQL', 'V172__accounting_changes_for_transfers.sql', 1989818135, 'root', '2014-06-11 09:09:22', 1052, 1),
|
||||||
|
(185, 185, '173', 'ppi', 'SQL', 'V173__ppi.sql', -2061337506, 'root', '2014-06-11 09:09:25', 3126, 1),
|
||||||
|
(186, 186, '174', 'remove interest accrual', 'SQL', 'V174__remove_interest_accrual.sql', 1343795196, 'root', '2014-06-11 09:09:25', 3, 1),
|
||||||
|
(187, 187, '175', 'added incentive interest rates', 'SQL', 'V175__added_incentive_interest_rates.sql', 1609110836, 'root', '2014-06-11 09:09:33', 7507, 1),
|
||||||
(18, 18, '18', 'update stretchy reporting reportSql', 'SQL', 'V18__update_stretchy_reporting_reportSql.sql', -170206095, 'root', '2014-03-07 12:58:48', 29, 1),
|
(18, 18, '18', 'update stretchy reporting reportSql', 'SQL', 'V18__update_stretchy_reporting_reportSql.sql', -170206095, 'root', '2014-03-07 12:58:48', 29, 1),
|
||||||
(19, 19, '19', 'report maintenance permissions', 'SQL', 'V19__report_maintenance_permissions.sql', -1528956905, 'root', '2014-03-07 12:58:49', 26, 1),
|
(19, 19, '19', 'report maintenance permissions', 'SQL', 'V19__report_maintenance_permissions.sql', -1528956905, 'root', '2014-03-07 12:58:49', 26, 1),
|
||||||
(2, 2, '2', 'mifosx-base-reference-data-utf8', 'SQL', 'V2__mifosx-base-reference-data-utf8.sql', 1316484475, 'root', '2014-03-07 12:58:38', 106, 1),
|
(2, 2, '2', 'mifosx-base-reference-data-utf8', 'SQL', 'V2__mifosx-base-reference-data-utf8.sql', 1316484475, 'root', '2014-03-07 12:58:38', 106, 1),
|
||||||
@@ -3762,14 +3981,14 @@ INSERT INTO `stretchy_report` (`id`, `report_name`, `report_type`, `report_subty
|
|||||||
(146, 'Client Saving Transactions', 'Pentaho', NULL, 'Savings', NULL, NULL, 0, 0),
|
(146, 'Client Saving Transactions', 'Pentaho', NULL, 'Savings', NULL, NULL, 0, 0),
|
||||||
(147, 'Client Loan Account Schedule', 'Pentaho', NULL, 'Loans', NULL, NULL, 0, 0),
|
(147, 'Client Loan Account Schedule', 'Pentaho', NULL, 'Loans', NULL, NULL, 0, 0),
|
||||||
(148, 'GroupNamesByStaff', 'Table', '', '', 'Select gr.id as id, gr.display_name as name from m_group gr where gr.level_id=1 and gr.staff_id = ${staffId}', '', 0, 1),
|
(148, 'GroupNamesByStaff', 'Table', '', '', 'Select gr.id as id, gr.display_name as name from m_group gr where gr.level_id=1 and gr.staff_id = ${staffId}', '', 0, 1),
|
||||||
(149, 'ClientTrendsByDay', 'Table', '', 'Client', 'SELECT COUNT(cl.id) AS count, \n cl.activation_date AS days\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (cl.activation_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 DAY) AND DATE(NOW()- INTERVAL 1 DAY))\nGROUP BY days', 'Retrieves the number of clients joined in last 12 days', 0, 1),
|
(149, 'ClientTrendsByDay', 'Table', '', 'Client', 'SELECT COUNT(cl.id) AS count, \n cl.activation_date AS days\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (cl.activation_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 DAY) AND DATE(NOW()- INTERVAL 1 DAY))\nGROUP BY days', 'Retrieves the number of clients joined in last 12 days', 1, 0),
|
||||||
(150, 'ClientTrendsByWeek', 'Table', '', 'Client', 'SELECT COUNT(cl.id) AS count, \n WEEK(cl.activation_date) AS Weeks\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (cl.activation_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 WEEK) AND DATE(NOW()))\nGROUP BY Weeks', '', 0, 1),
|
(150, 'ClientTrendsByWeek', 'Table', '', 'Client', 'SELECT COUNT(cl.id) AS count, \n WEEK(cl.activation_date) AS Weeks\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (cl.activation_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 WEEK) AND DATE(NOW()))\nGROUP BY Weeks', '', 1, 0),
|
||||||
(151, 'ClientTrendsByMonth', 'Table', '', 'Client', 'SELECT COUNT(cl.id) AS count, \n MONTHNAME(cl.activation_date) AS Months\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (cl.activation_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 MONTH) AND DATE(NOW()))\nGROUP BY Months', '', 0, 1),
|
(151, 'ClientTrendsByMonth', 'Table', '', 'Client', 'SELECT COUNT(cl.id) AS count, \n MONTHNAME(cl.activation_date) AS Months\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (cl.activation_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 MONTH) AND DATE(NOW()))\nGROUP BY Months', '', 1, 0),
|
||||||
(152, 'LoanTrendsByDay', 'Table', '', 'Loan', 'SELECT COUNT(ln.id) AS lcount, \n ln.disbursedon_date AS days\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\n LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (ln.disbursedon_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 DAY) AND DATE(NOW()- INTERVAL 1 DAY))\nGROUP BY days', 'Retrieves Number of loans disbursed for last 12 days', 0, 1),
|
(152, 'LoanTrendsByDay', 'Table', '', 'Loan', 'SELECT COUNT(ln.id) AS lcount, \n ln.disbursedon_date AS days\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\n LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (ln.disbursedon_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 DAY) AND DATE(NOW()- INTERVAL 1 DAY))\nGROUP BY days', 'Retrieves Number of loans disbursed for last 12 days', 1, 0),
|
||||||
(153, 'LoanTrendsByWeek', 'Table', '', 'Loan', 'SELECT COUNT(ln.id) AS lcount, \n WEEK(ln.disbursedon_date) AS Weeks\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\n LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (ln.disbursedon_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 WEEK) AND DATE(NOW()))\nGROUP BY Weeks', '', 0, 1),
|
(153, 'LoanTrendsByWeek', 'Table', '', 'Loan', 'SELECT COUNT(ln.id) AS lcount, \n WEEK(ln.disbursedon_date) AS Weeks\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\n LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (ln.disbursedon_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 WEEK) AND DATE(NOW()))\nGROUP BY Weeks', '', 1, 0),
|
||||||
(154, 'LoanTrendsByMonth', 'Table', '', 'Loan', 'SELECT COUNT(ln.id) AS lcount, \n MONTHNAME(ln.disbursedon_date) AS Months\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\n LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (ln.disbursedon_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 MONTH) AND DATE(NOW()))\nGROUP BY Months', '', 0, 1),
|
(154, 'LoanTrendsByMonth', 'Table', '', 'Loan', 'SELECT COUNT(ln.id) AS lcount, \n MONTHNAME(ln.disbursedon_date) AS Months\nFROM m_office of \n LEFT JOIN m_client cl on of.id = cl.office_id\n LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n AND (ln.disbursedon_date BETWEEN DATE_SUB(CURDATE(), INTERVAL 12 MONTH) AND DATE(NOW()))\nGROUP BY Months', '', 1, 0),
|
||||||
(155, 'Demand_Vs_Collection', 'Table', '', 'Loan', 'select amount.AmountDue-amount.AmountPaid as AmountDue, amount.AmountPaid as AmountPaid from\n(SELECT \n(IFNULL(SUM(ls.principal_amount),0) - IFNULL(SUM(ls.principal_writtenoff_derived),0)\n + IFNULL(SUM(ls.interest_amount),0) - IFNULL(SUM(ls.interest_writtenoff_derived),0) \n - IFNULL(SUM(ls.interest_waived_derived),0)\n + IFNULL(SUM(ls.fee_charges_amount),0) - IFNULL(SUM(ls.fee_charges_writtenoff_derived),0) \n - IFNULL(SUM(ls.fee_charges_waived_derived),0)\n + IFNULL(SUM(ls.penalty_charges_amount),0) - IFNULL(SUM(ls.penalty_charges_writtenoff_derived),0) \n - IFNULL(SUM(ls.penalty_charges_waived_derived),0)\n) AS AmountDue, \n\n(IFNULL(SUM(ls.principal_completed_derived),0) - IFNULL(SUM(ls.principal_writtenoff_derived),0) + IFNULL(SUM(ls.interest_completed_derived),0) - IFNULL(SUM(ls.interest_writtenoff_derived),0) \n - IFNULL(SUM(ls.interest_waived_derived),0)\n + IFNULL(SUM(ls.fee_charges_completed_derived),0) - IFNULL(SUM(ls.fee_charges_writtenoff_derived),0) \n - IFNULL(SUM(ls.fee_charges_waived_derived),0)\n + IFNULL(SUM(ls.penalty_charges_completed_derived),0) - IFNULL(SUM(ls.penalty_charges_writtenoff_derived),0) \n - IFNULL(SUM(ls.penalty_charges_waived_derived),0)\n) AS AmountPaid\nFROM m_office of\nLEFT JOIN m_client cl ON of.id = cl.office_id\nLEFT JOIN m_loan ln ON cl.id = ln.client_id\nLEFT JOIN m_loan_repayment_schedule ls ON ln.id = ls.loan_id\nWHERE ls.duedate = DATE(NOW()) AND \n (of.hierarchy LIKE CONCAT((\nSELECT ino.hierarchy\nFROM m_office ino\nWHERE ino.id = ${officeId}),"%"))) as amount', 'Demand Vs Collection', 0, 1),
|
(155, 'Demand_Vs_Collection', 'Table', '', 'Loan', 'select amount.AmountDue-amount.AmountPaid as AmountDue, amount.AmountPaid as AmountPaid from\n(SELECT \n(IFNULL(SUM(ls.principal_amount),0) - IFNULL(SUM(ls.principal_writtenoff_derived),0)\n + IFNULL(SUM(ls.interest_amount),0) - IFNULL(SUM(ls.interest_writtenoff_derived),0) \n - IFNULL(SUM(ls.interest_waived_derived),0)\n + IFNULL(SUM(ls.fee_charges_amount),0) - IFNULL(SUM(ls.fee_charges_writtenoff_derived),0) \n - IFNULL(SUM(ls.fee_charges_waived_derived),0)\n + IFNULL(SUM(ls.penalty_charges_amount),0) - IFNULL(SUM(ls.penalty_charges_writtenoff_derived),0) \n - IFNULL(SUM(ls.penalty_charges_waived_derived),0)\n) AS AmountDue, \n\n(IFNULL(SUM(ls.principal_completed_derived),0) - IFNULL(SUM(ls.principal_writtenoff_derived),0) + IFNULL(SUM(ls.interest_completed_derived),0) - IFNULL(SUM(ls.interest_writtenoff_derived),0) \n - IFNULL(SUM(ls.interest_waived_derived),0)\n + IFNULL(SUM(ls.fee_charges_completed_derived),0) - IFNULL(SUM(ls.fee_charges_writtenoff_derived),0) \n - IFNULL(SUM(ls.fee_charges_waived_derived),0)\n + IFNULL(SUM(ls.penalty_charges_completed_derived),0) - IFNULL(SUM(ls.penalty_charges_writtenoff_derived),0) \n - IFNULL(SUM(ls.penalty_charges_waived_derived),0)\n) AS AmountPaid\nFROM m_office of\nLEFT JOIN m_client cl ON of.id = cl.office_id\nLEFT JOIN m_loan ln ON cl.id = ln.client_id\nLEFT JOIN m_loan_repayment_schedule ls ON ln.id = ls.loan_id\nWHERE ls.duedate = DATE(NOW()) AND \n (of.hierarchy LIKE CONCAT((\nSELECT ino.hierarchy\nFROM m_office ino\nWHERE ino.id = ${officeId}),"%"))) as amount', 'Demand Vs Collection', 1, 0),
|
||||||
(156, 'Disbursal_Vs_Awaitingdisbursal', 'Table', '', 'Loan', 'select awaitinddisbursal.amount-disbursedAmount.amount as amountToBeDisburse, disbursedAmount.amount as disbursedAmount from \n(\nSELECT COUNT(ln.id) AS noOfLoans, \n IFNULL(SUM(ln.principal_amount),0) AS amount\nFROM \nm_office of\nLEFT JOIN m_client cl ON cl.office_id = of.id\nLEFT JOIN m_loan ln ON cl.id = ln.client_id\nWHERE \nln.expected_disbursedon_date = DATE(NOW()) AND \n(ln.loan_status_id=200 OR ln.loan_status_id=300) AND\n of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" )\n) awaitinddisbursal,\n(\nSELECT COUNT(ltrxn.id) as count, \n IFNULL(SUM(ltrxn.amount),0) as amount \nFROM \nm_office of\nLEFT JOIN m_client cl ON cl.office_id = of.id\nLEFT JOIN m_loan ln ON cl.id = ln.client_id\nLEFT JOIN m_loan_transaction ltrxn ON ln.id = ltrxn.loan_id\nWHERE \nltrxn.transaction_date = DATE(NOW()) AND \nltrxn.transaction_type_enum=1 AND\n of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n) disbursedAmount', 'Disbursal_Vs_Awaitingdisbursal', 0, 1);
|
(156, 'Disbursal_Vs_Awaitingdisbursal', 'Table', '', 'Loan', 'select awaitinddisbursal.amount-disbursedAmount.amount as amountToBeDisburse, disbursedAmount.amount as disbursedAmount from \n(\nSELECT COUNT(ln.id) AS noOfLoans, \n IFNULL(SUM(ln.principal_amount),0) AS amount\nFROM \nm_office of\nLEFT JOIN m_client cl ON cl.office_id = of.id\nLEFT JOIN m_loan ln ON cl.id = ln.client_id\nWHERE \nln.expected_disbursedon_date = DATE(NOW()) AND \n(ln.loan_status_id=200 OR ln.loan_status_id=300) AND\n of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" )\n) awaitinddisbursal,\n(\nSELECT COUNT(ltrxn.id) as count, \n IFNULL(SUM(ltrxn.amount),0) as amount \nFROM \nm_office of\nLEFT JOIN m_client cl ON cl.office_id = of.id\nLEFT JOIN m_loan ln ON cl.id = ln.client_id\nLEFT JOIN m_loan_transaction ltrxn ON ln.id = ltrxn.loan_id\nWHERE \nltrxn.transaction_date = DATE(NOW()) AND \nltrxn.transaction_type_enum=1 AND\n of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n) disbursedAmount', 'Disbursal_Vs_Awaitingdisbursal', 1, 0);
|
||||||
/*!40000 ALTER TABLE `stretchy_report` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `stretchy_report` ENABLE KEYS */;
|
||||||
|
|
||||||
|
|
||||||
@@ -4118,6 +4337,7 @@ DROP TABLE IF EXISTS `x_registered_table`;
|
|||||||
CREATE TABLE IF NOT EXISTS `x_registered_table` (
|
CREATE TABLE IF NOT EXISTS `x_registered_table` (
|
||||||
`registered_table_name` varchar(50) NOT NULL,
|
`registered_table_name` varchar(50) NOT NULL,
|
||||||
`application_table_name` varchar(50) NOT NULL,
|
`application_table_name` varchar(50) NOT NULL,
|
||||||
|
`category` int(11) NOT NULL DEFAULT '100',
|
||||||
PRIMARY KEY (`registered_table_name`)
|
PRIMARY KEY (`registered_table_name`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user