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

214 lines
12 KiB

преди 1 месец
  1. -- tyl 功能预告日志
  2. CREATE TABLE `log_advance_produce` (
  3. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  4. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  5. `role_lv` int(11) unsigned NOT NULL COMMENT '角色等级',
  6. `func_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '功能Id',
  7. `name` varchar(255) NOT NULL DEFAULT '' COMMENT '功能名称',
  8. `con_desc` varchar(255) NOT NULL DEFAULT '' COMMENT '条件描述',
  9. `reward` varchar(255) NOT NULL DEFAULT '' COMMENT '奖励',
  10. `days` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '开服天数',
  11. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  12. PRIMARY KEY (`id`),
  13. KEY `role_id` (`role_id`) USING BTREE,
  14. KEY `func_id` (`func_id`) USING BTREE,
  15. KEY `name` (`name`) USING BTREE,
  16. KEY `time` (`time`) USING BTREE
  17. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='功能预告产出日志';
  18. -- 龙神扭蛋日志
  19. CREATE TABLE `log_capsule_egg_award_times` (
  20. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  21. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  22. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  23. `pool_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '奖池类型',
  24. `times` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '当前累计抽奖次数',
  25. `times_need` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '奖励次数要求',
  26. `award` varchar(255) NOT NULL DEFAULT '[]' COMMENT '奖励',
  27. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  28. PRIMARY KEY (`id`),
  29. KEY `role_id` (`role_id`) USING BTREE,
  30. KEY `pool_type` (`pool_type`) USING BTREE,
  31. KEY `time` (`time`) USING BTREE
  32. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='扭蛋宝库累计次数奖励日志表';
  33. CREATE TABLE `log_capsule_egg_draw` (
  34. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  35. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  36. `pool_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '奖池类型',
  37. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖类型 1单抽 2十连 3五十连',
  38. `award` varchar(1000) NOT NULL DEFAULT '[]' COMMENT '奖励',
  39. `color_max` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '最高奖励档位',
  40. `absolute` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '必出档位 1有 0无',
  41. `cost` varchar(255) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
  42. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  43. PRIMARY KEY (`id`),
  44. KEY `role_id` (`role_id`) USING BTREE,
  45. KEY `pool_type` (`pool_type`) USING BTREE,
  46. KEY `type` (`type`) USING BTREE,
  47. KEY `color_max` (`color_max`) USING BTREE,
  48. KEY `time` (`time`) USING BTREE
  49. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='扭蛋宝库抽奖日志表';
  50. -- 精英考核日志
  51. CREATE TABLE `log_elite_assess_award` (
  52. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  53. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  54. `role_lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '角色等级',
  55. `category` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '章节',
  56. `sub_category` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '子章节',
  57. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型 1-领取任务奖励 2-领取章节奖励',
  58. `reward_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '奖励对应Id',
  59. `reward_desc` varchar(255) NOT NULL DEFAULT '' COMMENT '奖励对应名称',
  60. `reward` varchar(255) NOT NULL DEFAULT '[]' COMMENT '奖励',
  61. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  62. PRIMARY KEY (`id`),
  63. KEY `role_id` (`role_id`) USING BTREE,
  64. KEY `category` (`category`) USING BTREE,
  65. KEY `type` (`type`) USING BTREE,
  66. KEY `reward_id` (`reward_id`) USING BTREE,
  67. KEY `time` (`time`) USING BTREE
  68. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='精英考核奖励日志';
  69. CREATE TABLE `log_elite_assess_task` (
  70. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  71. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  72. `role_lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '角色等级',
  73. `category` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '章节',
  74. `sub_category` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '子章节',
  75. `task_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '任务Id',
  76. `task_desc` varchar(255) NOT NULL DEFAULT '' COMMENT '任务描述',
  77. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  78. PRIMARY KEY (`id`),
  79. KEY `role_id` (`role_id`) USING BTREE,
  80. KEY `category` (`category`) USING BTREE,
  81. KEY `task_id` (`task_id`) USING BTREE,
  82. KEY `time` (`time`) USING BTREE
  83. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='精英考核任务日志';
  84. -- 灵能升级日志
  85. CREATE TABLE `log_nucleon_lv` (
  86. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  87. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  88. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  89. `old_lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '旧等级',
  90. `new_lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '新等级',
  91. `task` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '任务',
  92. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  93. PRIMARY KEY (`id`)
  94. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='灵能升级日志';
  95. -- 灵能装备穿戴日志
  96. CREATE TABLE `log_nucleon_equip` (
  97. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  98. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  99. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  100. `opty` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型0穿1脱',
  101. `slot` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '槽位',
  102. `old_item` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '旧道具',
  103. `new_item` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '新道具',
  104. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  105. PRIMARY KEY (`id`)
  106. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='灵能装备穿戴日志';
  107. ALTER TABLE `log_nucleon_equip_upgrade`
  108. MODIFY COLUMN `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '[]' COMMENT '名称' AFTER `role_id`,
  109. ADD COLUMN `auto_buy` tinyint(2) NOT NULL DEFAULT 0 COMMENT '是否自动购买0否' AFTER `opty`;
  110. ALTER TABLE `log_nucleon_hunt`
  111. MODIFY COLUMN `opty` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '奖池类型1普通2高级' AFTER `name`,
  112. MODIFY COLUMN `num` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1单抽2十连' AFTER `opty`;
  113. ALTER TABLE `log_nucleon_hunt`
  114. ADD COLUMN `is_free` tinyint(2) NOT NULL DEFAULT 0 COMMENT '是否免费' AFTER `num`;
  115. -- 灵能兑换日志
  116. CREATE TABLE `log_nucleon_exchange` (
  117. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  118. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  119. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  120. `gain` varchar(200) NOT NULL DEFAULT '[]' COMMENT '奖励',
  121. `cost` varchar(255) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
  122. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  123. PRIMARY KEY (`id`)
  124. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='灵能兑换日志';
  125. CREATE TABLE `log_rank`(
  126. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '编号',
  127. `role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
  128. `nick_name` varchar(256) NOT NULL DEFAULT "" COMMENT '玩家名称',
  129. `career` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家职业',
  130. `rank_type` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排行榜类型',
  131. `rank` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排名',
  132. `value` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排名值',
  133. `time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
  134. PRIMARY KEY(`id`),
  135. KEY `rank_type` (`rank_type`) USING BTREE,
  136. KEY `career` (`career`) USING BTREE,
  137. KEY `time` (`time`) USING BTREE
  138. )ENGINE=InnoDB CHARSET=utf8 COMMENT="个人排行榜日志";
  139. CREATE TABLE `log_cross_rank`(
  140. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '序号',
  141. `role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
  142. `nick_name` varchar(256) NOT NULL DEFAULT "" COMMENT '玩家名称',
  143. `rank_type` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排行榜类型',
  144. `rank` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排名',
  145. `value` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排名值',
  146. `time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
  147. `server_num` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '服务器编号',
  148. `server_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '服务器id',
  149. `zone_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '区编号',
  150. PRIMARY KEY(`id`),
  151. KEY `rank_type` (`rank_type`) USING BTREE,
  152. KEY `time` (`time`) USING BTREE
  153. )ENGINE=InnoDB CHARSET=utf8 COMMENT="跨服个人排行榜日志";
  154. ALTER TABLE `log_god_operate`
  155. ADD COLUMN `old_star` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作前星数' AFTER `op_type`;
  156. ALTER TABLE `log_god_operate`
  157. ADD COLUMN `old_lv` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作前等级' AFTER `star`;
  158. ALTER TABLE `log_god_operate`
  159. ADD COLUMN `name` varchar(500) NOT NULL DEFAULT "" COMMENT '玩家名称' AFTER `role_id`;
  160. ALTER TABLE `log_god_equip_upgrade`
  161. ADD COLUMN `old_lv` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作前等级' AFTER `god_id`;
  162. ALTER TABLE `log_god_equip_upgrade`
  163. ADD COLUMN `old_exp` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作前经验' AFTER `lv`;
  164. ALTER TABLE `log_god_equip_upgrade`
  165. ADD COLUMN `slot` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '装备位置' AFTER `god_id`;
  166. ALTER TABLE `log_god_equip_upgrade`
  167. ADD COLUMN `type` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '装备类型' AFTER `slot`;
  168. -- 放置经验日志
  169. CREATE TABLE `log_onhook_result`(
  170. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '序号',
  171. `role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
  172. `start_lv` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '领奖前等级',
  173. `after_lv` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '领奖后等级',
  174. `exp` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家获得经验',
  175. `cost_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '消耗挂机时长(s)',
  176. `rewards` varchar(800) NOT NULL DEFAULT '[]' COMMENT '奖励列表',
  177. `time` int(11) NOT NULL DEFAULT 0 COMMENT '操作时间',
  178. PRIMARY KEY(`id`)
  179. )ENGINE=InnoDB CHARSET=utf8 COMMENT="放置冒险日志";
  180. -- 快速放置冒险日志
  181. CREATE TABLE `log_onhook_fast`(
  182. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '序号',
  183. `role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
  184. `vip_lv` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'VIP等级',
  185. `type` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作类型',
  186. `times` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日领取次数',
  187. `rest_times` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '领取剩余次数',
  188. `pre_gold` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '购买前彩钻数',
  189. `after_gold` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '购买后彩钻数',
  190. `cost` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '消耗彩钻数',
  191. `exp` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家获得经验',
  192. `rewards` varchar(800) NOT NULL DEFAULT '[]' COMMENT '奖励列表',
  193. `time` int(11) NOT NULL DEFAULT 0 COMMENT '操作时间',
  194. PRIMARY KEY(`id`)
  195. )ENGINE=InnoDB CHARSET=utf8 COMMENT="快速放置冒险日志";