源战役
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

431 linhas
24 KiB

1 mês atrás
  1. -- liushl
  2. CREATE TABLE `log_mate_rela` (
  3. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  4. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  5. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  6. `other_rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '对方角色ID',
  7. `other_rname` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  8. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型##(1.建立羁绊,2强制解除,3协议解除)',
  9. `cost` varchar(100) NOT NULL DEFAULT '[]' COMMENT '消耗',
  10. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  11. PRIMARY KEY (`id`),
  12. KEY role_id(`role_id`),
  13. KEY other_rid(`other_rid`),
  14. KEY time(`time`)
  15. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='羁绊-关系';
  16. CREATE TABLE `log_mate_anniversary` (
  17. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  18. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  19. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  20. `other_rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '对方角色ID',
  21. `other_rname` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  22. `award` varchar(100) NOT NULL DEFAULT '[]' COMMENT '获取的奖励',
  23. `need_day` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '需求天数',
  24. `own_day` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '羁绊建立天数',
  25. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  26. PRIMARY KEY (`id`),
  27. KEY role_id(`role_id`),
  28. KEY other_rid(`other_rid`),
  29. KEY time(`time`)
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='羁绊-纪念日奖励';
  31. CREATE TABLE `log_mate_boat` (
  32. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  33. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  34. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  35. `grade` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '阶位',
  36. `star` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '星级',
  37. `exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '成长值',
  38. `costs` varchar(100) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
  39. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  40. PRIMARY KEY (`id`),
  41. KEY role_id(`role_id`),
  42. KEY time(`time`)
  43. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='羁绊-小船升级';
  44. CREATE TABLE `log_compose_evolution` (
  45. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  46. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  47. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  48. `role_lv` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '角色等级',
  49. `classify_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '合成分类',
  50. `subclass` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '合成子类',
  51. `goods_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '合成物品',
  52. `cost_list` varchar(100) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
  53. `auto_buy` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否自动购买##(1是;2否)',
  54. `result` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '结果##(1成功;2失败)',
  55. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  56. PRIMARY KEY (`id`),
  57. KEY role_id(`role_id`),
  58. KEY time(`time`)
  59. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='合成日志';
  60. CREATE TABLE `log_sign_in` (
  61. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  62. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  63. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  64. `role_lv` smallint(2) unsigned NOT NULL DEFAULT '0' COMMENT '角色等级',
  65. `round` smallint(11) unsigned NOT NULL DEFAULT '0' COMMENT '周期',
  66. `day` smallint(11) unsigned NOT NULL DEFAULT '0' COMMENT '第几天',
  67. `award` varchar(100) NOT NULL DEFAULT '[]' COMMENT '奖励',
  68. `vip_lv` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT 'VIP等级要求',
  69. `role_vip` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '角色VIP等级',
  70. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  71. PRIMARY KEY (`id`),
  72. KEY role_id(`role_id`),
  73. KEY time(`time`)
  74. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='签到奖励日志';
  75. CREATE TABLE `log_level_award` (
  76. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  77. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  78. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  79. `role_lv` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '角色等级',
  80. `role_career` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '角色职业',
  81. `gift_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '礼包id',
  82. `lv_need` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '等级要求',
  83. `award` varchar(100) NOT NULL DEFAULT '[]' COMMENT '奖励',
  84. `limit_award` varchar(100) NOT NULL DEFAULT '[]' COMMENT '额外奖励获取',
  85. `limit_remain` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '额外奖励剩余',
  86. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  87. PRIMARY KEY (`id`),
  88. KEY role_id(`role_id`),
  89. KEY time(`time`)
  90. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='冲级礼包日志';
  91. CREATE TABLE `log_war_soul_equip` (
  92. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  93. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  94. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  95. `pos` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '上阵位置',
  96. `soul_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上阵前战魂(没有则为0)',
  97. `soul_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上阵后战魂',
  98. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  99. PRIMARY KEY (`id`),
  100. KEY role_id(`role_id`),
  101. KEY time(`time`)
  102. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='战魂-上阵日志';
  103. CREATE TABLE `log_war_soul_strength` (
  104. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  105. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  106. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  107. `goods_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '物品ID',
  108. `soul_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '被强化的战魂ID',
  109. `cost_exp` varchar(50) NOT NULL DEFAULT '[]' COMMENT '消耗的战魂经验值',
  110. `exp_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消耗前的战魂经验值',
  111. `exp_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消耗后的战魂经验值',
  112. `lv_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '强化后的战魂等级',
  113. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  114. PRIMARY KEY (`id`),
  115. KEY role_id(`role_id`),
  116. KEY time(`time`)
  117. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='战魂-强化日志';
  118. CREATE TABLE `log_war_soul_del` (
  119. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  120. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  121. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  122. `soul_id` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '被分解的战魂ID(列表)',
  123. `gain_exp` varchar(50) NOT NULL DEFAULT '[]' COMMENT '获得的战魂经验值',
  124. `exp_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分解后的战魂经验值',
  125. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  126. PRIMARY KEY (`id`),
  127. KEY role_id(`role_id`),
  128. KEY time(`time`)
  129. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='战魂-分解日志';
  130. CREATE TABLE `log_war_soul_evolution` (
  131. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  132. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  133. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  134. `goods_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '物品ID',
  135. `soul_id` int(11) NOT NULL DEFAULT '0' COMMENT '进化前的战魂id',
  136. `soul_id_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '进化后的战魂id',
  137. `cost` varchar(200) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
  138. `gain_exp` varchar(50) NOT NULL DEFAULT '[]' COMMENT '获得的战魂经验值##(如果消耗了已升级战魂的返还。没有则记为0)',
  139. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  140. PRIMARY KEY (`id`),
  141. KEY role_id(`role_id`),
  142. KEY time(`time`)
  143. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='战魂-进化日志';
  144. CREATE TABLE `log_war_soul_handbook` (
  145. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  146. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  147. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  148. `soul_unlock_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '解锁战魂ID',
  149. `soul_unlock_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '解锁战魂数量',
  150. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  151. PRIMARY KEY (`id`),
  152. KEY role_id(`role_id`),
  153. KEY time(`time`)
  154. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='战魂-图鉴日志';
  155. -- 竞技场
  156. DROP TABLE IF EXISTS log_arena_inspire;
  157. DROP TABLE IF EXISTS log_arena_break_rank;
  158. DROP TABLE IF EXISTS log_arena_season_rank;
  159. DROP TABLE IF EXISTS log_arena_clear;
  160. ALTER TABLE log_arena ADD COLUMN `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称' AFTER role_id;
  161. ALTER TABLE log_arena ADD COLUMN `rival_name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称' AFTER rival_id;
  162. CREATE TABLE `log_arena_daily_reward` (
  163. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  164. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家Id',
  165. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  166. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '奖励类型##(0-每日奖励;1-每日首胜;2-每日五战)',
  167. `rank` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '每日奖励名次',
  168. `reward` varchar(255) NOT NULL DEFAULT '[]' COMMENT '奖励',
  169. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  170. PRIMARY KEY (`id`),
  171. KEY `time` (`time`) USING BTREE,
  172. KEY `role_id` (`role_id`) USING BTREE
  173. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='竞技联赛每日奖励';
  174. CREATE TABLE `log_madness_land_role_reward` (
  175. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  176. `round` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '轮次',
  177. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  178. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  179. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
  180. `role_rank` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '个人排名',
  181. `guild_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '隶属社团id',
  182. `guild_name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '社团名称',
  183. `guild_rank` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '社团排名',
  184. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  185. PRIMARY KEY (`id`),
  186. KEY role_id(`role_id`),
  187. KEY time(`time`)
  188. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='狂战领域-排名奖励(本服)';
  189. CREATE TABLE `log_madness_land_role_reward_kf` (
  190. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  191. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  192. `server_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器ID(后台唯一服号)',
  193. `server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
  194. `kf_stage` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '跨服阶段',
  195. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  196. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  197. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '当前积分',
  198. `rank` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '本服排名',
  199. `guild_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '隶属社团id',
  200. `guild_name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '公会名',
  201. `guild_rank` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '社团排名',
  202. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  203. PRIMARY KEY (`id`),
  204. KEY role_id(`role_id`),
  205. KEY zone_id(`zone_id`),
  206. KEY time(`time`)
  207. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='狂战领域-排名奖励(跨服)';
  208. CREATE TABLE `log_beauty_contest_sign` (
  209. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  210. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  211. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  212. `fashion_power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  213. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  214. PRIMARY KEY (`id`),
  215. KEY role_id(`role_id`),
  216. KEY time(`time`)
  217. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='靓丽大赛-主动报名日志';
  218. CREATE TABLE `log_beauty_contest_vote` (
  219. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  220. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  221. `kf_stage` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '跨服阶段',
  222. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  223. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  224. `round` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '轮次',
  225. `vote_info` varchar(50) NOT NULL DEFAULT '[]' COMMENT '选手信息##(格式为:[选手1昵称 - 选手2昵称,(票数高者ID)])',
  226. `support_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '对方ID (所支持选手ID)',
  227. `support_name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '对方名称',
  228. `support_votes` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '对方当前票数',
  229. `rest_times` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '投票剩余次数',
  230. `is_extra` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否投票给高票数者',
  231. `award_list` varchar(50) NOT NULL DEFAULT '[]' COMMENT '奖励列表',
  232. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  233. PRIMARY KEY (`id`),
  234. KEY role_id(`role_id`),
  235. KEY zone_id(`zone_id`),
  236. KEY time(`time`)
  237. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='靓丽大赛-投票日志';
  238. CREATE TABLE `log_beauty_contest_rank` (
  239. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  240. `phase` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '期数',
  241. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  242. `server_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器ID(后台唯一服号)',
  243. `server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
  244. `kf_stage` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '跨服阶段',
  245. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  246. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  247. `round` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '止步轮次',
  248. `rank` varchar(50) NOT NULL DEFAULT '[]' COMMENT '排名',
  249. `votes` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '结算票数',
  250. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  251. PRIMARY KEY (`id`),
  252. KEY role_id(`role_id`),
  253. KEY time(`time`)
  254. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='靓丽大赛-排名日志';
  255. CREATE TABLE `log_convoy_result` (
  256. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  257. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  258. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  259. `object` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '运送对象',
  260. `start_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
  261. `end_stage` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '结束时的阶段##(1-第一阶段;2-第二阶段)',
  262. `end_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '结算类型',
  263. `if_double` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否双倍(1-否;2-是)',
  264. `goods_list` varchar(50) NOT NULL DEFAULT '[]' COMMENT '奖励列表',
  265. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  266. PRIMARY KEY (`id`),
  267. KEY role_id(`role_id`),
  268. KEY time(`time`)
  269. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='护送结果';
  270. CREATE TABLE `log_convoy_refresh` (
  271. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  272. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  273. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  274. `old_object` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '旧运送对象',
  275. `new_object` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '新运送对象',
  276. `cost_list` varchar(50) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
  277. `vip_lv` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '玩家VIP等级',
  278. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  279. PRIMARY KEY (`id`),
  280. KEY role_id(`role_id`),
  281. KEY time(`time`)
  282. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='护送刷新表';
  283. CREATE TABLE `log_convoy_take` (
  284. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  285. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  286. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  287. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '类型(1打劫|2被劫)',
  288. `object` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '运送对象',
  289. `taken_server` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '对方服务器',
  290. `taken_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '对方id',
  291. `taken_name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '对方名称',
  292. `award` varchar(50) NOT NULL DEFAULT '[]' COMMENT '打劫奖励',
  293. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  294. PRIMARY KEY (`id`),
  295. KEY role_id(`role_id`),
  296. KEY taken_id(`taken_id`),
  297. KEY time(`time`)
  298. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='护送拦截';
  299. CREATE TABLE `log_offline_hosting_change` (
  300. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  301. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  302. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  303. `ai_before` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '前托管值',
  304. `ai_after` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '后托管值',
  305. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  306. PRIMARY KEY (`id`),
  307. KEY role_id(`role_id`),
  308. KEY time(`time`)
  309. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='托管值结算日志';
  310. -- 修改百团大战个人日志
  311. ALTER TABLE log_guild_war_role_rank ADD COLUMN `kill_rank` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '击杀排名' AFTER score;
  312. ALTER TABLE log_guild_war_role_rank ADD COLUMN `max_kill` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '击杀数' AFTER kill_rank;
  313. CREATE TABLE `log_player_attr` (
  314. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  315. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  316. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  317. `hightest_combat_power` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '最高战力',
  318. `level` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '等级',
  319. `activity` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '活跃度',
  320. `gold` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存彩钻',
  321. `bgold` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存红钻',
  322. `trade` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存交易券',
  323. `fame` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存名望券',
  324. `total_money` decimal(12,2) DEFAULT '0.00' COMMENT '总充值金额',
  325. `total_gold` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '总充值元宝',
  326. `recency` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '最近充值指标',
  327. `frequency` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '充值频率指标',
  328. `monetary` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '总充值指标',
  329. `top` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '最高充值指标',
  330. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  331. PRIMARY KEY (`id`),
  332. KEY role_id(`role_id`),
  333. KEY time(`time`)
  334. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='玩家每日属性记录';
  335. -- 首充
  336. ALTER TABLE log_recharge_first ADD COLUMN `level` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '等级' AFTER last_behavior;
  337. ALTER TABLE log_recharge_first ADD COLUMN `online_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '累计在线时长' AFTER level;
  338. CREATE TABLE `log_investment` (
  339. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
  340. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家id',
  341. `name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
  342. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '投资类型',
  343. `grade` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '投资档次',
  344. `award_id` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '奖励ID',
  345. `award_list` varchar(100) NOT NULL DEFAULT '[]' COMMENT '奖励列表',
  346. `award_condition` varchar(50) NOT NULL DEFAULT '[]' COMMENT '领取条件',
  347. `level` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '玩家等级',
  348. `vip` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT 'vip等级',
  349. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  350. PRIMARY KEY (`id`),
  351. KEY role_id(`role_id`),
  352. KEY time(`time`)
  353. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='投资领奖日志';
  354. ALTER TABLE log_custom_act_reward ADD COLUMN `vip` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT 'VIP' AFTER extra;
  355. ALTER TABLE log_custom_act_reward ADD COLUMN `lv` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '等级' AFTER vip;
  356. ALTER TABLE log_custom_act_reward ADD COLUMN `gold_before` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '领奖前彩钻' AFTER lv;
  357. ALTER TABLE log_custom_act_reward ADD COLUMN `gold_after` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '领奖后彩钻' AFTER gold_before;
  358. -- 无尽领域日志
  359. DROP TABLE IF EXISTS log_void_fam;
  360. CREATE TABLE `log_void_fam` (
  361. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
  362. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  363. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  364. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  365. `kf_stage` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '跨服阶段',
  366. `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型 进入/退出',
  367. `floor` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '进入层数',
  368. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '进入积分',
  369. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  370. PRIMARY KEY (`id`)
  371. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='无尽领域日志';
  372. CREATE TABLE `log_void_fam_rank` (
  373. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
  374. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  375. `kf_stage` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '跨服阶段',
  376. `ser_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器ID(后台唯一服号)',
  377. `ser_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
  378. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  379. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  380. `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型 进入/退出',
  381. `floor` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '进入层数',
  382. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
  383. `rank` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '排名',
  384. `awards` varchar(200) NOT NULL DEFAULT '[]' COMMENT '奖励',
  385. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  386. PRIMARY KEY (`id`)
  387. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='无尽排名日志';
  388. CREATE TABLE `log_void_fam_rank_kf` (
  389. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
  390. `zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区ID',
  391. `kf_stage` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '跨服阶段',
  392. `ser_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器ID(后台唯一服号)',
  393. `ser_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
  394. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
  395. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  396. `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型 进入/退出',
  397. `floor` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '进入层数',
  398. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
  399. `rank` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '排名',
  400. `awards` varchar(200) NOT NULL DEFAULT '[]' COMMENT '奖励',
  401. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  402. PRIMARY KEY (`id`)
  403. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='无尽跨服排名日志';