-- Create Table Statement for 'EFT Optimal Payment Netbanx Batch Transaction'
DROP TABLE IF EXISTS `EFT_OPTIMAL_PAYMENT_NETBANX_BATCH_TRANSACTION`;
CREATE TABLE `EFT_OPTIMAL_PAYMENT_NETBANX_BATCH_TRANSACTION` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	TRANSACTION_CODE varchar,
	PAYMENT_TYPE varchar,
	LAST_NAME varchar,
	FIRST_NAME varchar,
	BANK_NAME varchar,
	ACCOUNT_TYPE varchar,
	AMOUNT varchar,
	REFERENCE_CODE varchar,
	TELEPHONE varchar,
	ADDRESS1 varchar,
	CITY varchar,
	STATE varchar,
	ZIP_CODE varchar,
	COUNTRY varchar,
	CHECK_NUMBER varchar,
	TRANSACTION_DATE varchar,
	PAYEE varchar,
	REQUEST_ID varchar,
	CONFIRMATION_NUMBER varchar,
	DECISION varchar,
	CODE varchar,
	DESCRIPTION varchar,
	TRANSACTION_TIME varchar,
	ACTION_CODE varchar,
	CHARGE_TRANSACTION_FK bigint(20),
	EFT_OPTIMAL_PAYMENT_NETBANX_BATCH_FK bigint(20),
	MANDATE_REFERENCE varchar,
	SUBSCRIPTION_TRANSACTION_FK bigint(20),
	EFT_OPTIMAL_PAYMENT_NETBANX_RETURN_BATCH_FK bigint(20),
	BANK_REFERENCE varchar,
	EFFECTIVE_DATE varchar,
	LATEST_STATUS_UPDATE varchar,
	PRESENTATION_DATE varchar,
	ECHECK_STATUS varchar,
	RETURN_CODE varchar,
	MANDATE_ECHECK_STATUS varchar,
	MANDATE_PRESENTATION_DATE varchar,
	MANDATE_LATEST_STATUS_UPDATE varchar,
	MANDATE_RETURN_CODE varchar,
	MANDATE_BANK_REFERENCE varchar,
	MANDATE_EFFECTIVE_DATE varchar,
	FILE_STORE_CODE bigint(20),
	EFT_OPTIMAL_PAYMENT_NETBANX_RETURN_BATCH_FK bigint(20),
	FILE_STORE_CODE bigint(20),
	EFT_OPTIMAL_PAYMENT_NETBANX_RETURN_BATCH_FK bigint(20),
	EFT_OPTIMAL_PAYMENT_NETBANX_BATCH_FK bigint(20),
	CHARGE_TRANSACTION_FK bigint(20),
	EFT_OPTIMAL_PAYMENT_NETBANX_BATCH_FK bigint(20),
	CHARGE_TRANSACTION_FK bigint(20),
	FILE_STORE_CODE bigint(20),
	SUBSCRIPTION_TRANSACTION_FK bigint(20),
	SUBSCRIPTION_TRANSACTION_FK bigint(20),
	PRIMARY KEY (ID)
) ENGINE=InnoDB;