-- Create Table Statement for 'Moneris Retail File Batch'
DROP TABLE IF EXISTS `MONERIS_RETAIL_FILE_BATCH`;
CREATE TABLE `MONERIS_RETAIL_FILE_BATCH` (
ID bigint(20) NOT NULL,
MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
ECR_NUMBER varchar,
CARD_TYPE varchar,
TRANS_AMOUNT varchar,
TRANS_ID varchar,
RECEIPT_ID varchar,
TRANS_TYPE varchar,
REFERENCE_NUM varchar,
RESPONSE_CODE varchar,
ISO varchar,
BANK_TOTALS varchar,
MESSAGE varchar,
AUTH_CODE varchar,
COMPLETE varchar,
TRANS_DATE varchar,
TRANS_TIME varchar,
TIMED_OUT varchar,
DEBIT_PURCHASE_COUNT varchar,
DEBIT_PURCHASE_AMOUNT varchar,
DEBIT_REFUND_COUNT varchar,
DEBIT_REFUND_AMOUNT varchar,
DEBIT_CORRECTION_COUNT varchar,
DEBIT_CORRECTION_AMOUNT varchar,
VISA_PURCHASE_COUNT varchar,
VISA_PURCHASE_AMOUNT varchar,
VISA_REFUND_COUNT varchar,
VISA_REFUND_AMOUNT varchar,
VISA_CORRECTION_COUNT varchar,
VISA_CORRECTION_AMOUNT varchar,
MASTER_CARD_PURCHASE_COUNT varchar,
MASTER_CARD_PURCHASE_AMOUNT varchar,
MASTER_CARD_REFUND_COUNT varchar,
MASTER_CARD_REFUND_AMOUNT varchar,
MASTER_CARD_CORRECTION_COUNT varchar,
MASTER_CARD_CORRECTION_AMOUNT varchar,
AMEX_PURCHASE_COUNT varchar,
AMEX_PURCHASE_AMOUNT varchar,
AMEX_REFUND_COUNT varchar,
AMEX_REFUND_AMOUNT varchar,
AMEX_CORRECTION_COUNT varchar,
AMEX_CORRECTION_AMOUNT varchar,
SEARS_PURCHASE_COUNT varchar,
SEARS_PURCHASE_AMOUNT varchar,
SEARS_REFUND_COUNT varchar,
SEARS_REFUND_AMOUNT varchar,
SEARS_CORRECTION_COUNT varchar,
SEARS_CORRECTION_AMOUNT varchar,
DINERS_PURCHASE_COUNT varchar,
DINERS_PURCHASE_AMOUNT varchar,
DINERS_REFUND_COUNT varchar,
DINERS_REFUND_AMOUNT varchar,
DINERS_CORRECTION_COUNT varchar,
DINERS_CORRECTION_AMOUNT varchar,
DISCOVER_NOVUS_PURCHASE_COUNT varchar,
DISCOVER_NOVUS_PURCHASE_AMOUNT varchar,
DISCOVER_NOVUS_REFUND_COUNT varchar,
DISCOVER_NOVUS_REFUND_AMOUNT varchar,
DISCOVER_NOVUS_CORRECTION_COUNT varchar,
DISCOVER_NOVUS_CORRECTION_AMOUNT varchar,
JCB_PURCHASE_COUNT varchar,
JCB_PURCHASE_AMOUNT varchar,
JCB_REFUND_COUNT varchar,
JCB_REFUND_AMOUNT varchar,
JCB_CORRECTION_COUNT varchar,
JCB_CORRECTION_AMOUNT varchar,
STORE_ID varchar,
CLOSED varchar,
PROVIDER_CHARGE_TRANSACTION_FK bigint(20),
PRIMARY KEY (ID)
) ENGINE=InnoDB;