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

61 lines
3.0 KiB

  1. -- 2020-08-20
  2. -- tyl 修改快速充值日志表
  3. DROP TABLE IF EXISTS `log_quickcharge`;
  4. CREATE TABLE `log_quickcharge` (
  5. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  6. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  7. `product_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商品Id',
  8. `gold` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '金币数',
  9. `money_gap` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '充值前金币差额',
  10. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '充值时间',
  11. PRIMARY KEY (`id`)
  12. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='快速充值日志';
  13. -- hh
  14. -- 单笔充值辅助数据
  15. CREATE TABLE `role_single_charge`(
  16. `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
  17. `subtype` int(11) UNSIGNED NOT NULL COMMENT '活动子类型',
  18. `grade_id` smallint(5) UNSIGNED NOT NULL COMMENT '档次id',
  19. `receive_count` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '已领取次数',
  20. `total_count` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '档次总次数',
  21. `time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
  22. PRIMARY KEY(`role_id`, `subtype`, `grade_id`),
  23. INDEX(`subtype`)
  24. )ENGINE=InnoDB CHARSET=utf8 COMMENT="人物单笔充值辅助数据";
  25. -- zmh
  26. -- 进阶皮肤升级
  27. CREATE TABLE `log_foster_skin_upgrade` (
  28. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
  29. `rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色id',
  30. `name` varchar(100) NOT NULL COMMENT '角色名',
  31. `type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '系统类型',
  32. `opty` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型',
  33. `skinid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '珍宝ID',
  34. `bef_star` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '前星级',
  35. `aft_star` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '后星级',
  36. `costs` varchar(500) NOT NULL DEFAULT '[]' COMMENT '花费',
  37. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  38. PRIMARY KEY (`id`)
  39. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='进阶皮肤升级日志';
  40. -- huanyongxing
  41. CREATE TABLE `role_treasure_house` (
  42. `id` bigint(20) NOT NULL COMMENT '角色id',
  43. `period` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '期数(数据归属)',
  44. `round` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '当前轮次(真实,前端显示的是转换后数据)',
  45. `count` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '当前轮次抽奖次数',
  46. `recv_round` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '未领完奖励的轮次(真实,前端显示的是转换后数据)',
  47. `data` varchar(600) NOT NULL DEFAULT '[]' COMMENT '当前在领轮次已领取的奖励次数档次+角色任务数据',
  48. `time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '数据时间',
  49. PRIMARY KEY (`id`)
  50. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色珍宝阁数据';
  51. ALTER TABLE `log_foster_equip`
  52. ADD COLUMN `grade` int(11) NOT NULL DEFAULT 0 COMMENT '阶位' AFTER `type`;