-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathLTalk.sql
94 lines (71 loc) · 2.94 KB
/
LTalk.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Dump of table chat_record
# ------------------------------------------------------------
CREATE TABLE `chat_record` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uid` int(11) unsigned NOT NULL,
`to_id` int(11) unsigned NOT NULL,
`data` text NOT NULL,
`created_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table friend
# ------------------------------------------------------------
CREATE TABLE `friend` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`f_id` int(11) NOT NULL,
`e_id` int(11) NOT NULL,
`created_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table group
# ------------------------------------------------------------
CREATE TABLE `group` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`gnumber` int(11) NOT NULL,
`user_number` int(11) NOT NULL,
`ginfo` varchar(255) NOT NULL DEFAULT '',
`gname` varchar(20) DEFAULT NULL,
`created_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table group_chat_record
# ------------------------------------------------------------
CREATE TABLE `group_chat_record` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uid` int(10) unsigned NOT NULL,
`gnumber` int(11) NOT NULL,
`data` varchar(255) NOT NULL,
`created_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table group_member
# ------------------------------------------------------------
CREATE TABLE `group_member` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`gnumber` int(11) NOT NULL,
`user_number` int(11) NOT NULL,
`creater_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table user
# ------------------------------------------------------------
CREATE TABLE `user` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(50) NOT NULL DEFAULT '',
`number` int(11) NOT NULL,
`password` varchar(255) NOT NULL DEFAULT '',
`nickname` varchar(20) DEFAULT NULL,
`sex` tinyint(1) DEFAULT NULL,
`last_login` int(11) DEFAULT NULL,
`created_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`),
UNIQUE KEY `number_union` (`number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table uv
# ------------------------------------------------------------
CREATE TABLE `uv` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(255) NOT NULL DEFAULT '',
`created_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;