-- Create Table Statement for 'Authorize Net Auth Retail Transaction'
DROP TABLE IF EXISTS `AUTHORIZE_NET_AUTH_RETAIL_TRANSACTION`;
CREATE TABLE `AUTHORIZE_NET_AUTH_RETAIL_TRANSACTION` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	TRANSACTION_TYPE varchar,
	AMOUNT varchar,
	SPLIT_TENDER_ID varchar,
	INVOICE_NUMBER varchar,
	TAX_AMOUNT varchar,
	TAX_EXEMPT varchar,
	PO_NUMBER varchar,
	DUTY_AMOUNT varchar,
	CUSTOMER_ID varchar,
	BILL_TO_FIRST_NAME varchar,
	BILL_TO_LAST_NAME varchar,
	BILL_TO_COMPANY varchar,
	BILL_TO_ADDRESS varchar,
	BILL_TO_CITY varchar,
	BILL_TO_STATE varchar,
	BILL_TO_ZIP varchar,
	BILL_TO_PHONE_NUMBER varchar,
	DESCRIPTION varchar,
	SHIP_TO_FIRST_NAME varchar,
	SHIP_TO_LAST_NAME varchar,
	SHIP_TO_COMPANY varchar,
	SHIP_TO_ADDRESS varchar,
	SHIP_TO_CITY varchar,
	SHIP_TO_STATE varchar,
	SHIP_TO_ZIP varchar,
	ALLOW_PARTIAL_AUTH varchar,
	RECURRING_BILLING varchar,
	TEST_REQUEST varchar,
	RESULT_CODE varchar,
	MESSAGE_CODE varchar,
	MESSAGE_TEXT varchar,
	RESPONSE_CODE varchar,
	AUTH_CODE varchar,
	AVS_RESULT_CODE varchar,
	CVV_RESULT_CODE varchar,
	TRANS_ID varchar,
	APPROVED_AMOUNT varchar,
	BALANCE_ON_CARD varchar,
	CHARGE_TRANSACTION_FK bigint(20),
	RETAIL_TRANSACTION_CYCLE_FK bigint(20),
	IS_CARD_PRESENT tinyint(1),
	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;