update DDL and demo dumps to patch-15
This commit is contained in:
@@ -427,17 +427,9 @@ CREATE TABLE `m_product_deposit` (
|
||||
`is_lock_in_period_allowed` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`lock_in_period` bigint(20) DEFAULT NULL,
|
||||
`lock_in_period_type` smallint(5) NOT NULL DEFAULT '2',
|
||||
`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`),
|
||||
UNIQUE KEY `name_deposit_product` (`name`),
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`),
|
||||
KEY `FKJPW0000000000003` (`createdby_id`),
|
||||
KEY `FKJPW0000000000004` (`lastmodifiedby_id`),
|
||||
CONSTRAINT `FKJPX0000000000003` FOREIGN KEY (`createdby_id`) REFERENCES `m_appuser` (`id`),
|
||||
CONSTRAINT `FKJPX0000000000004` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `m_appuser` (`id`)
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `m_product_savings` (
|
||||
@@ -559,34 +551,39 @@ CREATE TABLE `m_loan` (
|
||||
`writtenoffon_date` date DEFAULT NULL,
|
||||
`closedon_date` date DEFAULT NULL,
|
||||
`closedon_userid` bigint(20) DEFAULT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`principal_repaid_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`principal_writtenoff_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`interest_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`interest_repaid_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`interest_waived_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`interest_writtenoff_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`fee_charges_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`fee_charges_repaid_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`fee_charges_waived_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`fee_charges_writtenoff_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`penalty_charges_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`penalty_charges_repaid_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`penalty_charges_waived_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`penalty_charges_writtenoff_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`principal_outstanding_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`interest_outstanding_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`fee_charges_outstanding_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`penalty_charges_outstanding_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`principal_overdue_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`interest_overdue_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`fee_charges_overdue_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`penalty_charges_overdue_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0,
|
||||
`first_overdue_installment_date_derived` DATE NULL,
|
||||
`createdby_id` bigint(20) DEFAULT NULL,
|
||||
`created_date` datetime DEFAULT NULL,
|
||||
`lastmodified_date` datetime DEFAULT NULL,
|
||||
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`principal_disbursed_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`overdue_since_date_derived` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `loan_account_no_UNIQUE` (`account_no`),
|
||||
UNIQUE KEY `loan_externalid_UNIQUE` (`external_id`),
|
||||
|
||||
@@ -766,7 +766,6 @@ CREATE TABLE `m_loan` (
|
||||
`repay_every` smallint(5) NOT NULL,
|
||||
`repayment_period_frequency_enum` smallint(5) NOT NULL,
|
||||
`amortization_method_enum` smallint(5) NOT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`interest_calculated_from_date` date DEFAULT NULL,
|
||||
`expected_disbursedon_date` date DEFAULT NULL,
|
||||
`expected_firstrepaymenton_date` date DEFAULT NULL,
|
||||
@@ -786,10 +785,39 @@ CREATE TABLE `m_loan` (
|
||||
`writtenoffon_date` date DEFAULT NULL,
|
||||
`closedon_date` date DEFAULT NULL,
|
||||
`closedon_userid` bigint(20) DEFAULT NULL,
|
||||
`createdby_id` bigint(20) DEFAULT NULL,
|
||||
`created_date` datetime DEFAULT NULL,
|
||||
`lastmodified_date` datetime DEFAULT NULL,
|
||||
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`principal_disbursed_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`overdue_since_date_derived` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `loan_account_no_UNIQUE` (`account_no`),
|
||||
UNIQUE KEY `loan_externalid_UNIQUE` (`external_id`),
|
||||
@@ -1263,17 +1291,9 @@ CREATE TABLE `m_product_deposit` (
|
||||
`is_lock_in_period_allowed` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`lock_in_period` bigint(20) DEFAULT NULL,
|
||||
`lock_in_period_type` smallint(5) NOT NULL DEFAULT '2',
|
||||
`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`),
|
||||
UNIQUE KEY `name_deposit_product` (`name`),
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`),
|
||||
KEY `FKJPW0000000000003` (`createdby_id`),
|
||||
KEY `FKJPW0000000000004` (`lastmodifiedby_id`),
|
||||
CONSTRAINT `FKJPX0000000000003` FOREIGN KEY (`createdby_id`) REFERENCES `m_appuser` (`id`),
|
||||
CONSTRAINT `FKJPX0000000000004` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `m_appuser` (`id`)
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1837,4 +1857,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2013-02-25 10:48:42
|
||||
-- Dump completed on 2013-02-27 23:27:19
|
||||
|
||||
@@ -856,7 +856,6 @@ CREATE TABLE `m_loan` (
|
||||
`repay_every` smallint(5) NOT NULL,
|
||||
`repayment_period_frequency_enum` smallint(5) NOT NULL,
|
||||
`amortization_method_enum` smallint(5) NOT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`interest_calculated_from_date` date DEFAULT NULL,
|
||||
`expected_disbursedon_date` date DEFAULT NULL,
|
||||
`expected_firstrepaymenton_date` date DEFAULT NULL,
|
||||
@@ -876,10 +875,39 @@ CREATE TABLE `m_loan` (
|
||||
`writtenoffon_date` date DEFAULT NULL,
|
||||
`closedon_date` date DEFAULT NULL,
|
||||
`closedon_userid` bigint(20) DEFAULT NULL,
|
||||
`createdby_id` bigint(20) DEFAULT NULL,
|
||||
`created_date` datetime DEFAULT NULL,
|
||||
`lastmodified_date` datetime DEFAULT NULL,
|
||||
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`principal_disbursed_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`overdue_since_date_derived` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `loan_account_no_UNIQUE` (`account_no`),
|
||||
UNIQUE KEY `loan_externalid_UNIQUE` (`external_id`),
|
||||
@@ -1353,17 +1381,9 @@ CREATE TABLE `m_product_deposit` (
|
||||
`is_lock_in_period_allowed` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`lock_in_period` bigint(20) DEFAULT NULL,
|
||||
`lock_in_period_type` smallint(5) NOT NULL DEFAULT '2',
|
||||
`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`),
|
||||
UNIQUE KEY `name_deposit_product` (`name`),
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`),
|
||||
KEY `FKJPW0000000000003` (`createdby_id`),
|
||||
KEY `FKJPW0000000000004` (`lastmodifiedby_id`),
|
||||
CONSTRAINT `FKJPX0000000000003` FOREIGN KEY (`createdby_id`) REFERENCES `m_appuser` (`id`),
|
||||
CONSTRAINT `FKJPX0000000000004` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `m_appuser` (`id`)
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1928,4 +1948,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2013-02-25 10:49:55
|
||||
-- Dump completed on 2013-02-27 23:31:00
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -856,7 +856,6 @@ CREATE TABLE `m_loan` (
|
||||
`repay_every` smallint(5) NOT NULL,
|
||||
`repayment_period_frequency_enum` smallint(5) NOT NULL,
|
||||
`amortization_method_enum` smallint(5) NOT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`interest_calculated_from_date` date DEFAULT NULL,
|
||||
`expected_disbursedon_date` date DEFAULT NULL,
|
||||
`expected_firstrepaymenton_date` date DEFAULT NULL,
|
||||
@@ -876,10 +875,39 @@ CREATE TABLE `m_loan` (
|
||||
`writtenoffon_date` date DEFAULT NULL,
|
||||
`closedon_date` date DEFAULT NULL,
|
||||
`closedon_userid` bigint(20) DEFAULT NULL,
|
||||
`createdby_id` bigint(20) DEFAULT NULL,
|
||||
`created_date` datetime DEFAULT NULL,
|
||||
`lastmodified_date` datetime DEFAULT NULL,
|
||||
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`principal_disbursed_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`overdue_since_date_derived` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `loan_account_no_UNIQUE` (`account_no`),
|
||||
UNIQUE KEY `loan_externalid_UNIQUE` (`external_id`),
|
||||
@@ -1353,17 +1381,9 @@ CREATE TABLE `m_product_deposit` (
|
||||
`is_lock_in_period_allowed` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`lock_in_period` bigint(20) DEFAULT NULL,
|
||||
`lock_in_period_type` smallint(5) NOT NULL DEFAULT '2',
|
||||
`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`),
|
||||
UNIQUE KEY `name_deposit_product` (`name`),
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`),
|
||||
KEY `FKJPW0000000000003` (`createdby_id`),
|
||||
KEY `FKJPW0000000000004` (`lastmodifiedby_id`),
|
||||
CONSTRAINT `FKJPX0000000000003` FOREIGN KEY (`createdby_id`) REFERENCES `m_appuser` (`id`),
|
||||
CONSTRAINT `FKJPX0000000000004` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `m_appuser` (`id`)
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1928,4 +1948,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2013-02-25 10:52:54
|
||||
-- Dump completed on 2013-02-27 23:33:51
|
||||
|
||||
@@ -856,7 +856,6 @@ CREATE TABLE `m_loan` (
|
||||
`repay_every` smallint(5) NOT NULL,
|
||||
`repayment_period_frequency_enum` smallint(5) NOT NULL,
|
||||
`amortization_method_enum` smallint(5) NOT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`interest_calculated_from_date` date DEFAULT NULL,
|
||||
`expected_disbursedon_date` date DEFAULT NULL,
|
||||
`expected_firstrepaymenton_date` date DEFAULT NULL,
|
||||
@@ -876,10 +875,39 @@ CREATE TABLE `m_loan` (
|
||||
`writtenoffon_date` date DEFAULT NULL,
|
||||
`closedon_date` date DEFAULT NULL,
|
||||
`closedon_userid` bigint(20) DEFAULT NULL,
|
||||
`createdby_id` bigint(20) DEFAULT NULL,
|
||||
`created_date` datetime DEFAULT NULL,
|
||||
`lastmodified_date` datetime DEFAULT NULL,
|
||||
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||
`total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
|
||||
`principal_disbursed_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`principal_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`interest_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`fee_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`penalty_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_expected_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`total_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
|
||||
`overdue_since_date_derived` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `loan_account_no_UNIQUE` (`account_no`),
|
||||
UNIQUE KEY `loan_externalid_UNIQUE` (`external_id`),
|
||||
@@ -1353,17 +1381,9 @@ CREATE TABLE `m_product_deposit` (
|
||||
`is_lock_in_period_allowed` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`lock_in_period` bigint(20) DEFAULT NULL,
|
||||
`lock_in_period_type` smallint(5) NOT NULL DEFAULT '2',
|
||||
`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`),
|
||||
UNIQUE KEY `name_deposit_product` (`name`),
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`),
|
||||
KEY `FKJPW0000000000003` (`createdby_id`),
|
||||
KEY `FKJPW0000000000004` (`lastmodifiedby_id`),
|
||||
CONSTRAINT `FKJPX0000000000003` FOREIGN KEY (`createdby_id`) REFERENCES `m_appuser` (`id`),
|
||||
CONSTRAINT `FKJPX0000000000004` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `m_appuser` (`id`)
|
||||
UNIQUE KEY `externalid_deposit_product` (`external_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1928,4 +1948,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2013-02-25 10:49:55
|
||||
-- Dump completed on 2013-02-27 23:31:00
|
||||
|
||||
@@ -40,4 +40,4 @@ ADD COLUMN `total_waived_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0 AFTER `tota
|
||||
ADD COLUMN `total_writtenoff_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0 AFTER `total_waived_derived`,
|
||||
ADD COLUMN `total_outstanding_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0 AFTER `total_writtenoff_derived`,
|
||||
ADD COLUMN `total_overdue_derived` DECIMAL(19,6) NOT NULL DEFAULT 0.0 AFTER `total_outstanding_derived`,
|
||||
ADD COLUMN `overdue_since_date_derived` DATE NULL AFTER `total_outstanding_derived`;
|
||||
ADD COLUMN `overdue_since_date_derived` DATE NULL AFTER `total_overdue_derived`;
|
||||
Reference in New Issue
Block a user