-
Notifications
You must be signed in to change notification settings - Fork 2
/
database.sql
131 lines (113 loc) · 4.59 KB
/
database.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
DROP TABLE IF EXISTS `a0006_admin`;
CREATE TABLE `a0006_admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`state` tinyint(1) DEFAULT '0',
`ctime` int(11) DEFAULT '0',
`utime` int(11) DEFAULT '0',
`name` varchar(20) DEFAULT '',
`pass` varchar(100) DEFAULT '',
`face` varchar(10) DEFAULT '',
`realname` varchar(20) DEFAULT '',
`address` varchar(255) DEFAULT '',
`mobile` varchar(20) DEFAULT '',
`intro` varchar(255) DEFAULT '',
`qq` varchar(20) DEFAULT '',
`sex` char(2) DEFAULT '',
`rbac` varchar(255) DEFAULT '',
`json` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `a0006_item`;
CREATE TABLE `a0006_item` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL DEFAULT '0',
`nid` int(11) NOT NULL DEFAULT '0',
`state` tinyint(1) DEFAULT '1',
`sortby` int(11) DEFAULT '100',
`ctime` int(11) DEFAULT '0',
`utime` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT '',
`image` varchar(255) DEFAULT '',
`image_path` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`url_target` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
INSERT INTO `a0006_item` VALUES("1","0","1","1","100","1445049009","1487072956","标题1","image.jpg","data/photo/1","","_self");
INSERT INTO `a0006_item` VALUES("2","0","1","1","100","1445049043","1487072934","标题2","image.jpg","data/photo/2","","_self");
INSERT INTO `a0006_item` VALUES("3","0","1","1","100","1445065555","1487072913","标题3","image.jpg","data/photo/3","","_self");
INSERT INTO `a0006_item` VALUES("4","0","1","1","100","1445065561","1487072891","标题4","image.jpg","data/photo/4","","_self");
INSERT INTO `a0006_item` VALUES("5","0","1","1","100","1445065567","1487072873","标题5","image.jpg","data/photo/5","","_self");
INSERT INTO `a0006_item` VALUES("6","0","1","1","100","1445065699","1487072850","标题6","image.jpg","data/photo/6","","_self");
INSERT INTO `a0006_item` VALUES("7","0","1","1","100","1445065711","1487072817","标题7","image.jpg","data/photo/7","","_self");
DROP TABLE IF EXISTS `a0006_log`;
CREATE TABLE `a0006_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) DEFAULT '0',
`state` tinyint(1) DEFAULT '0',
`ctime` int(11) DEFAULT '0',
`utime` int(11) DEFAULT '0',
`admin_id` int(11) DEFAULT '0',
`admin_name` varchar(20) DEFAULT '',
`title` varchar(255) DEFAULT '',
`url` varchar(255) DEFAULT '',
`type` varchar(20) DEFAULT '',
`table` varchar(20) DEFAULT '',
`table_id` int(11) DEFAULT '0',
`ip` varchar(20) DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `a0006_site`;
CREATE TABLE `a0006_site` (
`state` tinyint(1) DEFAULT '1',
`name` varchar(100) DEFAULT '',
`value` varchar(1000) DEFAULT '',
UNIQUE KEY `name` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `a0006_site` VALUES("1","keywords","");
INSERT INTO `a0006_site` VALUES("1","description","");
INSERT INTO `a0006_site` VALUES("1","domain","qing.com/a0006");
INSERT INTO `a0006_site` VALUES("1","logo","logo.png");
INSERT INTO `a0006_site` VALUES("1","site_name","");
INSERT INTO `a0006_site` VALUES("1","favicon","");
INSERT INTO `a0006_site` VALUES("1","touch_icon","");
INSERT INTO `a0006_site` VALUES("1","title","");
DROP TABLE IF EXISTS `a0006_stats`;
CREATE TABLE `a0006_stats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` date DEFAULT NULL,
`time` int(11) DEFAULT '0',
`screen` varchar(20) DEFAULT '',
`cookie` varchar(32) DEFAULT '',
`url` varchar(255) DEFAULT '',
`referer` varchar(255) DEFAULT '',
`keyword` varchar(255) DEFAULT '',
`os` varchar(20) DEFAULT '',
`os_version` varchar(20) DEFAULT '',
`mobile` varchar(20) DEFAULT '',
`browser` varchar(20) DEFAULT '',
`browser_version` varchar(20) DEFAULT '',
`ip` varchar(20) DEFAULT '',
`ip_isp` varchar(20) DEFAULT '',
`ip_country` varchar(20) DEFAULT '',
`ip_region` varchar(20) DEFAULT '',
`ip_area` varchar(20) DEFAULT '',
`ip_city` varchar(20) DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `a0006_trash`;
CREATE TABLE `a0006_trash` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`state` tinyint(1) DEFAULT '0',
`ctime` int(11) DEFAULT '0',
`utime` int(11) DEFAULT '0',
`admin_id` int(11) DEFAULT '0',
`admin_name` varchar(255) DEFAULT '',
`title` varchar(255) DEFAULT '',
`path` varchar(255) DEFAULT '',
`note` varchar(255) DEFAULT '',
`table` varchar(255) DEFAULT '',
`data` mediumtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;