-- Create Table Statement for 'Elavon Capture Retail Transaction'
DROP TABLE IF EXISTS `ELAVON_CAPTURE_RETAIL_TRANSACTION`;
CREATE TABLE `ELAVON_CAPTURE_RETAIL_TRANSACTION` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	ACCOUNT_SOURCE varchar,
	AMOUNT int(11),
	APPROVAL_CODE varchar,
	AUTH_SOURCE varchar,
	AVS_RESPONSE varchar,
	CAP_TRAN_CODE varchar,
	CARD_ID varchar,
	CUSTOM_DATA varchar,
	FORMAT_CODE varchar,
	FORMAT_ONE varchar,
	FORMAT_TWO varchar,
	FORMAT_THREE varchar,
	ORIG_AUTH_AMT int(11),
	PS2000_DATA varchar,
	TRANS_DATE varchar,
	TRANS_TIME varchar,
	ELAVON_RETAIL_FILE_BATCH_FK bigint(20),
	CVV2_RESPONSE varchar,
	CHARGE_TRANSACTION_FK bigint(20),
	CHARGE_TRANSACTION_FK bigint(20),
	CHARGE_TRANSACTION_FK bigint(20),
	PRIMARY KEY (ID)
) ENGINE=InnoDB;