CREATE TABLE `mail_log` (
	`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
	`created_at` DATETIME NOT NULL,
	`template` VARCHAR(255) NOT NULL,
	`address` VARCHAR(1000) NOT NULL,
	`cc` VARCHAR(1000) NULL DEFAULT NULL,
	`bcc` VARCHAR(1000) NULL DEFAULT NULL,
	`subject` VARCHAR(255) NOT NULL,
	`result` TINYINT(1) NOT NULL,
	`error` TEXT NULL,
	`data` TEXT NULL,
	PRIMARY KEY (`id`)
)
ENGINE=InnoDB
;