-- Create Table Statement for 'Document'
DROP TABLE IF EXISTS `DOCUMENT`;
CREATE TABLE `DOCUMENT` (
	ID bigint(20) NOT NULL,
	REF_CODE varchar,
	CREATE_DATE datetime,
	CREATOR_CODE varchar,
	DESCRIPTION varchar,
	IS_VISIBLE_EXTERNALLY tinyint(1),
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	COLLECTOR_ACCOUNT_CODE int(11),
	DOCUMENT_CODE_FK bigint(20),
	CUSTOMER_ACCOUNT_FK bigint(20),
	FILE_STORE_CONTENT_FK bigint(20),
	BILLING_FILE_STORE_CONTENT_FK bigint(20),
	DESCRIPTION varchar,
	PRIMARY KEY (ID)
) ENGINE=InnoDB;