-- Create Table Statement for 'Scheduled Payment'
DROP TABLE IF EXISTS `SCHEDULED_PAYMENT`;
CREATE TABLE `SCHEDULED_PAYMENT` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	REF_CODE varchar,
	CREATE_DATE datetime,
	STATUS_CL varchar,
	AMOUNT int(11),
	DUE_DATE datetime,
	CREATOR_CODE varchar,
	POSTER_CODE varchar,
	NOTE varchar,
	IS_INVOICE_REQUIRED tinyint(1),
	COLLECTOR_ACCOUNT_CODE int(11),
	IS_VISIBLE_EXTERNALLY tinyint(1),
	PAYMENT_OPTION_FK bigint(20),
	ASSET_TRANSACTION_FK bigint(20),
	CUSTOMER_ACCOUNT_FK bigint(20),
	PRIMARY KEY (ID)
) ENGINE=InnoDB;