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

62 lines
3.3 KiB

  1. -- hh
  2. -- 走格子
  3. CREATE TABLE `role_lattice`(
  4. `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
  5. `pos` tinyint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '位置',
  6. `circle` tinyint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '轮次',
  7. `update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  8. `circle_reward` varchar(1000) NOT NULL DEFAULT '[]' COMMENT '轮次奖励',
  9. PRIMARY KEY(`role_id`)
  10. ) ENGINE=InnoDB CHARSET=utf8 COMMENT="器灵寻宝-玩家走格子数据";
  11. CREATE TABLE `role_lattice_shop`(
  12. `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
  13. `shop_count` tinyint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '手动刷新次数',
  14. `shop_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近操作时间',
  15. `shop_info` varchar(255) NOT NULL DEFAULT '[]' COMMENT '商店信息',
  16. PRIMARY KEY(`role_id`)
  17. ) ENGINE=InnoDB CHARSET=utf8 COMMENT="器灵寻宝-玩家格子商店数据";
  18. CREATE TABLE `log_lattice`(
  19. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
  20. `role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
  21. `circle` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '轮次',
  22. `pre_step` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '旧步数',
  23. `pass_step` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '本次行步',
  24. `cost` varchar(255) NOT NULL DEFAULT '[]' COMMENT '消耗',
  25. `rewards` varchar(255) NOT NULL DEFAULT '[]' COMMENT '奖励',
  26. `time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
  27. PRIMARY KEY(`id`)
  28. ) ENGINE=InnoDB CHARSET=utf8 COMMENT="器灵寻宝-走格子日志";
  29. -- 龙神扭蛋 tyl
  30. CREATE TABLE IF NOT EXISTS `capsule_egg_data` (
  31. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  32. `pool_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖池类型',
  33. `next_free_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '下次免费时间',
  34. `draw_times` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖次数',
  35. PRIMARY KEY (`role_id`,`pool_type`)
  36. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='龙神扭蛋-玩家抽奖数据表';
  37. CREATE TABLE IF NOT EXISTS `capsule_egg_draw_log` (
  38. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  39. `pool_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖池类型',
  40. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  41. `reward_cfg_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '奖励配置Id',
  42. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖时间',
  43. PRIMARY KEY (`id`)
  44. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='龙神扭蛋-抽奖记录';
  45. CREATE TABLE IF NOT EXISTS `capsule_egg_person_score` (
  46. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  47. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖总积分',
  48. PRIMARY KEY (`role_id`)
  49. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='龙神扭蛋-个人抽奖积分';
  50. CREATE TABLE IF NOT EXISTS `capsule_egg_server_score` (
  51. `pool_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖池类型',
  52. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖幸运值(全服积分)',
  53. PRIMARY KEY (`pool_type`)
  54. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='龙神扭蛋-全服幸运值';