diff --git a/sql/relationdb_n.sql b/sql/relationdb_n.sql index 6372b1b..0fc9b1a 100644 --- a/sql/relationdb_n.sql +++ b/sql/relationdb_n.sql @@ -119,6 +119,35 @@ CREATE TABLE `guild` ( /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; +-- Table structure for table `guild_apply` +-- + +DROP TABLE IF EXISTS `guild_apply`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `guild_apply` ( + `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', + `applyid` bigint NOT NULL COMMENT 'applyid', + `guild_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'guild', + `sender_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'sender', + `sender_nickname` tinyblob COMMENT 'nickname', + `sender_avatar_url` varchar(256) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '', + `sender_sex` int(11) NOT NULL DEFAULT '0' COMMENT 'sex', + `sender_data_version1` int(11) NOT NULL DEFAULT '0' COMMENT 'data_version1', + `sender_user_value1` bigint NOT NULL DEFAULT '0' COMMENT 'user_value1', + `sender_user_value2` bigint NOT NULL DEFAULT '0' COMMENT 'user_value2', + `sender_user_value3` bigint NOT NULL DEFAULT '0' COMMENT 'user_value3', + `status` int(11) NOT NULL DEFAULT '0' COMMENT '0:未处理 1:同意 2:拒绝 3:忽略', + `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', + PRIMARY KEY (`idx`), + UNIQUE KEY `applyid` (`applyid`), + KEY `guild_id` (`guild_id`), + KEY `sender_id` (`sender_id`), + KEY `guild_sender` (`guild_id`, `sender_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 */; + -- Table structure for table `friend_apply` --