mail.sql 725 B

1234567891011121314151617181920
  1. CREATE DATABASE `saas_mail` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
  2. use `saas_mail`;
  3. create table `m_log` (
  4. `id` int unsigned primary key not null auto_increment,
  5. `template_id` int comment '模板',
  6. `subject` varchar(300) not null comment '主题',
  7. `text` text comment '内容',
  8. `from` varchar(100) comment '发送人',
  9. `to` varchar(1000) comment '接收人',
  10. `company_id` int,
  11. `creator_id` int,
  12. `create_time` datetime
  13. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='邮件日志';
  14. create table `m_template` (
  15. `id` varchar(100) primary key not null,
  16. `subject` varchar(300) not null comment '主题',
  17. `text` text comment '内容'
  18. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='邮件模板';