-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy patheasycms.sql
299 lines (263 loc) · 9.79 KB
/
easycms.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
create table ec_group(
id int primary key auto_increment,
name varchar(100) not null,
priority int not null default '10',
allowPerDay int(11) not null default '4096',
allowMaxFile int(11) not null default '1024',
allowSuffix varchar(255) default 'jpg,jpeg,gif,png,bmp',
needCaptcha tinyint(1) not null default '1',
needCheck tinyint(1) not null default '1',
regDef tinyint(1) not null default '1'
);
create table ec_user(
id int primary key auto_increment,
group_id int not null,
username varchar(100) not null,
password varchar(100) not null,
email varchar(100) not null,
registerTime timestamp not null,
registerIP varchar(50) default '127.0.0.1',
lastLoginTime datetime,
lastLoginIp varchar(50) default '127.0.0.1',
loginCount int(11) not null default '0',
rank int(11) not null default '0',
uploadSize int(11) not null default '0',
uploadDate datetime,
admin tinyint(1) not null default '0',
viewonlyAdmin tinyint(1) not null default '0',
selfAdmin tinyint(1) not null default '0',
disabled tinyint(1) not null default '0',
foreign key(group_id) references ec_group(id)
);
create table ec_user_ext(
id int primary key auto_increment,
uid int,
realname varchar(100),
gender tinyint(1),
birthday varchar(255),
intro varchar(255),
comefrom varchar(150),
qq varchar(100),
msn varchar(100),
phone varchar(50),
mobile varchar(50),
userImg varchar(255),
userSignature varchar(255),
foreign key(uid) references ec_user(id)
);
create table ec_role(
id int primary key auto_increment,
name varchar(100),
priority int not null default '1',
m_super tinyint(1) not null default '0',
siteId int(11)
);
create table ec_log(
id int primary key auto_increment,
category int not null default '3',
time datetime,
ip varchar(100),
url varchar(100),
title varchar(100),
content varchar(100),
username varchar(100)
);
CREATE TABLE ec_message(
msgId INT PRIMARY KEY AUTO_INCREMENT,
msgTitle VARCHAR(100),
msgContent VARCHAR(255),
sendTime TIMESTAMP,
msgStaus TINYINT(1) NOT NULL DEFAULT '0',
msgBox INT(2) NOT NULL DEFAULT '1',
siteId INT(11) NOT NULL DEFAULT '1',
msgSendUserId INT(11) NOT NULL DEFAULT '1',
msgReceiverUserId INT(11) NOT NULL DEFAULT '0',
FOREIGN KEY(msgSendUserId) REFERENCES ec_user(id),
FOREIGN KEY(msgReceiverUserId) REFERENCES ec_user(id)
);
CREATE TABLE ec_message_receiver(
receiverId INT PRIMARY KEY AUTO_INCREMENT,
msgTitle VARCHAR(100),
msgContent VARCHAR(255),
sendTime TIMESTAMP,
msgStaus TINYINT(1) NOT NULL DEFAULT '0',
msgBox INT(2) NOT NULL DEFAULT '1',
msgId INT(11),
siteId INT(11) NOT NULL DEFAULT '1',
msgSendUserId INT(11) NOT NULL DEFAULT '1',
msgReceiverUserId INT(11) NOT NULL DEFAULT '0',
FOREIGN KEY(msgSendUserId) REFERENCES ec_user(id),
FOREIGN KEY(msgReceiverUserId) REFERENCES ec_user(id),
FOREIGN KEY(receiverId) REFERENCES ec_message(msgId)
);
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2013 年 08 月 20 日 15:58
-- 服务器版本: 5.1.41
-- PHP 版本: 5.3.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- 数据库: `easycmsdb`
--
-- --------------------------------------------------------
--
-- 表的结构 `account`
--
CREATE TABLE IF NOT EXISTS `account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(100) DEFAULT NULL,
`password` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
--
-- 转存表中的数据 `account`
--
INSERT INTO `account` (`id`, `username`, `password`) VALUES
(1, 'moocss', NULL),
(2, 'fuxin', NULL),
(3, '??', NULL),
(4, 'fuxin123', NULL),
(5, 'raonbow', NULL),
(6, 'moocss', '123456'),
(7, '??', 'xinyi116518'),
(8, '', ''),
(9, 'moocss', '123456'),
(10, 'moocss', '123456'),
(11, 'moocss', '123456');
-- --------------------------------------------------------
--
-- 表的结构 `ec_group`
--
CREATE TABLE IF NOT EXISTS `ec_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`priority` int(11) NOT NULL DEFAULT '10',
`allowPerDay` int(11) NOT NULL DEFAULT '4096',
`allowMaxFile` int(11) NOT NULL DEFAULT '1024',
`allowSuffix` varchar(255) DEFAULT '.jpg,.jpeg,.gif,.png,.bmp',
`needCaptcha` tinyint(1) NOT NULL DEFAULT '1',
`needCheck` tinyint(1) NOT NULL DEFAULT '1',
`regDef` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
--
-- 转存表中的数据 `ec_group`
--
INSERT INTO `ec_group` (`id`, `name`, `priority`, `allowPerDay`, `allowMaxFile`, `allowSuffix`, `needCaptcha`, `needCheck`, `regDef`) VALUES
(1, '设计组', 1, 2, 1000, '.jpg/.jpeg/.png/.bmp', 1, 1, 1),
(9, '投稿者', 10, 1024, 1024, '.jpg/.jpeg/.png/.bmp', 1, 1, 1),
(2, '产品组', 7, 2048, 2000, '.jpg/.jpeg/.png/.bmp', 1, 1, 1),
(3, '销售组', 8, 2048, 5000, '.jpg/.jpeg/.png/.bmp', 1, 1, 0);
-- --------------------------------------------------------
--
-- 表的结构 `ec_log`
--
CREATE TABLE IF NOT EXISTS `ec_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category` int(11) NOT NULL DEFAULT '3',
`time` datetime DEFAULT NULL,
`ip` varchar(100) DEFAULT NULL,
`url` varchar(100) DEFAULT NULL,
`title` varchar(100) DEFAULT NULL,
`content` varchar(100) DEFAULT NULL,
`username` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- 转存表中的数据 `ec_log`
--
INSERT INTO `ec_log` (`id`, `category`, `time`, `ip`, `url`, `title`, `content`, `username`) VALUES
(1, 3, '2013-08-18 21:34:51', '192.168.0.1', NULL, NULL, NULL, 'amdin'),
(2, 3, '2013-08-18 21:39:47', '192.168.0.1', NULL, NULL, NULL, 'fuxin'),
(3, 2, '2013-08-19 21:43:04', NULL, NULL, NULL, NULL, 'fuxin'),
(4, 1, '2013-08-19 21:43:15', NULL, NULL, NULL, NULL, 'moocss'),
(5, 3, '2013-08-20 23:54:04', '127.0.0.1', NULL, '添加用户组操作', '添加的 : id=null;name=投稿者', 'fuxin');
-- --------------------------------------------------------
--
-- 表的结构 `ec_role`
--
CREATE TABLE IF NOT EXISTS `ec_role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`priority` int(11) NOT NULL DEFAULT '1',
`m_super` tinyint(1) NOT NULL DEFAULT '0',
`siteId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- 转存表中的数据 `ec_role`
--
INSERT INTO `ec_role` (`id`, `name`, `priority`, `m_super`, `siteId`) VALUES
(1, '管理员', 1, 1, NULL),
(2, '发表者', 1, 0, NULL),
(3, '订阅者', 1, 0, NULL);
-- --------------------------------------------------------
--
-- 表的结构 `ec_user`
--
CREATE TABLE IF NOT EXISTS `ec_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`registerTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`registerIP` varchar(50) DEFAULT '127.0.0.1',
`lastLoginTime` datetime DEFAULT NULL,
`lastLoginIp` varchar(50) DEFAULT '127.0.0.1',
`loginCount` int(11) NOT NULL DEFAULT '0',
`rank` int(11) NOT NULL DEFAULT '0',
`uploadSize` int(11) NOT NULL DEFAULT '0',
`uploadDate` datetime DEFAULT NULL,
`admin` tinyint(1) NOT NULL DEFAULT '0',
`viewonlyAdmin` tinyint(1) NOT NULL DEFAULT '0',
`selfAdmin` tinyint(1) NOT NULL DEFAULT '0',
`disabled` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `group_id` (`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
--
-- 转存表中的数据 `ec_user`
--
INSERT INTO `ec_user` (`id`, `group_id`, `username`, `password`, `email`, `registerTime`, `registerIP`, `lastLoginTime`, `lastLoginIp`, `loginCount`, `rank`, `uploadSize`, `uploadDate`, `admin`, `viewonlyAdmin`, `selfAdmin`, `disabled`) VALUES
(2, 1, 'fuxin', 'e10adc3949ba59abbe56e057f20f883e', '[email protected]', '2013-08-20 15:52:29', '127.0.0.1', NULL, '127.0.0.1', 0, 0, 0, NULL, 0, 0, 0, 0),
(6, 2, 'admin', '14e1b600b1fd579f47433b88e8d85291', '[email protected]', '2013-08-17 08:52:31', '127.0.0.1', NULL, '127.0.0.1', 0, 0, 0, NULL, 0, 0, 0, 0),
(4, 3, 'zhangguang', '7fa8282ad93047a4d6fe6111c93b308a', '[email protected]', '2013-07-21 13:58:08', '127.0.0.1', NULL, '127.0.0.1', 0, 0, 0, NULL, 0, 0, 0, 0);
-- --------------------------------------------------------
--
-- 表的结构 `ec_user_ext`
--
CREATE TABLE IF NOT EXISTS `ec_user_ext` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) DEFAULT NULL,
`realname` varchar(100) DEFAULT NULL,
`gender` tinyint(1) DEFAULT NULL,
`birthday` varchar(255) DEFAULT NULL,
`intro` varchar(255) DEFAULT NULL,
`comefrom` varchar(150) DEFAULT NULL,
`qq` varchar(100) DEFAULT NULL,
`msn` varchar(100) DEFAULT NULL,
`phone` varchar(50) DEFAULT NULL,
`mobile` varchar(50) DEFAULT NULL,
`userImg` varchar(255) DEFAULT NULL,
`userSignature` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
--
-- 转存表中的数据 `ec_user_ext`
--
INSERT INTO `ec_user_ext` (`id`, `uid`, `realname`, `gender`, `birthday`, `intro`, `comefrom`, `qq`, `msn`, `phone`, `mobile`, `userImg`, `userSignature`) VALUES
(6, 6, 'admin', 2, '1234', '1234', '1234', '1234', '1234', '1234', '1234', NULL, NULL),
(2, 2, '付鑫', 1, '1984-10-11', '1234', '北京,北京', '1234', '1234', '1234', '134', NULL, NULL),
(4, 4, '张广', 0, '2001-10-19', '123456', '内蒙古', '123456', '123456', '123456', '123456', NULL, NULL);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;