forked from GoBelieveIO/im_service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.sql
More file actions
25 lines (20 loc) · 792 Bytes
/
db.sql
File metadata and controls
25 lines (20 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CREATE DATABASE IF NOT EXISTS gobelieve DEFAULT CHARACTER SET utf8;
use gobelieve;
CREATE TABLE `group` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`appid` bigint(20) DEFAULT NULL,
`master` bigint(20) DEFAULT NULL,
`super` tinyint(4) NOT NULL DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`notice` varchar(255) DEFAULT NULL COMMENT '公告',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `group_member` (
`group_id` bigint(20) NOT NULL DEFAULT '0',
`uid` bigint(20) NOT NULL DEFAULT '0',
`timestamp` int(11) DEFAULT NULL COMMENT '入群时间,单位:秒',
`nickname` varchar(255) DEFAULT NULL COMMENT '群内昵称',
PRIMARY KEY (`group_id`,`uid`),
KEY `idx_group_member_uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SHOW TABLES;