源战役
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.

166 lines
10 KiB

  1. DROP TABLE IF EXISTS `cross_guild_war_city_info`;
  2. CREATE TABLE `cross_guild_war_city_info` (
  3. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区Id',
  4. `city_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '城池Id',
  5. `server_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏服ServerId',
  6. `server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏服编号(玩家看到的服数)',
  7. `guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮派Id',
  8. `guild_name` varchar(50) NOT NULL DEFAULT '' COMMENT '帮派名称',
  9. `guild_power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '帮派战力',
  10. `chief_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮主Id',
  11. `chief_name` varchar(50) NOT NULL DEFAULT '' COMMENT '帮主名称',
  12. `chief_power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '帮主战力',
  13. PRIMARY KEY (`zone_id`,`city_id`)
  14. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='跨服帮战-城池占领信息(在跨服中使用-保留主跨服的)';
  15. DROP TABLE IF EXISTS `log_cgwar_city_info`;
  16. CREATE TABLE `log_cgwar_city_info` (
  17. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  18. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区Id',
  19. `city_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '城池Id',
  20. `server_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏服ServerId',
  21. `server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏服编号(玩家看到的服数)',
  22. `guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮派Id',
  23. `guild_name` varchar(50) NOT NULL DEFAULT '' COMMENT '帮派名称',
  24. `guild_power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '帮派战力',
  25. `chief_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮主Id',
  26. `chief_name` varchar(50) NOT NULL DEFAULT '' COMMENT '帮主名称',
  27. `chief_power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '帮主战力',
  28. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  29. PRIMARY KEY (`id`)
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='跨服国战往期战报';
  31. DROP TABLE IF EXISTS `cross_guild_war_guild_info`;
  32. CREATE TABLE `cross_guild_war_guild_info` (
  33. `guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮派Id',
  34. `node_name` varchar(100) NOT NULL DEFAULT '' COMMENT '所在节点',
  35. `server_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '游戏服ServerId',
  36. `server_num` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '服务器编号(玩家可见的服编号)',
  37. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区Id',
  38. `guild_name` varchar(100) NOT NULL DEFAULT '' COMMENT '帮派名称',
  39. `guild_power` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮派战力',
  40. `chief_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮主Id',
  41. `chief_name` varchar(50) NOT NULL DEFAULT '' COMMENT '帮主名称',
  42. `chief_power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '帮主战力',
  43. `sign_ups` varchar(6000) NOT NULL DEFAULT '[]' COMMENT '报名列表',
  44. `help_ups` varchar(6000) NOT NULL DEFAULT '[]' COMMENT '外援列表',
  45. `supports` text NOT NULL COMMENT '支援列表',
  46. `support_num` int(11) NOT NULL DEFAULT '0' COMMENT '支援人数',
  47. PRIMARY KEY (`guild_id`)
  48. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='跨服帮战-参战(报名)帮派信息(在跨服中使用-保留主跨服的)';
  49. DROP TABLE IF EXISTS `log_cross_guild_war`;
  50. CREATE TABLE `log_cross_guild_war` (
  51. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
  52. `zone` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  53. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  54. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  55. `guild` bigint(11) unsigned NOT NULL DEFAULT '0' COMMENT '社团',
  56. `stage` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '跨服阶段',
  57. `power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '战力',
  58. `filed` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '城区',
  59. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  60. PRIMARY KEY (`id`),
  61. KEY `role_id` (`role_id`),
  62. KEY `guild` (`guild`)
  63. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='跨服国战参与日志';
  64. DROP TABLE IF EXISTS `log_cross_guild_war_conquer`;
  65. CREATE TABLE `log_cross_guild_war_conquer` (
  66. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
  67. `zone` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  68. `server_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器ID(后台唯一服号)',
  69. `server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
  70. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  71. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  72. `guild` bigint(11) unsigned NOT NULL DEFAULT '0' COMMENT '社团',
  73. `is_lord` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否团长',
  74. `city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '城区',
  75. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  76. PRIMARY KEY (`id`),
  77. KEY `role_id` (`role_id`),
  78. KEY `zone` (`zone`),
  79. KEY `guild` (`guild`)
  80. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='跨服国战占领日志';
  81. CREATE TABLE `role_legion`(
  82. `rid` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
  83. `post` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '军衔',
  84. `score` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '积分积累',
  85. `rank_score` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排名积分',
  86. `arms` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '军备值',
  87. `process` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '进度值',
  88. `dot` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '领取点',
  89. `click_role` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '已膜拜',
  90. `day_award` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '每日领取态',
  91. `tasks` varchar(2000) NOT NULL DEFAULT '[]' COMMENT '任务',
  92. `ltime` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '上次更新时间',
  93. PRIMARY KEY(`rid`)
  94. )ENGINE=InnoDb CHARSET=utf8 COMMENT="玩家战团数据";
  95. -- 当期榜单数据
  96. CREATE TABLE `legion_rank_now`(
  97. `rid` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
  98. `name` varchar(200) NOT NULL DEFAULT '[]' COMMENT '玩家名',
  99. `zone` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  100. `fact` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阵营',
  101. `server_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器ID(后台唯一服号)',
  102. `server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
  103. `sex` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '性别',
  104. `career` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '职业',
  105. `turn` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '转生',
  106. `vip` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'vip',
  107. `sup_vip` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'svip',
  108. `picture` varchar(100) NOT NULL DEFAULT '' COMMENT '玩家上传的头像url',
  109. `picture_ver` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家上传的头像版本号',
  110. `gname` varchar(200) NOT NULL DEFAULT '[]' COMMENT '社团名',
  111. `score` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '积分',
  112. `rank` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排名',
  113. `time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  114. PRIMARY KEY(`rid`)
  115. )ENGINE=InnoDb CHARSET=utf8 COMMENT="当期榜单数据";
  116. -- 昨天榜单数据
  117. CREATE TABLE `legion_rank_last`(
  118. `rid` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
  119. `name` varchar(200) NOT NULL DEFAULT '[]' COMMENT '玩家名',
  120. `zone` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  121. `fact` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阵营',
  122. `server_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器ID(后台唯一服号)',
  123. `server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
  124. `sex` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '性别',
  125. `career` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '职业',
  126. `turn` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '转生',
  127. `vip` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'vip',
  128. `sup_vip` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'svip',
  129. `picture` varchar(100) NOT NULL DEFAULT '' COMMENT '玩家上传的头像url',
  130. `picture_ver` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家上传的头像版本号',
  131. `gname` varchar(200) NOT NULL DEFAULT '[]' COMMENT '社团名',
  132. `score` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '积分',
  133. `rank` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排名',
  134. `time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  135. PRIMARY KEY(`rid`)
  136. )ENGINE=InnoDb CHARSET=utf8 COMMENT="昨天榜单数据";
  137. -- 上周榜单数据
  138. CREATE TABLE `legion_rank_week`(
  139. `rid` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
  140. `name` varchar(200) NOT NULL DEFAULT '[]' COMMENT '玩家名',
  141. `zone` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  142. `fact` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阵营',
  143. `server_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器ID(后台唯一服号)',
  144. `server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
  145. `sex` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '性别',
  146. `career` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '职业',
  147. `turn` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '转生',
  148. `vip` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'vip',
  149. `sup_vip` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'svip',
  150. `picture` varchar(100) NOT NULL DEFAULT '' COMMENT '玩家上传的头像url',
  151. `picture_ver` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家上传的头像版本号',
  152. `gname` varchar(200) NOT NULL DEFAULT '[]' COMMENT '社团名',
  153. `score` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '积分',
  154. `rank` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排名',
  155. `time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  156. PRIMARY KEY(`rid`)
  157. )ENGINE=InnoDb CHARSET=utf8 COMMENT="上期榜单数据";