Browse Source

ft: 初始提交

master
SisMaker 4 weeks ago
parent
commit
819ee8be63
1708 changed files with 1857753 additions and 0 deletions
  1. +29
    -0
      .gitignore
  2. +72
    -0
      Emakefile
  3. +42
    -0
      config/cls.config.sample
  4. +42
    -0
      config/gsrv.config.sample
  5. +34
    -0
      config/main.app
  6. +5
    -0
      db/19-10/19-10-10.sql
  7. +26
    -0
      db/19-10/19-10-12.sql
  8. +24
    -0
      db/19-10/19-10-15.sql
  9. +5
    -0
      db/19-10/19-10-26.sql
  10. +22
    -0
      db/19-10/19-10-28.sql
  11. +14
    -0
      db/19-11/19-11-04.sql
  12. +21
    -0
      db/19-11/19-11-06.sql
  13. +10
    -0
      db/19-11/19-11-07.sql
  14. +2
    -0
      db/19-11/19-11-08.sql
  15. +2
    -0
      db/19-11/19-11-09.sql
  16. +7
    -0
      db/19-11/19-11-13.sql
  17. +34
    -0
      db/19-11/19-11-15.sql
  18. +9
    -0
      db/19-11/19-11-21.sql
  19. +42
    -0
      db/19-12/19-12-02.sql
  20. +14
    -0
      db/19-12/19-12-05.sql
  21. +63
    -0
      db/19-12/19-12-09.sql
  22. +11
    -0
      db/19-12/19-12-10.sql
  23. +9
    -0
      db/19-12/19-12-11.sql
  24. +44
    -0
      db/19-12/19-12-12.sql
  25. +5
    -0
      db/19-12/19-12-13.sql
  26. +28
    -0
      db/19-12/19-12-16.sql
  27. +10
    -0
      db/19-12/19-12-17.sql
  28. +14
    -0
      db/19-12/19-12-19.sql
  29. +15
    -0
      db/19-12/19-12-21.sql
  30. +8
    -0
      db/19-12/19-12-23.sql
  31. +18
    -0
      db/19-12/19-12-24.sql
  32. +4
    -0
      db/19-12/19-12-30.sql
  33. +79
    -0
      db/20-01/20-01-04.sql
  34. +33
    -0
      db/20-01/20-01-06.sql
  35. +5
    -0
      db/20-01/20-01-08.sql
  36. +5
    -0
      db/20-01/20-01-09.sql
  37. +33
    -0
      db/20-01/20-01-13.sql
  38. +8
    -0
      db/20-01/20-01-15.sql
  39. +19
    -0
      db/20-01/20-01-16.sql
  40. +8
    -0
      db/20-01/20-01-17.sql
  41. +23
    -0
      db/20-01/20-01-20.sql
  42. +9
    -0
      db/20-01/20-01-21.sql
  43. +4
    -0
      db/20-02/20-02-12.sql
  44. +4
    -0
      db/20-02/20-02-18.sql
  45. +17
    -0
      db/20-02/20-02-20.sql
  46. +42
    -0
      db/20-02/20-02-21.sql
  47. +66
    -0
      db/20-02/20-02-25.sql
  48. +4
    -0
      db/20-02/20-02-26.sql
  49. +9
    -0
      db/20-02/20-02-27.sql
  50. +43
    -0
      db/20-02/20-02-29.sql
  51. +90
    -0
      db/20-03/20-03-02.sql
  52. +102
    -0
      db/20-03/20-03-03.sql
  53. +33
    -0
      db/20-03/20-03-04.sql
  54. +4
    -0
      db/20-03/20-03-05.sql
  55. +50
    -0
      db/20-03/20-03-06.sql
  56. +16
    -0
      db/20-03/20-03-09.sql
  57. +52
    -0
      db/20-03/20-03-10.sql
  58. +32
    -0
      db/20-03/20-03-11.sql
  59. +29
    -0
      db/20-03/20-03-12.sql
  60. +33
    -0
      db/20-03/20-03-13.sql
  61. +8
    -0
      db/20-03/20-03-14.sql
  62. +4
    -0
      db/20-03/20-03-17.sql
  63. +26
    -0
      db/20-03/20-03-18.sql
  64. +9
    -0
      db/20-03/20-03-20.sql
  65. +11
    -0
      db/20-03/20-03-23.sql
  66. +2
    -0
      db/20-03/20-03-24.sql
  67. +24
    -0
      db/20-03/20-03-25.sql
  68. +16
    -0
      db/20-03/20-03-27.sql
  69. +13
    -0
      db/20-03/20-03-28.sql
  70. +70
    -0
      db/20-03/20-03-30.sql
  71. +4
    -0
      db/20-03/20-03-31.sql
  72. +10
    -0
      db/20-04/20-04-09.sql
  73. +14
    -0
      db/20-04/20-04-11.sql
  74. +4
    -0
      db/20-04/20-04-13.sql
  75. +3
    -0
      db/20-04/20-04-14.sql
  76. +18
    -0
      db/20-04/20-04-18.sql
  77. +16
    -0
      db/20-04/20-04-21.sql
  78. +19
    -0
      db/20-04/20-04-22.sql
  79. +5
    -0
      db/20-04/20-04-28.sql
  80. +7
    -0
      db/20-05/20-05-06.sql
  81. +25
    -0
      db/20-05/20-05-08.sql
  82. +25
    -0
      db/20-05/20-05-14.sql
  83. +11
    -0
      db/20-05/20-05-16.sql
  84. +13
    -0
      db/20-05/20-05-18.sql
  85. +13
    -0
      db/20-05/20-05-19.sql
  86. +120
    -0
      db/20-05/20-05-21.sql
  87. +69
    -0
      db/20-05/20-05-23.sql
  88. +72
    -0
      db/20-05/20-05-25.sql
  89. +5
    -0
      db/20-06/20-06-08.sql
  90. +10
    -0
      db/20-06/20-06-19.sql
  91. +11
    -0
      db/20-06/20-06-23.sql
  92. +9
    -0
      db/20-06/20-06-24.sql
  93. +2
    -0
      db/20-06/20-06-28.sql
  94. +33
    -0
      db/20-06/20-06-29.sql
  95. +62
    -0
      db/20-07/20-07-01.sql
  96. +4
    -0
      db/20-07/20-07-02.sql
  97. +4
    -0
      db/20-07/20-07-06.sql
  98. +3
    -0
      db/20-07/20-07-07.sql
  99. +18
    -0
      db/20-07/20-07-08.sql
  100. +37
    -0
      db/20-07/20-07-09.sql

+ 29
- 0
.gitignore View File

@ -0,0 +1,29 @@
.eunit
*.o
*.beam
*.plt
erl_crash.dump
.concrete/DEV_MODE
# rebar 2.x
.rebar
rel/example_project
ebin/*
deps
# rebar 3
.rebar3
_build/
_checkouts/
rebar.lock
# idea
.idea
*.iml
cmake-build*
CMakeLists.txt
# nif compile temp file
*.pdb
*.d
compile_commands.json

+ 72
- 0
Emakefile View File

@ -0,0 +1,72 @@
%% 先编译外部依赖库再编译项目代码
%% 依赖库
{
[
"dep/*/*"
]
,[
{debug_info_key, "eGJ342io.sdSDln9jAO"}
,encrypt_debug_info
,{i, "dep/include"}
,{outdir, "ebin"}
]
}.
%% 配置文件去debug信息(缩减配置文件的体积)
{
[
"src/data/data_filter.erl"
,"src/data/data_role_name.erl"
,"src/data/create/*"
],
[
{i, "include"}
,{outdir, "ebin"}
,nowarn_export_all
]
}.
%% 配置文件
{
[
"src/data/*"
,"src/data/create/*"
]
,[
{debug_info_key, "eGJ342io.sdSDln9jAO"}
,encrypt_debug_info
,{i, "include"}
,{outdir, "ebin"}
,nowarn_export_all
]
}.
%% src下项目源码
{
[
%% 先编译自定义behaviour
"src/battle_field/lib_battle_field.erl",
"src/cross_zone/cross_zone.erl",
%% 工程源码
"src/*",
"src/*/*",
"src/*/*/*",
%% 测试代码
"test/*/*",
"test/*/*/*",
"test/*/*/*/*"
]
,[
{debug_info_key, "eGJ342io.sdSDln9jAO"}
,encrypt_debug_info
,{i, "include"}
,{outdir, "ebin"}
,nowarn_export_all
,{nowarn_deprecated_function, {erlang, get_stacktrace, 0}}
]
}.

+ 42
- 0
config/cls.config.sample View File

@ -0,0 +1,42 @@
%% auther: xyao
%% email: jiexiaowen@gmail.com
%% date: 2011.06.12
[
{
kernel,
[
{global_groups, [{mrzj_dev_center,['mrzj_dev_center@127.0.0.1']}]}
,{inet_dist_listen_min, 40001}
,{inet_dist_listen_max, 40200}
]
},
{
main,
[
{ticket, "SDFSDESF123DFSDF"},
{db_host, "127.0.0.1"},
{db_port, 3306},
{db_user, "hlxx"},
{db_pass, "hlxx123654"},
{db_name, "mrzj"},
{db_encode, utf8},
{db_connections, 15},
{db_max_connections, 30},
{log_level, error}, % log_level
{log_path, "../logs"}, % log_path
{cls_type, 1},
{cls_cookie, mrzj_dev_center},
{cls_node, 'mrzj_dev_center@127.0.0.1'},
{server_id, 1}, %% 玩家创建号使用的服id
{platform, "dev"}, %% 玩家创建号使用的平台标识
{server_num, 121}, %% 玩家创建号使用的服数标识
{merge_server_ids, [1]} %% 此列表必须包含本服的server_id
]
}
].
%% File end.

+ 42
- 0
config/gsrv.config.sample View File

@ -0,0 +1,42 @@
%% auther: xyao
%% email: jiexiaowen@gmail.com
%% date: 2011.06.12
[
{
kernel,
[
{global_groups, []}
,{inet_dist_listen_min, 40001}
,{inet_dist_listen_max, 40200}
]
},
{
main,
[
{ticket, "SDFSDESF123DFSDF"},
{db_host, "127.0.0.1"},
{db_port, 3306},
{db_user, "root"},
{db_pass, "123654"},
{db_name, "mrzj"},
{db_encode, utf8},
{db_connections, 15},
{db_max_connections, 30},
{log_level, error}, % log_level
{log_path, "../logs"}, % log_path
{cls_type, 0},
{cls_cookie, mrzj_dev_center},
{cls_node, 'mrzj_dev_center@127.0.0.1'},
{server_id, 1}, %% 玩家创建号使用的服id
{platform, "dev"}, %% 玩家创建号使用的平台标识
{server_num, 325}, %% 玩家创建号使用的服数标识
{merge_server_ids, [1]} %% 此列表必须包含本服的server_id
]
}
].
%% File end.

+ 34
- 0
config/main.app View File

@ -0,0 +1,34 @@
%% auther: huangyongxing@yeah.net
%% date: 2016.11.09
{
application,
main,
[
{description, "game server"},
{vsn, "1.0"},
{modules, [main]},
{registered, []},
{applications, [kernel, stdlib, sasl, inets, crypto, asn1, public_key, ssl]},
{mod, {main, []}},
{start_phases, []},
{env, [
{tcp_acceptor_num, 10}
,{tcp_options, [
binary
,{packet, 0}
,{active, false}
,{keepalive, true}
,{reuseaddr, true}
,{nodelay, false}
,{delay_send, true}
,{exit_on_close, false}
,{high_watermark, 65536}
,{send_timeout, 15000}
,{send_timeout_close, true}
]
}
,{certify, {1672502400, "5b682df2885c381e8cb434040cc3bdb1"}}
]
}
]
}.

+ 5
- 0
db/19-10/19-10-10.sql View File

