schema update was missed out for 1.26 release

This commit is contained in:
Vishwas Babu A J
2014-12-23 09:18:52 -08:00
parent 6f0d24ee98
commit dc979da263
2 changed files with 2170 additions and 1839 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
releaseVersion=1.25.1.RELEASE releaseVersion=1.26.0.RELEASE
@@ -2,11 +2,11 @@
-- Host: 127.0.0.1 -- Host: 127.0.0.1
-- Server version: 5.6.12-log - MySQL Community Server (GPL) -- Server version: 5.6.12-log - MySQL Community Server (GPL)
-- Server OS: Win64 -- Server OS: Win64
-- HeidiSQL Version: 8.3.0.4694 -- HeidiSQL Version: 9.1.0.4867
-- -------------------------------------------------------- -- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */; /*!40101 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
@@ -159,7 +159,7 @@ CREATE TABLE IF NOT EXISTS `acc_gl_financial_activity_account` (
CONSTRAINT `FK_office_mapping_acc_gl_account` FOREIGN KEY (`gl_account_id`) REFERENCES `acc_gl_account` (`id`) CONSTRAINT `FK_office_mapping_acc_gl_account` FOREIGN KEY (`gl_account_id`) REFERENCES `acc_gl_account` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.acc_gl_financial_activity_account: ~0 rows (approximately) -- Dumping data for table mifostenant-default.acc_gl_financial_activity_account: ~1 rows (approximately)
/*!40000 ALTER TABLE `acc_gl_financial_activity_account` DISABLE KEYS */; /*!40000 ALTER TABLE `acc_gl_financial_activity_account` DISABLE KEYS */;
INSERT INTO `acc_gl_financial_activity_account` (`id`, `gl_account_id`, `financial_activity_type`) VALUES INSERT INTO `acc_gl_financial_activity_account` (`id`, `gl_account_id`, `financial_activity_type`) VALUES
(1, 55, 200); (1, 55, 200);
@@ -279,6 +279,21 @@ CREATE TABLE IF NOT EXISTS `acc_rule_tags` (
/*!40000 ALTER TABLE `acc_rule_tags` ENABLE KEYS */; /*!40000 ALTER TABLE `acc_rule_tags` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.c_account_number_format
DROP TABLE IF EXISTS `c_account_number_format`;
CREATE TABLE IF NOT EXISTS `c_account_number_format` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`account_type_enum` smallint(1) NOT NULL,
`prefix_type_enum` smallint(2) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `account_type_enum` (`account_type_enum`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.c_account_number_format: ~0 rows (approximately)
/*!40000 ALTER TABLE `c_account_number_format` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_account_number_format` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.c_cache -- Dumping structure for table mifostenant-default.c_cache
DROP TABLE IF EXISTS `c_cache`; DROP TABLE IF EXISTS `c_cache`;
CREATE TABLE IF NOT EXISTS `c_cache` ( CREATE TABLE IF NOT EXISTS `c_cache` (
@@ -287,7 +302,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);
@@ -303,9 +318,9 @@ CREATE TABLE IF NOT EXISTS `c_configuration` (
`enabled` tinyint(1) NOT NULL DEFAULT '0', `enabled` tinyint(1) NOT NULL DEFAULT '0',
`description` varchar(300) DEFAULT NULL, `description` varchar(300) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.c_configuration: ~10 rows (approximately) -- Dumping data for table mifostenant-default.c_configuration: ~17 rows (approximately)
/*!40000 ALTER TABLE `c_configuration` DISABLE KEYS */; /*!40000 ALTER TABLE `c_configuration` DISABLE KEYS */;
INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`, `description`) VALUES INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`, `description`) VALUES
(1, 'maker-checker', NULL, 0, NULL), (1, 'maker-checker', NULL, 0, NULL),
@@ -319,7 +334,12 @@ INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`, `description`)
(11, 'force-password-reset-days', 0, 0, NULL), (11, 'force-password-reset-days', 0, 0, NULL),
(12, 'grace-on-penalty-posting', 0, 1, NULL), (12, 'grace-on-penalty-posting', 0, 1, NULL),
(15, 'savings-interest-posting-current-period-end', NULL, 0, 'Recommended to be changed only once during start of production. When set as false(default), interest will be posted on the first date of next period. If set as true, interest will be posted on last date of current period. There is no difference in the interest amount posted.'), (15, 'savings-interest-posting-current-period-end', NULL, 0, 'Recommended to be changed only once during start of production. When set as false(default), interest will be posted on the first date of next period. If set as true, interest will be posted on last date of current period. There is no difference in the interest amount posted.'),
(16, 'financial-year-beginning-month', 1, 1, 'Recommended to be changed only once during start of production. Allowed values 1 - 12 (January - December). Interest posting periods are evaluated based on this configuration.'); (16, 'financial-year-beginning-month', 1, 1, 'Recommended to be changed only once during start of production. Allowed values 1 - 12 (January - December). Interest posting periods are evaluated based on this configuration.'),
(17, 'min-clients-in-group', 5, 0, 'Minimum number of Clients that a Group should have'),
(18, 'max-clients-in-group', 5, 0, 'Maximum number of Clients that a Group can have'),
(19, 'meetings-mandatory-for-jlg-loans', NULL, 0, 'Enforces all JLG loans to follow a meeting schedule belonging to parent group or Center'),
(20, 'office-specific-products-enabled', 0, 0, 'Whether products and fees should be office specific or not? This property should NOT be changed once Mifos is Live.'),
(21, 'restrict-products-to-user-office', 0, 0, 'This should be enabled only if, products & fees are office specific (i.e. office-specific-products-enabled is enabled). This property specifies if the products should be auto-restricted to office of the user who created the proudct? Note: This property should NOT be changed once Mifos is Live.');
/*!40000 ALTER TABLE `c_configuration` ENABLE KEYS */; /*!40000 ALTER TABLE `c_configuration` ENABLE KEYS */;
@@ -365,23 +385,23 @@ CREATE TABLE IF NOT EXISTS `job` (
-- Dumping data for table mifostenant-default.job: ~17 rows (approximately) -- Dumping data for table mifostenant-default.job: ~17 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, '2014-06-11 09:30:00', '2014-11-02 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-12-24 08: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-11-03 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-12-23 10: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-11-03 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-12-23 10: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, '2014-06-11 09:50:00', '2014-11-02 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-12-24 08: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-11-03 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-12-23 22: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-11-03 00:00:00', 'Post Interest For SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 1, 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-12-23 10: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-11-03 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-12-23 10: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-11-03 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-12-23 22: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-11-03 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-12-23 10: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-11-03 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-12-23 10: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', 3, NULL, NULL, '2014-11-03 00:01:00', 'Add Accrual TransactionsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 3, 0), (11, 'Add Accrual Transactions', 'Add Accrual Transactions', '0 1 0 1/1 * ? *', '2014-05-01 16:10:36', 3, NULL, NULL, '2014-12-23 10:31:00', 'Add Accrual TransactionsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 3, 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-11-03 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-12-23 10: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-11-03 00:00:00', 'Update Non Performing AssetsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 3, 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-12-23 10:30:00', 'Update Non Performing AssetsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 3, 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-11-03 00:02:00', 'Transfer Interest To SavingsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 1, 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-12-23 10: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-11-03 00:00:00', 'Update Deposit Accounts Maturity detailsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 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-12-23 10:30:00', 'Update Deposit Accounts Maturity detailsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0),
(16, 'Add Periodic Accrual Transactions', 'Add Periodic Accrual Transactions', '0 2 0 1/1 * ? *', '2014-10-14 16:19:45', 2, NULL, NULL, '2014-11-03 00:02:00', 'Add Periodic Accrual TransactionsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 3, 0), (16, 'Add Periodic Accrual Transactions', 'Add Periodic Accrual Transactions', '0 2 0 1/1 * ? *', '2014-10-14 16:19:45', 2, NULL, NULL, '2014-12-23 10:32:00', 'Add Periodic Accrual TransactionsJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 3, 0),
(17, 'Recalculate Interest For Loans', 'Recalculate Interest For Loans', '0 1 0 1/1 * ? *', '2014-10-14 16:19:55', 4, NULL, NULL, '2014-11-03 00:01:00', 'Recalculate Interest For LoansJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 3, 0); (17, 'Recalculate Interest For Loans', 'Recalculate Interest For Loans', '0 1 0 1/1 * ? *', '2014-10-14 16:19:55', 4, NULL, NULL, '2014-12-23 10:31:00', 'Recalculate Interest For LoansJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 3, 0);
/*!40000 ALTER TABLE `job` ENABLE KEYS */; /*!40000 ALTER TABLE `job` ENABLE KEYS */;
@@ -504,7 +524,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, '');
@@ -801,6 +821,52 @@ CREATE TABLE IF NOT EXISTS `m_calendar_instance` (
/*!40000 ALTER TABLE `m_calendar_instance` ENABLE KEYS */; /*!40000 ALTER TABLE `m_calendar_instance` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_cashiers
DROP TABLE IF EXISTS `m_cashiers`;
CREATE TABLE IF NOT EXISTS `m_cashiers` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`staff_id` bigint(20) DEFAULT NULL,
`teller_id` bigint(20) DEFAULT NULL,
`description` varchar(100) DEFAULT NULL,
`start_date` date DEFAULT NULL,
`end_date` date DEFAULT NULL,
`start_time` varchar(10) DEFAULT NULL,
`end_time` varchar(10) DEFAULT NULL,
`full_day` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IK_m_cashiers_m_staff` (`staff_id`),
KEY `IK_m_cashiers_m_teller` (`teller_id`),
CONSTRAINT `FK_m_cashiers_m_staff` FOREIGN KEY (`staff_id`) REFERENCES `m_staff` (`id`),
CONSTRAINT `FK_m_cashiers_m_teller` FOREIGN KEY (`teller_id`) REFERENCES `m_tellers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_cashiers: ~0 rows (approximately)
/*!40000 ALTER TABLE `m_cashiers` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_cashiers` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_cashier_transactions
DROP TABLE IF EXISTS `m_cashier_transactions`;
CREATE TABLE IF NOT EXISTS `m_cashier_transactions` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`cashier_id` bigint(20) NOT NULL,
`txn_type` smallint(5) NOT NULL,
`txn_amount` decimal(19,6) NOT NULL,
`txn_date` date NOT NULL,
`created_date` datetime NOT NULL,
`entity_type` varchar(50) DEFAULT NULL,
`entity_id` bigint(20) DEFAULT NULL,
`txn_note` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IK_m_teller_transactions_m_cashier` (`cashier_id`),
CONSTRAINT `FK_m_teller_transactions_m_cashiers` FOREIGN KEY (`cashier_id`) REFERENCES `m_cashiers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_cashier_transactions: ~0 rows (approximately)
/*!40000 ALTER TABLE `m_cashier_transactions` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_cashier_transactions` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_charge -- Dumping structure for table mifostenant-default.m_charge
DROP TABLE IF EXISTS `m_charge`; DROP TABLE IF EXISTS `m_charge`;
CREATE TABLE IF NOT EXISTS `m_charge` ( CREATE TABLE IF NOT EXISTS `m_charge` (
@@ -825,7 +891,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);
@@ -839,6 +905,7 @@ CREATE TABLE IF NOT EXISTS `m_client` (
`account_no` varchar(20) NOT NULL, `account_no` varchar(20) NOT NULL,
`external_id` varchar(100) DEFAULT NULL, `external_id` varchar(100) DEFAULT NULL,
`status_enum` int(5) NOT NULL DEFAULT '300', `status_enum` int(5) NOT NULL DEFAULT '300',
`sub_status` int(11) DEFAULT NULL,
`activation_date` date DEFAULT NULL, `activation_date` date DEFAULT NULL,
`office_joining_date` date DEFAULT NULL, `office_joining_date` date DEFAULT NULL,
`office_id` bigint(20) NOT NULL, `office_id` bigint(20) NOT NULL,
@@ -855,6 +922,8 @@ CREATE TABLE IF NOT EXISTS `m_client` (
`image_id` bigint(20) DEFAULT NULL, `image_id` bigint(20) DEFAULT NULL,
`closure_reason_cv_id` int(11) DEFAULT NULL, `closure_reason_cv_id` int(11) DEFAULT NULL,
`closedon_date` date DEFAULT NULL, `closedon_date` date DEFAULT NULL,
`updated_by` bigint(20) DEFAULT NULL,
`updated_on` date DEFAULT NULL,
`submittedon_date` date DEFAULT NULL, `submittedon_date` date DEFAULT NULL,
`submittedon_userid` bigint(20) DEFAULT NULL, `submittedon_userid` bigint(20) DEFAULT NULL,
`activatedon_userid` bigint(20) DEFAULT NULL, `activatedon_userid` bigint(20) DEFAULT NULL,
@@ -863,6 +932,14 @@ CREATE TABLE IF NOT EXISTS `m_client` (
`default_savings_account` bigint(20) DEFAULT NULL, `default_savings_account` bigint(20) DEFAULT NULL,
`client_type_cv_id` int(11) DEFAULT NULL, `client_type_cv_id` int(11) DEFAULT NULL,
`client_classification_cv_id` int(11) DEFAULT NULL, `client_classification_cv_id` int(11) DEFAULT NULL,
`reject_reason_cv_id` int(11) DEFAULT NULL,
`rejectedon_date` date DEFAULT NULL,
`rejectedon_userid` bigint(20) DEFAULT NULL,
`withdraw_reason_cv_id` int(11) DEFAULT NULL,
`withdrawn_on_date` date DEFAULT NULL,
`withdraw_on_userid` bigint(20) DEFAULT NULL,
`reactivated_on_date` date DEFAULT NULL,
`reactivated_on_userid` bigint(20) 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`),
@@ -877,28 +954,34 @@ CREATE TABLE IF NOT EXISTS `m_client` (
KEY `FK_m_client_type_m_code_value` (`client_type_cv_id`), 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 `FK_m_client_classification_m_code_value` (`client_classification_cv_id`),
KEY `FK1_m_client_gender_m_code_value` (`gender_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`), KEY `FK_m_client_substatus_m_code_value` (`sub_status`),
CONSTRAINT `FK_m_client_classification_m_code_value` FOREIGN KEY (`client_classification_cv_id`) REFERENCES `m_code_value` (`id`), KEY `FK_m_client_type_mcode_value_reject` (`reject_reason_cv_id`),
KEY `FK_m_client_type_m_code_value_withdraw` (`withdraw_reason_cv_id`),
CONSTRAINT `FK1_m_client_gender_m_code_value` FOREIGN KEY (`gender_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_classification_m_code_value` FOREIGN KEY (`client_classification_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_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`),
CONSTRAINT `FK_m_client_m_office` FOREIGN KEY (`transfer_to_office_id`) REFERENCES `m_office` (`id`), CONSTRAINT `FK_m_client_m_office` FOREIGN KEY (`transfer_to_office_id`) REFERENCES `m_office` (`id`),
CONSTRAINT `FK_m_client_m_savings_account` FOREIGN KEY (`default_savings_account`) REFERENCES `m_savings_account` (`id`), CONSTRAINT `FK_m_client_m_savings_account` FOREIGN KEY (`default_savings_account`) REFERENCES `m_savings_account` (`id`),
CONSTRAINT `FK_m_client_m_savings_product` FOREIGN KEY (`default_savings_product`) REFERENCES `m_savings_product` (`id`), CONSTRAINT `FK_m_client_m_savings_product` FOREIGN KEY (`default_savings_product`) REFERENCES `m_savings_product` (`id`),
CONSTRAINT `FK_m_client_m_staff` FOREIGN KEY (`staff_id`) REFERENCES `m_staff` (`id`) CONSTRAINT `FK_m_client_m_staff` FOREIGN KEY (`staff_id`) REFERENCES `m_staff` (`id`),
CONSTRAINT `FK_m_client_substatus_m_code_value` FOREIGN KEY (`sub_status`) REFERENCES `m_code_value` (`id`),
CONSTRAINT `FK_m_client_type_mcode_value_reject` FOREIGN KEY (`reject_reason_cv_id`) REFERENCES `m_code_value` (`id`),
CONSTRAINT `FK_m_client_type_m_code_value` FOREIGN KEY (`client_type_cv_id`) REFERENCES `m_code_value` (`id`),
CONSTRAINT `FK_m_client_type_m_code_value_withdraw` FOREIGN KEY (`withdraw_reason_cv_id`) REFERENCES `m_code_value` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
-- 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`, `client_type_cv_id`, `client_classification_cv_id`) VALUES INSERT INTO `m_client` (`id`, `account_no`, `external_id`, `status_enum`, `sub_status`, `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`, `updated_by`, `updated_on`, `submittedon_date`, `submittedon_userid`, `activatedon_userid`, `closedon_userid`, `default_savings_product`, `default_savings_account`, `client_type_cv_id`, `client_classification_cv_id`, `reject_reason_cv_id`, `rejectedon_date`, `rejectedon_userid`, `withdraw_reason_cv_id`, `withdrawn_on_date`, `withdraw_on_userid`, `reactivated_on_date`, `reactivated_on_userid`) 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, NULL, NULL), (1, '000000001', NULL, 300, NULL, '2014-03-07', '2014-03-07', 1, NULL, 1, 'Smith', NULL, 'R', NULL, 'Smith R', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-01', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 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, NULL, NULL), (2, '000000002', NULL, 300, NULL, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Johnson', NULL, 'D', NULL, 'Johnson D', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 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, NULL, NULL), (4, '000000004', NULL, 300, NULL, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Williams', NULL, 'G', NULL, 'Williams G', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 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, NULL, NULL), (5, '000000005', NULL, 300, NULL, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Harris', NULL, 'P', NULL, 'Harris P', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 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, NULL, NULL), (6, '000000006', NULL, 300, NULL, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Allen', NULL, 'E', NULL, 'Allen E', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 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, NULL, NULL), (7, '000000007', NULL, 300, NULL, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Scott', NULL, 'C', NULL, 'Scott C', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 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, NULL, NULL); (8, '000000008', NULL, 300, NULL, '2010-01-04', '2010-01-04', 2, NULL, 2, 'Robinson', NULL, 'R', NULL, 'Robinson R', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2010-01-04', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
/*!40000 ALTER TABLE `m_client` ENABLE KEYS */; /*!40000 ALTER TABLE `m_client` ENABLE KEYS */;
@@ -955,9 +1038,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=18 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_code: ~17 rows (approximately) -- Dumping data for table mifostenant-default.m_code: ~21 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),
@@ -976,7 +1059,11 @@ INSERT INTO `m_code` (`id`, `code_name`, `is_system_defined`) VALUES
(14, 'ClientClosureReason', 1), (14, 'ClientClosureReason', 1),
(15, 'GroupClosureReason', 1), (15, 'GroupClosureReason', 1),
(16, 'ClientType', 1), (16, 'ClientType', 1),
(17, 'ClientClassification', 1); (17, 'ClientClassification', 1),
(18, 'ClientSubStatus', 1),
(19, 'ClientRejectReason', 1),
(20, 'ClientWithdrawReason', 1),
(21, 'Entity to Entity Access Types', 1);
/*!40000 ALTER TABLE `m_code` ENABLE KEYS */; /*!40000 ALTER TABLE `m_code` ENABLE KEYS */;
@@ -986,40 +1073,44 @@ CREATE TABLE IF NOT EXISTS `m_code_value` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`code_id` int(11) NOT NULL, `code_id` int(11) NOT NULL,
`code_value` varchar(100) DEFAULT NULL, `code_value` varchar(100) DEFAULT NULL,
`code_description` varchar(500) DEFAULT NULL,
`order_position` int(11) NOT NULL DEFAULT '0', `order_position` int(11) NOT NULL DEFAULT '0',
`code_score` int(11) DEFAULT NULL, `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`),
CONSTRAINT `FKCFCEA42640BE071Z` FOREIGN KEY (`code_id`) REFERENCES `m_code` (`id`) CONSTRAINT `FKCFCEA42640BE071Z` FOREIGN KEY (`code_id`) REFERENCES `m_code` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_code_value: ~23 rows (approximately) -- Dumping data for table mifostenant-default.m_code_value: ~26 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`, `code_score`) VALUES INSERT INTO `m_code_value` (`id`, `code_id`, `code_value`, `code_description`, `order_position`, `code_score`) VALUES
(1, 1, 'Passport Id', 1, NULL), (1, 1, 'Passport Id', NULL, 1, NULL),
(2, 1, 'Government Id', 2, NULL), (2, 1, 'Government Id', NULL, 2, NULL),
(3, 1, 'Drivers License', 3, NULL), (3, 1, 'Drivers License', NULL, 3, NULL),
(4, 1, 'Any Other Id Type', 4, NULL), (4, 1, 'Any Other Id Type', NULL, 4, NULL),
(5, 6, 'Spouse', 0, NULL), (5, 6, 'Spouse', NULL, 0, NULL),
(6, 6, 'Parent', 0, NULL), (6, 6, 'Parent', NULL, 0, NULL),
(7, 6, 'Sibling', 0, NULL), (7, 6, 'Sibling', NULL, 0, NULL),
(8, 6, 'Business Associate', 0, NULL), (8, 6, 'Business Associate', NULL, 0, NULL),
(9, 6, 'Other', 0, NULL), (9, 6, 'Other', NULL, 0, NULL),
(10, 3, 'Cattle Rearing', 104, NULL), (10, 3, 'Cattle Rearing', NULL, 104, NULL),
(11, 3, 'Others', 105, NULL), (11, 3, 'Others', NULL, 105, NULL),
(12, 3, 'Tailoring Shop', 101, NULL), (12, 3, 'Tailoring Shop', NULL, 101, NULL),
(13, 3, 'Small Provisions Store', 102, NULL), (13, 3, 'Small Provisions Store', NULL, 102, NULL),
(14, 3, 'Agriculture', 103, NULL), (14, 3, 'Agriculture', NULL, 103, NULL),
(15, 14, 'Blacklisted', 1, NULL), (15, 14, 'Blacklisted', NULL, 1, NULL),
(16, 14, 'Deceased', 2, NULL), (16, 14, 'Deceased', NULL, 2, NULL),
(17, 14, 'Transferred', 3, NULL), (17, 14, 'Transferred', NULL, 3, NULL),
(18, 14, 'Left', 4, NULL), (18, 14, 'Left', NULL, 4, NULL),
(19, 14, 'others', 5, NULL), (19, 14, 'others', NULL, 5, NULL),
(20, 1, 'Voter ID', 6, NULL), (20, 1, 'Voter ID', NULL, 6, NULL),
(21, 1, 'Ration Card', 5, NULL), (21, 1, 'Ration Card', NULL, 5, NULL),
(22, 4, 'Male', 1, NULL), (22, 4, 'Male', NULL, 1, NULL),
(24, 4, 'Female', 2, NULL); (24, 4, 'Female', NULL, 2, NULL),
(25, 21, 'Office Access to Loan Products', NULL, 0, NULL),
(26, 21, 'Office Access to Savings Products', NULL, 0, NULL),
(27, 21, 'Office Access to Fees/Charges', NULL, 0, NULL);
/*!40000 ALTER TABLE `m_code_value` ENABLE KEYS */; /*!40000 ALTER TABLE `m_code_value` ENABLE KEYS */;
@@ -1206,6 +1297,26 @@ INSERT INTO `m_currency` (`id`, `code`, `decimal_places`, `currency_multiplesof`
/*!40000 ALTER TABLE `m_currency` ENABLE KEYS */; /*!40000 ALTER TABLE `m_currency` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_deposit_account_on_hold_transaction
DROP TABLE IF EXISTS `m_deposit_account_on_hold_transaction`;
CREATE TABLE IF NOT EXISTS `m_deposit_account_on_hold_transaction` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`savings_account_id` bigint(20) NOT NULL,
`amount` decimal(19,6) NOT NULL,
`transaction_type_enum` smallint(1) NOT NULL,
`transaction_date` date NOT NULL,
`is_reversed` tinyint(1) NOT NULL DEFAULT '0',
`created_date` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `FK_deposit_on_hold_transaction_m_savings_account` (`savings_account_id`),
CONSTRAINT `FK_deposit_on_hold_transaction_m_savings_account` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_deposit_account_on_hold_transaction: ~0 rows (approximately)
/*!40000 ALTER TABLE `m_deposit_account_on_hold_transaction` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_deposit_account_on_hold_transaction` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_deposit_account_recurring_detail -- Dumping structure for table mifostenant-default.m_deposit_account_recurring_detail
DROP TABLE IF EXISTS `m_deposit_account_recurring_detail`; 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` (
@@ -1342,6 +1453,27 @@ CREATE TABLE IF NOT EXISTS `m_document` (
/*!40000 ALTER TABLE `m_document` ENABLE KEYS */; /*!40000 ALTER TABLE `m_document` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_entity_to_entity_access
DROP TABLE IF EXISTS `m_entity_to_entity_access`;
CREATE TABLE IF NOT EXISTS `m_entity_to_entity_access` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`entity_type` varchar(50) NOT NULL,
`entity_id` bigint(20) NOT NULL,
`access_type_code_value_id` int(11) NOT NULL,
`second_entity_type` varchar(50) NOT NULL,
`second_entity_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_uniq_m_entity_to_entity_access` (`entity_type`,`entity_id`,`access_type_code_value_id`,`second_entity_type`,`second_entity_id`),
KEY `IDX_OFFICE` (`entity_type`,`entity_id`),
KEY `FK_access_type_code_m_code_value` (`access_type_code_value_id`),
CONSTRAINT `FK_access_type_code_m_code_value` FOREIGN KEY (`access_type_code_value_id`) REFERENCES `m_code_value` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_entity_to_entity_access: ~0 rows (approximately)
/*!40000 ALTER TABLE `m_entity_to_entity_access` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_entity_to_entity_access` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_fund -- Dumping structure for table mifostenant-default.m_fund
DROP TABLE IF EXISTS `m_fund`; DROP TABLE IF EXISTS `m_fund`;
CREATE TABLE IF NOT EXISTS `m_fund` ( CREATE TABLE IF NOT EXISTS `m_fund` (
@@ -1353,7 +1485,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);
@@ -1492,6 +1624,7 @@ CREATE TABLE IF NOT EXISTS `m_guarantor` (
`house_phone_number` varchar(20) DEFAULT NULL, `house_phone_number` varchar(20) DEFAULT NULL,
`mobile_number` varchar(20) DEFAULT NULL, `mobile_number` varchar(20) DEFAULT NULL,
`comment` varchar(500) DEFAULT NULL, `comment` varchar(500) DEFAULT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `FK_m_guarantor_m_loan` (`loan_id`), KEY `FK_m_guarantor_m_loan` (`loan_id`),
KEY `FK_m_guarantor_m_code_value` (`client_reln_cv_id`), KEY `FK_m_guarantor_m_code_value` (`client_reln_cv_id`),
@@ -1504,6 +1637,51 @@ CREATE TABLE IF NOT EXISTS `m_guarantor` (
/*!40000 ALTER TABLE `m_guarantor` ENABLE KEYS */; /*!40000 ALTER TABLE `m_guarantor` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_guarantor_funding_details
DROP TABLE IF EXISTS `m_guarantor_funding_details`;
CREATE TABLE IF NOT EXISTS `m_guarantor_funding_details` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`guarantor_id` bigint(20) NOT NULL,
`account_associations_id` bigint(20) NOT NULL,
`amount` decimal(19,6) NOT NULL,
`amount_released_derived` decimal(19,6) DEFAULT NULL,
`amount_remaining_derived` decimal(19,6) DEFAULT NULL,
`amount_transfered_derived` decimal(19,6) DEFAULT NULL,
`status_enum` smallint(3) NOT NULL,
PRIMARY KEY (`id`),
KEY `FK_m_guarantor_fund_details_m_guarantor` (`guarantor_id`),
KEY `FK_m_guarantor_fund_details_account_associations_id` (`account_associations_id`),
CONSTRAINT `FK_m_guarantor_fund_details_m_guarantor` FOREIGN KEY (`guarantor_id`) REFERENCES `m_guarantor` (`id`),
CONSTRAINT `FK_m_guarantor_fund_details_account_associations_id` FOREIGN KEY (`account_associations_id`) REFERENCES `m_portfolio_account_associations` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_guarantor_funding_details: ~0 rows (approximately)
/*!40000 ALTER TABLE `m_guarantor_funding_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_guarantor_funding_details` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_guarantor_transaction
DROP TABLE IF EXISTS `m_guarantor_transaction`;
CREATE TABLE IF NOT EXISTS `m_guarantor_transaction` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`guarantor_fund_detail_id` bigint(20) NOT NULL,
`loan_transaction_id` bigint(20) DEFAULT NULL,
`deposit_on_hold_transaction_id` bigint(20) NOT NULL,
`is_reversed` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `FK_guarantor_transaction_m_deposit_account_on_hold_transaction` (`deposit_on_hold_transaction_id`),
KEY `FK_guarantor_transaction_guarantor_fund_detail` (`guarantor_fund_detail_id`),
KEY `FK_guarantor_transaction_m_loan_transaction` (`loan_transaction_id`),
CONSTRAINT `FK_guarantor_transaction_guarantor_fund_detail` FOREIGN KEY (`guarantor_fund_detail_id`) REFERENCES `m_guarantor_funding_details` (`id`),
CONSTRAINT `FK_guarantor_transaction_m_deposit_account_on_hold_transaction` FOREIGN KEY (`deposit_on_hold_transaction_id`) REFERENCES `m_deposit_account_on_hold_transaction` (`id`),
CONSTRAINT `FK_guarantor_transaction_m_loan_transaction` FOREIGN KEY (`loan_transaction_id`) REFERENCES `m_loan_transaction` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_guarantor_transaction: ~0 rows (approximately)
/*!40000 ALTER TABLE `m_guarantor_transaction` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_guarantor_transaction` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_holiday -- Dumping structure for table mifostenant-default.m_holiday
DROP TABLE IF EXISTS `m_holiday`; DROP TABLE IF EXISTS `m_holiday`;
CREATE TABLE IF NOT EXISTS `m_holiday` ( CREATE TABLE IF NOT EXISTS `m_holiday` (
@@ -1731,6 +1909,7 @@ CREATE TABLE IF NOT EXISTS `m_loan` (
`currency_code` varchar(3) NOT NULL, `currency_code` varchar(3) NOT NULL,
`currency_digits` smallint(5) NOT NULL, `currency_digits` smallint(5) NOT NULL,
`currency_multiplesof` smallint(5) DEFAULT NULL, `currency_multiplesof` smallint(5) DEFAULT NULL,
`principal_amount_proposed` decimal(19,6) NOT NULL,
`principal_amount` decimal(19,6) NOT NULL, `principal_amount` decimal(19,6) NOT NULL,
`approved_principal` decimal(19,6) NOT NULL, `approved_principal` decimal(19,6) NOT NULL,
`arrearstolerance_amount` decimal(19,6) DEFAULT NULL, `arrearstolerance_amount` decimal(19,6) DEFAULT NULL,
@@ -1743,6 +1922,8 @@ CREATE TABLE IF NOT EXISTS `m_loan` (
`term_period_frequency_enum` smallint(5) NOT NULL DEFAULT '2', `term_period_frequency_enum` smallint(5) NOT NULL DEFAULT '2',
`repay_every` smallint(5) NOT NULL, `repay_every` smallint(5) NOT NULL,
`repayment_period_frequency_enum` smallint(5) NOT NULL, `repayment_period_frequency_enum` smallint(5) NOT NULL,
`repayment_frequency_nth_day_enum` smallint(5) DEFAULT '0',
`repayment_frequency_day_of_week_enum` smallint(5) DEFAULT '0',
`number_of_repayments` smallint(5) NOT NULL, `number_of_repayments` smallint(5) NOT NULL,
`grace_on_principal_periods` smallint(5) DEFAULT NULL, `grace_on_principal_periods` smallint(5) DEFAULT NULL,
`grace_on_interest_periods` smallint(5) DEFAULT NULL, `grace_on_interest_periods` smallint(5) DEFAULT NULL,
@@ -1809,6 +1990,9 @@ CREATE TABLE IF NOT EXISTS `m_loan` (
`days_in_month_enum` smallint(5) NOT NULL DEFAULT '1', `days_in_month_enum` smallint(5) NOT NULL DEFAULT '1',
`days_in_year_enum` smallint(5) NOT NULL DEFAULT '1', `days_in_year_enum` smallint(5) NOT NULL DEFAULT '1',
`interest_recalculation_enabled` tinyint(4) NOT NULL DEFAULT '0', `interest_recalculation_enabled` tinyint(4) NOT NULL DEFAULT '0',
`guarantee_amount_derived` decimal(19,6) DEFAULT NULL,
`create_standing_instruction_at_disbursement` tinyint(1) DEFAULT NULL,
`version` int(15) NOT NULL DEFAULT '1',
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`),
@@ -1842,10 +2026,10 @@ CREATE TABLE IF NOT EXISTS `m_loan` (
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 AUTO_INCREMENT=2 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`, `rescheduledon_userid`, `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`, `accrued_till`, `days_in_month_enum`, `days_in_year_enum`, `interest_recalculation_enabled`) VALUES 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_proposed`, `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`, `repayment_frequency_nth_day_enum`, `repayment_frequency_day_of_week_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`, `rescheduledon_userid`, `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`, `accrued_till`, `days_in_month_enum`, `days_in_year_enum`, `interest_recalculation_enabled`, `guarantee_amount_derived`, `create_standing_instruction_at_disbursement`, `version`) 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, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 1, 1, 0); (1, '000000001', NULL, 8, NULL, 1, 1, NULL, NULL, 200, 1, 'USD', 2, 0, 10000.000000, 10000.000000, 10000.000000, NULL, 26.000000, 3, 26.000000, 1, 1, 25, 1, 1, 1, 0, 0, 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, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 1, 1, 0, NULL, NULL, 1);
/*!40000 ALTER TABLE `m_loan` ENABLE KEYS */; /*!40000 ALTER TABLE `m_loan` ENABLE KEYS */;
@@ -1899,7 +2083,7 @@ CREATE TABLE IF NOT EXISTS `m_loan_charge` (
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 AUTO_INCREMENT=2 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 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); (1, 1, 1, 0, 1, NULL, 1, 0, NULL, NULL, 500.000000, 500.000000, NULL, NULL, NULL, 500.000000, 0, 0, NULL, NULL, 1);
@@ -2252,6 +2436,9 @@ CREATE TABLE IF NOT EXISTS `m_loan_transaction` (
`unrecognized_income_portion` decimal(19,6) DEFAULT NULL, `unrecognized_income_portion` decimal(19,6) DEFAULT NULL,
`outstanding_loan_balance_derived` decimal(19,6) DEFAULT NULL, `outstanding_loan_balance_derived` decimal(19,6) DEFAULT NULL,
`submitted_on_date` date NOT NULL, `submitted_on_date` date NOT NULL,
`manually_adjusted_or_reversed` tinyint(1) DEFAULT '0',
`created_date` datetime DEFAULT NULL,
`appuser_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `external_id_UNIQUE` (`external_id`), UNIQUE KEY `external_id_UNIQUE` (`external_id`),
KEY `FKCFCEA42640BE0710` (`loan_id`), KEY `FKCFCEA42640BE0710` (`loan_id`),
@@ -2410,7 +2597,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');
@@ -2448,9 +2635,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=567 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=633 DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_permission: ~544 rows (approximately) -- Dumping data for table mifostenant-default.m_permission: ~610 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),
@@ -2996,7 +3183,73 @@ INSERT INTO `m_permission` (`id`, `grouping`, `code`, `entity_name`, `action_nam
(563, 'configuration', 'UPDATE_HOOK', 'HOOK', 'UPDATE', 0), (563, 'configuration', 'UPDATE_HOOK', 'HOOK', 'UPDATE', 0),
(564, 'configuration', 'DELETE_HOOK', 'HOOK', 'DELETE', 0), (564, 'configuration', 'DELETE_HOOK', 'HOOK', 'DELETE', 0),
(565, 'portfolio', 'REMOVESAVINGSOFFICER_SAVINGSACCOUNT', 'SAVINGSACCOUNT', 'REMOVESAVINGSOFFICER', 1), (565, 'portfolio', 'REMOVESAVINGSOFFICER_SAVINGSACCOUNT', 'SAVINGSACCOUNT', 'REMOVESAVINGSOFFICER', 1),
(566, 'portfolio', 'UPDATESAVINGSOFFICER_SAVINGSACCOUNT', 'SAVINGSACCOUNT', 'UPDATESAVINGSOFFICER', 1); (566, 'portfolio', 'UPDATESAVINGSOFFICER_SAVINGSACCOUNT', 'SAVINGSACCOUNT', 'UPDATESAVINGSOFFICER', 1),
(567, 'report', 'READ_Active Loans - Summary(Pentaho)', 'Active Loans - Summary(Pentaho)', 'READ', 0),
(568, 'report', 'READ_Active Loans by Disbursal Period(Pentaho)', 'Active Loans by Disbursal Period(Pentaho)', 'READ', 0),
(569, 'report', 'READ_Active Loans in last installment Summary(Pentaho)', 'Active Loans in last installment Summary(Pentaho)', 'READ', 0),
(570, 'report', 'READ_Active Loans in last installment(Pentaho)', 'Active Loans in last installment(Pentaho)', 'READ', 0),
(571, 'report', 'READ_Active Loans Passed Final Maturity Summary(Pentaho)', 'Active Loans Passed Final Maturity Summary(Pentaho)', 'READ', 0),
(572, 'report', 'READ_Active Loans Passed Final Maturity(Pentaho)', 'Active Loans Passed Final Maturity(Pentaho)', 'READ', 0),
(573, 'report', 'READ_Aging Detail(Pentaho)', 'Aging Detail(Pentaho)', 'READ', 0),
(574, 'report', 'READ_Aging Summary (Arrears in Months)(Pentaho)', 'Aging Summary (Arrears in Months)(Pentaho)', 'READ', 0),
(575, 'report', 'READ_Aging Summary (Arrears in Weeks)(Pentaho)', 'Aging Summary (Arrears in Weeks)(Pentaho)', 'READ', 0),
(576, 'report', 'READ_Client Listing(Pentaho)', 'Client Listing(Pentaho)', 'READ', 0),
(577, 'report', 'READ_Client Loan Account Schedule', 'Client Loan Account Schedule', 'READ', 0),
(578, 'report', 'READ_Client Loans Listing(Pentaho)', 'Client Loans Listing(Pentaho)', 'READ', 0),
(579, 'report', 'READ_Client Saving Transactions', 'Client Saving Transactions', 'READ', 0),
(580, 'report', 'READ_Client Savings Summary', 'Client Savings Summary', 'READ', 0),
(581, 'report', 'READ_ClientSummary ', 'ClientSummary ', 'READ', 0),
(582, 'report', 'READ_ClientTrendsByDay', 'ClientTrendsByDay', 'READ', 0),
(583, 'report', 'READ_ClientTrendsByMonth', 'ClientTrendsByMonth', 'READ', 0),
(584, 'report', 'READ_ClientTrendsByWeek', 'ClientTrendsByWeek', 'READ', 0),
(585, 'report', 'READ_Demand_Vs_Collection', 'Demand_Vs_Collection', 'READ', 0),
(586, 'report', 'READ_Disbursal_Vs_Awaitingdisbursal', 'Disbursal_Vs_Awaitingdisbursal', 'READ', 0),
(587, 'report', 'READ_Expected Payments By Date - Basic(Pentaho)', 'Expected Payments By Date - Basic(Pentaho)', 'READ', 0),
(588, 'report', 'READ_Funds Disbursed Between Dates Summary by Office(Pentaho)', 'Funds Disbursed Between Dates Summary by Office(Pentaho)', 'READ', 0),
(589, 'report', 'READ_Funds Disbursed Between Dates Summary(Pentaho)', 'Funds Disbursed Between Dates Summary(Pentaho)', 'READ', 0),
(590, 'report', 'READ_GroupNamesByStaff', 'GroupNamesByStaff', 'READ', 0),
(591, 'report', 'READ_GroupSavingSummary', 'GroupSavingSummary', 'READ', 0),
(592, 'report', 'READ_LoanCyclePerProduct', 'LoanCyclePerProduct', 'READ', 0),
(593, 'report', 'READ_Loans Awaiting Disbursal Summary by Month(Pentaho)', 'Loans Awaiting Disbursal Summary by Month(Pentaho)', 'READ', 0),
(594, 'report', 'READ_Loans Awaiting Disbursal Summary(Pentaho)', 'Loans Awaiting Disbursal Summary(Pentaho)', 'READ', 0),
(595, 'report', 'READ_Loans Awaiting Disbursal(Pentaho)', 'Loans Awaiting Disbursal(Pentaho)', 'READ', 0),
(596, 'report', 'READ_Loans Pending Approval(Pentaho)', 'Loans Pending Approval(Pentaho)', 'READ', 0),
(597, 'report', 'READ_LoanTrendsByDay', 'LoanTrendsByDay', 'READ', 0),
(598, 'report', 'READ_LoanTrendsByMonth', 'LoanTrendsByMonth', 'READ', 0),
(599, 'report', 'READ_LoanTrendsByWeek', 'LoanTrendsByWeek', 'READ', 0),
(600, 'report', 'READ_Obligation Met Loans Details(Pentaho)', 'Obligation Met Loans Details(Pentaho)', 'READ', 0),
(601, 'report', 'READ_Obligation Met Loans Summary(Pentaho)', 'Obligation Met Loans Summary(Pentaho)', 'READ', 0),
(602, 'report', 'READ_Portfolio at Risk by Branch(Pentaho)', 'Portfolio at Risk by Branch(Pentaho)', 'READ', 0),
(603, 'report', 'READ_Portfolio at Risk(Pentaho)', 'Portfolio at Risk(Pentaho)', 'READ', 0),
(604, 'report', 'READ_Rescheduled Loans(Pentaho)', 'Rescheduled Loans(Pentaho)', 'READ', 0),
(605, 'report', 'READ_Savings Transactions', 'Savings Transactions', 'READ', 0),
(606, 'report', 'READ_TxnRunningBalances(Pentaho)', 'TxnRunningBalances(Pentaho)', 'READ', 0),
(607, 'report', 'READ_Written-Off Loans(Pentaho)', 'Written-Off Loans(Pentaho)', 'READ', 0),
(608, 'configuration', 'CREATE_ACCOUNTNUMBERFORMAT', 'ACCOUNTNUMBERFORMAT', 'CREATE', 0),
(609, 'configuration', 'READ_ACCOUNTNUMBERFORMAT', 'ACCOUNTNUMBERFORMAT', 'READ', 0),
(610, 'configuration', 'UPDATE_ACCOUNTNUMBERFORMAT', 'ACCOUNTNUMBERFORMAT', 'UPDATE', 0),
(611, 'configuration', 'DELETE_ACCOUNTNUMBERFORMAT', 'HOOK', 'DELETE', 0),
(612, 'portfolio', 'RECOVERGUARANTEES_LOAN', 'LOAN', 'RECOVERGUARANTEES', 0),
(613, 'portfolio', 'RECOVERGUARANTEES_LOAN_CHECKER', 'LOAN', 'RECOVERGUARANTEES_CHECKER', 0),
(614, 'portfolio', 'REJECT_CLIENT', 'CLIENT', 'REJECT', 1),
(615, 'portfolio', 'REJECT_CLIENT_CHECKER', 'CLIENT', 'REJECT_CHECKER', 0),
(616, 'portfolio', 'WITHDRAW_CLIENT', 'CLIENT', 'WITHDRAW', 1),
(617, 'portfolio', 'WITHDRAW_CLIENT_CHECKER', 'CLIENT', 'WITHDRAW_CHECKER', 0),
(618, 'portfolio', 'REACTIVATE_CLIENT', 'CLIENT', 'REACTIVATE', 1),
(619, 'portfolio', 'REACTIVATE_CLIENT_CHECKER', 'CLIENT', 'REACTIVATE_CHECKER', 0),
(620, 'transaction_savings', 'UPDATEDEPOSITAMOUNT_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'UPDATEDEPOSITAMOUNT', 1),
(621, 'transaction_savings', 'UPDATEDEPOSITAMOUNT_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'UPDATEDEPOSITAMOUNT', 1),
(622, 'transaction_savings', 'REFUNDBYTRANSFER_ACCOUNTTRANSFER_CHECKER', 'ACCOUNTTRANSFER', 'REFUNDBYTRANSFER', 0),
(623, 'transaction_savings', 'REFUNDBYTRANSFER_ACCOUNTTRANSFER', 'ACCOUNTTRANSFER', 'REFUNDBYTRANSFER', 1),
(624, 'transaction_loan', 'REFUNDBYCASH_LOAN', 'LOAN', 'REFUNDBYCASH', 1),
(625, 'transaction_loan', 'REFUNDBYCASH_LOAN_CHECKER', 'LOAN', 'REFUNDBYCASH', 0),
(626, 'cash_mgmt', 'CREATE_TELLER', 'TELLER', 'CREATE', 1),
(627, 'cash_mgmt', 'UPDATE_TELLER', 'TELLER', 'CREATE', 1),
(628, 'cash_mgmt', 'ALLOCATECASHIER_TELLER', 'TELLER', 'ALLOCATE', 1),
(629, 'cash_mgmt', 'UPDATECASHIERALLOCATION_TELLER', 'TELLER', 'UPDATECASHIERALLOCATION', 1),
(630, 'cash_mgmt', 'DELETECASHIERALLOCATION_TELLER', 'TELLER', 'DELETECASHIERALLOCATION', 1),
(631, 'cash_mgmt', 'ALLOCATECASHTOCASHIER_TELLER', 'TELLER', 'ALLOCATECASHTOCASHIER', 1),
(632, 'cash_mgmt', 'SETTLECASHFROMCASHIER_TELLER', 'TELLER', 'SETTLECASHFROMCASHIER', 1);
/*!40000 ALTER TABLE `m_permission` ENABLE KEYS */; /*!40000 ALTER TABLE `m_permission` ENABLE KEYS */;
@@ -3008,6 +3261,8 @@ CREATE TABLE IF NOT EXISTS `m_portfolio_account_associations` (
`savings_account_id` bigint(20) DEFAULT NULL, `savings_account_id` bigint(20) DEFAULT NULL,
`linked_loan_account_id` bigint(20) DEFAULT NULL, `linked_loan_account_id` bigint(20) DEFAULT NULL,
`linked_savings_account_id` bigint(20) DEFAULT NULL, `linked_savings_account_id` bigint(20) DEFAULT NULL,
`association_type_enum` smallint(1) NOT NULL DEFAULT '1',
`is_active` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `account_association_loan_fk` (`loan_account_id`), KEY `account_association_loan_fk` (`loan_account_id`),
KEY `account_association_savings_fk` (`savings_account_id`), KEY `account_association_savings_fk` (`savings_account_id`),
@@ -3186,6 +3441,8 @@ CREATE TABLE IF NOT EXISTS `m_product_loan` (
`days_in_month_enum` smallint(5) NOT NULL DEFAULT '1', `days_in_month_enum` smallint(5) NOT NULL DEFAULT '1',
`days_in_year_enum` smallint(5) NOT NULL DEFAULT '1', `days_in_year_enum` smallint(5) NOT NULL DEFAULT '1',
`interest_recalculation_enabled` tinyint(4) NOT NULL DEFAULT '0', `interest_recalculation_enabled` tinyint(4) NOT NULL DEFAULT '0',
`min_days_between_disbursal_and_first_repayment` int(3) DEFAULT NULL,
`hold_guarantee_funds` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `unq_name` (`name`), UNIQUE KEY `unq_name` (`name`),
UNIQUE KEY `unq_short_name` (`short_name`), UNIQUE KEY `unq_short_name` (`short_name`),
@@ -3196,10 +3453,10 @@ CREATE TABLE IF NOT EXISTS `m_product_loan` (
CONSTRAINT `FK_ltp_strategy` FOREIGN KEY (`loan_transaction_strategy_id`) REFERENCES `ref_loan_transaction_processing_strategy` (`id`) CONSTRAINT `FK_ltp_strategy` FOREIGN KEY (`loan_transaction_strategy_id`) REFERENCES `ref_loan_transaction_processing_strategy` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_product_loan: ~0 rows (approximately) -- Dumping data for table mifostenant-default.m_product_loan: ~1 rows (approximately)
/*!40000 ALTER TABLE `m_product_loan` DISABLE KEYS */; /*!40000 ALTER TABLE `m_product_loan` DISABLE KEYS */;
INSERT INTO `m_product_loan` (`id`, `short_name`, `currency_code`, `currency_digits`, `currency_multiplesof`, `principal_amount`, `min_principal_amount`, `max_principal_amount`, `arrearstolerance_amount`, `name`, `description`, `fund_id`, `nominal_interest_rate_per_period`, `min_nominal_interest_rate_per_period`, `max_nominal_interest_rate_per_period`, `interest_period_frequency_enum`, `annual_nominal_interest_rate`, `interest_method_enum`, `interest_calculated_in_period_enum`, `repay_every`, `repayment_period_frequency_enum`, `number_of_repayments`, `min_number_of_repayments`, `max_number_of_repayments`, `grace_on_principal_periods`, `grace_on_interest_periods`, `grace_interest_free_periods`, `amortization_method_enum`, `accounting_type`, `loan_transaction_strategy_id`, `external_id`, `include_in_borrower_cycle`, `use_borrower_cycle`, `start_date`, `close_date`, `allow_multiple_disbursals`, `max_disbursals`, `max_outstanding_loan_balance`, `grace_on_arrears_ageing`, `overdue_days_for_npa`, `days_in_month_enum`, `days_in_year_enum`, `interest_recalculation_enabled`) VALUES INSERT INTO `m_product_loan` (`id`, `short_name`, `currency_code`, `currency_digits`, `currency_multiplesof`, `principal_amount`, `min_principal_amount`, `max_principal_amount`, `arrearstolerance_amount`, `name`, `description`, `fund_id`, `nominal_interest_rate_per_period`, `min_nominal_interest_rate_per_period`, `max_nominal_interest_rate_per_period`, `interest_period_frequency_enum`, `annual_nominal_interest_rate`, `interest_method_enum`, `interest_calculated_in_period_enum`, `repay_every`, `repayment_period_frequency_enum`, `number_of_repayments`, `min_number_of_repayments`, `max_number_of_repayments`, `grace_on_principal_periods`, `grace_on_interest_periods`, `grace_interest_free_periods`, `amortization_method_enum`, `accounting_type`, `loan_transaction_strategy_id`, `external_id`, `include_in_borrower_cycle`, `use_borrower_cycle`, `start_date`, `close_date`, `allow_multiple_disbursals`, `max_disbursals`, `max_outstanding_loan_balance`, `grace_on_arrears_ageing`, `overdue_days_for_npa`, `days_in_month_enum`, `days_in_year_enum`, `interest_recalculation_enabled`, `min_days_between_disbursal_and_first_repayment`, `hold_guarantee_funds`) VALUES
(1, 'IGL', 'USD', 2, 0, 10000.000000, 10000.000000, 10000.000000, NULL, 'Income Generating Loan', NULL, 1, 26.000000, 26.000000, 26.000000, 3, 26.000000, 1, 1, 1, 1, 25, 25, 25, NULL, NULL, NULL, 1, 2, 1, NULL, 0, 0, '2010-01-01', NULL, 0, NULL, NULL, NULL, NULL, 1, 1, 0); (1, 'IGL', 'USD', 2, 0, 10000.000000, 10000.000000, 10000.000000, NULL, 'Income Generating Loan', NULL, 1, 26.000000, 26.000000, 26.000000, 3, 26.000000, 1, 1, 1, 1, 25, 25, 25, NULL, NULL, NULL, 1, 2, 1, NULL, 0, 0, '2010-01-01', NULL, 0, NULL, NULL, NULL, NULL, 1, 1, 0, NULL, 0);
/*!40000 ALTER TABLE `m_product_loan` ENABLE KEYS */; /*!40000 ALTER TABLE `m_product_loan` ENABLE KEYS */;
@@ -3214,13 +3471,31 @@ 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);
/*!40000 ALTER TABLE `m_product_loan_charge` ENABLE KEYS */; /*!40000 ALTER TABLE `m_product_loan_charge` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_product_loan_guarantee_details
DROP TABLE IF EXISTS `m_product_loan_guarantee_details`;
CREATE TABLE IF NOT EXISTS `m_product_loan_guarantee_details` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`loan_product_id` bigint(20) NOT NULL,
`mandatory_guarantee` decimal(19,5) NOT NULL,
`minimum_guarantee_from_own_funds` decimal(19,5) DEFAULT NULL,
`minimum_guarantee_from_guarantor_funds` decimal(19,5) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_guarantee_details_loan_product` (`loan_product_id`),
CONSTRAINT `FK_guarantee_details_loan_product` FOREIGN KEY (`loan_product_id`) REFERENCES `m_product_loan` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_product_loan_guarantee_details: ~0 rows (approximately)
/*!40000 ALTER TABLE `m_product_loan_guarantee_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_product_loan_guarantee_details` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_product_loan_recalculation_details -- Dumping structure for table mifostenant-default.m_product_loan_recalculation_details
DROP TABLE IF EXISTS `m_product_loan_recalculation_details`; DROP TABLE IF EXISTS `m_product_loan_recalculation_details`;
CREATE TABLE IF NOT EXISTS `m_product_loan_recalculation_details` ( CREATE TABLE IF NOT EXISTS `m_product_loan_recalculation_details` (
@@ -3290,7 +3565,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.');
@@ -3309,7 +3584,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);
@@ -3369,6 +3644,8 @@ CREATE TABLE IF NOT EXISTS `m_savings_account` (
`enforce_min_required_balance` tinyint(1) NOT NULL DEFAULT '0', `enforce_min_required_balance` tinyint(1) NOT NULL DEFAULT '0',
`min_balance_for_interest_calculation` decimal(19,6) DEFAULT NULL, `min_balance_for_interest_calculation` decimal(19,6) DEFAULT NULL,
`start_interest_calculation_date` date DEFAULT NULL, `start_interest_calculation_date` date DEFAULT NULL,
`on_hold_funds_derived` decimal(19,6) DEFAULT NULL,
`version` int(15) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `sa_account_no_UNIQUE` (`account_no`), UNIQUE KEY `sa_account_no_UNIQUE` (`account_no`),
UNIQUE KEY `sa_externalid_UNIQUE` (`external_id`), UNIQUE KEY `sa_externalid_UNIQUE` (`external_id`),
@@ -3499,6 +3776,7 @@ CREATE TABLE IF NOT EXISTS `m_savings_account_transaction` (
`running_balance_derived` decimal(19,6) DEFAULT NULL, `running_balance_derived` decimal(19,6) DEFAULT NULL,
`cumulative_balance_derived` decimal(19,6) DEFAULT NULL, `cumulative_balance_derived` decimal(19,6) DEFAULT NULL,
`created_date` datetime NOT NULL, `created_date` datetime NOT NULL,
`appuser_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `FKSAT0000000001` (`savings_account_id`), KEY `FKSAT0000000001` (`savings_account_id`),
KEY `FK_m_savings_account_transaction_m_payment_detail` (`payment_detail_id`), KEY `FK_m_savings_account_transaction_m_payment_detail` (`payment_detail_id`),
@@ -3591,7 +3869,7 @@ CREATE TABLE IF NOT EXISTS `m_savings_product` (
UNIQUE KEY `sp_unq_short_name` (`short_name`) UNIQUE KEY `sp_unq_short_name` (`short_name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_savings_product: ~0 rows (approximately) -- Dumping data for table mifostenant-default.m_savings_product: ~1 rows (approximately)
/*!40000 ALTER TABLE `m_savings_product` DISABLE KEYS */; /*!40000 ALTER TABLE `m_savings_product` DISABLE KEYS */;
INSERT INTO `m_savings_product` (`id`, `name`, `short_name`, `description`, `deposit_type_enum`, `currency_code`, `currency_digits`, `currency_multiplesof`, `nominal_annual_interest_rate`, `interest_compounding_period_enum`, `interest_posting_period_enum`, `interest_calculation_type_enum`, `interest_calculation_days_in_year_type_enum`, `min_required_opening_balance`, `lockin_period_frequency`, `lockin_period_frequency_enum`, `accounting_type`, `withdrawal_fee_amount`, `withdrawal_fee_type_enum`, `withdrawal_fee_for_transfer`, `allow_overdraft`, `overdraft_limit`, `min_required_balance`, `enforce_min_required_balance`, `min_balance_for_interest_calculation`) VALUES INSERT INTO `m_savings_product` (`id`, `name`, `short_name`, `description`, `deposit_type_enum`, `currency_code`, `currency_digits`, `currency_multiplesof`, `nominal_annual_interest_rate`, `interest_compounding_period_enum`, `interest_posting_period_enum`, `interest_calculation_type_enum`, `interest_calculation_days_in_year_type_enum`, `min_required_opening_balance`, `lockin_period_frequency`, `lockin_period_frequency_enum`, `accounting_type`, `withdrawal_fee_amount`, `withdrawal_fee_type_enum`, `withdrawal_fee_for_transfer`, `allow_overdraft`, `overdraft_limit`, `min_required_balance`, `enforce_min_required_balance`, `min_balance_for_interest_calculation`) VALUES
(1, 'Voluntary savings', 'VS', 'Save money', 100, 'USD', 2, 0, 9.500000, 1, 4, 1, 365, 1000.000000, 1.000000, 1, 2, NULL, NULL, 0, 0, NULL, NULL, 0, NULL); (1, 'Voluntary savings', 'VS', 'Save money', 100, 'USD', 2, 0, 9.500000, 1, 4, 1, 365, 1000.000000, 1.000000, 1, 2, NULL, NULL, 0, 0, NULL, NULL, 0, NULL);
@@ -3646,6 +3924,33 @@ INSERT INTO `m_staff` (`id`, `is_loan_officer`, `office_id`, `firstname`, `lastn
/*!40000 ALTER TABLE `m_staff` ENABLE KEYS */; /*!40000 ALTER TABLE `m_staff` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_tellers
DROP TABLE IF EXISTS `m_tellers`;
CREATE TABLE IF NOT EXISTS `m_tellers` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`office_id` bigint(20) NOT NULL,
`debit_account_id` bigint(20) DEFAULT NULL,
`credit_account_id` bigint(20) DEFAULT NULL,
`name` varchar(50) NOT NULL,
`description` varchar(100) DEFAULT NULL,
`valid_from` date DEFAULT NULL,
`valid_to` date DEFAULT NULL,
`state` smallint(5) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `m_tellers_name_unq` (`name`),
KEY `IK_m_tellers_m_office` (`office_id`),
KEY `FK_m_tellers_gl_account_debit_account_id` (`debit_account_id`),
KEY `FK_m_tellers_gl_account_credit_account_id` (`credit_account_id`),
CONSTRAINT `FK_m_tellers_m_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`),
CONSTRAINT `FK_m_tellers_gl_account_debit_account_id` FOREIGN KEY (`debit_account_id`) REFERENCES `acc_gl_account` (`id`),
CONSTRAINT `FK_m_tellers_gl_account_credit_account_id` FOREIGN KEY (`credit_account_id`) REFERENCES `acc_gl_account` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.m_tellers: ~0 rows (approximately)
/*!40000 ALTER TABLE `m_tellers` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_tellers` ENABLE KEYS */;
-- Dumping structure for table mifostenant-default.m_template -- Dumping structure for table mifostenant-default.m_template
DROP TABLE IF EXISTS `m_template`; DROP TABLE IF EXISTS `m_template`;
CREATE TABLE IF NOT EXISTS `m_template` ( CREATE TABLE IF NOT EXISTS `m_template` (
@@ -3702,7 +4007,7 @@ 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);
@@ -3821,7 +4126,7 @@ CREATE TABLE IF NOT EXISTS `r_enum_value` (
UNIQUE KEY `enum_value` (`enum_name`,`enum_value`) UNIQUE KEY `enum_value` (`enum_name`,`enum_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table mifostenant-default.r_enum_value: ~61 rows (approximately) -- Dumping data for table mifostenant-default.r_enum_value: ~64 rows (approximately)
/*!40000 ALTER TABLE `r_enum_value` DISABLE KEYS */; /*!40000 ALTER TABLE `r_enum_value` DISABLE KEYS */;
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES
('amortization_method_enum', 0, 'Equal principle payments', 'Equal principle payments', 0), ('amortization_method_enum', 0, 'Equal principle payments', 'Equal principle payments', 0),
@@ -3870,6 +4175,9 @@ INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `en
('status_enum', 100, 'Pending', 'Pending', 0), ('status_enum', 100, 'Pending', 'Pending', 0),
('status_enum', 300, 'Active', 'Active', 0), ('status_enum', 300, 'Active', 'Active', 0),
('status_enum', 600, 'Closed', 'Closed', 0), ('status_enum', 600, 'Closed', 'Closed', 0),
('teller_status', 300, 'Active', 'Active', 0),
('teller_status', 400, 'Inactive', 'Inactive', 0),
('teller_status', 600, 'Closed', 'Closed', 0),
('term_period_frequency_enum', 0, 'Days', 'Days', 0), ('term_period_frequency_enum', 0, 'Days', 'Days', 0),
('term_period_frequency_enum', 1, 'Weeks', 'Weeks', 0), ('term_period_frequency_enum', 1, 'Weeks', 'Weeks', 0),
('term_period_frequency_enum', 2, 'Months', 'Months', 0), ('term_period_frequency_enum', 2, 'Months', 'Months', 0),
@@ -3898,7 +4206,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);
@@ -3925,7 +4233,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: ~217 rows (approximately) -- Dumping data for table mifostenant-default.schema_version: ~242 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),
@@ -4061,8 +4369,31 @@ INSERT INTO `schema_version` (`version_rank`, `installed_rank`, `version`, `desc
(217, 217, '204', 'insert script for charges paid by for accruals', 'SQL', 'V204__insert_script_for_charges_paid_by_for_accruals.sql', 1126139057, 'root', '2014-10-14 16:20:13', 4, 1), (217, 217, '204', 'insert script for charges paid by for accruals', 'SQL', 'V204__insert_script_for_charges_paid_by_for_accruals.sql', 1126139057, 'root', '2014-10-14 16:20:13', 4, 1),
(218, 218, '205', 'fix for charge and interest waiver with accruals', 'SQL', 'V205__fix_for_charge_and_interest_waiver_with_accruals.sql', 620191357, 'root', '2014-11-02 05:24:39', 2022, 1), (218, 218, '205', 'fix for charge and interest waiver with accruals', 'SQL', 'V205__fix_for_charge_and_interest_waiver_with_accruals.sql', 620191357, 'root', '2014-11-02 05:24:39', 2022, 1),
(219, 219, '206', 'interest posting configuration', 'SQL', 'V206__interest_posting_configuration.sql', -1024393207, 'root', '2014-11-02 05:24:40', 948, 1), (219, 219, '206', 'interest posting configuration', 'SQL', 'V206__interest_posting_configuration.sql', -1024393207, 'root', '2014-11-02 05:24:40', 948, 1),
(220, 220, '207', 'min max clients per group', 'SQL', 'V207__min_max_clients_per_group.sql', -2069742774, 'root', '2014-12-23 09:05:48', 923, 1),
(221, 221, '208', 'min max clients in group redux', 'SQL', 'V208__min_max_clients_in_group_redux.sql', 1253715309, 'root', '2014-12-23 09:05:49', 764, 1),
(222, 222, '209', 'add all report names in m permission table', 'SQL', 'V209__add_all_report_names_in_m_permission_table.sql', -801564857, 'root', '2014-12-23 09:05:49', 177, 1),
(21, 21, '21', 'activation-permissions-for-clients', 'SQL', 'V21__activation-permissions-for-clients.sql', -569932376, 'root', '2014-03-07 12:58:49', 328, 1), (21, 21, '21', 'activation-permissions-for-clients', 'SQL', 'V21__activation-permissions-for-clients.sql', -569932376, 'root', '2014-03-07 12:58:49', 328, 1),
(223, 223, '210', 'track manually adjusted transactions', 'SQL', 'V210__track_manually_adjusted_transactions.sql', 228516334, 'root', '2014-12-23 09:05:51', 1242, 1),
(224, 224, '211', 'minimum days between disbursal and first repayment', 'SQL', 'V211__minimum_days_between_disbursal_and_first_repayment.sql', 888628428, 'root', '2014-12-23 09:05:53', 1831, 1),
(225, 225, '212', 'add NthDay and DayOfWeek columns loan', 'SQL', 'V212__add_NthDay_and_DayOfWeek_columns_loan.sql', 1949824258, 'root', '2014-12-23 09:05:56', 3064, 1),
(226, 226, '213', 'NthDay and DayOfWeek columns should be nullable', 'SQL', 'V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql', 1399365002, 'root', '2014-12-23 09:06:00', 4338, 1),
(227, 227, '214', 'alter table add create SI at disbursement', 'SQL', 'V214__alter_table_add_create_SI_at_disbursement.sql', -154407476, 'root', '2014-12-23 09:06:03', 3021, 1),
(228, 228, '215', 'guarantee on hold fund changes', 'SQL', 'V215__guarantee_on_hold_fund_changes.sql', 303524926, 'root', '2014-12-23 09:06:08', 5060, 1),
(229, 229, '216', 'adding loan proposed amount to loan', 'SQL', 'V216__adding_loan_proposed_amount_to_loan.sql', 348182179, 'root', '2014-12-23 09:06:13', 4172, 1),
(230, 230, '217', 'client substatus and codevalue description', 'SQL', 'V217__client_substatus_and_codevalue_description.sql', 1679310398, 'root', '2014-12-23 09:06:20', 7286, 1),
(231, 231, '218', 'add user and datetime for loan savings transactions', 'SQL', 'V218__add_user_and_datetime_for_loan_savings_transactions.sql', -1058697092, 'root', '2014-12-23 09:06:23', 2416, 1),
(232, 232, '219', 'guarantor on hold fund changes for account', 'SQL', 'V219__guarantor_on_hold_fund_changes_for_account.sql', 1081934247, 'root', '2014-12-23 09:06:34', 10673, 1),
(22, 22, '22', 'alter-group-for-consistency-add-permissions', 'SQL', 'V22__alter-group-for-consistency-add-permissions.sql', 578271556, 'root', '2014-03-07 12:58:50', 841, 1), (22, 22, '22', 'alter-group-for-consistency-add-permissions', 'SQL', 'V22__alter-group-for-consistency-add-permissions.sql', 578271556, 'root', '2014-03-07 12:58:50', 841, 1),
(233, 233, '220', 'account number preferences', 'SQL', 'V220__account_number_preferences.sql', -502873750, 'root', '2014-12-23 09:06:35', 1295, 1),
(234, 234, '221', 'add version for m savings account', 'SQL', 'V221__add_version_for_m_savings_account.sql', 863858591, 'root', '2014-12-23 09:06:38', 2521, 1),
(235, 235, '222', 'guarantor on hold fund changes for transactions', 'SQL', 'V222__guarantor_on_hold_fund_changes_for_transactions.sql', -1709074177, 'root', '2014-12-23 09:06:43', 5200, 1),
(236, 236, '223', 'add version for m loan account', 'SQL', 'V223__add_version_for_m_loan_account.sql', -973851712, 'root', '2014-12-23 09:06:49', 5675, 1),
(237, 237, '224', 'client lifecycle adding statuses', 'SQL', 'V224__client_lifecycle_adding_statuses.sql', -289697454, 'root', '2014-12-23 09:07:01', 11533, 1),
(238, 238, '225', 'permissions for updating recurring deposit amount', 'SQL', 'V225__permissions_for_updating_recurring_deposit_amount.sql', -1367144205, 'root', '2014-12-23 09:07:01', 41, 1),
(239, 239, '226', 'configuration for enforcing calendars for jlg loans', 'SQL', 'V226__configuration_for_enforcing_calendars_for_jlg_loans.sql', -382855919, 'root', '2014-12-23 09:07:01', 31, 1),
(240, 240, '227', 'loan-refund-permissions', 'SQL', 'V227__loan-refund-permissions.sql', 2141152676, 'root', '2014-12-23 09:07:01', 242, 1),
(241, 241, '228', 'entity to entity access', 'SQL', 'V228__entity_to_entity_access.sql', -1244421071, 'root', '2014-12-23 09:07:03', 1255, 1),
(242, 242, '229', 'teller cash management', 'SQL', 'V229__teller_cash_management.sql', 753724982, 'root', '2014-12-23 09:07:05', 2441, 1),
(23, 23, '23', 'remove-enable-disable-configuration-for-client-group-status', 'SQL', 'V23__remove-enable-disable-configuration-for-client-group-status.sql', -832390233, 'root', '2014-03-07 12:58:50', 295, 1), (23, 23, '23', 'remove-enable-disable-configuration-for-client-group-status', 'SQL', 'V23__remove-enable-disable-configuration-for-client-group-status.sql', -832390233, 'root', '2014-03-07 12:58:50', 295, 1),
(24, 24, '24', 'add-group-client-foreign-key-constraint-in-loan-table', 'SQL', 'V24__add-group-client-foreign-key-constraint-in-loan-table.sql', -621897624, 'root', '2014-03-07 12:58:51', 318, 1), (24, 24, '24', 'add-group-client-foreign-key-constraint-in-loan-table', 'SQL', 'V24__add-group-client-foreign-key-constraint-in-loan-table.sql', -621897624, 'root', '2014-03-07 12:58:51', 318, 1),
(25, 25, '25', 'update client reports for status and activation change', 'SQL', 'V25__update_client_reports_for_status_and_activation_change.sql', -1426943124, 'root', '2014-03-07 12:58:51', 30, 1), (25, 25, '25', 'update client reports for status and activation change', 'SQL', 'V25__update_client_reports_for_status_and_activation_change.sql', -1426943124, 'root', '2014-03-07 12:58:51', 30, 1),