forked from xiuweikang/IM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyqq.sql
69 lines (59 loc) · 1.85 KB
/
myqq.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
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50623
Source Host : localhost:3306
Source Database : myqq
Target Server Type : MYSQL
Target Server Version : 50623
File Encoding : 65001
Date: 2015-05-30 12:51:55
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `friendlist`
-- ----------------------------
DROP TABLE IF EXISTS `friendlist`;
CREATE TABLE `friendlist` (
`master` int(11) NOT NULL,
`friendid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of friendlist
-- ----------------------------
-- ----------------------------
-- Table structure for `savemsg`
-- ----------------------------
DROP TABLE IF EXISTS `savemsg`;
CREATE TABLE `savemsg` (
`sendid` int(11) NOT NULL,
`getid` int(11) DEFAULT NULL,
`msg` varchar(1000) DEFAULT NULL,
`trantype` tinyint(3) DEFAULT NULL,
`time` varchar(30) DEFAULT NULL,
`resulttype` tinyint(4) DEFAULT NULL,
`messagetype` tinyint(4) DEFAULT NULL,
`sendname` varchar(18) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of savemsg
-- ----------------------------
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自动生成的ID',
`account` varchar(18) NOT NULL,
`gender` tinyint(4) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL,
`photo` mediumblob,
`location` varchar(50) DEFAULT NULL,
`birthday` date DEFAULT NULL,
`isOnline` tinyint(4) DEFAULT '0',
`password` varchar(18) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------