sharecode.lua 419 B

1234567891011121314151617
  1. -- 要求码
  2. local root = class("sharecode", require("base.baseModule"))
  3. function root:ctor(sharecode)
  4. root.super.ctor(self, sharecode, "sharecode", "sharecode", true, false)
  5. self.sharecode = sharecode
  6. end
  7. function root:mysql_get_init_columns()
  8. return {
  9. sharecode = "varchar(20) NOT NULL COMMENT '邀请码'",
  10. uid = "bigint(20) unsigned NOT NULL COMMENT '用户ID'"
  11. }
  12. end
  13. return root