battlerecord.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Descripttion:战斗记录
  3. version:
  4. Author: Neo,Huang
  5. Date: 2023-11-18 12:13:14
  6. LastEditors: Neo,Huang
  7. LastEditTime: 2023-11-18 12:13:46
  8. --]]
  9. local root = class("battlerecord", require("base.baseModule"))
  10. function root:ctor(id)
  11. root.super.ctor(self, id, "battlerecord", "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. roomId = "bigint(20) DEFAULT 0 COMMENT '房间号'",
  18. battleBoxList = "json COMMENT '战斗箱子ID列表'",
  19. createTime = "int(11) DEFAULT 0 COMMENT '房间创建时间'",
  20. battleTime = "int(11) DEFAULT 0 COMMENT '战斗开始时间'",
  21. battleId = "varchar(50) DEFAULT '' COMMENT '战斗编号'",
  22. winUid = "int(11) DEFAULT 0 COMMENT '胜利玩家ID'",
  23. totalPrice = "int(11) DEFAULT 0 COMMENT '掉落饰品总价格'",
  24. battlePlayerList = "json COMMENT '战斗玩家列表'",
  25. expireTime = "int(11) DEFAULT 0 COMMENT '过期时间'",
  26. battleUid1 = "int(11) DEFAULT 0 COMMENT '战斗玩家ID'",
  27. battleUid2 = "int(11) DEFAULT 0 COMMENT '战斗玩家ID'",
  28. battleUid3 = "int(11) DEFAULT 0 COMMENT '战斗玩家ID'",
  29. battleUid4 = "int(11) DEFAULT 0 COMMENT '战斗玩家ID'",
  30. battleUid5 = "int(11) DEFAULT 0 COMMENT '战斗玩家ID'"
  31. }
  32. end
  33. return root