player.lua 714 B

12345678910111213141516171819202122232425
  1. local root = class("player", require("base.baseModule"))
  2. function root:ctor(uid)
  3. root.super.ctor(self, uid, "player", "uid", true)
  4. self.uid = uid
  5. end
  6. function root:mysql_get_init_columns()
  7. return {
  8. uid = "int(11) unsigned NOT NULL",
  9. loginTime = "int(11) DEFAULT 0 COMMENT '当前登录时间'",
  10. lastLoginTime = "int(11) DEFAULT 0 COMMENT '上次登录时间'",
  11. logoutTime = "int(11) DEFAULT 0 COMMENT '登出时间'",
  12. activeDays = "int(11) DEFAULT 0 COMMENT '活跃天数'",
  13. level = "int(11) DEFAULT 0 COMMENT '玩家等级'",
  14. vipLevel = "int(11) DEFAULT 0 COMMENT '贵族等级'"
  15. }
  16. end
  17. -- 登录
  18. function root:do_login()
  19. end
  20. return root