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) DEFAULT NULL,
                            `bcc` varchar(1000) DEFAULT NULL,
                            `subject` varchar(255) NOT NULL,
                            `result` tinyint(1) NOT NULL,
                            `error` text DEFAULT NULL,
                            `data` text DEFAULT NULL,
                            PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;