-- Create Table Statement for 'Subscription Transaction'
DROP TABLE IF EXISTS `SUBSCRIPTION_TRANSACTION`;
CREATE TABLE `SUBSCRIPTION_TRANSACTION` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	CREATE_DATE datetime,
	STATUS_CL varchar,
	RESPONSE_CODE varchar,
	RESPONSE_MESSAGE varchar,
	RESPONSE_DATE datetime,
	ACCOUNT_NUMBER varchar,
	ACCOUNT_NUMBER_MASKED varchar,
	ACCOUNT_NUMBER_LAST4 varchar,
	ACCOUNT_ACCESSORY varchar,
	ACCOUNT_ACCESSORY_MASKED varchar,
	TRANSACTION_CODE varchar,
	CUSTOMER_ACCOUNT_CODE varchar,
	PROVIDER_REFERENCE_NUMBER varchar,
	FIRST_NAME varchar,
	LAST_NAME varchar,
	IS_ORGANIZATION tinyint(1),
	EMAIL varchar,
	STREET varchar,
	CITY varchar,
	STATE varchar,
	ZIP_CODE varchar,
	COUNTRY_CODE varchar,
	DATA_HASH1 bigint(20),
	BATCH_FK bigint(20),
	SUB_BATCH_FK bigint(20),
	TOKEN varchar,
	TOKEN_CODE varchar,
	DUPLICATE_CODE bigint(20),
	DATA_HASH2 bigint(20),
	ACCOUNT_CL varchar,
	PROVIDER_RESPONSE_CODE varchar,
	PROVIDER_RESPONSE_MESSAGE varchar,
	PHONE varchar,
	BANK_INFO_FK int(11),
	EXTERNAL_SUBSCRIPTION_CODE varchar,
	MEMO varchar,
	MEMO varchar,
	RESPONSE_CODE varchar,
	RESPONSE_CODE varchar,
	MEMO varchar,
	MEMO varchar,
	MEMO varchar,
	PRIMARY KEY (ID)
) ENGINE=InnoDB;