-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdatebase.sql
More file actions
96 lines (79 loc) · 2.47 KB
/
Copy pathdatebase.sql
File metadata and controls
96 lines (79 loc) · 2.47 KB
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
95
96
# Host: localhost (Version: 5.5.47)
# Date: 2016-09-02 15:02:05
# Generator: MySQL-Front 5.3 (Build 4.234)
/*!40101 SET NAMES utf8 */;
#
# Structure for table "my_contents"
#
DROP TABLE IF EXISTS `my_contents`;
CREATE TABLE `my_contents` (
`cid` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(50) NOT NULL,
`posttime` datetime NOT NULL,
`author` varchar(50) NOT NULL,
`content` text,
`type` varchar(50) DEFAULT NULL,
PRIMARY KEY (`cid`),
KEY `posttime` (`posttime`),
KEY `posttime_2` (`posttime`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
#
# Data for table "my_contents"
#
/*!40000 ALTER TABLE `my_contents` DISABLE KEYS */;
/*!40000 ALTER TABLE `my_contents` ENABLE KEYS */;
#
# Structure for table "my_metas"
#
DROP TABLE IF EXISTS `my_metas`;
CREATE TABLE `my_metas` (
`mid` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`postcount` int(11) unsigned DEFAULT '0',
`type` varchar(50) DEFAULT NULL,
`slug` varchar(200) DEFAULT NULL,
`description` varchar(200) DEFAULT NULL,
PRIMARY KEY (`mid`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
#
# Data for table "my_metas"
#
/*!40000 ALTER TABLE `my_metas` DISABLE KEYS */;
/*!40000 ALTER TABLE `my_metas` ENABLE KEYS */;
#
# Structure for table "my_relationships"
#
DROP TABLE IF EXISTS `my_relationships`;
CREATE TABLE `my_relationships` (
`cid` int(10) NOT NULL,
`mid` int(10) NOT NULL,
PRIMARY KEY (`cid`,`mid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#
# Data for table "my_relationships"
#
/*!40000 ALTER TABLE `my_relationships` DISABLE KEYS */;
/*!40000 ALTER TABLE `my_relationships` ENABLE KEYS */;
#
# Structure for table "my_user"
#
DROP TABLE IF EXISTS `my_user`;
CREATE TABLE `my_user` (
`uid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`mail` varchar(200) NOT NULL,
`url` varchar(200) DEFAULT NULL,
`screenname` varchar(32) DEFAULT NULL,
`created` int(10) unsigned DEFAULT NULL,
`logged` int(10) unsigned DEFAULT NULL,
`authCode` varchar(40) DEFAULT NULL,
PRIMARY KEY (`uid`),
UNIQUE KEY `name` (`name`,`mail`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
#
# Data for table "my_user"
#
/*!40000 ALTER TABLE `my_user` DISABLE KEYS */;
INSERT INTO `my_user` VALUES (1,'tilv37@163.com','$2y$12$4xXSkd7lMWKYu3gh6/FFXOn8pOhwTGxZgvEFY44KdnUC7Z5wuvxRy','tilv37@163.com',NULL,'大宝',NULL,NULL,NULL);
/*!40000 ALTER TABLE `my_user` ENABLE KEYS */;