mail.lua 938 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Descripttion:邮件
  3. version:
  4. Author: Neo,Huang
  5. Date: 2022-08-17 16:04:20
  6. LastEditors: Neo,Huang
  7. LastEditTime: 2022-08-19 20:12:34
  8. --]]
  9. local root = class("moduleMail", require("base.baseModule"))
  10. function root:ctor(id)
  11. root.super.ctor(self, "mail", "id", true, true)
  12. self.id = id
  13. end
  14. function root:mysql_get_init_columns()
  15. return {
  16. id = "bigint(20) NOT NULL COMMENT '邮件ID'",
  17. uid = "bigint(20) DEFAULT 0 COMMENT '接收人'",
  18. channel = "int(11) DEFAULT 0 COMMENT '渠道编号'",
  19. title = "varchar(50) DEFAULT '系统通知' COMMENT '邮件标题'",
  20. cnt = "varchar(400) DEFAULT 1 COMMENT '邮件内容'",
  21. items = "json COMMENT '邮件物品列表'",
  22. ty = "int(11) DEFAULT 1 COMMENT '邮件类型'",
  23. createTime = "int(11) DEFAULT 0 COMMENT '发送时间'",
  24. expireTime = "int(11) DEFAULT 0 COMMENT '过期时间 -1:常驻邮件'",
  25. src = "varchar(50) DEFAULT 'sys' COMMENT '邮件来源'"
  26. }
  27. end
  28. return root