-- Create Table Statement for 'Agent Commission'
DROP TABLE IF EXISTS `AGENT_COMMISSION`;
CREATE TABLE `AGENT_COMMISSION` (
	ID bigint(20) NOT NULL,
	REF_CODE varchar,
	CREATE_DATE datetime,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	COLLECTOR_ACCOUNT_CODE int(11),
	CREATOR_CODE varchar,
	AGENT_CODE varchar,
	AMOUNT int(11),
	COMMISSION_CL varchar,
	NOTE varchar,
	PAYMENT_OPTION_FK bigint(20),
	CUSTOMER_ACCOUNT_FK bigint(20),
	TARGET_FK bigint(20),
	SOURCE_FK bigint(20),
	BALANCING_SUMMARY_FK bigint(20),
	ADJUSTMENT_AGENT_COMMISSION_FK bigint(20),
	PRIMARY KEY (ID)
) ENGINE=InnoDB;