-- Create Table Statement for 'Account Update Transaction'
DROP TABLE IF EXISTS `ACCOUNT_UPDATE_TRANSACTION`;
CREATE TABLE `ACCOUNT_UPDATE_TRANSACTION` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	TRANSACTION_CODE varchar,
	RESPONSE_CODE varchar,
	RESPONSE_MESSAGE varchar,
	ORIGINAL_TOKEN_CODE varchar,
	ORIGINAL_CARD_NUMBER varchar,
	ORIGINAL_CARD_NUMBER_LAST4 varchar,
	ORIGINAL_CARD_EXP_DATE varchar,
	ORIGINAL_ACCOUNT_CL varchar,
	ORIGINAL_BIN_ENCODED varchar,
	ORIGINAL_BANK_INFO_CODE int(11),
	UPDATED_TOKEN_CODE varchar,
	UPDATED_CARD_NUMBER varchar,
	UPDATED_CARD_NUMBER_LAST4 varchar,
	UPDATED_CARD_EXP_DATE varchar,
	UPDATED_ACCOUNT_CL varchar,
	UPDATED_BIN_ENCODED varchar,
	UPDATED_BANK_INFO_CODE int(11),
	SUB_BATCH_FK bigint(20),
	BATCH_FK bigint(20),
	CREATE_DATE datetime,
	ORIGINAL_CARD_NUMBER_MASKED varchar,
	BILLING_PROFILE_TYPE varchar,
	RESPONSE_DATE datetime,
	ACTION_CL varchar,
	ACCOUNT_UPDATE_SUBSCRIPTION_TRANSACTION_FK bigint(20),
	CUSTOMER_ACCOUNT_CODE varchar,
	CUSTOMER_ACCOUNT_INTERNAL_CODE varchar,
	TRANSACTION_INTERNAL_CODE varchar,
	TOKEN varchar,
	CHARGE_TRANSACTION_FK bigint(20),
	AMEX_ACCOUNT_UPDATE_TRANSACTION_FK bigint(20),
	LITLE_ACCOUNT_UPDATE_TRANSACTION_FK bigint(20),
	BANK_INFO_FK int(11),
	UPDATED_TOKEN varchar,
	MEMO varchar,
	MEMO varchar,
	RESPONSE_CODE varchar,
	RESPONSE_CODE varchar,
	MEMO varchar,
	MEMO varchar,
	MEMO varchar,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	ORIGINAL_CARD_NUMBER varchar,
	MOTO_TERMINAL_ID int(11),
	PRIMARY KEY (ID)
) ENGINE=InnoDB;