@ -0,0 +1,5 @@
-- 修改邮件内容长度
ALTER TABLE `mail_content`
MODIFY COLUMN `content` varchar(1500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '邮件正文' AFTER `rid`;

+ 26
- 0
db/19-10/19-10-12.sql View File

@ -0,0 +1,26 @@
-- liushl
-- 删除装备系统
drop table if exists equip_magic;
drop table if exists equip_prefix;
drop table if exists equip_stone;
drop table if exists equip_stone_refine;
drop table if exists equip_stren;
drop table if exists equip_suit;
drop table if exists equip_wash;
drop table if exists log_equip_build_pink;
drop table if exists log_equip_magic;
drop table if exists log_equip_prefix;
drop table if exists log_equip_refine;
drop table if exists log_equip_stone;
drop table if exists log_equip_stone_compose;
drop table if exists log_equip_stren;
drop table if exists log_equip_stren_break;
drop table if exists log_equip_suit_operation;
drop table if exists log_equip_upgrade_division;
drop table if exists log_equip_upgrade_stage;
drop table if exists log_equip_upgrade_stone;
drop table if exists log_equip_wash;
drop table if exists log_dstone_uplv;
drop table if exists log_stone_inlay;
drop table if exists log_stone_refine;
drop table if exists log_dstone_upstage;

+ 24
- 0
db/19-10/19-10-15.sql View File

@ -0,0 +1,24 @@
-- liushl
-- 整理物品功能
drop table if exists goods;
drop table if exists goods_low;
drop table if exists goods_high;
drop table if exists player_transfer;
CREATE TABLE `goods` (
`id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '物品ID',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`goods_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '物品类型ID',
`type` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '物品类型',
`subtype` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '物品子类型',
`location` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '物品所在位置',
`cell` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '物品所在格子位置',
`num` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '物品数量',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '物品创建时间',
`expire_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '有效期,0为无',
`bind` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '绑定状态,0不绑定,1绑定',
`extra_data` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '额外数据[{key,value}|_]',
PRIMARY KEY (`id`, `role_id`),
KEY `pid` (`role_id`,`location`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='物品信息表'
PARTITION BY LINEAR HASH(role_id) PARTITIONS 10;

+ 5
- 0
db/19-10/19-10-26.sql View File

@ -0,0 +1,5 @@
-- tyl
-- 整理邮件功能
drop table if exists mail_content;
alter table mail_attr add `content` varchar(1500) NOT NULL COMMENT '邮件正文';

+ 22
- 0
db/19-10/19-10-28.sql View File

@ -0,0 +1,22 @@
-- hh
-- 聊天日志
DROP TABLE IF EXISTS `log_chat`;
CREATE TABLE `log_chat` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色id',
`name` varchar(20) NOT NULL DEFAULT '' COMMENT '角色名',
`level` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '角色等级',
`vip_level` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'VIP等级',
`address` varchar(39) NOT NULL DEFAULT '' COMMENT 'IP地址',
`type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '聊天频道',
`scene_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '场景id',
`guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮派id',
`guild_name` varchar(50) NOT NULL DEFAULT '' COMMENT '帮派名',
`chat_to_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '私聊对象角色id',
`chat_to_name` varchar(20) NOT NULL DEFAULT '' COMMENT '私聊对象角色名',
`content` varchar(1000) NOT NULL DEFAULT '' COMMENT '发言内容',
`ctime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '聊天时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='聊天日志';

+ 14
- 0
db/19-11/19-11-04.sql View File

@ -0,0 +1,14 @@
-- 增加索引,便于后台全服发邮件提升查找效率
ALTER TABLE `vip_role_record` ADD INDEX `vip_lv`(`vip_lv`);
ALTER TABLE `player_login` ADD INDEX `last_logout_time`(`last_logout_time`);
-- 聊天屏蔽
DROP TABLE IF EXISTS `role_chat_limit`;
CREATE TABLE `role_chat_limit` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`chat_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家聊天次数',
`chat_limit` varchar(500) NOT NULL DEFAULT '[]' COMMENT '限制内容[{模块id,点击与否}]',
`role_shield` varchar(500) NOT NULL DEFAULT '[]' COMMENT '屏蔽列表',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='玩家次数监控';

+ 21
- 0
db/19-11/19-11-06.sql View File

@ -0,0 +1,21 @@
-- 移植跨服分区 tyl
DROP TABLE IF EXISTS `chat_zone`;
CREATE TABLE `chat_zone` (
`server_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '服务器Id(后台唯一服号)',
`zone_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分区Id',
`platform` varchar(100) NOT NULL DEFAULT '' COMMENT '平台名',
`server_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '服务器编号(玩家可见的服编号)',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '加入分区时间戳',
PRIMARY KEY (`server_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='聊天监控-分区信息(在跨服中使用-合跨服合并保留)';
-- 每日票券
DROP TABLE IF EXISTS `role_daily_coupon`;
CREATE TABLE `role_daily_coupon`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
`send_list` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '每日赠送列表',
`send_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后赠送时间',
`gift_list` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '每日领取列表',
`gift_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后领取时间',
PRIMARY KEY(`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='好友每日票券';

+ 10
- 0
db/19-11/19-11-07.sql View File

@ -0,0 +1,10 @@
-- 副本翻牌
DROP TABLE IF EXISTS `role_dun_flop`;
CREATE TABLE `role_dun_flop`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
`treasure_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前稀有奖池id',
`flop_val` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前祝福值进度',
`treasured` varchar(500) NOT NULL DEFAULT '[]' COMMENT '当前奖池已领取奖励',
PRIMARY KEY(`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='副本翻牌数据';

+ 2
- 0
db/19-11/19-11-08.sql View File

@ -0,0 +1,2 @@
-- 删除聊天分区表
DROP TABLE chat_zone;

+ 2
- 0
db/19-11/19-11-09.sql View File

@ -0,0 +1,2 @@
-- 修改邮件表明
ALTER TABLE mail_attr RENAME TO mail;

+ 7
- 0
db/19-11/19-11-13.sql View File

@ -0,0 +1,7 @@
-- 送礼增加周人气
ALTER TABLE `flower`
ADD COLUMN `week_charm` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '周人气值' AFTER `fame`;
ALTER TABLE `flower`
ADD COLUMN `update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '周人气更新时间' AFTER `week_charm`;

+ 34
- 0
db/19-11/19-11-15.sql View File

@ -0,0 +1,34 @@
-- zmh
-- 进阶系统
CREATE TABLE `player_foster` (
`rid` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
`type` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '系统类型',
`grade` int(11) UNSIGNED NOT NULL DEFAULT '1' COMMENT '',
`star` int(11) UNSIGNED NOT NULL DEFAULT '1' COMMENT '',
`exp` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '进度',
`clear` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否清零',
`display` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '当前幻化',
`lowcore` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '初级核心',
`highcore` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '高级核心',
`etime` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '有效时间',
`skills` varchar(500) NOT NULL DEFAULT '[]' COMMENT '技能列表',
PRIMARY KEY (`rid`,`type`),
KEY `type` (`type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='玩家进阶系统表';
-- 进阶装备
CREATE TABLE `player_foster_equip` (
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`type` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '系统类型',
`grade` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阶数',
`equips` varchar(2000) NOT NULL DEFAULT '[]' COMMENT '穿戴',
PRIMARY KEY (`rid`,`type`,`grade`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='进阶装备';
-- liushl
-- 装备系统
CREATE TABLE `equipment` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`stars` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '当前激活的星级数',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='装备-通用信息';

+ 9
- 0
db/19-11/19-11-21.sql View File

@ -0,0 +1,9 @@
-- zhaoyu
-- 角色头像数据
CREATE TABLE IF NOT EXISTS `role_profile_photo` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT 0 COMMENT '角色Id',
`photo_list` varchar(2000) NOT NULL DEFAULT '[]' COMMENT '激活消耗道具',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色已激活头像';

+ 42
- 0
db/19-12/19-12-02.sql View File

@ -0,0 +1,42 @@
-- tyl
-- 境界学位
CREATE TABLE IF NOT EXISTS `player_degree` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家Id',
`degree_id` smallint(5) unsigned NOT NULL COMMENT '学位Id(对应学位等级)',
`degree_exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '学位经验',
`dun_state` varchar(255) NOT NULL DEFAULT '[]' COMMENT '副本完成状态,0未完成 1完成',
`time` int(11) unsigned NOT NULL COMMENT '刷新时间戳',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='境界学位表';
CREATE TABLE IF NOT EXISTS `player_degree_classwork` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家Id',
`class_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '日常功课Id',
`content` varchar(255) NOT NULL DEFAULT '[]' COMMENT '日常功课状态数据',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '刷新时间戳',
PRIMARY KEY (`role_id`,`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='学位日常功课任务表';
-- 日志表
CREATE TABLE IF NOT EXISTS `log_degree_upgrade` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`degree_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '学位Id',
`exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '学位经验',
`dun_state` varchar(255) NOT NULL DEFAULT '[]' COMMENT '副本状态',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='学位晋升日志表';
CREATE TABLE IF NOT EXISTS `log_receive_degree_reward` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`class_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '功课Id',
`task_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '任务类型',
`task_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '任务Id',
`old_exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '晋升前学位经验',
`new_exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '晋升后学位经验',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='学位日常功课奖励领取日志表';

+ 14
- 0
db/19-12/19-12-05.sql View File

@ -0,0 +1,14 @@
-- 最近联系人列表
-- hh
CREATE TABLE `last_rela_chat`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
`other_id` bigint(20) UNSIGNED NOT NULL COMMENT '对方id',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近聊天时间',
PRIMARY KEY(`role_id`, `other_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT="最近聊天信息";
-- 社交增加字段
-- hh
ALTER TABLE `relationship`
ADD COLUMN `contribute` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '本方亲密度贡献比例' AFTER `intimacy`;

+ 63
- 0
db/19-12/19-12-09.sql View File

@ -0,0 +1,63 @@
-- 社团劳务
-- zmh
CREATE TABLE `player_guild_labor` (
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`tid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '任务id',
`content` varchar(500) NOT NULL DEFAULT '[]' COMMENT '任务内容',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`rid`,`tid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团劳务数据';
-- 社团
-- zmh
CREATE TABLE `guild` (
`id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '社团id',
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '社团名字',
`announce` varchar(500) NOT NULL DEFAULT '' COMMENT '社团公告',
`chief_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '团长',
`chief_name` varchar(50) NOT NULL DEFAULT '' COMMENT '社团名字',
`lv` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '等级',
`exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阵营',
`division` int(11) NOT NULL DEFAULT '0' COMMENT '评级',
`funds` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '社团资金',
`style` int(11) NOT NULL DEFAULT '0' COMMENT '旗帜样式',
`color` int(11) NOT NULL DEFAULT '0' COMMENT '旗帜颜色',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`modify_times` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '社团修改次数',
`approve_type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '申请类型',
`auto_approve_lv` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '自动加入的等级',
`auto_approve_power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '自动加入的战力',
`disband_warnning_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '解散警告开始时间',
`week_labor` int(11) NOT NULL DEFAULT '0' COMMENT '周活跃',
`week_labor_refresh` int(11) NOT NULL DEFAULT '0' COMMENT '上次刷新时间',
`week_labor_last` int(11) NOT NULL DEFAULT '0' COMMENT '上周活跃',
`c_rename` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否可以免费改名',
`c_rename_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '改名时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团';
-- 社团申请
-- zmh
CREATE TABLE `guild_apply` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '社团id',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`position` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '申请职位(默认申请加入:0)',
PRIMARY KEY (`role_id`,`guild_id`),
KEY `guild_id` (`guild_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团申请';
-- 社团成员
-- zmh
CREATE TABLE `guild_member` (
`id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`guild_id` bigint(20) unsigned NOT NULL COMMENT '公会id',
`guild_name` varchar(50) NOT NULL DEFAULT '' COMMENT '公会名字',
`position` tinyint(2) unsigned NOT NULL DEFAULT '2' COMMENT '职位',
`week_labor` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '周活跃',
`week_labor_refresh` int(11) NOT NULL DEFAULT '0' COMMENT '上次刷新时间',
`labors` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '本社历史活跃',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `guild_id` (`guild_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团成员';

+ 11
- 0
db/19-12/19-12-10.sql View File

@ -0,0 +1,11 @@
-- 社团商店
-- zmh
CREATE TABLE `role_guild_shop` (
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`cargos_daily` varchar(1000) NOT NULL DEFAULT '[]' COMMENT '每日商品',
`time_daily` int(11) unsigned DEFAULT '0' COMMENT '上次刷新',
`cargos_week` varchar(1000) NOT NULL DEFAULT '[]' COMMENT '每周商品',
`time_week` int(11) unsigned DEFAULT '0' COMMENT '上次刷新',
`cargos_forever` varchar(1000) NOT NULL DEFAULT '[]' COMMENT '终身商品',
PRIMARY KEY (`rid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团商店-合服合并';

+ 9
- 0
db/19-12/19-12-11.sql View File

@ -0,0 +1,9 @@
-- 社团代理团长
-- zmh
ALTER TABLE `guild`
ADD COLUMN `agent` bigint(20) NOT NULL DEFAULT 0 COMMENT '代理团长' AFTER `chief_name`,
ADD COLUMN `agent_time` int(11) NOT NULL DEFAULT 0 COMMENT '代理时间' AFTER `agent`;
ALTER TABLE `guild_member`
ADD COLUMN `precursor` tinyint(2) NOT NULL DEFAULT 0 COMMENT '代理前职位' AFTER `position`;

+ 44
- 0
db/19-12/19-12-12.sql View File

@ -0,0 +1,44 @@
-- liushl
-- 羁绊系统
CREATE TABLE `mate_role` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`boat_stage` tinyint(2) NOT NULL DEFAULT '0' COMMENT '友谊的小船阶数',
`boat_star` tinyint(2) NOT NULL DEFAULT '0' COMMENT '友谊的小船星级',
`boat_exp` int(11) NOT NULL DEFAULT '0' COMMENT '友谊的小船经验值',
`wear_mate` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '佩戴的羁绊称号对象',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='羁绊-玩家羁绊系统信息(合服保留)';
CREATE TABLE `mate_info` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`other` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '羁绊玩家',
`remarks` tinyint(2) NOT NULL DEFAULT '1' COMMENT '备注',
`title` varchar(50) NOT NULL DEFAULT '<<>>' COMMENT '羁绊称号(自定义)',
`time` int(11) NOT NULL DEFAULT '0' COMMENT '结交时间戳',
`anniversary` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '纪念日奖励领取情况',
PRIMARY KEY (`role_id`, `other`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='羁绊-玩家羁绊伙伴(合服保留)';
ALTER TABLE `player_guild`
DROP COLUMN `leave_donate`,
DROP COLUMN `receive_salary_time`,
DROP COLUMN `depot_score`,
DROP COLUMN `live_reward_ids`;
drop table if exists guild_depot_goods;
drop table if exists guild_donate;
drop table if exists log_guild_building_up;
drop table if exists log_guild_depot;
drop table if exists log_guild_liveness;
drop table if exists log_guild_liveness_extra_reward;
-- 社团合并
-- zmh
CREATE TABLE `guild_merge` (
`guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '社团id',
`identity` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '身份',
`target` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '对方公会',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '开单时间',
PRIMARY KEY (`guild_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团合并';

+ 5
- 0
db/19-12/19-12-13.sql View File

@ -0,0 +1,5 @@
-- 社团合并
-- zmh
ALTER TABLE `guild_merge`
ADD COLUMN `notes` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '[]' COMMENT '历史拒绝' AFTER `create_time`;

+ 28
- 0
db/19-12/19-12-16.sql View File

@ -0,0 +1,28 @@
-- 宠物
-- tyl
-- 宠物基础数据
CREATE TABLE IF NOT EXISTS `role_pet` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`pet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物Id',
`pet_stage` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '宠物阶级',
`pet_star` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '宠物星级',
`pet_lv` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '宠物培养等级',
`pet_exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物经验',
`is_follow` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '跟随状态 0,非跟随 1,跟随',
`adopt_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '领养时间',
PRIMARY KEY (`role_id`,`pet_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物基础数据表';
-- 宠物技能石
CREATE TABLE IF NOT EXISTS `pet_skill_diamond` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`pet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物Id',
`diamond_slot` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '技能石槽位',
`diamond_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '技能石Id',
PRIMARY KEY (`role_id`,`pet_id`,`diamond_slot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物技能宝石栏数据表';
ALTER TABLE `guild_merge`
MODIFY COLUMN `target` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对方公会' AFTER `identity`;

+ 10
- 0
db/19-12/19-12-17.sql View File

@ -0,0 +1,10 @@
-- 装备系统
-- liushl
CREATE TABLE `equipment_pos` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`pos` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备位置',
`inlay` int(11) NOT NULL DEFAULT '0' COMMENT '上阵的龙语',
`inlay_list` varchar(1000) NOT NULL DEFAULT '[]' COMMENT '已激活的龙语',
`power_lv` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '器灵等级',
PRIMARY KEY (`role_id`, `pos`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='装备-位置通用信息';

+ 14
- 0
db/19-12/19-12-19.sql View File

@ -0,0 +1,14 @@
-- 周计数器 四点
CREATE TABLE `counter_week_four` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色id',
`module` int(11) NOT NULL DEFAULT '0' COMMENT '类型',
`sub_module` int(11) NOT NULL DEFAULT '0' COMMENT '功能子id',
`type` bigint(20) NOT NULL DEFAULT '0',
`count` int(11) NOT NULL COMMENT '数量',
`other` varchar(1024) NOT NULL DEFAULT '' COMMENT '扩展数据',
`refresh_time` int(11) NOT NULL COMMENT '刷新时间',
PRIMARY KEY (`role_id`,`module`,`sub_module`,`type`),
KEY `module` (`module`),
KEY `sub_module` (`sub_module`),
KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='4点周计数器';

+ 15
- 0
db/19-12/19-12-21.sql View File

@ -0,0 +1,15 @@
DROP TABLE `log_fashion_pos`;
DROP TABLE `log_fashion_decompose`;
CREATE TABLE `role_marble`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`marble_count` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '弹珠次数',
`marble_reset` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '弹珠重置次数',
`energy_pro` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '充能节点进度',
`marble_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '弹珠最近操作时间',
`energy_rewards` varchar(511) NOT NULL DEFAULT '[]' COMMENT '充能节点奖励信息',
`shop_count` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商店手动刷新次数',
`shop_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商店最近操作时间',
`shop_info` varchar(255) NOT NULL DEFAULT '[]' COMMENT '商店信息',
PRIMARY KEY(`role_id`)
)ENGINE=InnoDb CHARSET=utf8 COMMENT="玩家弹珠&商店数据";

+ 8
- 0
db/19-12/19-12-23.sql View File

@ -0,0 +1,8 @@
ALTER TABLE `guild`
ADD COLUMN `arrears` int(11) NOT NULL DEFAULT 0 COMMENT '拖欠次数' AFTER `funds`;
-- 附能寻宝增加字段
-- hh
ALTER TABLE `role_marble`
ADD COLUMN `fixed_rewards` varchar(255) NOT NULL DEFAULT '[]' COMMENT '保底奖励' AFTER `energy_rewards`;

+ 18
- 0
db/19-12/19-12-24.sql View File

@ -0,0 +1,18 @@
-- 社团派单
-- zmh
CREATE TABLE `guild_order` (
`id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '订单id',
`guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '社团id',
`owner` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '派单人',
`taker` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '接单人',
`cfgid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '配置',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
`content` varchar(500) NOT NULL DEFAULT '{}' COMMENT '任务内容',
`etime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '有效时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='社团派单-合服合并';
ALTER TABLE `player_guild`
ADD COLUMN `order` bigint(20) NOT NULL DEFAULT 0 COMMENT '已接单' AFTER `red_gold_packet`,
ADD COLUMN `deliver` int(11) NOT NULL DEFAULT 0 COMMENT '待派发' AFTER `order`;

+ 4
- 0
db/19-12/19-12-30.sql View File

@ -0,0 +1,4 @@
-- 社团声望
-- zmh
ALTER TABLE `player_high`
ADD COLUMN `gfame` int(11) NOT NULL DEFAULT 0 COMMENT '社团声望' AFTER `gcoin`;

+ 79
- 0
db/20-01/20-01-04.sql View File

@ -0,0 +1,79 @@
-- zhaoyu
-- 交易市场功能
CREATE TABLE IF NOT EXISTS `market_goods` (
`id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '交易Id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '出售玩家Id',
`goods_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品唯一Id',
`goods_type_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品类型Id',
`num` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品数量',
`lev` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品等级',
`color` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品品质',
`price` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '现竞价',
`sell_type` int(11) UNSIGNED NOT NULL DEFAULT '1' COMMENT '上架类型:1:世界上架2:帮派上架',
`guild_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '公会Id',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '上架时间戳',
`off_time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '下架时间戳',
`is_to_world` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '公会上架流拍是否上架世界:0:否1:是',
`is_offer` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已有人出价:0:否1:是',
`extra_attr` varchar(255) NOT NULL DEFAULT '[]' COMMENT '物品额外特殊属性',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易市场出售的商品信息';
CREATE TABLE IF NOT EXISTS `market_bid_info` (
`id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '交易Id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '出价玩家Id',
`price` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '竞价',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '最后一次出价时间戳',
PRIMARY KEY (`id`,`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易市场-玩家竞拍出价';
CREATE TABLE IF NOT EXISTS `market_like_info` (
`id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '交易Id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '玩家角色Id',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '关注时间戳',
PRIMARY KEY (`id`,`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易市场-玩家竞拍关注';
CREATE TABLE IF NOT EXISTS `market_deal_log` (
`id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '交易Id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '出售玩家Id',
`get_role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '获得玩家Id',
`goods_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品唯一Id',
`goods_type_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品类型Id',
`num` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品数量',
`lev` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品等级',
`color` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品品质',
`price` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交价格',
`sell_type` int(11) UNSIGNED NOT NULL DEFAULT '1' COMMENT '上架类型:1:世界上架2:帮派上架',
`guild_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '公会Id',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '上架时间戳',
`deal_time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交时间戳',
`deal_type` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交类型:0:竞价1:一口价',
`log_type` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交记录大类',
`extra_attr` varchar(255) NOT NULL DEFAULT '[]' COMMENT '物品额外特殊属性',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易市场成交记录';
CREATE TABLE IF NOT EXISTS `log_market_operation` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增Id',
`market_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '交易Id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '出售玩家Id',
`get_role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '获得玩家Id',
`goods_type_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品类型Id',
`num` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品数量',
`lev` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品等级',
`color` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品品质',
`price` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交价格',
`sell_type` int(11) UNSIGNED NOT NULL DEFAULT '1' COMMENT '上架类型:1:世界上架2:帮派上架',
`guild_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '公会Id',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '上架时间戳',
`log_time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '日志时间戳',
`deal_type` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交类型:0:竞价1:一口价',
`operation_type` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '操作类型:1:上架2:下架3:成交',
`extra_attr` varchar(255) NOT NULL DEFAULT '[]' COMMENT '物品额外特殊属性',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易市场日志';

+ 33
- 0
db/20-01/20-01-06.sql View File

@ -0,0 +1,33 @@
ALTER TABLE `player_foster`
ADD COLUMN `click` int(11) NOT NULL DEFAULT 0 COMMENT '操作次数' AFTER `exp`;
-- 经验副本里程碑数据
-- hh
CREATE TABLE `role_exp_dun_achieve`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`dun_id` int(11) UNSIGNED NOT NULL COMMENT '副本id',
`wave` int(11) UNSIGNED NOT NULL COMMENT '里程碑波数',
`status` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '奖励领取状态',
PRIMARY KEY(`role_id`, `dun_id`, `wave`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT='经验副本里程碑数据';
-- zhaoyu
CREATE TABLE IF NOT EXISTS `market_role_deal_log` (
`id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '交易Id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '玩家Id',
`rela_role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '关联玩家Id',
`goods_type_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品类型Id',
`num` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品数量',
`price` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交价格',
`sell_type` int(11) UNSIGNED NOT NULL DEFAULT '1' COMMENT '上架类型:1:世界上架2:帮派上架',
`guild_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '公会Id',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '上架时间戳',
`deal_time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交时间戳',
`deal_type` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '成交类型:1:竞价买入2:一口价买入3:卖出',
`extra_attr` varchar(255) NOT NULL DEFAULT '[]' COMMENT '物品额外特殊属性',
PRIMARY KEY (`id`, `role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易市场玩家个人成交记录';

+ 5
- 0
db/20-01/20-01-08.sql View File

@ -0,0 +1,5 @@
-- zhaoyu
ALTER TABLE `market_goods`
MODIFY COLUMN `is_offer` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已有人出价:否:0 是:角色Id' AFTER `is_to_world`;

+ 5
- 0
db/20-01/20-01-09.sql View File

@ -0,0 +1,5 @@
-- zhaoyu
ALTER TABLE `market_goods`
MODIFY COLUMN `is_offer` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已有人出价:否:0 是:角色Id' AFTER `is_to_world`;

+ 33
- 0
db/20-01/20-01-13.sql View File

@ -0,0 +1,33 @@
-- tyl 宠物支援
CREATE TABLE IF NOT EXISTS `pet_support_info` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`slot_id` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '槽位Id',
`support_type` tinyint(2) unsigned NOT NULL COMMENT '支援类型 1,普通支援 2,全服支援',
`pet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物Id',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`role_id`,`slot_id`,`pet_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物支援槽位表';
CREATE TABLE IF NOT EXISTS `pet_support_rank` (
`server_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '服务器Id(后台唯一服号)',
`rank` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '排名',
`pet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物Id',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
`role_power` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色战力',
`support_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支援数',
`yesterday_support_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物昨天的支援人数',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`pet_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物全服支援排行榜数据表';
CREATE TABLE IF NOT EXISTS `pet_support_statistics` (
`server_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '服务器Id(后台唯一服号)',
`refresh_times` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '刷新次数',
`yesterday_online_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物支援昨天登录的人数',
`today_online_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物支援今天的登录人数',
`today_support_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '当天支援人次',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`server_id`,`refresh_times`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物全服支援统计数据表';

+ 8
- 0
db/20-01/20-01-15.sql View File

@ -0,0 +1,8 @@
-- liuahl
CREATE TABLE `chat_simulation` (
`accid`int(10) unsigned NOT NULL DEFAULT '0' COMMENT '平台账号id',
`accname` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '平台账户',
`trigger_id`int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上次触发id',
`trigger_content` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '已触发分类',
PRIMARY KEY (`accid`, `accname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='模拟聊天(合服保留)';

+ 19
- 0
db/20-01/20-01-16.sql View File

@ -0,0 +1,19 @@
-- zhaoyu
-- 修改交易市场相关表
ALTER TABLE `market_goods`
CHANGE COLUMN `is_offer` `bidder_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最高出价玩家Id' AFTER `is_to_world`;
ALTER TABLE `market_bid_info`
ADD COLUMN `role_name` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '出价玩家名字' AFTER `role_id`;
ALTER TABLE `market_deal_log`
MODIFY COLUMN `get_role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '获得者玩家Id' AFTER `role_id`,
ADD COLUMN `get_role_name` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '获得者名字' AFTER `get_role_id`;
-- tyl
-- 修改宠物排行榜统计表
ALTER TABLE `pet_support_rank` DROP PRIMARY KEY, ADD PRIMARY KEY (`server_id`, `pet_id`);
ALTER TABLE pet_support_rank DROP `role_name`, DROP `role_power`;

+ 8
- 0
db/20-01/20-01-17.sql View File

@ -0,0 +1,8 @@
-- zhaoyu
CREATE TABLE IF NOT EXISTS `market_reminder_info` (
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '玩家角色Id',
`reminder_list` varchar(800) NOT NULL DEFAULT '[]' COMMENT '玩家入库提醒列表',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易市场-玩家入库提醒列表';

+ 23
- 0
db/20-01/20-01-20.sql View File

@ -0,0 +1,23 @@
-- hh
CREATE TABLE `role_exp_dun_drop`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`calc_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近一次结算时间',
`start_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '开始结算时间',
PRIMARY KEY(`role_id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT='人物放置经验信息';
CREATE TABLE `role_exp_dun_drop_goods`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`goods_type` int(11) UNSIGNED NOT NULL COMMENT '物品类型',
`goods_id` int(11) UNSIGNED NOT NULL COMMENT '物品id',
`num` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '物品数量',
PRIMARY KEY(`role_id`, `goods_type`, `goods_id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT='人物放置掉落物品';
CREATE TABLE `role_exp_dun_wave_info`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`wave` int(11) UNSIGNED NOT NULL COMMENT '波数',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
PRIMARY KEY(`role_id`, `wave`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT='人物经验本里程碑波数时间信息';

+ 9
- 0
db/20-01/20-01-21.sql View File

@ -0,0 +1,9 @@
-- zhaoyu
ALTER TABLE `market_goods`
MODIFY COLUMN `guild_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '公会Id' AFTER `sell_type`;
ALTER TABLE `log_market_operation`
MODIFY COLUMN `guild_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '公会Id' AFTER `sell_type`;

+ 4
- 0
db/20-02/20-02-12.sql View File

@ -0,0 +1,4 @@
-- 放置经验增加字段
ALTER TABLE `role_exp_dun_drop`
ADD COLUMN `fast_hook_time` int(11) UNSIGNED NOT NULL COMMENT '快速挂机最近领取时间' AFTER `start_time`;

+ 4
- 0
db/20-02/20-02-18.sql View File

@ -0,0 +1,4 @@
-- 增加离线时间
ALTER TABLE `common_rank_role`
ADD COLUMN `off_time` int(11) NOT NULL DEFAULT 0 COMMENT '离线时间' AFTER `time`;

+ 17
- 0
db/20-02/20-02-20.sql View File

@ -0,0 +1,17 @@
-- zhaoyu
-- 转职觉醒
CREATE TABLE IF NOT EXISTS `transform_info` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`transform_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '转职Id',
`stage` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阶段',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色转职数据';
CREATE TABLE IF NOT EXISTS `log_transform` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`transform_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '转职Id',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色转职日志';

+ 42
- 0
db/20-02/20-02-21.sql View File

@ -0,0 +1,42 @@
-- tyl
-- 宠物系统
CREATE TABLE IF NOT EXISTS `role_child` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`child_name` varchar(255) NOT NULL DEFAULT '' COMMENT '孩子名称',
`child_sex` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '孩子性别',
`child_age_year` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '孩子年龄-年',
`child_age_month` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '孩子年龄-月',
`child_age_exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '孩子成长进度(经验值)',
`heart_link_level` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '同心等级',
`heart_link_exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '同心经验值',
`vote_times` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '当天点赞次数',
`be_voted_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '被点赞次数',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子基础信息表';
CREATE TABLE IF NOT EXISTS `child_daily_task` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`sequence` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '任务序列',
`task_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '任务类型',
`task_id` varchar(255) NOT NULL DEFAULT '[]' COMMENT '任务Id(列表格式)',
`progress` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '进度',
`task_state` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '任务状态(0-未完成 1-已完成未领取 2-已领取)',
PRIMARY KEY (`role_id`,`sequence`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子每日任务数据表';
CREATE TABLE IF NOT EXISTS `child_be_voted_log` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`vote_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '点赞者id',
`vote_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '点赞时间戳',
`feed_back_status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '回赞状态(0-未回赞 1-已回赞)',
PRIMARY KEY (`role_id`,`vote_id`,`vote_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子点赞记录表';
CREATE TABLE IF NOT EXISTS `child_vote_rank` (
`rank` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '排名',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`child_name` varchar(255) NOT NULL DEFAULT '' COMMENT '孩子名称',
`be_voted_count` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '点赞次数',
PRIMARY KEY (`rank`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子点赞排行榜数据表';

+ 66
- 0
db/20-02/20-02-25.sql View File

@ -0,0 +1,66 @@
-- tyl
-- 孩子系统修改
alter table child_vote_rank drop primary key,add primary key (`role_id`);
alter table child_vote_rank drop column `rank`;
alter table role_child drop column be_voted_count, add column show_off_times tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当天晒娃次数' after vote_times;
alter table role_child add column refresh_time int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '刷新时间' after show_off_times;
-- zmh
-- 无尽领域
CREATE TABLE `void_server_zone` (
`server_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '服id',
`zone` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '分区号',
`time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '分区时间',
PRIMARY KEY (`server_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='无尽分区表,合服清理';
CREATE TABLE `void_fam_kf_rank` (
`rank` int(10) unsigned NOT NULL COMMENT '排序',
`zone` int(10) NOT NULL DEFAULT '0' COMMENT '分区',
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`ser_num` int(20) NOT NULL DEFAULT '0' COMMENT '所在服号',
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '名字',
`floor` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最高层',
`kills` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '击杀',
`combo` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '连斩',
`score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
PRIMARY KEY (`rank`,`zone`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='无尽领域跨服榜单 合服清理';
CREATE TABLE `void_fam_rank` (
`rank` int(10) unsigned NOT NULL COMMENT '排序',
`zone` int(10) NOT NULL DEFAULT '0' COMMENT '分区',
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`ser_num` int(20) NOT NULL DEFAULT '0' COMMENT '所在服号',
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '名字',
`floor` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最高层',
`kills` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '击杀',
`combo` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '连斩',
`score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
PRIMARY KEY (`rank`,`zone`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='无尽领域本地榜单 合服清理';
CREATE TABLE `log_void_fam` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型 进入/退出',
`floor` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '进入层数',
`score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '进入积分',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1215 DEFAULT CHARSET=utf8 COMMENT='无尽领域日志';
DROP TABLE IF EXISTS `player_mount`;
DROP TABLE IF EXISTS `player_mount_figure`;

+ 4
- 0
db/20-02/20-02-26.sql View File

@ -0,0 +1,4 @@
-- tyl
-- 孩子系统修改
alter table role_child add column last_show_off_time int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '上次晒娃时间' after `refresh_time`;

+ 9
- 0
db/20-02/20-02-27.sql View File

@ -0,0 +1,9 @@
-- 本服BOSS状态
CREATE TABLE `local_boss_status` (
`boss_id` int(32) unsigned NOT NULL DEFAULT '0' COMMENT 'BOSS怪物id',
`boss_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '怪物类型',
`born_time` int(32) unsigned NOT NULL DEFAULT '0' COMMENT '出生时间',
`dead_time` int(32) unsigned NOT NULL DEFAULT '0' COMMENT '死亡时间',
`killer` varchar(100) NOT NULL DEFAULT '<<>>' COMMENT '击杀者',
PRIMARY KEY (`boss_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='本服BOSS状态##合服清空';

+ 43
- 0
db/20-02/20-02-29.sql View File

@ -0,0 +1,43 @@
-- zhaoyu
-- 删除大乱斗
DROP TABLE IF EXISTS `log_melee_pk_stage_reward`;
DROP TABLE IF EXISTS `log_melee_pk_rank_reward`;
DROP TABLE IF EXISTS `player_twing`;
DROP TABLE IF EXISTS `player_twing_figure`;
DROP TABLE IF EXISTS `player_twing_soul`;
DROP TABLE IF EXISTS `log_twing_plume`;
DROP TABLE IF EXISTS `log_use_wing_soul`;
DROP TABLE IF EXISTS `log_wing_compose`;
DROP TABLE IF EXISTS `log_wing_huanhua`;
DROP TABLE IF EXISTS `log_wing_huanhua_up`;
DROP TABLE IF EXISTS `log_wing_refine_wing`;
DROP TABLE IF EXISTS `player_talisman`;
DROP TABLE IF EXISTS `player_talisman_figure`;
DROP TABLE IF EXISTS `log_talisman_develop`;
DROP TABLE IF EXISTS `log_talisman_illusion`;
DROP TABLE IF EXISTS `log_talisman_lv`;
DROP TABLE IF EXISTS `log_mount_equip_make`;
DROP TABLE IF EXISTS `log_mount_equip_stren`;
DROP TABLE IF EXISTS `log_mount_figure_upgrade_stage`;
DROP TABLE IF EXISTS `log_mount_goods_use`;
DROP TABLE IF EXISTS `log_mount_limit_figure`;
DROP TABLE IF EXISTS `log_mount_upgrade_star`;
ALTER TABLE `void_fam_rank`
ADD COLUMN `vip` int(11) NOT NULL DEFAULT 0 COMMENT 'Vip' AFTER `score`,
ADD COLUMN `sex` int(11) NOT NULL DEFAULT 0 COMMENT '性别' AFTER `vip`;
ALTER TABLE `void_fam_kf_rank`
ADD COLUMN `vip` int(11) NOT NULL DEFAULT 0 COMMENT 'Vip' AFTER `score`,
ADD COLUMN `sex` int(11) NOT NULL DEFAULT 0 COMMENT '性别' AFTER `vip`;

+ 90
- 0
db/20-03/20-03-02.sql View File

@ -0,0 +1,90 @@
DROP TABLE IF EXISTS `light_weapon`;
DROP TABLE IF EXISTS `light_weapon_figure`;
DROP TABLE IF EXISTS `act_boss_born`;
DROP TABLE IF EXISTS `role_home_info`;
DROP TABLE IF EXISTS `role_home_build`;
DROP TABLE IF EXISTS `role_home_furniture`;
DROP TABLE IF EXISTS `role_home_furniture_num`;
DROP TABLE IF EXISTS `role_home_task`;
DROP TABLE IF EXISTS `role_home_dispatch_task`;
DROP TABLE IF EXISTS `role_home_temp_up_line`;
DROP TABLE IF EXISTS `role_home_pic`;
-- tyl
-- 删除旧版宝宝
DROP TABLE IF EXISTS `baby`;
DROP TABLE IF EXISTS `baby_fashion`;
DROP TABLE IF EXISTS `baby_mount`;
DROP TABLE IF EXISTS `log_baby_figure`;
DROP TABLE IF EXISTS `log_baby_up_grade`;
DROP TABLE IF EXISTS `log_baby_up_stage`;
DROP TABLE IF EXISTS `log_act_boss`;
DROP TABLE IF EXISTS `log_act_boss_drop`;
-- huangyongxing
-- 答题
DROP TABLE IF EXISTS `log_noon_quiz`;
-- 捕蝶
DROP TABLE IF EXISTS `log_butterfly`;
DROP TABLE IF EXISTS `log_butterfly_integeration`;
DROP TABLE IF EXISTS `log_butterfly_turntable`;
-- 黑市商店
DROP TABLE IF EXISTS `log_sp_shop_buy`;
DROP TABLE IF EXISTS `log_sp_shop_resolve`;
DROP TABLE IF EXISTS `sp_shop_buy`;
DROP TABLE IF EXISTS `sp_shop_goods`;
DROP TABLE IF EXISTS `sp_shop_role`;
-- 荣耀战神
DROP TABLE IF EXISTS `log_war_god_targer_reward`;
-- 三英会战
DROP TABLE IF EXISTS `log_league_war_inner_rank_reward`;
DROP TABLE IF EXISTS `log_league_war_role_info`;
DROP TABLE IF EXISTS `log_league_war_role_rank`;
DROP TABLE IF EXISTS `log_league_war_role_score`;
DROP TABLE IF EXISTS `log_league_war_room_info`;
DROP TABLE IF EXISTS `log_league_war_win_reward`;
-- 星之轨迹
DROP TABLE IF EXISTS `adventure_book`;
-- 星痕
DROP TABLE IF EXISTS `log_mold_soul_upgrade`;
-- 删除星灵相关功能
DROP TABLE IF EXISTS `log_star_soul_active`;
DROP TABLE IF EXISTS `log_star_soul_equip_break_through`;
DROP TABLE IF EXISTS `log_star_soul_equip_resolve`;
DROP TABLE IF EXISTS `log_star_soul_equip_stren`;
DROP TABLE IF EXISTS `log_star_soul_lv`;
DROP TABLE IF EXISTS `log_star_soul_skill`;
DROP TABLE IF EXISTS `log_star_soul_stage`;
DROP TABLE IF EXISTS `log_star_soul_treasure`;
DROP TABLE IF EXISTS `log_star_soul_universe`;
DROP TABLE IF EXISTS `log_star_soul_war`;
DROP TABLE IF EXISTS `log_star_soul_war_sweep`;
DROP TABLE IF EXISTS `player_star_soul`;
DROP TABLE IF EXISTS `player_star_soul_universe`;
DROP TABLE IF EXISTS `player_star_soul_war`;
DROP TABLE IF EXISTS `star_soul_drum_rank`;
DROP TABLE IF EXISTS `star_soul_drum_role`;
DROP TABLE IF EXISTS `star_soul_drum_sign`;
DROP TABLE IF EXISTS `star_soul_equip`;
DROP TABLE IF EXISTS `star_soul_treasure`;
DROP TABLE IF EXISTS `star_soul_war`;
-- 删除伙伴(星灵相关)
DROP TABLE IF EXISTS `log_partner_add_exp`;
DROP TABLE IF EXISTS `log_partner_break`;
DROP TABLE IF EXISTS `log_partner_disband`;
DROP TABLE IF EXISTS `log_partner_equip`;
DROP TABLE IF EXISTS `log_partner_learn_sk`;
DROP TABLE IF EXISTS `log_partner_promote`;
DROP TABLE IF EXISTS `log_partner_recruit`;
DROP TABLE IF EXISTS `log_partner_wash`;
DROP TABLE IF EXISTS `partner`;
DROP TABLE IF EXISTS `partner_equip`;
DROP TABLE IF EXISTS `partner_sk`;
DROP TABLE IF EXISTS `player_partner`;

+ 102
- 0
db/20-03/20-03-03.sql View File

@ -0,0 +1,102 @@
-- 删除跨服BOSS,旧本服BOSS,婚姻相关
drop table if exists boss;
drop table if exists boss_sp;
drop table if exists boss_remind;
drop table if exists log_boss;
drop table if exists log_boss_drop;
drop table if exists log_boss_enter_type;
drop table if exists log_boss_rank_reward;
drop table if exists log_boss_reborn;
drop table if exists kf_boss_remind;
drop table if exists kf_boss_revive;
drop table if exists log_kf_boss_drop;
drop table if exists log_kf_boss_killer;
drop table if exists log_marriage_answer;
drop table if exists log_marriage_divorse;
drop table if exists log_marriage_life_train;
drop table if exists log_marriage_love_box;
drop table if exists log_marriage_parade_end;
drop table if exists log_marriage_parade_order;
drop table if exists log_marriage_propose;
drop table if exists log_marriage_ring_polish;
drop table if exists log_marriage_ring_upgrade;
drop table if exists log_marriage_wedding_aura;
drop table if exists log_marriage_wedding_end;
drop table if exists log_marriage_wedding_invitation;
drop table if exists log_marriage_wedding_order;
drop table if exists log_parade_follow;
drop table if exists log_parade_wedding_aura;
drop table if exists marriage_ask_time;
drop table if exists marriage_couple_info;
drop table if exists marriage_couple_propose;
drop table if exists marriage_guidance;
drop table if exists marriage_guidance_task;
drop table if exists marriage_life_player;
drop table if exists marriage_love_box;
drop table if exists marriage_parade_order_info;
drop table if exists marriage_personals_follow;
drop table if exists marriage_personals_player;
drop table if exists marriage_ring_player;
drop table if exists marriage_wedding_guest;
drop table if exists marriage_wedding_order_info;
drop table if exists marriage_wedding_restart;
-- huangyongxing
-- 魂珠
DROP TABLE IF EXISTS `log_dungeon_seal_soul`;
-- 神格
DROP TABLE IF EXISTS `deity`;
DROP TABLE IF EXISTS `log_deity_up`;
DROP TABLE IF EXISTS `player_deity`;
-- 宝藏
DROP TABLE IF EXISTS `treasure_guardians`;
DROP TABLE IF EXISTS `log_treasure`;
-- 婚礼榜
DROP TABLE IF EXISTS `log_wed_rank`;
DROP TABLE IF EXISTS `wed_rank_act`;
-- 神秘限购
DROP TABLE IF EXISTS `limit_shop_sell`;
DROP TABLE IF EXISTS `log_limit_shop_buy`;
-- 家族商店
DROP TABLE IF EXISTS `player_guild_shop`;
-- 圣器契约(永恒碑谷)
DROP TABLE IF EXISTS `eternal_valley_chapter`;
DROP TABLE IF EXISTS `eternal_valley_stage`;
DROP TABLE IF EXISTS `log_eternal_valley_reward`;
DROP TABLE IF EXISTS `log_eternal_valley_stage`;
-- 天命觉醒
DROP TABLE IF EXISTS `awakening`;
DROP TABLE IF EXISTS `log_awakening`;
-- 圣灵
DROP TABLE IF EXISTS `log_spirit_lv_up`;
-- 降神残留
DROP TABLE IF EXISTS `god_rune_pos`;
DROP TABLE IF EXISTS `log_god_active`;
DROP TABLE IF EXISTS `log_god_active_pyx`;
DROP TABLE IF EXISTS `log_god_active_rune`;
DROP TABLE IF EXISTS `log_god_active_rune_pos`;
DROP TABLE IF EXISTS `log_god_lv_up`;
DROP TABLE IF EXISTS `log_god_pyx_lv`;
DROP TABLE IF EXISTS `log_god_seal_lv_up`;
DROP TABLE IF EXISTS `log_god_stren_rune`;
DROP TABLE IF EXISTS `log_god_stren_rune_goods`;
-- hh
CREATE TABLE IF NOT EXISTS `role_guild_collect`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
`last_collect_time` int(11) UNSIGNED DEFAULT 0 COMMENT '最近一次封印时间',
`last_enter_time` int(11) UNSIGNED DEFAULT 0 COMMENT '最近一次参与活动时间',
PRIMARY KEY(`role_id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT="玩家公会采集信息";
DROP TABLE IF EXISTS `log_light_weapon_upgrade`;
DROP TABLE IF EXISTS `log_light_weapon_uplv`;
DROP TABLE IF EXISTS `log_light_weapon_upstar`;
DROP TABLE IF EXISTS `log_god_active_rune`;
DROP TABLE IF EXISTS `log_god_stren_rune`;
DROP TABLE IF EXISTS `log_god_stren_rune_goods`;

+ 33
- 0
db/20-03/20-03-04.sql View File

@ -0,0 +1,33 @@
-- zhaoyu
rename table jjc_honour to arena_honour;
rename table jjc_real_role to arena_real_role;
rename table jjc_record to arena_record;
rename table log_jjc to log_arena;
rename table log_jjc_break_rank to log_arena_break_rank;
rename table log_jjc_buy_times to log_arena_buy_times;
rename table log_jjc_clear to log_arena_clear;
rename table log_jjc_inspire to log_arena_inspire;
-- tyl
-- 社团协助
alter table player_guild
add column support_id bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支援Id' after `deliver`,
add column is_support_asker tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否协助发送者 0-否 1-是' after `support_id`,
add column guild_reputation int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '每日社团声望' after `is_support_asker`;
CREATE TABLE IF NOT EXISTS `guild_support` (
`support_sid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '协助全服唯一Id',
`guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '公会Id',
`support_cfgid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '协助配置Id(对应玩法类型)',
`ask_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '请求者Id',
`support_list` varchar(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '[]' COMMENT '支援者列表',
`scene` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '场景Id',
`x` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '坐标X',
`y` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '坐标Y',
`content` varchar(500) NOT NULL DEFAULT '[]' COMMENT '协助内容',
`extra` varchar(500) NOT NULL DEFAULT '[]' COMMENT '其他内容(各玩法定制)',
`status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '协助状态 0-未开始 1-正在进行 2-已经结束',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '请求创建时间',
PRIMARY KEY (`support_sid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='公会-公会协助数据表';

+ 4
- 0
db/20-03/20-03-05.sql View File

@ -0,0 +1,4 @@
ALTER TABLE `market_role_deal_log`
MODIFY COLUMN `guild_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '公会Id' AFTER `sell_type`;

+ 50
- 0
db/20-03/20-03-06.sql View File

@ -0,0 +1,50 @@
-- 社团BOSS榜单数据 合服保留
CREATE TABLE IF NOT EXISTS `guild_boss` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`act` int(11) NOT NULL DEFAULT '1' COMMENT '活动',
`type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '类型',
`rank` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '个人排名',
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`gid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '社团ID',
`flag` varchar(500) NOT NULL DEFAULT '{0,0}' COMMENT '社团旗帜',
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '玩家名字',
`gname` varchar(50) NOT NULL DEFAULT '' COMMENT '社团名字',
`hurt` bigint(20) NOT NULL DEFAULT '0' COMMENT '伤害',
`cash` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拍卖返还',
`count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '统计',
`total` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '统计总值',
`finish` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '是否结算',
`stime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '出手时间',
`etime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最终出手时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='社团BOSS';
-- zhaoyu
DROP TABLE IF EXISTS `arena_honour`;
CREATE TABLE IF NOT EXISTS `arena_info` (
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '角色Id',
`honour` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '荣誉值',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '挑战冷却开始时间戳',
`cooldown` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '挑战冷却开始后触发了多少次冷却',
`is_locking` smallint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否需要冷却时间归零后才可以继续挑战',
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COMMENT = '角色竞技场相关数据';
ALTER TABLE `log_transform`
ADD COLUMN `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增Id' FIRST,
DROP PRIMARY KEY,
ADD PRIMARY KEY (`id`) USING BTREE;
-- tyl
-- 孩子技能
CREATE TABLE IF NOT EXISTS `child_skill` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`skill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '技能Id',
`skill_lv` mediumint(6) unsigned NOT NULL DEFAULT '0' COMMENT '技能等级',
PRIMARY KEY (`role_id`,`skill_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子-孩子技能数据表';

+ 16
- 0
db/20-03/20-03-09.sql View File

@ -0,0 +1,16 @@
-- zhaoyu
ALTER TABLE `arena_record`
ADD COLUMN `rival_name` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT "" COMMENT '挑战玩家名字' AFTER `rival_id`;
-- tyl
-- 孩子-孩子载具
CREATE TABLE IF NOT EXISTS `child_vehicle` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`vehicle_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '载具Id',
`stage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '阶级',
PRIMARY KEY (`role_id`,`vehicle_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子-载具数据表';

+ 52
- 0
db/20-03/20-03-10.sql View File

@ -0,0 +1,52 @@
-- tyl
-- 添加玩家身上货币类型-名望券
alter table player_high
add column honour int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '名望券' after `gfame`;
-- hh
drop table log_vip_task;
drop table vip_task_progress;
drop table log_honor_coin;
drop table vip_role_record;
drop table player_vip;
drop table vip_giftbag_state;
drop table diamond_vip_shop_buy_record;
DROP TABLE IF EXISTS `player_liveness`;
CREATE TABLE `player_liveness` (
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '等级',
`exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '经验',
PRIMARY KEY (`rid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='玩家活跃度';
-- zhaoyu
CREATE TABLE IF NOT EXISTS `arena_season_info` (
`id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '赛季Id',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '赛季结算时间戳',
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8 COMMENT = '竞技场赛季相关数据';
CREATE TABLE IF NOT EXISTS `log_arena_season_award` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增Id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '玩家Id',
`rank` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '排名',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '时间戳',
`award` varchar(255) NOT NULL DEFAULT '[]' COMMENT '奖励',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='竞技场赛季结算日志';
CREATE TABLE IF NOT EXISTS `log_arena_season_rank` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增Id',
`season_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '玩家Id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '玩家Id',
`rank` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '排名',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='竞技场赛季结算时的排名';

+ 32
- 0
db/20-03/20-03-11.sql View File

@ -0,0 +1,32 @@
-- liushl
-- 删除福利大厅旧数据
drop table if exists daily_checkin;
drop table if exists mon_checkin;
drop table if exists daily_online_time;
drop table if exists rush_giftbag;
drop table if exists share_gift;
drop table if exists log_daily_checkin;
drop table if exists log_month_check_in;
drop table if exists log_total_checkin;
drop table if exists log_welfare_giftbag;
drop table if exists log_rush_giftbag;
drop table if exists log_online_gift;
drop table if exists log_share_times;
-- 福利大厅
CREATE TABLE `player_welfare` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`round` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '签到周期',
`days` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '签到天数',
`online_type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '在线奖励类型',
`level_award_state` int(11) NOT NULL DEFAULT '0' COMMENT '等级礼包状态',
`download_award_state` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '资源下载奖励状态',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='福利大厅(合服保留)';
-- tyl
-- 添加孩子跟随
alter table role_child
add column `is_follow` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '孩子跟随状态 0-不跟随 1-跟随' AFTER `last_show_off_time`,
add column `show_vehicle` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '跟随载具 0-不跟随 其他-具体载具Id' AFTER `is_follow`;

+ 29
- 0
db/20-03/20-03-12.sql View File

@ -0,0 +1,29 @@
-- hh
DROP TABLE IF EXISTS `common_rank_praise`;
CREATE TABLE `common_rank_praise`(
`type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点赞榜单类型',
`id` bigint(20) UNSIGNED NOT NULL COMMENT '点赞id',
`praise_num` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点赞数目',
PRIMARY KEY(`type`, `id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='排行榜点赞数据';
-- hh
CREATE TABLE `role_vip`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
`lv` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'vip等级',
`exp` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'vip等级经验',
`type` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否处于体验阶段0|1',
`endtime` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '体验结束时间',
PRIMARY KEY(`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='玩家vip数据';
-- zmh
CREATE TABLE `player_visus` (
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '幻光id',
`grade` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '强度',
`lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '等级',
`display` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '经验',
PRIMARY KEY (`rid`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='玩家幻光';

+ 33
- 0
db/20-03/20-03-13.sql View File

@ -0,0 +1,33 @@
-- 删除装备物品旧代码
drop table if exists goods_extra;
drop table if exists log_goods_compose;
drop table if exists equip_devour;
drop table if exists log_equip_devour;
-- tyl
-- 成就
TRUNCATE TABLE achievement;
ALTER TABLE achievement
CHANGE COLUMN `id` `category` SMALLINT(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '章节' AFTER `role_id`,
ADD COLUMN `sub_category` SMALLINT(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '小类' AFTER `category`;
ALTER TABLE achievement
DROP PRIMARY KEY, ADD PRIMARY KEY(`role_id`,`category`,`sub_category`);
TRUNCATE TABLE achievement_star_reward;
RENAME TABLE achievement_star_reward TO achievement_category_reward;
ALTER TABLE achievement_category_reward
CHANGE COLUMN `star` `category` SMALLINT(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '章节' AFTER `role_id`;
ALTER TABLE log_achv
DROP COLUMN achv_id,
ADD COLUMN category SMALLINT(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '章节' AFTER `lv`,
ADD COLUMN sub_category SMALLINT(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '小类' AFTER `category`;
CREATE TABLE IF NOT EXISTS `achievement_lv` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '成就等级',
`exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '成就经验',
`lv_reward_list` varchar(500) NOT NULL DEFAULT '[]' COMMENT '成就奖励领取状态[{lv, status}]',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='成就等级数据表';

+ 8
- 0
db/20-03/20-03-14.sql View File

@ -0,0 +1,8 @@
-- 增加字段
ALTER TABLE `role_vip`
ADD COLUMN `real_lv` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '真实vip等级' AFTER `lv`;
ALTER TABLE `player_visus`
ADD COLUMN `state` int(11) NOT NULL DEFAULT 0 COMMENT '激活状态' AFTER `lv`;

+ 4
- 0
db/20-03/20-03-17.sql View File

@ -0,0 +1,4 @@
-- 增加字段
ALTER TABLE `guild`
ADD COLUMN `badges` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '[]' COMMENT '徽章' AFTER `c_rename_time`;

+ 26
- 0
db/20-03/20-03-18.sql View File

@ -0,0 +1,26 @@
-- liushl
-- 背包吞噬
CREATE TABLE `player_devour` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`devour_lv` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '吞噬等级',
`devour_exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '吞噬经验',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='背包吞噬(合服保留)';
drop table if exists log_normal_combat_power;
CREATE TABLE `log_normal_combat_power` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
`role_id` bigint(20) unsigned NOT NULL COMMENT '玩家id',
`name` varchar(255) NOT NULL COMMENT '名字',
`module_id` int(11) unsigned NOT NULL COMMENT '功能id',
`type` int(11) unsigned NOT NULL COMMENT '操作类型',
`old_power` int(11) unsigned NOT NULL COMMENT '操作前战力',
`new_power` int(11) unsigned NOT NULL COMMENT '操作后战力',
`change_power` int(11) NOT NULL COMMENT '战力变化',
`remark` varchar(512) NOT NULL COMMENT '备注@lang@',
`time` int(11) unsigned NOT NULL COMMENT '时间',
PRIMARY KEY (`id`),
KEY `role_id` (`role_id`),
KEY `module_id` (`module_id`),
KEY `time` (`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='通用战力日志表';

+ 9
- 0
db/20-03/20-03-20.sql View File

@ -0,0 +1,9 @@
-- zmh
ALTER TABLE `common_rank_guild`
ADD COLUMN `fstyle` int(11) NOT NULL DEFAULT 0 COMMENT '旗帜款' AFTER `guild_name`,
ADD COLUMN `fcolor` int(11) NOT NULL DEFAULT 0 COMMENT '旗帜颜色' AFTER `fstyle`;
-- zhaoyu
ALTER TABLE `player_state`
MODIFY COLUMN `quickbar` varchar(1200) CHARACTER SET utf8 NOT NULL DEFAULT '[]' COMMENT '快捷栏' AFTER `anger`;

+ 11
- 0
db/20-03/20-03-23.sql View File

@ -0,0 +1,11 @@
-- zhaoyu
ALTER TABLE `log_arena_season_rank`
MODIFY COLUMN `season_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '赛季Id' AFTER `id`;
CREATE TABLE IF NOT EXISTS `player_visus_skill` (
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '玩家Id',
`skill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '当前使用的技能Id',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='幻光功能-玩家当前使用的技能Id';

+ 2
- 0
db/20-03/20-03-24.sql View File

@ -0,0 +1,2 @@
ALTER TABLE `common_rank_praise`
MODIFY COLUMN `type` int(11) UNSIGNED NOT NULL COMMENT '点赞类型';

+ 24
- 0
db/20-03/20-03-25.sql View File

@ -0,0 +1,24 @@
-- tyl 孩子玩具&时装
CREATE TABLE IF NOT EXISTS `child_toy_slot` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`slot_id` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '槽位Id',
`goods_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '物品Id',
PRIMARY KEY (`role_id`,`slot_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子-玩具槽位表数据表';
CREATE TABLE IF NOT EXISTS `child_toy_forge` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`slot_id` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '打造槽位Id',
`start_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '开始打造时间',
`status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态 0-待生产 1-正在生产 2-生产完成',
`select_id` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '打造库Id',
PRIMARY KEY (`role_id`,`slot_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子-孩子玩具打造位数据表';
CREATE TABLE IF NOT EXISTS `child_fashion` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`fashion_id` int(11) unsigned NOT NULL COMMENT '时装Id',
`lv` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '等级',
`state` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '穿戴状态 0-未穿戴 1-已穿戴',
PRIMARY KEY (`role_id`,`fashion_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子-时装数据表';

+ 16
- 0
db/20-03/20-03-27.sql View File

@ -0,0 +1,16 @@
ALTER TABLE `guild`
ADD COLUMN `party_num` int(11) NOT NULL DEFAULT 0 COMMENT '晚宴参与人次' AFTER `badges`,
ADD COLUMN `assist` int(11) NOT NULL DEFAULT 0 COMMENT '助战统计' AFTER `party_num`,
ADD COLUMN `war_win` int(11) NOT NULL DEFAULT 0 COMMENT '社团战获胜' AFTER `assist`,
ADD COLUMN `last_renew` int(11) NOT NULL DEFAULT 0 COMMENT '上次更新' AFTER `war_win`;
-- tyl
ALTER TABLE child_daily_task DROP COLUMN `task_type`;
-- zhaoyu
ALTER TABLE `arena_record`
ADD COLUMN `role_power` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家战力' AFTER `code`,
ADD COLUMN `rival_power` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '挑战玩家战力' AFTER `role_power`;

+ 13
- 0
db/20-03/20-03-28.sql View File

@ -0,0 +1,13 @@
-- hh
ALTER TABLE `role_exp_dun_drop`
DROP COLUMN `fast_hook_time`;
CREATE TABLE `role_fast_exp`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`fast_hook_time` int(11) UNSIGNED NOT NULL COMMENT '快速挂机时间',
PRIMARY KEY(`role_id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT="经验副本快速挂机数据";
ALTER TABLE `player_devour`
ADD COLUMN `is_auto` int(11) NOT NULL DEFAULT 0 COMMENT '是否自动吞噬';

+ 70
- 0
db/20-03/20-03-30.sql View File

@ -0,0 +1,70 @@
-- tyl 孩子相关日志
CREATE TABLE IF NOT EXISTS `log_child_grow_up` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`child_year` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '孩子年龄-年',
`child_month` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '孩子年龄-月',
`child_age_exp` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '孩子成长经验',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='孩子成长日志';
CREATE TABLE IF NOT EXISTS `log_child_upgrade` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`heart_link_lv` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '同心等级',
`heart_link_exp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '同心经验',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='孩子培养日志表';
CREATE TABLE IF NOT EXISTS `log_child_skill` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`skill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '技能Id',
`skill_lv` mediumint(6) unsigned NOT NULL DEFAULT '0' COMMENT '技能等级',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='孩子技能日志表';
CREATE TABLE IF NOT EXISTS `log_child_toy` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`toy_type_id` int(11) unsigned NOT NULL COMMENT '玩具类型Id',
`toy_id` bigint(20) unsigned NOT NULL COMMENT '玩具Id',
`toy_lv` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '玩具强化等级',
`state` tinyint(1) unsigned NOT NULL COMMENT '槽位状态 0-不在槽位 1-在槽位上',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='孩子玩具强化日志表';
CREATE TABLE IF NOT EXISTS `log_child_fashion` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`fashion_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时装Id',
`lv` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '时装等级',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='孩子时装强化日志';
-- 社团协助日志
CREATE TABLE IF NOT EXISTS `log_ask_guild_support` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`ask_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '请求者Id',
`guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '公会Id',
`support_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '协助单Id',
`content` varchar(255) NOT NULL DEFAULT '[]' COMMENT '协助具体内容',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '协助单创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='社团协助日志表';
CREATE TABLE IF NOT EXISTS `log_guild_support_reward` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`supporter` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '协助者Id',
`guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '公会Id',
`support_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '协助单Id',
`cfg_id` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '协助配置Id',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='协助单结算日志表';

+ 4
- 0
db/20-03/20-03-31.sql View File

@ -0,0 +1,4 @@
ALTER TABLE `player_foster`
ADD COLUMN `isride` int(11) NOT NULL DEFAULT 0 COMMENT '骑乘状态' AFTER `display`;

+ 10
- 0
db/20-04/20-04-09.sql View File

@ -0,0 +1,10 @@
-- tyl 孩子排行榜奖励日志表
CREATE TABLE IF NOT EXISTS `log_child_vote_reward` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色id',
`rank` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '孩子点赞排名',
`reward` varchar(255) NOT NULL DEFAULT '[]' COMMENT '奖励',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='孩子排行榜奖励日志表';

+ 14
- 0
db/20-04/20-04-11.sql View File

@ -0,0 +1,14 @@
-- zhaoyu
ALTER TABLE `market_goods`
ADD COLUMN `sys_buyback_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '系统回购时间戳-0表示系统不回购' AFTER `off_time`;
CREATE TABLE IF NOT EXISTS `market_goods_supply_info` (
`goods_type_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '物品类型Id',
`num` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '玩家累积上架物品数量',
`supply_num` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '系统今日累积补给数量',
`time` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '系统最近一次补给时间戳',
PRIMARY KEY (`goods_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易市场-系统补给商品数据';

+ 4
- 0
db/20-04/20-04-13.sql View File

@ -0,0 +1,4 @@
alter table equipment_pos drop column inlay;
alter table equipment_pos drop column inlay_list;
alter table equipment_pos add column carve int(11) NOT NULL DEFAULT '0' COMMENT '上阵的印刻';
alter table equipment_pos add column carve_list varchar(2000) NOT NULL DEFAULT '[]' COMMENT '已激活的印刻';

+ 3
- 0
db/20-04/20-04-14.sql View File

@ -0,0 +1,3 @@
-- tyl 修改温泉配置表
drop table if exists base_beach_exp;
drop table if exists base_beach_props;

+ 18
- 0
db/20-04/20-04-18.sql View File

@ -0,0 +1,18 @@
-- zmh
CREATE TABLE `role_nucleon` (
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '灵能级',
`holes` varchar(100) NOT NULL DEFAULT '[]' COMMENT '技能',
`breaks` varchar(100) NOT NULL DEFAULT '[]' COMMENT '觉醒',
`normal` int(11) NOT NULL DEFAULT '0' COMMENT '普通已抽次数',
`ntime` int(11) NOT NULL DEFAULT '0' COMMENT '上次免费操作时间',
`nfirst` int(11) NOT NULL DEFAULT '0' COMMENT '普通首次',
`nstate` varchar(100) NOT NULL DEFAULT '[]' COMMENT '普通状态',
`special` int(11) NOT NULL DEFAULT '0' COMMENT '特别已抽次数',
`stime` int(11) NOT NULL DEFAULT '0' COMMENT '上次特殊已抽时间',
`sfirst` int(11) NOT NULL DEFAULT '0' COMMENT '特殊首次',
`estate` varchar(100) NOT NULL DEFAULT '[]' COMMENT '特殊状态',
`rtime` int(11) NOT NULL DEFAULT '0' COMMENT '刷新时间',
PRIMARY KEY (`rid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='灵能-合服保留';

+ 16
- 0
db/20-04/20-04-21.sql View File

@ -0,0 +1,16 @@
-- hh
-- 贵族功能
CREATE TABLE `role_sup_vip`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`type` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否是永久vip 0否|1是',
`continue_charge_days` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '连续充值天数',
`today_charge` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日已充值',
`last_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近一次充值时间',
`total_charge` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '体验阶段总充值量',
`end_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '体验贵族结束时间',
`unlock_ids` varchar(100) NOT NULL DEFAULT '[]' COMMENT '贵族商城当前解锁序列',
`today_star` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日星钻',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近更新时间',
PRIMARY KEY(`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT="人物贵族数据";

+ 19
- 0
db/20-04/20-04-22.sql View File

@ -0,0 +1,19 @@
-- liushl
-- 装备宝石
CREATE TABLE `equipment_series` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`series` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '套数',
`pos` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备位置',
`gems` varchar(500) NOT NULL DEFAULT '[]' COMMENT '镶嵌的宝石',
PRIMARY KEY (`role_id`, `series`, `pos`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='装备-套数位置装备信息##合服保留';
-- zmh
-- 玩家人格
CREATE TABLE `role_nature`(
`rid` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
`intellect` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '理性值',
`nastic` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '感性值',
PRIMARY KEY(`rid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT="玩家人格数据";

+ 5
- 0
db/20-04/20-04-28.sql View File

@ -0,0 +1,5 @@
-- liushl
-- 市场操作日志
alter table log_market_operation drop column log_time;
alter table log_market_operation modify column time int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间';
alter table log_market_operation add column on_time int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上架时间';

+ 7
- 0
db/20-05/20-05-06.sql View File

@ -0,0 +1,7 @@
-- liushl
-- BOSS关注
CREATE TABLE `local_boss_focus` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`boss_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'BOSS',
PRIMARY KEY (`role_id`, `boss_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='本服BOSS-关注信息##合服保留';

+ 25
- 0
db/20-05/20-05-08.sql View File

@ -0,0 +1,25 @@
-- hh
-- 修改多人副本日志
ALTER TABLE `log_multi_dungeon`
ADD COLUMN `node` varchar(255) NOT NULL DEFAULT 'undefined' COMMENT '玩家节点' AFTER `role_id`;
ALTER TABLE `log_multi_dungeon`
ADD COLUMN `node1` varchar(255) NOT NULL DEFAULT 'undefined' COMMENT '玩家1节点' AFTER `role_id1`;
ALTER TABLE `log_multi_dungeon`
ADD COLUMN `node2` varchar(255) NOT NULL DEFAULT 'undefined' COMMENT '玩家2节点' AFTER `role_id2`;
ALTER TABLE `log_multi_dungeon`
ADD COLUMN `node3` varchar(255) NOT NULL DEFAULT 'undefined' COMMENT '玩家3节点' AFTER `role_id3`;
-- 修改vip日志
ALTER TABLE `log_vip_status`
ADD COLUMN `trial_lv` tinyint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '体验等级' AFTER `vip_type`;
ALTER TABLE `log_vip_status`
MODIFY COLUMN `vip_status` int(8) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'vip状态 0激活体验|1激活永久|2体验过期|3永久升级';
ALTER TABLE `log_vip_upgrade` DROP COLUMN `login_exp`;
ALTER TABLE `log_vip_upgrade` DROP COLUMN `goods_exp`;

+ 25
- 0
db/20-05/20-05-14.sql View File

@ -0,0 +1,25 @@
-- tyl 孩子添加玩具相关
CREATE TABLE IF NOT EXISTS `child_toy` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`suit_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '套装类型',
`toy_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩具Id',
`toy_lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩具等级',
PRIMARY KEY (`role_id`,`suit_type`,`toy_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子玩具数据表';
CREATE TABLE IF NOT EXISTS `child_toy_suit` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`suit_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '玩具套装类型',
`status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '领取状态',
`collect_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '集齐时间',
PRIMARY KEY (`role_id`,`suit_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子玩具套装数据表';
CREATE TABLE IF NOT EXISTS `log_child_toy_suit` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`suit_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '玩具套装类型',
`status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '收集进度状态',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='孩子玩具套装日志表';

+ 11
- 0
db/20-05/20-05-16.sql View File

@ -0,0 +1,11 @@
-- tyl 修改孩子日志表
DROP TABLE IF EXISTS `log_child_toy`;
CREATE TABLE IF NOT EXISTS `log_child_toy` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`suit_type` tinyint(3) unsigned NOT NULL COMMENT '玩具类型Id',
`toy_id` int(11) unsigned NOT NULL COMMENT '玩具Id',
`toy_lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩具强化等级',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='孩子玩具强化日志表';

+ 13
- 0
db/20-05/20-05-18.sql View File

@ -0,0 +1,13 @@
-- tyl 修改孩子数据表
alter table child_toy drop column toy_lv;
alter table role_child add column box_lv int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩具盒等级' AFTER show_vehicle;
alter table log_child_toy drop column toy_lv;
CREATE TABLE IF NOT EXISTS `log_child_toy_box` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`box_lv` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '玩具盒等级',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='孩子玩具盒等级日志表';

+ 13
- 0
db/20-05/20-05-19.sql View File

@ -0,0 +1,13 @@
-- zmh 社团旗帜
ALTER TABLE `guild`
DROP COLUMN `style`,
DROP COLUMN `color`,
ADD COLUMN `flag` int(11) NOT NULL DEFAULT 0 COMMENT '社团旗帜' AFTER `arrears`;
ALTER TABLE `common_rank_guild`
DROP COLUMN `fstyle`,
DROP COLUMN `fcolor`,
ADD COLUMN `flag` int(11) NULL DEFAULT 0 COMMENT '旗帜' AFTER `guild_name`;

+ 120
- 0
db/20-05/20-05-21.sql View File

@ -0,0 +1,120 @@
-- liushl
CREATE TABLE `log_equipment_strength` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`series` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备套数',
`equip_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备类型',
`goods_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '物品ID',
`goods_type_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '装备ID',
`result` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '强化结果##1成功;0失败',
`lv_before` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '强化前等级',
`lv_after` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '强化后等级',
`ratio` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '强化概率',
`cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY goods_type_id(`goods_type_id`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-装备强化';
CREATE TABLE `log_equipment_great` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`series` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备套数',
`equip_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备类型',
`goods_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '物品ID',
`goods_type_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '装备ID',
`result` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '进化结果##1成功;0失败',
`great_before` varchar(500) NOT NULL DEFAULT '[]' COMMENT '进化前属性',
`great_after` varchar(500) NOT NULL DEFAULT '[]' COMMENT '进化后属性',
`ratio` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '进化概率',
`cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY goods_type_id(`goods_type_id`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-装备进化';
CREATE TABLE `log_equipment_empower` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`equip_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备位置',
`lv_before` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '操作前等级',
`lv_after` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '操作后等级',
`cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-装备器灵';
CREATE TABLE `log_equipment_inherit` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '继承类型##1手动继承;2自动继承',
`goods_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '物品ID',
`goods_type_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '装备ID',
`cost_equipment` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消耗装备ID',
`attr_after` varchar(500) NOT NULL DEFAULT '[]' COMMENT '继承后属性',
`attr_before` varchar(500) NOT NULL DEFAULT '[]' COMMENT '继承前属性',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY goods_type_id(`goods_type_id`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-装备继承';
CREATE TABLE `log_equipment_gems` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型##1镶嵌;2摘除;3升级',
`series` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备套数',
`equip_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '装备位置',
`goods_id_before` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作前宝石ID##无为0',
`goods_id_after` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作后宝石ID##无为0',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-装备宝石';
CREATE TABLE `log_nucleon_equip_upgrade` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`opty` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型0升级1进阶',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`equip_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '装备ID',
`goods_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '物品ID',
`lv_before` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '前等级',
`lv_after` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '后等级',
`exp_before` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '前经验',
`exp_after` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '后经验',
`goods_id_after` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '进阶后ID',
`cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY goods_id(`goods_id`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-灵装升级';
ALTER TABLE `guild_boss`
MODIFY COLUMN `flag` int(11) NOT NULL DEFAULT 0 COMMENT '社团旗帜' AFTER `gid`;

+ 69
- 0
db/20-05/20-05-23.sql View File

@ -0,0 +1,69 @@
-- hh
-- 贵族兑换日志
CREATE TABLE `log_sup_vip_exchange`(
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
`role_name` varchar(300) NOT NULL DEFAULT "" COMMENT '玩家名称',
`vip_lv` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'vip等级',
`type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作类型 1彩钻|2培养丹|3商城',
`cost` varchar(255) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
`reward` varchar(300) NOT NULL DEFAULT '[]' COMMENT '奖励',
`time_before` int(11) NOT NULL DEFAULT 0 COMMENT '兑换前次数',
`time_after` int(11) NOT NULL DEFAULT 0 COMMENT '兑换后次数',
`gold_before` int(11) NOT NULL DEFAULT 0 COMMENT '兑换前彩钻',
`gold_after` int(11) NOT NULL DEFAULT 0 COMMENT '兑换后彩钻',
`time` int(11) NOT NULL DEFAULT 0 COMMENT '时间',
PRIMARY KEY(`id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT="贵族兑换日志";
-- 钻石vip日志贵族状态变更&贵族充值记录
CREATE TABLE `log_sup_vip_status`(
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
`sup_vip_type` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '贵族状态',
`active_type` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '变更操作',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作时间',
PRIMARY KEY(`id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT="贵族状态变更";
CREATE TABLE `log_trial_sup_vip_charge`(
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
`gold` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '本次增加钻石数',
`total_gold` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '总钻石数',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作时间',
PRIMARY KEY(`id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT="贵族期间充值记录";
-- 器灵寻宝
CREATE TABLE `log_marble`(
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
`role_name` varchar(255) NOT NULL DEFAULT "" COMMENT '玩家名称',
`qual_id` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '品质ID',
`award` varchar(255) NOT NULL DEFAULT '[]' COMMENT '奖励列表',
`increase_point` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '增加能量点',
`current_point` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前能量点',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
PRIMARY KEY(`id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT="器灵寻宝";
-- liushl
-- 首充日志
alter table log_recharge_first add column
isnew tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否创角当天充值##1是;0否';
alter table log_recharge_first add column
reg_time int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创角时间';
alter table log_recharge_first add column
charge_day int(11) unsigned NOT NULL DEFAULT '0' COMMENT '首充开服天数';
alter table player_login add column
`last_behavior` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后行为';
-- 每日在线时长日志
ALTER TABLE `log_all_online`
ADD COLUMN `day` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当天0点时间戳' AFTER `last_login_time`;

+ 72
- 0
db/20-05/20-05-25.sql View File

@ -0,0 +1,72 @@
-- liushl
-- 福利大厅
alter table player_welfare add column
`cumulative_sign_in_info` int(11) NOT NULL DEFAULT '0' COMMENT '累计签到奖励情况';
-- zmh
CREATE TABLE `log_nucleon_equip_recast` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`main_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '装备ID',
`main_goods_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '物品ID',
`main_attr_bef` varchar(500) NOT NULL DEFAULT '[]' COMMENT '前主属性',
`main_attr_aft` varchar(500) NOT NULL DEFAULT '[]' COMMENT '后主属性',
`sub_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '从装备ID',
`sub_goods_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '从物品ID',
`sub_attr` varchar(500) NOT NULL DEFAULT '[]' COMMENT '从属性',
`cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗列表',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY goods_id(`main_goods_id`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-灵装洗练';
-- zmh
CREATE TABLE `log_nucleon_section` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`pos` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '部位',
`lv` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '等级',
`cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-灵装觉醒';
-- zmh
CREATE TABLE `log_nucleon_hunt` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`opty` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '类型',
`num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '单抽十连',
`awards` varchar(1000) NOT NULL DEFAULT '[]' COMMENT '获得',
`cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-灵装抽奖';
-- zmh
CREATE TABLE `log_nucleon_resolve` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`name` varchar(50) NOT NULL DEFAULT '[]' COMMENT '名称',
`gains` varchar(2000) NOT NULL DEFAULT '[]' COMMENT '获得',
`cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`),
KEY role_id(`role_id`),
KEY name(`name`),
KEY time(`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日志-灵装分解';

+ 5
- 0
db/20-06/20-06-08.sql View File

@ -0,0 +1,5 @@
-- 器灵寻宝补充字段
-- hh
ALTER TABLE `role_marble`
ADD COLUMN `qua_indexs` varchar(255) NOT NULL DEFAULT '[]' COMMENT '随机品质分布' AFTER `fixed_rewards`;

+ 10
- 0
db/20-06/20-06-19.sql View File

@ -0,0 +1,10 @@
-- 幻光副本
-- hh
CREATE TABLE `role_dun_visus`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '玩家id',
`dun_id` int(11) UNSIGNED NOT NULL COMMENT '副本id',
`pass_waves` varchar(500) NOT NULL DEFAULT '[]' COMMENT '今日首通波数',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
PRIMARY KEY(`role_id`, `dun_id`)
)ENGINE=InnoDB CHARSET=utf8 COMMENT="幻光副本数据";

+ 11
- 0
db/20-06/20-06-23.sql View File

@ -0,0 +1,11 @@
-- 珍宝
-- zmh
CREATE TABLE `player_foster_skin` (
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家id',
`type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '系统类型',
`id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'id',
`star` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '星级',
`display` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '展示',
PRIMARY KEY (`rid`,`type`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='进阶珍宝';

+ 9
- 0
db/20-06/20-06-24.sql View File

@ -0,0 +1,9 @@
-- liushl 护送
CREATE TABLE `role_convoy` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
`convoy_id` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '可护送对象',
`last_attack_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上次攻击护送玩家时间',
`is_robber` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否打劫状态##1是|0不是',
`convoying` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '当前护送对象##没有时为0',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='护送信息##合服保留';

+ 2
- 0
db/20-06/20-06-28.sql View File

@ -0,0 +1,2 @@
alter table role_convoy add column `rob_log` varchar(255) NOT NULL DEFAULT '[]' COMMENT '打劫记录';
alter table role_convoy add column `rob_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '成功打劫时间';

+ 33
- 0
db/20-06/20-06-29.sql View File

@ -0,0 +1,33 @@
-- hh
-- 七天登录
ALTER TABLE `login_reward_player`
DROP COLUMN `day_id`;
ALTER TABLE `login_reward_player`
ADD COLUMN `day_states` varchar(500) NOT NULL DEFAULT '[]' COMMENT '已领取天数';
-- zmh
-- 活动数据
CREATE TABLE `custom_act_data` (
`rid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '定制活动主类型',
`subtype` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '定制活动次类型',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '活动数据最后更新时间',
`act_data` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '定制活动统计数据',
PRIMARY KEY (`rid`,`type`,`subtype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='定制活动-活动统计数据,合服保留';
-- liushl
-- 角色差异化定制活动
CREATE TABLE `custom_act_personal` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '定制活动主类型',
`subtype` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '定制活动次类型',
`s_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '活动开始时间',
`e_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '活动结束时间',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '活动数据最后更新时间',
`act_data` varchar(5000) NOT NULL DEFAULT '[]' COMMENT '定制活动统计数据##具体活动类型自定义',
PRIMARY KEY (`role_id`,`type`,`subtype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='定制活动-角色差异化活动,合服保留';

+ 62
- 0
db/20-07/20-07-01.sql View File

@ -0,0 +1,62 @@
-- hh
-- 走格子
CREATE TABLE `role_lattice`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`pos` tinyint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '位置',
`circle` tinyint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '轮次',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
`circle_reward` varchar(1000) NOT NULL DEFAULT '[]' COMMENT '轮次奖励',
PRIMARY KEY(`role_id`)
) ENGINE=InnoDB CHARSET=utf8 COMMENT="器灵寻宝-玩家走格子数据";
CREATE TABLE `role_lattice_shop`(
`role_id` bigint(20) UNSIGNED NOT NULL COMMENT '人物id',
`shop_count` tinyint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '手动刷新次数',
`shop_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近操作时间',
`shop_info` varchar(255) NOT NULL DEFAULT '[]' COMMENT '商店信息',
PRIMARY KEY(`role_id`)
) ENGINE=InnoDB CHARSET=utf8 COMMENT="器灵寻宝-玩家格子商店数据";
CREATE TABLE `log_lattice`(
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
`circle` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '轮次',
`pre_step` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '旧步数',
`pass_step` tinyint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '本次行步',
`cost` varchar(255) NOT NULL DEFAULT '[]' COMMENT '消耗',
`rewards` varchar(255) NOT NULL DEFAULT '[]' COMMENT '奖励',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
PRIMARY KEY(`id`)
) ENGINE=InnoDB CHARSET=utf8 COMMENT="器灵寻宝-走格子日志";
-- 龙神扭蛋 tyl
CREATE TABLE IF NOT EXISTS `capsule_egg_data` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`pool_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖池类型',
`next_free_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '下次免费时间',
`draw_times` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖次数',
PRIMARY KEY (`role_id`,`pool_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='龙神扭蛋-玩家抽奖数据表';
CREATE TABLE IF NOT EXISTS `capsule_egg_draw_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pool_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖池类型',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`reward_cfg_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '奖励配置Id',
`time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='龙神扭蛋-抽奖记录';
CREATE TABLE IF NOT EXISTS `capsule_egg_person_score` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖总积分',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='龙神扭蛋-个人抽奖积分';
CREATE TABLE IF NOT EXISTS `capsule_egg_server_score` (
`pool_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖池类型',
`score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '抽奖幸运值(全服积分)',
PRIMARY KEY (`pool_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='龙神扭蛋-全服幸运值';

+ 4
- 0
db/20-07/20-07-02.sql View File

@ -0,0 +1,4 @@
-- tyl
alter table capsule_egg_data add column `lucky_score` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '个人幸运值';
alter table capsule_egg_draw_log add column `color` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '档位' after `reward_cfg_id`;

+ 4
- 0
db/20-07/20-07-06.sql View File

@ -0,0 +1,4 @@
-- zmh
ALTER TABLE `rush_rank_role`
ADD COLUMN `value2` int(11) NOT NULL DEFAULT 0 COMMENT '值2' AFTER `value`,
ADD COLUMN `value3` int(11) NOT NULL DEFAULT 0 COMMENT '值3' AFTER `value2`;

+ 3
- 0
db/20-07/20-07-07.sql View File

@ -0,0 +1,3 @@
-- liushl
-- 投资数据
alter table investment_data add column `is_buy` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否购买' after lv;

+ 18
- 0
db/20-07/20-07-08.sql View File

@ -0,0 +1,18 @@
-- hh
-- 守卫信标
CREATE TABLE `role_dun_guard_achieve` (
`role_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '人物id',
`dun_id` int(11) UNSIGNED NOT NULL DEFAULT '3400' COMMENT '副本id',
`wave` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '副本进度',
`state` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '里程碑领取状态',
PRIMARY KEY (`role_id`,`dun_id`,`wave`)
) ENGINE=InnoDB CHARSET=utf8 COMMENT='守卫信标数据';
CREATE TABLE `dun_guard_log` (
`dun_id` int(11) UNSIGNED NOT NULL COMMENT '副本id',
`wave` int(11) UNSIGNED NOT NULL COMMENT '波数进度',
`role_list` varchar(255) NOT NULL DEFAULT '[]' COMMENT '队员列表',
`time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '时间',
PRIMARY KEY(`dun_id`, `wave`)
) ENGINE=InnoDB CHARSET=utf8 COMMENT='守卫信标波数首通历史数据';

+ 37
- 0
db/20-07/20-07-09.sql View File

@ -0,0 +1,37 @@
drop table if exists player_recharge;
CREATE TABLE `player_recharge_rfmt` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`last_pay_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最近充值时间',
`total_money` decimal(12,2) DEFAULT '0.00' COMMENT '总充值金额',
`total_gold` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '总充值元宝',
`recency` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '评级:充值间隔',
`frequency` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '评级:充值频率',
`monetary` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '评级:历史总充值',
`top` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '评级:最高额充值',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='玩家充值统计数据,合服保留';
-- tyl 功能预告
CREATE TABLE IF NOT EXISTS `role_module_advance` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`func_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '预告功能配置Id',
`reward_state` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '领奖状态',
PRIMARY KEY (`role_id`,`func_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 宠物副本
CREATE TABLE IF NOT EXISTS `role_pet_dun_reward` (
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`dun_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '副本Id',
`status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '里程碑奖励领取状态',
PRIMARY KEY (`role_id`,`dun_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物副本-里程碑奖励领取状态';
CREATE TABLE IF NOT EXISTS `dun_pet_rank` (
`rank` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '排名',
`role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
`score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
`reach_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '达成时间',
PRIMARY KEY (`rank`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save