-- Create Table Statement for 'Payvision Auth Retail Transaction'
DROP TABLE IF EXISTS `PAYVISION_AUTH_RETAIL_TRANSACTION`;
CREATE TABLE `PAYVISION_AUTH_RETAIL_TRANSACTION` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	REQUEST_TYPE varchar,
	MEMBER_ID varchar,
	MEMBER_GUID varchar,
	COUNTRY_ID varchar,
	CURRENCY_ID varchar,
	AMOUNT varchar,
	TRACKING_MEMBER_CODE varchar,
	CARD_HOLDER varchar,
	MERCHANT_ACCOUNT_TYPE varchar,
	DBA_NAME varchar,
	DBA_CITY varchar,
	AVS_ADDRESS varchar,
	AVS_ZIP varchar,
	TRANSACTION_ID varchar,
	TRANSACTION_GUID varchar,
	RESULT_CODE varchar,
	MESSAGE varchar,
	TRANSACTION_DATE_TIME varchar,
	BANK_CODE varchar,
	BANK_MESSAGE varchar,
	BANK_APPROVAL_CODE varchar,
	CVV_RESULT varchar,
	AVS_AUTHORIZATION_ENTITY varchar,
	AVS_RESULT varchar,
	CHARGE_TRANSACTION_FK bigint(20),
	RETAIL_TRANSACTION_CYCLE_FK bigint(20),
	AUTHENTICATION_INDICATOR varchar,
	ERROR_CODE varchar,
	ERROR_MESSAGE varchar,
	CARD_ID varchar,
	CARD_GUID 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;