-- Create Table Statement for 'Trust Commerce Batch Transaction'
DROP TABLE IF EXISTS `TRUST_COMMERCE_BATCH_TRANSACTION`;
CREATE TABLE `TRUST_COMMERCE_BATCH_TRANSACTION` (
ID bigint(20) NOT NULL,
MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
ACTION varchar,
AMOUNT varchar,
TICKET varchar,
OPERATOR varchar,
TRANS_ID varchar,
AVS varchar,
NAME varchar,
ADDRESS1 varchar,
ZIP varchar,
CITY varchar,
STATE varchar,
COUNTRY varchar,
PHONE varchar,
EMAIL varchar,
SHIP_TO_NAME varchar,
SHIP_TO_ADDRESS1 varchar,
SHIP_TO_CITY varchar,
SHIP_TO_STATE varchar,
SHIP_TO_ZIP varchar,
SHIP_TO_COUNTRY varchar,
PAYMENT_NUMBER varchar,
TOTAL_PAYMENTS varchar,
PURCHASE_LEVEL varchar,
PURCHASE_ORDER_NUM varchar,
TAX varchar,
TAX_IDENTIFIER varchar,
RESPONSE_STATUS_TYPE varchar,
RESPONSE_DECLINE_TYPE varchar,
RESPONSE_BAD_DATA_TYPE varchar,
RESPONSE_ERROR_TYPE varchar,
RESPONSE_OFFENDERS varchar,
RESPONSE_AVS varchar,
RESPONSE_CVV varchar,
RESPONSE_AUTH_CODE varchar,
RESPONSE_COMMERCIAL_CARD varchar,
VELOCITY_TYPE varchar,
VELOCITY_VALUE varchar,
BLACKLIST_FIELD varchar,
BLACKLIST_VALUE varchar,
FRAUD_SCORE varchar,
RESPONSE_CODE varchar,
RESPONSE_CODE_DESCRIPTOR varchar,
CHARGE_TRANSACTION_FK bigint(20),
TRUST_COMMERCE_BATCH_FK bigint(20),
BILLING_ID varchar,
PINLESS_DEBIT varchar,
PINLESS_LOOKUP varchar,
SHIP_DATE varchar,
RESPONSE_RECEIPT_STATUS varchar,
RESPONSE_RECEIPT_STATUS varchar,
RESPONSE_RECEIPT_STATUS varchar,
TRUST_COMMERCE_BATCH_FK bigint(20),
CHARGE_TRANSACTION_FK bigint(20),
TRUST_COMMERCE_BATCH_FK bigint(20),
CHARGE_TRANSACTION_FK bigint(20),
CUSTOMER_ACCOUNT_INTERNAL_CODE varchar,
CUSTOMER_ACCOUNT_INTERNAL_CODE varchar,
CUSTOMER_ACCOUNT_INTERNAL_CODE varchar,
PRIMARY KEY (ID)
) ENGINE=InnoDB;