-- Create Table Statement for 'Credit Agency Transaction'
DROP TABLE IF EXISTS `CREDIT_AGENCY_TRANSACTION`;
CREATE TABLE `CREDIT_AGENCY_TRANSACTION` (
	ID bigint(20) NOT NULL,
	TRANSACTION_CODE varchar,
	PREV_TRANSACTION_CODE varchar,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	CUSTOMER_ACCOUNT_CODE varchar,
	FIRST_NAME varchar,
	LAST_NAME varchar,
	MIDDLE_NAME varchar,
	STREET1 varchar,
	STREET2 varchar,
	CITY varchar,
	STATE varchar,
	ZIP_CODE varchar,
	SOCIAL_SECURITY_NUMBER varchar,
	BIRTH_DATE datetime,
	PHONE varchar,
	OPEN_DATE datetime,
	CLOSE_DATE datetime,
	ORIGINAL_DELINQUENCY_AMOUNT int(11),
	ORIGINAL_DELINQUENCY_DATE datetime,
	ACTUAL_PAYMENT_AMOUNT int(11),
	CURRENT_BALANCE int(11),
	EFFECTIVE_DATE datetime,
	LAST_PAYMENT_DATE datetime,
	IS_BANKRUPTCY_FILED tinyint(1),
	ORIGINAL_CREDITOR_NAME varchar,
	IS_CORRECTED tinyint(1),
	DELETE_CL varchar,
	IS_DECEASED tinyint(1),
	BATCH_FK bigint(20),
	PREV_TRANSACTION_FK bigint(20),
	SUB_BATCH_FK bigint(20),
	METRO_2_TRANSACTION_FK bigint(20),
	PRIMARY KEY (ID)
) ENGINE=InnoDB;