This commit is contained in:
aozhiwei 2024-05-31 13:14:11 +08:00
parent 53d5437959
commit 6cefb75ae8
2 changed files with 5 additions and 2 deletions

View File

@ -218,7 +218,8 @@ CREATE TABLE `t_recent_battle` (
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
KEY `last_battle_time` (`last_battle_time`),
KEY `account_id1_account_id2` (`account_id1`, `account_id2`)
KEY `account_id1_account_id2` (`account_id1`, `account_id2`),
KEY `account_id2` (`account_id2`)
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

View File

@ -41,7 +41,8 @@ CREATE TABLE `t_mail` (
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`mail_id` bigint NOT NULL COMMENT '邮件id',
`mail_type` int(11) NOT NULL DEFAULT '0' COMMENT '邮件类型',
`subject` text NOT NULL DEFAULT '' COMMENT 'subject',
`unikey` varchar(255) CHARACTER SET utf8 COMMENT 'unikey',
`subject` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT 'subject',
`content` text NOT NULL DEFAULT '' COMMENT '消息内容',
`recipients` text NOT NULL DEFAULT '' COMMENT '收件人列表',
`attachments` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '附件',
@ -53,6 +54,7 @@ CREATE TABLE `t_mail` (
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
UNIQUE KEY `idx` (`idx`),
UNIQUE KEY `unikey` (`unikey`),
PRIMARY KEY (`mail_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;