email.sql 1.0 KB

1234567891011121314151617181920212223242526
  1. CREATE table email
  2. (
  3. id INTEGER PRIMARY KEY AUTOINCREMENT,
  4. type tinyint(4) NOT NULL DEFAULT 0 ,
  5. subject varchar(1000) NOT NULL DEFAULT '' ,
  6. reply_to json ,
  7. from_name varchar(50) NOT NULL DEFAULT '' ,
  8. from_address varchar(150) NOT NULL DEFAULT '' ,
  9. `to` json ,
  10. bcc json ,
  11. cc json ,
  12. `text` text ,
  13. html text ,
  14. sender json ,
  15. attachments json ,
  16. spf_check tinyint(1) DEFAULT 0 ,
  17. dkim_check tinyint(1) DEFAULT 0 ,
  18. status tinyint(4) NOT NULL DEFAULT 0 ,
  19. send_user_id int unsigned NOT NULL DEFAULT 0 ,
  20. is_read tinyint(1) NOT NULL DEFAULT 0 ,
  21. error text ,
  22. cron_send_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ,
  23. send_date datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ,
  24. create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ,
  25. update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
  26. )