-- Create Table Statement for 'Email Address'
DROP TABLE IF EXISTS `EMAIL_ADDRESS`;
CREATE TABLE `EMAIL_ADDRESS` (
	ID bigint(20) NOT NULL,
	MERCHANT_ACCOUNT_CODE int(11) NOT NULL,
	CREATE_DATE datetime,
	EMAIL varchar,
	REF_CREATOR_CODE varchar,
	IS_BAD tinyint(1),
	BAD_REASON varchar,
	ADDRESS_SOURCE_CL varchar,
	IS_NOTIFICATION_EMAIL_SENT1 tinyint(1),
	IS_NOTIFICATION_EMAIL_SENT2 tinyint(1),
	IS_NOTIFICATION_EMAIL_SENT3 tinyint(1),
	IS_COLLECTIONS_EMAIL_SENT1 tinyint(1),
	IS_COLLECTIONS_EMAIL_SENT2 tinyint(1),
	IS_COLLECTIONS_EMAIL_SENT3 tinyint(1),
	IS_COLLECTIONS_EMAIL_SENT4 tinyint(1),
	IS_COLLECTIONS_EMAIL_SENT5 tinyint(1),
	CUSTOMER_FK bigint(20),
	EMAIL_CL varchar,
	CUSTOMER_ACCOUNT_FK bigint(20),
	REF_CODE varchar,
	LAST_UPDATE_DATE datetime,
	LAST_INVOICE_NOTIFICATION_EMAIL_SENT_DATE datetime,
	LAST_STATEMENT_EMAIL_SENT_DATE datetime,
	PRIMARY KEY (ID)
) ENGINE=InnoDB;