diff --git a/sql/gamedb.sql b/sql/gamedb.sql index afaf5852..b0f2ee77 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1010,7 +1010,7 @@ DROP TABLE IF EXISTS `t_user_use_emoji`; CREATE TABLE `t_user_use_emoji` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', - `value` varchar(255) NOT NULL DEFAULT '' COMMENT '选中表情itemID', + `used` mediumblob COMMENT '使用的表情', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`) @@ -1071,12 +1071,15 @@ CREATE TABLE `t_rank_battle` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `channel` int(11) NOT NULL DEFAULT '0' COMMENT 'channel', + `mode` int(11) NOT NULL DEFAULT '0' COMMENT '1:4v4 2:pvp', + `class` int(11) NOT NULL DEFAULT '0' COMMENT '1:总榜 2:日榜 3:周榜', `type` int(11) NOT NULL DEFAULT '0' COMMENT 'type 1:场次榜 2:吃鸡榜 3:mvp榜 4:前三名榜 5:击杀榜', `value` bigint NOT NULL DEFAULT '0' COMMENT 'value', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', + `writetime` int(11) NOT NULL DEFAULT '0' COMMENT '记录时间', PRIMARY KEY (`idx`), - UNIQUE KEY `account_id_type` (`account_id`, `type`), + UNIQUE KEY `account_mode_class_type_writetime` (`account_id`,`mode`,`class`,`type`,`writetime`), KEY `channel` (`channel`), KEY `type` (`type`), KEY `value` (`value`) @@ -1748,7 +1751,7 @@ CREATE TABLE `t_hash_rate_battle_data` ( -- --- Table structure for table `t_hash_rate_battle_data` +-- Table structure for table `t_global_data` -- DROP TABLE IF EXISTS `t_global_data`;