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

110 lines
5.9 KiB

  1. -- liushl
  2. DROP TABLE IF EXISTS hi_points_act;
  3. DROP TABLE IF EXISTS hi_points_extra;
  4. DROP TABLE IF EXISTS hi_points_reward;
  5. CREATE TABLE `player_hi_point` (
  6. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  7. `type` smallint(2) unsigned NOT NULL DEFAULT '0' COMMENT '活动类型',
  8. `sub_type` smallint(2) unsigned NOT NULL DEFAULT '0' COMMENT '活动子类型',
  9. `points` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '嗨点值',
  10. `extra_points` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '额外嗨点值',
  11. `task_info` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '任务情况',
  12. `reward_info` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '奖励情况',
  13. `utime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  14. PRIMARY KEY (`role_id`, `type`, `sub_type`)
  15. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='玩家嗨点数据';
  16. -- tyl 重新设置宝宝载具(因修改字段长度)
  17. alter table role_child modify column show_vehicle int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '跟随载具 0-不跟随 其他-具体载具Id';
  18. alter table child_vehicle modify column vehicle_id int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '载具Id';
  19. -- huangyongxing
  20. -- 明日之礼相关日志
  21. -- 2020-12-22
  22. -- 明日之礼购买日志
  23. CREATE TABLE `log_hope_gift_buy` (
  24. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '日志id',
  25. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '角色id',
  26. `subtype` smallint(5) NOT NULL DEFAULT '0' COMMENT '活动子类型',
  27. `grade` smallint(5) NOT NULL DEFAULT '0' COMMENT '奖励档位',
  28. `gold_cost` int(11) NOT NULL DEFAULT '0' COMMENT '消耗彩钻',
  29. `gold_before` int(11) NOT NULL DEFAULT '0' COMMENT '购买前彩钻',
  30. `award_list` varchar(200) NOT NULL COMMENT '奖励列表',
  31. `level` smallint(5) NOT NULL DEFAULT '0' COMMENT '玩家等级',
  32. `vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'VIP等级',
  33. `time` int(11) NOT NULL DEFAULT '0' COMMENT '时间',
  34. PRIMARY KEY (`id`)
  35. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='明日之礼购买日志';
  36. -- 明日之礼返还日志
  37. CREATE TABLE `log_hope_gift_return` (
  38. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '日志id',
  39. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '角色id',
  40. `subtype` smallint(5) NOT NULL DEFAULT '0' COMMENT '活动子类型',
  41. `grade` smallint(5) NOT NULL DEFAULT '0' COMMENT '奖励档位',
  42. `award_list` varchar(200) NOT NULL COMMENT '奖励列表',
  43. `return_amount` int(11) NOT NULL DEFAULT '0' COMMENT '已返还数量',
  44. `return_left` int(11) NOT NULL DEFAULT '0' COMMENT '待返还数量',
  45. `time` int(11) NOT NULL DEFAULT '0' COMMENT '时间',
  46. PRIMARY KEY (`id`)
  47. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='明日之礼返还日志';
  48. -- 明日之礼抽奖日志
  49. CREATE TABLE `log_hope_gift_draw` (
  50. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '日志id',
  51. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '角色id',
  52. `subtype` smallint(5) NOT NULL DEFAULT '0' COMMENT '活动子类型',
  53. `award_list` varchar(200) NOT NULL COMMENT '奖励列表',
  54. `round` smallint(5) NOT NULL DEFAULT '0' COMMENT '当前轮次',
  55. `cost` smallint(5) NOT NULL DEFAULT '0' COMMENT '消耗抽奖道具数量',
  56. `item_before` int(11) NOT NULL DEFAULT '0' COMMENT '抽奖前抽奖道具数量',
  57. `time` int(11) NOT NULL DEFAULT '0' COMMENT '时间',
  58. PRIMARY KEY (`id`)
  59. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='明日之礼抽奖日志';
  60. -- 团购相关日志
  61. -- 团购购买日志
  62. CREATE TABLE `log_group_buy` (
  63. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '日志id',
  64. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '角色id',
  65. `subtype` smallint(5) NOT NULL DEFAULT '0' COMMENT '活动子类型',
  66. `grade` smallint(5) NOT NULL DEFAULT '0' COMMENT '奖励档位',
  67. `gold_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '货币类型',
  68. `gold_cost` int(11) NOT NULL DEFAULT '0' COMMENT '消耗货币数量',
  69. `gold_bef` int(11) NOT NULL DEFAULT '0' COMMENT '购买前彩钻',
  70. `bgold_bef` int(11) NOT NULL DEFAULT '0' COMMENT '购买前红钻',
  71. `award_list` varchar(200) NOT NULL COMMENT '奖励列表',
  72. `discount` tinyint(5) NOT NULL DEFAULT '10' COMMENT '购买时折扣',
  73. `buyer_count` smallint(5) NOT NULL DEFAULT '0' COMMENT '真实购买人数',
  74. `fix_buyer_count` smallint(5) NOT NULL DEFAULT '0' COMMENT '虚拟购买人数',
  75. `stage` tinyint(5) NOT NULL DEFAULT '0' COMMENT '购买时进度阶段',
  76. `stage_no_fix` tinyint(5) NOT NULL DEFAULT '0' COMMENT '购买时如果按真实人数计算的阶段',
  77. `stage_total` tinyint(5) NOT NULL DEFAULT '0' COMMENT '总进度阶段数',
  78. `vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'VIP等级',
  79. `time` int(11) NOT NULL DEFAULT '0' COMMENT '时间',
  80. PRIMARY KEY (`id`)
  81. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='团购购买日志';
  82. -- 团购返还日志
  83. CREATE TABLE `log_group_buy_return` (
  84. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '日志id',
  85. `role_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '角色id',
  86. `subtype` smallint(5) NOT NULL DEFAULT '0' COMMENT '活动子类型',
  87. `grade` smallint(5) NOT NULL DEFAULT '0' COMMENT '奖励档位',
  88. `gold_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '货币类型',
  89. `gold_num` int(11) NOT NULL DEFAULT '0' COMMENT '领取货币数量',
  90. `discount` tinyint(5) NOT NULL DEFAULT '10' COMMENT '返还时折扣',
  91. `is_mail` tinyint(3) NOT NULL DEFAULT '0' COMMENT '是否通过邮件补发(0手动 1活动结束邮件发放)',
  92. `time` int(11) NOT NULL DEFAULT '0' COMMENT '时间',
  93. PRIMARY KEY (`id`)
  94. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='团购返还日志';
  95. -- 补充日志表时间索引
  96. ALTER TABLE log_hope_gift_buy ADD KEY `time` (`time`) USING BTREE;
  97. ALTER TABLE log_hope_gift_draw ADD KEY `time` (`time`) USING BTREE;
  98. ALTER TABLE log_hope_gift_return ADD KEY `time` (`time`) USING BTREE;
  99. ALTER TABLE log_group_buy ADD KEY `time` (`time`) USING BTREE;
  100. ALTER TABLE log_group_buy_return ADD KEY `time` (`time`) USING BTREE;