-- Create Table Statement for 'Spindle Auth Retail Transaction'
DROP TABLE IF EXISTS `SPINDLE_AUTH_RETAIL_TRANSACTION`;
CREATE TABLE `SPINDLE_AUTH_RETAIL_TRANSACTION` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	CID varchar,
	SID varchar,
	TRANSACTION_TYPE varchar,
	AMOUNT varchar,
	TAX_AMOUNT varchar,
	TIP_AMOUNT varchar,
	NAME_ON_CARD varchar,
	BILLING_ADDRESS1 varchar,
	BILLING_CITY varchar,
	BILLING_STATE varchar,
	BILLING_POST_CODE varchar,
	BILLING_PHONE varchar,
	BILLING_EMAIL_ADDRESS varchar,
	BILLING_COUNTRY varchar,
	INVOICE_NUMBER varchar,
	RESP_AMOUNT varchar,
	RESP_AUTH_CODE varchar,
	RESP_STATUS_CODE varchar,
	RESP_STATUS_MESSAGE varchar,
	RESP_TRANSACTION_ID varchar,
	RESP_RECEIPT_NUMBER varchar,
	CHARGE_TRANSACTION_FK bigint(20),
	RETAIL_TRANSACTION_CYCLE_FK bigint(20),
	AVS_RESULT varchar,
	CVV_RESULT varchar,
	RESP_TRANSACTION_KEY varchar,
	RETAIL_TRANSACTION_CYCLE_FK bigint(20),
	CHARGE_TRANSACTION_FK bigint(20),
	RETAIL_TRANSACTION_CYCLE_FK bigint(20),
	CHARGE_TRANSACTION_FK bigint(20),
	PRIMARY KEY (ID)
) ENGINE=InnoDB;