源战役
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
3.4 KiB

  1. -- 社团劳务
  2. -- zmh
  3. CREATE TABLE `player_guild_labor` (
  4. `rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  5. `tid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '任务id',
  6. `content` varchar(500) NOT NULL DEFAULT '[]' COMMENT '任务内容',
  7. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  8. PRIMARY KEY (`rid`,`tid`)
  9. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团劳务数据';
  10. -- 社团
  11. -- zmh
  12. CREATE TABLE `guild` (
  13. `id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '社团id',
  14. `name` varchar(50) NOT NULL DEFAULT '' COMMENT '社团名字',
  15. `announce` varchar(500) NOT NULL DEFAULT '' COMMENT '社团公告',
  16. `chief_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '团长',
  17. `chief_name` varchar(50) NOT NULL DEFAULT '' COMMENT '社团名字',
  18. `lv` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '等级',
  19. `exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阵营',
  20. `division` int(11) NOT NULL DEFAULT '0' COMMENT '评级',
  21. `funds` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '社团资金',
  22. `style` int(11) NOT NULL DEFAULT '0' COMMENT '旗帜样式',
  23. `color` int(11) NOT NULL DEFAULT '0' COMMENT '旗帜颜色',
  24. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  25. `modify_times` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '社团修改次数',
  26. `approve_type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '申请类型',
  27. `auto_approve_lv` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '自动加入的等级',
  28. `auto_approve_power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '自动加入的战力',
  29. `disband_warnning_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '解散警告开始时间',
  30. `week_labor` int(11) NOT NULL DEFAULT '0' COMMENT '周活跃',
  31. `week_labor_refresh` int(11) NOT NULL DEFAULT '0' COMMENT '上次刷新时间',
  32. `week_labor_last` int(11) NOT NULL DEFAULT '0' COMMENT '上周活跃',
  33. `c_rename` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否可以免费改名',
  34. `c_rename_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '改名时间',
  35. PRIMARY KEY (`id`)
  36. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团';
  37. -- 社团申请
  38. -- zmh
  39. CREATE TABLE `guild_apply` (
  40. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  41. `guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '社团id',
  42. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  43. `position` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '申请职位(默认申请加入:0)',
  44. PRIMARY KEY (`role_id`,`guild_id`),
  45. KEY `guild_id` (`guild_id`) USING BTREE
  46. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团申请';
  47. -- 社团成员
  48. -- zmh
  49. CREATE TABLE `guild_member` (
  50. `id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  51. `guild_id` bigint(20) unsigned NOT NULL COMMENT '公会id',
  52. `guild_name` varchar(50) NOT NULL DEFAULT '' COMMENT '公会名字',
  53. `position` tinyint(2) unsigned NOT NULL DEFAULT '2' COMMENT '职位',
  54. `week_labor` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '周活跃',
  55. `week_labor_refresh` int(11) NOT NULL DEFAULT '0' COMMENT '上次刷新时间',
  56. `labors` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '本社历史活跃',
  57. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  58. PRIMARY KEY (`id`),
  59. KEY `guild_id` (`guild_id`)
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团成员';