-- Create Table Statement for 'UniPay Retail File Batch'
DROP TABLE IF EXISTS `UNI_PAY_RETAIL_FILE_BATCH`;
CREATE TABLE `UNI_PAY_RETAIL_FILE_BATCH` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	PROVIDER_MERCHANT_ACCOUNT_CODE int(11),
	LAST_REFERENCE_NUMBER varchar,
	CYCLE_CODE varchar,
	TOTAL_TRANSACTION_COUNT varchar,
	TOTAL_TRANSACTION_AMOUNT varchar,
	TOTAL_SALE_COUNT varchar,
	TOTAL_SALE_AMOUNT varchar,
	TOTAL_SALE_AUTH_COUNT varchar,
	TOTAL_CREDIT_COUNT varchar,
	TOTAL_CREDIT_AMOUNT varchar,
	TOTAL_CREDIT_AUTH_COUNT varchar,
	TOTAL_CREDIT_AUTH_AMOUNT varchar,
	TOTAL_VOID_COUNT varchar,
	TOTAL_VOID_AMOUNT varchar,
	TOTAL_DECLINE_COUNT varchar,
	TOTAL_DECLINE_AMOUNT varchar,
	ERROR_CODE varchar,
	ERROR_MESSAGE varchar,
	FAILURE_CODE varchar,
	FAILURE_MESSAGE varchar,
	FAILED_REQUEST_TYPE varchar,
	EXCEPTION_PROCESSOR varchar,
	EXCEPTION_CAUSE varchar,
	EXCEPTION_LEVEL varchar,
	EXCEPTION_HINT varchar,
	EXCEPTION_FORMAT varchar,
	EXCEPTION_FIELD varchar,
	EXCEPTION_VALUE varchar,
	TOTAL_SALE_AUTH_AMOUNT varchar,
	TOTAL_CREDIT_AUTH_AMOUNT varchar,
	TOTAL_CREDIT_AUTH_COUNT varchar,
	PRIMARY KEY (ID)
) ENGINE=InnoDB;