-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_sql.sql
75 lines (66 loc) · 2.23 KB
/
server_sql.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
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for file_info
-- ----------------------------
DROP TABLE IF EXISTS `file_info`;
CREATE TABLE `file_info` (
`md5` varchar(200) NOT NULL,
`file_id` varchar(256) NOT NULL,
`url` varchar(512) NOT NULL,
`size` bigint(20) DEFAULT NULL,
`type` varchar(20) DEFAULT NULL,
`count` int(11) DEFAULT NULL,
PRIMARY KEY (`md5`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of file_info
-- ----------------------------
-- ----------------------------
-- Table structure for share_file_list
-- ----------------------------
DROP TABLE IF EXISTS `share_file_list`;
CREATE TABLE `share_file_list` (
`user` varchar(128) NOT NULL,
`md5` varchar(200) NOT NULL,
`createtime` varchar(128) DEFAULT NULL,
`filename` varchar(128) DEFAULT NULL,
`pv` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of share_file_list
-- ----------------------------
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`nickname` varchar(128) NOT NULL,
`password` varchar(128) NOT NULL,
`phone` varchar(15) NOT NULL,
`createtime` varchar(128) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uq_nickname` (`nickname`),
UNIQUE KEY `uq_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user_file_count
-- ----------------------------
-- ----------------------------
-- Table structure for user_file_list
-- ----------------------------
DROP TABLE IF EXISTS `user_file_list`;
CREATE TABLE `user_file_list` (
`user` varchar(128) NOT NULL,
`md5` varchar(200) NOT NULL,
`createtime` varchar(128) DEFAULT NULL,
`filename` varchar(128) DEFAULT NULL,
`shared_status` int(11) DEFAULT NULL,
`pv` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user_file_list
-- ----------------------------
SET FOREIGN_KEY_CHECKS=1;