-- Create Table Statement for 'Adjustment'
DROP TABLE IF EXISTS `ADJUSTMENT`;
CREATE TABLE `ADJUSTMENT` (
ID bigint(20) NOT NULL,
MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
COLLECTOR_ACCOUNT_CODE int(11),
REF_CODE varchar,
CREATE_DATE datetime,
ADJUSTMENT_CL varchar,
REF_CREATOR_CODE varchar,
NOTES varchar,
LENGTH int(11),
VALUE int(11),
EXPIRATION_DATE datetime,
RENEWAL_AMOUNT int(11),
SYS_MESSAGE varchar,
ADJUSTMENT_BEGIN_DATE datetime,
ADJUSTMENT_END_DATE datetime,
IS_VISIBLE_EXTERNALLY tinyint(1),
IS_PROCESSED tinyint(1),
IS_IN_COLLECTIONS tinyint(1),
ADJUSTMENT_REASON_CODE_FK bigint(20),
CUSTOMER_ACCOUNT_FK bigint(20),
CONTRACT_FK bigint(20),
PAYMENT_PLAN_FK bigint(20),
PRIMARY KEY (ID)
) ENGINE=InnoDB;