-- Create Table Statement for 'First Data Chargeback Transaction'
DROP TABLE IF EXISTS `FIRST_DATA_CHARGEBACK_TRANSACTION`;
CREATE TABLE `FIRST_DATA_CHARGEBACK_TRANSACTION` (
ID bigint(20) NOT NULL,
MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
HIERARCHY_ID varchar,
HIERARCHY_LEVEL_NO varchar,
LOCATION_ID varchar,
LOCATION_DBA_NAME varchar,
STORE_NUMBER varchar,
EXTERNAL_ID varchar,
DISPUTE_TYPE varchar,
REQUEST_TYPE varchar,
CURRENCY_CODE varchar,
DISPUTE_AMOUNT_SIGN varchar,
DISPUTE_AMOUNT varchar,
REASON_CODE varchar,
REASON_CODE_DESCRIPTION varchar,
IDS_CASE_NUMBER varchar,
DUE_DATE varchar,
ACQUIRER_REFERENCE_NUMBER varchar,
CHAGEBACK_CYCLE varchar,
FIRST_CHARGEBACK_DATE varchar,
SECOND_CHARGEBACK_DATE varchar,
CARD_TYPE varchar,
CARD_NUMBER varchar,
EXP_DATE varchar,
ADJUSTMENT_DATE varchar,
BATCH_DATE varchar,
BATCH_NUMBER varchar,
TRANSACTION_CURRENCY_CODE varchar,
TRANSACTION_AMOUNT_SIGN varchar,
TRANSACTION_AMOUNT varchar,
AUTHORIZATION_CODE varchar,
INVOICE_NUMBER varchar,
AIRLINE_TICKET_NUMBER varchar,
SIC_CODE varchar,
RECEIVE_DATE varchar,
ADJUSTMENT_AMOUNT_SIGN varchar,
ADJUSTMENT_AMOUNT varchar,
SUB_MERCHANT_ID varchar,
SOFT_DESCRIPTOR varchar,
SPECIAL_REFERENCE2 varchar,
CHARGE_TRANSACTION_FK bigint(20),
FIRST_DATA_CHARGEBACK_BATCH_FK bigint(20),
STATUS_DATE varchar,
STATUS_DESCRIPTION varchar,
REQUEST_DATE varchar,
TRANSACTION_DATE varchar,
SUBMITTED_TRANSACTION_CURRENCY_CODE varchar,
SUBMITTED_TRANSACTION_AMMOUNT_SIGN varchar,
SUBMITTED_TRANSACTION_AMOUNT varchar,
TRANSACTION_SERVICE_CODE varchar,
TRANSACTION_POS_ENTRY_MODE varchar,
WORK_TYPE varchar,
SUBMITTED_TRANSACTION_CURRENCY_CODE varchar,
SUBMITTED_TRANSACTION_AMMOUNT_SIGN varchar,
SUBMITTED_TRANSACTION_AMOUNT varchar,
TRANSACTION_SERVICE_CODE varchar,
TRANSACTION_POS_ENTRY_MODE varchar,
WORK_TYPE varchar,
SUBMITTED_TRANSACTION_CURRENCY_CODE varchar,
SUBMITTED_TRANSACTION_AMMOUNT_SIGN varchar,
SUBMITTED_TRANSACTION_AMOUNT varchar,
TRANSACTION_SERVICE_CODE varchar,
TRANSACTION_POS_ENTRY_MODE varchar,
WORK_TYPE varchar,
LOAN_NUMBER varchar,
WORK_ORDER_NUMBER varchar,
MOBILE_INDICATOR varchar,
USER_DATA2 varchar,
SPECIAL_REFERENCE1 varchar,
CB_RESPONSE_RECEIVED varchar,
CURRENT_STATUS varchar,
RESPONDED_ON_DATE varchar,
DEBIT_NETWORK_ID varchar,
DEBIT_NETWORK_DESCRIPTION varchar,
LOAN_NUMBER varchar,
WORK_ORDER_NUMBER varchar,
MOBILE_INDICATOR varchar,
USER_DATA2 varchar,
SPECIAL_REFERENCE1 varchar,
CB_RESPONSE_RECEIVED varchar,
CURRENT_STATUS varchar,
RESPONDED_ON_DATE varchar,
DEBIT_NETWORK_ID varchar,
DEBIT_NETWORK_DESCRIPTION varchar,
LOAN_NUMBER varchar,
WORK_ORDER_NUMBER varchar,
MOBILE_INDICATOR varchar,
USER_DATA2 varchar,
SPECIAL_REFERENCE1 varchar,
CB_RESPONSE_RECEIVED varchar,
CURRENT_STATUS varchar,
RESPONDED_ON_DATE varchar,
DEBIT_NETWORK_ID varchar,
DEBIT_NETWORK_DESCRIPTION varchar,
FIRST_DATA_CHARGEBACK_BATCH_FK bigint(20),
FIRST_DATA_CHARGEBACK_BATCH_FK bigint(20),
PRIMARY KEY (ID)
) ENGINE=InnoDB;