-- 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),
	DOCUMENT_CODE_FK bigint(20),
	EMPLOYEE_ACCOUNT_FK bigint(20),
	FILE_STORE_CONTENT_FK bigint(20),
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	PRIMARY KEY (ID)
) ENGINE=InnoDB;