sharecode.lua 549 B

123456789101112131415161718192021222324
  1. --[[
  2. Descripttion:邀请码
  3. version:
  4. Author: Neo,Huang
  5. Date: 2023-11-15 22:34:35
  6. LastEditors: Neo,Huang
  7. LastEditTime: 2023-11-15 23:58:55
  8. --]]
  9. local root = class("sharecode", require("base.baseModule"))
  10. function root:ctor(sharecode)
  11. root.super.ctor(self, sharecode, "sharecode", "sharecode", true, false)
  12. self.sharecode = sharecode
  13. end
  14. function root:mysql_get_init_columns()
  15. return {
  16. sharecode = "varchar(20) NOT NULL COMMENT '邀请码'",
  17. uid = "bigint(20) unsigned NOT NULL COMMENT '用户ID'"
  18. }
  19. end
  20. return root