This commit is contained in:
aozhiwei 2024-03-22 19:20:24 +08:00
parent 6d10f2cd58
commit 731401fc17

View File

@ -31,84 +31,44 @@ CREATE TABLE `version` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_mail`
-- Table structure for table `t_friend_relationship`
--
DROP TABLE IF EXISTS `t_mail`;
DROP TABLE IF EXISTS `t_friend_relationship`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_mail` (
CREATE TABLE `t_friend_relationship` (
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`mailid` bigint NOT NULL COMMENT 'mail id',
`subject` mediumblob COMMENT 'subject',
`content` mediumblob COMMENT '消息内容',
`to` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '收件人',
`attachments` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '附件',
`type` int(11) NOT NULL DEFAULT '0' COMMENT 'type',
`sub_type` int(11) NOT NULL DEFAULT '0' COMMENT 'sub_type',
`user_type` int(11) NOT NULL DEFAULT '0' COMMENT 'user_type',
`account_id1` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '账号1',
`account_id2` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '账号2',
`deleted` int(11) NOT NULL DEFAULT '0' COMMENT '是否已删除',
`sendtime` int(11) NOT NULL DEFAULT '0' COMMENT '发送时间',
`expiretime` int(11) NOT NULL DEFAULT '0' COMMENT '过期时间',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `mailid` (`mailid`)
UNIQUE KEY `account_id1_account_id2` (`account_id1`, `account_id2`),
KEY `account_id1` (`account_id1`),
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 */;
--
-- Table structure for table `t_recipient_group`
-- Table structure for table `t_friend_apply`
--
DROP TABLE IF EXISTS `t_recipient_group`;
DROP TABLE IF EXISTS `t_friend_apply`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_recipient_group` (
CREATE TABLE `t_friend_apply` (
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`group_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '分组id',
`group_name` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '分组名',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`)
) 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 */;
--
-- Table structure for table `t_recipient_list`
--
DROP TABLE IF EXISTS `t_recipient_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_recipient_list` (
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`group_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '分组id',
`account_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '账号id',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`)
) 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 */;
--
-- Table structure for table `t_account_data`
--
DROP TABLE IF EXISTS `t_account_data`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_account_data` (
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`account_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '账号id',
`blobdata` mediumblob COMMENT '账号',
`sender_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '申请者id',
`target_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '被申请者id',
`status` int(11) NOT NULL DEFAULT '0' COMMENT '0:未处理 1:同意 2拒绝 3忽略',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `account_id` (`account_id`)
KEY `sender_id` (`sender_id`),
KEY `target_id` (`target_id`),
) 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 */;