dream.lua 880 B

12345678910111213141516171819202122232425262728293031
  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("dream", require("base.baseModule"))
  10. function root:ctor(id)
  11. root.super.ctor(self, id, "dream", "id", true, false)
  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 '抽奖玩家ID'",
  18. itemId = "int(11) DEFAULT 0 COMMENT '掉落时价格'",
  19. dropItem = "json COMMENT '掉落物品'",
  20. price = "int(11) DEFAULT 0 COMMENT '掉落时价格'",
  21. odds = "int(11) DEFAULT 0 COMMENT '使用概率'",
  22. isWin = "int(11) DEFAULT 0 COMMENT '是否中奖 0:不中奖 1:中奖'",
  23. dropTime = "int(11) DEFAULT 1 COMMENT '掉落时间戳'",
  24. expireTime = "int(11) DEFAULT 0 COMMENT '过期时间'"
  25. }
  26. end
  27. return root