-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmysql.sql
505 lines (475 loc) · 39.6 KB
/
mysql.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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
/*
Navicat MySQL Data Transfer
Source Server : 127.0.0.1
Source Server Version : 50524
Source Host : 127.0.0.1:3306
Source Database : myot
Target Server Type : MYSQL
Target Server Version : 50524
File Encoding : 65001
Date: 2015-05-15 11:10:27
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `ad_action`
-- ----------------------------
DROP TABLE IF EXISTS `ad_action`;
CREATE TABLE `ad_action` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` char(30) NOT NULL DEFAULT '' COMMENT '行为唯一标识',
`title` char(80) NOT NULL DEFAULT '' COMMENT '行为说明',
`remark` char(140) NOT NULL DEFAULT '' COMMENT '行为描述',
`rule` text COMMENT '行为规则',
`log` text COMMENT '日志规则',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '类型',
`status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='系统行为表';
-- ----------------------------
-- Records of ad_action
-- ----------------------------
INSERT INTO `ad_action` VALUES ('1', 'user_login', '用户登录', '积分+10,每天一次', 'table:member|field:score|condition:uid={$self} AND status>-1|rule:score+10|cycle:24|max:1;', '[user|get_nickname]在[time|time_format]登录了后台', '1', '1', '1387181220');
INSERT INTO `ad_action` VALUES ('2', 'update_config', '更新配置', '新增或修改或删除配置', '', '', '1', '1', '1383294988');
INSERT INTO `ad_action` VALUES ('3', 'update_menu', '更新菜单', '新增或修改或删除菜单', '', '', '1', '1', '1383296392');
-- ----------------------------
-- Table structure for `ad_action_log`
-- ----------------------------
DROP TABLE IF EXISTS `ad_action_log`;
CREATE TABLE `ad_action_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`action_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '行为id',
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行用户id',
`action_ip` bigint(20) NOT NULL COMMENT '执行行为者ip',
`model` varchar(50) NOT NULL DEFAULT '' COMMENT '触发行为的表',
`record_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '触发行为的数据id',
`remark` varchar(255) NOT NULL DEFAULT '' COMMENT '日志备注',
`status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行行为的时间',
PRIMARY KEY (`id`),
KEY `action_ip_ix` (`action_ip`),
KEY `action_id_ix` (`action_id`),
KEY `user_id_ix` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=548 DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='行为日志表';
-- ----------------------------
-- Records of ad_action_log
-- ----------------------------
INSERT INTO `ad_action_log` VALUES ('544', '1', '1', '2130706433', 'member', '1', 'admin在2015-05-08 15:29登录了后台', '1', '1431070150');
INSERT INTO `ad_action_log` VALUES ('545', '1', '1', '2130706433', 'member', '1', 'admin在2015-05-08 15:53登录了后台', '1', '1431071598');
INSERT INTO `ad_action_log` VALUES ('546', '1', '1', '2130706433', 'member', '1', 'admin在2015-05-08 17:10登录了后台', '1', '1431076231');
INSERT INTO `ad_action_log` VALUES ('547', '1', '1', '2130706433', 'member', '1', 'admin在2015-05-15 11:05登录了后台', '1', '1431659123');
-- ----------------------------
-- Table structure for `ad_auth_extend`
-- ----------------------------
DROP TABLE IF EXISTS `ad_auth_extend`;
CREATE TABLE `ad_auth_extend` (
`group_id` mediumint(10) unsigned NOT NULL COMMENT '用户id',
`extend_id` mediumint(8) unsigned NOT NULL COMMENT '扩展表中数据的id',
`type` tinyint(1) unsigned NOT NULL COMMENT '扩展类型标识 1:栏目分类权限;2:模型权限',
UNIQUE KEY `group_extend_type` (`group_id`,`extend_id`,`type`),
KEY `uid` (`group_id`),
KEY `group_id` (`extend_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户组与分类的对应关系表';
-- ----------------------------
-- Records of ad_auth_extend
-- ----------------------------
INSERT INTO `ad_auth_extend` VALUES ('1', '1', '1');
INSERT INTO `ad_auth_extend` VALUES ('1', '1', '2');
INSERT INTO `ad_auth_extend` VALUES ('1', '2', '1');
INSERT INTO `ad_auth_extend` VALUES ('1', '2', '2');
INSERT INTO `ad_auth_extend` VALUES ('1', '3', '1');
INSERT INTO `ad_auth_extend` VALUES ('1', '3', '2');
INSERT INTO `ad_auth_extend` VALUES ('1', '4', '1');
INSERT INTO `ad_auth_extend` VALUES ('1', '37', '1');
-- ----------------------------
-- Table structure for `ad_auth_group`
-- ----------------------------
DROP TABLE IF EXISTS `ad_auth_group`;
CREATE TABLE `ad_auth_group` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户组id,自增主键',
`module` varchar(20) NOT NULL DEFAULT '' COMMENT '用户组所属模块',
`type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '组类型',
`title` char(20) NOT NULL DEFAULT '' COMMENT '用户组中文名称',
`description` varchar(80) NOT NULL DEFAULT '' COMMENT '描述信息',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '用户组状态:为1正常,为0禁用,-1为删除',
`rules` varchar(500) NOT NULL DEFAULT '' COMMENT '用户组拥有的规则id,多个规则 , 隔开',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of ad_auth_group
-- ----------------------------
INSERT INTO `ad_auth_group` VALUES ('1', 'admin', '1', '默认用户组', '', '1', '1,2,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,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,100,102,103,105,106');
-- ----------------------------
-- Table structure for `ad_auth_group_access`
-- ----------------------------
DROP TABLE IF EXISTS `ad_auth_group_access`;
CREATE TABLE `ad_auth_group_access` (
`uid` int(10) unsigned NOT NULL COMMENT '用户id',
`group_id` mediumint(8) unsigned NOT NULL COMMENT '用户组id',
UNIQUE KEY `uid_group_id` (`uid`,`group_id`),
KEY `uid` (`uid`),
KEY `group_id` (`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of ad_auth_group_access
-- ----------------------------
-- ----------------------------
-- Table structure for `ad_auth_rule`
-- ----------------------------
DROP TABLE IF EXISTS `ad_auth_rule`;
CREATE TABLE `ad_auth_rule` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '规则id,自增主键',
`module` varchar(20) NOT NULL COMMENT '规则所属module',
`type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '1-url;2-主菜单',
`name` char(80) NOT NULL DEFAULT '' COMMENT '规则唯一英文标识',
`title` char(20) NOT NULL DEFAULT '' COMMENT '规则中文描述',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有效(0:无效,1:有效)',
`condition` varchar(300) NOT NULL DEFAULT '' COMMENT '规则附加条件',
PRIMARY KEY (`id`),
KEY `module` (`module`,`status`,`type`)
) ENGINE=MyISAM AUTO_INCREMENT=429 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of ad_auth_rule
-- ----------------------------
INSERT INTO `ad_auth_rule` VALUES ('342', 'admin', '1', 'Admin/User/index', '管理员信息', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('343', 'admin', '1', 'Admin/User/add', '新增用户', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('344', 'admin', '1', 'Admin/User/action', '用户行为', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('345', 'admin', '1', 'Admin/User/addaction', '新增用户行为', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('346', 'admin', '1', 'Admin/User/editaction', '编辑用户行为', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('347', 'admin', '1', 'Admin/User/saveAction', '保存用户行为', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('348', 'admin', '1', 'Admin/User/setStatus', '变更行为状态', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('349', 'admin', '1', 'Admin/User/changeStatus?method=forbidUser', '禁用会员', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('350', 'admin', '1', 'Admin/User/changeStatus?method=resumeUser', '启用会员', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('351', 'admin', '1', 'Admin/User/changeStatus?method=deleteUser', '删除会员', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('352', 'admin', '1', 'Admin/AuthManager/index', '权限管理', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('353', 'admin', '1', 'Admin/AuthManager/changeStatus?method=deleteGroup', '删除', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('354', 'admin', '1', 'Admin/AuthManager/changeStatus?method=forbidGroup', '禁用', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('355', 'admin', '1', 'Admin/AuthManager/changeStatus?method=resumeGroup', '恢复', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('356', 'admin', '1', 'Admin/AuthManager/createGroup', '新增', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('357', 'admin', '1', 'Admin/AuthManager/editGroup', '编辑', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('358', 'admin', '1', 'Admin/AuthManager/writeGroup', '保存用户组', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('359', 'admin', '1', 'Admin/AuthManager/group', '授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('360', 'admin', '1', 'Admin/AuthManager/access', '访问授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('361', 'admin', '1', 'Admin/AuthManager/user', '成员授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('362', 'admin', '1', 'Admin/AuthManager/removeFromGroup', '解除授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('363', 'admin', '1', 'Admin/AuthManager/addToGroup', '保存成员授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('364', 'admin', '1', 'Admin/AuthManager/category', '分类授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('365', 'admin', '1', 'Admin/AuthManager/addToCategory', '保存分类授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('366', 'admin', '1', 'Admin/AuthManager/modelauth', '模型授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('367', 'admin', '1', 'Admin/AuthManager/addToModel', '保存模型授权', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('368', 'admin', '1', 'Admin/Addons/create', '创建', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('369', 'admin', '1', 'Admin/Addons/checkForm', '检测创建', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('370', 'admin', '1', 'Admin/Addons/preview', '预览', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('371', 'admin', '1', 'Admin/Addons/build', '快速生成插件', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('372', 'admin', '1', 'Admin/Addons/config', '设置', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('373', 'admin', '1', 'Admin/Addons/disable', '禁用', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('374', 'admin', '1', 'Admin/Addons/enable', '启用', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('375', 'admin', '1', 'Admin/Addons/install', '安装', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('376', 'admin', '1', 'Admin/Addons/uninstall', '卸载', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('377', 'admin', '1', 'Admin/Addons/saveconfig', '更新配置', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('378', 'admin', '1', 'Admin/Addons/adminList', '插件后台列表', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('379', 'admin', '1', 'Admin/Addons/execute', 'URL方式访问插件', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('380', 'admin', '1', 'Admin/model/add', '新增', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('381', 'admin', '1', 'Admin/model/edit', '编辑', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('382', 'admin', '1', 'Admin/model/setStatus', '改变状态', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('383', 'admin', '1', 'Admin/model/update', '保存数据', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('384', 'admin', '1', 'Admin/Attribute/add', '新增', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('385', 'admin', '1', 'Admin/Attribute/edit', '编辑', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('386', 'admin', '1', 'Admin/Attribute/setStatus', '改变状态', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('387', 'admin', '1', 'Admin/Attribute/update', '保存数据', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('388', 'admin', '1', 'Admin/Config/edit', '编辑', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('389', 'admin', '1', 'Admin/Config/del', '删除', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('390', 'admin', '1', 'Admin/Config/add', '新增', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('391', 'admin', '1', 'Admin/Config/save', '保存', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('392', 'admin', '1', 'Admin/Category/edit', '编辑', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('393', 'admin', '1', 'Admin/Category/add', '新增', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('394', 'admin', '1', 'Admin/Category/remove', '删除', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('395', 'admin', '1', 'Admin/Category/operate/type/move', '移动', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('396', 'admin', '1', 'Admin/Category/operate/type/merge', '合并', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('397', 'admin', '1', 'Admin/Database/export', '备份', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('398', 'admin', '1', 'Admin/Database/optimize', '优化表', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('399', 'admin', '1', 'Admin/Database/repair', '修复表', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('400', 'admin', '1', 'Admin/Database/import', '恢复', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('401', 'admin', '1', 'Admin/Database/del', '删除', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('402', 'admin', '1', 'Admin/Menu/add', '新增', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('403', 'admin', '1', 'Admin/Menu/edit', '编辑', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('404', 'admin', '1', 'Admin/Action/actionlog', '行为日志', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('405', 'admin', '1', 'Admin/User/updatePassword', '修改密码', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('406', 'admin', '1', 'Admin/User/updateNickname', '修改昵称', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('407', 'admin', '1', 'Admin/action/edit', '查看行为日志', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('408', 'admin', '1', 'Admin/think/add', '新增数据', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('409', 'admin', '1', 'Admin/think/edit', '编辑数据', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('410', 'admin', '1', 'Admin/Menu/import', '导入', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('411', 'admin', '1', 'Admin/Model/generate', '生成', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('412', 'admin', '1', 'Admin/Addons/addHook', '新增钩子', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('413', 'admin', '1', 'Admin/Addons/edithook', '编辑钩子', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('414', 'admin', '1', 'Admin/Article/sort', '文档排序', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('415', 'admin', '1', 'Admin/Config/sort', '排序', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('416', 'admin', '1', 'Admin/Menu/sort', '排序', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('417', 'admin', '1', 'Admin/Channel/sort', '排序', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('418', 'admin', '1', 'Admin/think/lists', '数据列表', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('419', 'admin', '1', 'Admin/Article/examine', '审核列表', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('420', 'admin', '2', 'Admin/Index/index', '首页', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('421', 'admin', '1', 'Admin/Addons/index', '插件管理', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('422', 'admin', '1', 'Admin/Config/group', '网站设置', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('423', 'admin', '1', 'Admin/Addons/hooks', '钩子管理', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('424', 'admin', '2', 'Admin/User/index', '用户', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('425', 'admin', '1', 'Admin/Config/index', '配置管理', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('426', 'admin', '1', 'Admin/Menu/index', '菜单管理', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('427', 'admin', '2', 'Admin/other', '其他', '1', '');
INSERT INTO `ad_auth_rule` VALUES ('428', 'admin', '2', 'Admin/Config/group', '系统', '1', '');
-- ----------------------------
-- Table structure for `ad_config`
-- ----------------------------
DROP TABLE IF EXISTS `ad_config`;
CREATE TABLE `ad_config` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID',
`name` varchar(30) NOT NULL DEFAULT '' COMMENT '配置名称',
`type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '配置类型',
`title` varchar(50) NOT NULL DEFAULT '' COMMENT '配置说明',
`group` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '配置分组',
`extra` varchar(255) NOT NULL DEFAULT '' COMMENT '配置值',
`remark` varchar(100) NOT NULL DEFAULT '' COMMENT '配置说明',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态',
`value` text COMMENT '配置值',
`sort` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_name` (`name`),
KEY `type` (`type`),
KEY `group` (`group`)
) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of ad_config
-- ----------------------------
INSERT INTO `ad_config` VALUES ('1', 'WEB_SITE_TITLE', '1', '网站标题', '1', '', '网站标题前台显示标题', '1378898976', '1427700332', '1', 'cp内容管理框架', '0');
INSERT INTO `ad_config` VALUES ('2', 'WEB_SITE_DESCRIPTION', '2', '网站描述', '1', '', '网站搜索引擎描述', '1378898976', '1379235841', '1', 'cp内容管理框架', '1');
INSERT INTO `ad_config` VALUES ('3', 'WEB_SITE_KEYWORD', '2', '网站关键字', '1', '', '网站搜索引擎关键字', '1378898976', '1381390100', '1', 'ThinkPHP,cp', '8');
INSERT INTO `ad_config` VALUES ('4', 'WEB_SITE_CLOSE', '4', '关闭站点', '1', '0:关闭,1:开启', '站点关闭后其他用户不能访问,管理员可以正常访问', '1378898976', '1379235296', '1', '1', '1');
INSERT INTO `ad_config` VALUES ('9', 'CONFIG_TYPE_LIST', '3', '配置类型列表', '4', '', '主要用于数据解析和页面表单的生成', '1378898976', '1379235348', '1', '0:数字\r\n1:字符\r\n2:文本\r\n3:数组\r\n4:枚举', '2');
INSERT INTO `ad_config` VALUES ('10', 'WEB_SITE_ICP', '1', '网站备案号', '1', '', '设置在网站底部显示的备案号,如“沪ICP备12007941号-2', '1378900335', '1379235859', '1', '', '9');
INSERT INTO `ad_config` VALUES ('13', 'COLOR_STYLE', '4', '后台色系', '1', 'default_color:默认\r\nblue_color:紫罗兰\r\namaze:蓝色', '后台颜色风格', '1379122533', '1419848954', '1', 'amaze', '10');
INSERT INTO `ad_config` VALUES ('20', 'CONFIG_GROUP_LIST', '3', '配置分组', '4', '', '配置分组', '1379228036', '1384418383', '1', '1:基本\r\n2:内容\r\n3:用户\r\n4:系统', '4');
INSERT INTO `ad_config` VALUES ('21', 'HOOKS_TYPE', '3', '钩子的类型', '4', '', '类型 1-用于扩展显示内容,2-用于扩展业务处理', '1379313397', '1379313407', '1', '1:视图\r\n2:控制器', '6');
INSERT INTO `ad_config` VALUES ('22', 'AUTH_CONFIG', '3', 'Auth配置', '4', '', '自定义Auth.class.php类配置', '1379409310', '1379409564', '1', 'AUTH_ON:1\r\nAUTH_TYPE:2', '8');
INSERT INTO `ad_config` VALUES ('25', 'LIST_ROWS', '0', '后台每页记录数', '2', '', '后台数据每页显示记录数', '1379503896', '1418797082', '1', '10', '10');
INSERT INTO `ad_config` VALUES ('26', 'USER_ALLOW_REGISTER', '4', '是否允许用户注册', '3', '0:关闭注册\r\n1:允许注册', '是否开放用户注册', '1379504487', '1379504580', '1', '1', '3');
INSERT INTO `ad_config` VALUES ('27', 'CODEMIRROR_THEME', '4', '预览插件的CodeMirror主题', '4', '3024-day:3024 day\r\n3024-night:3024 night\r\nambiance:ambiance\r\nbase16-dark:base16 dark\r\nbase16-light:base16 light\r\nblackboard:blackboard\r\ncobalt:cobalt\r\neclipse:eclipse\r\nelegant:elegant\r\nerlang-dark:erlang-dark\r\nlesser-dark:lesser-dark\r\nmidnight:midnight', '详情见CodeMirror官网', '1379814385', '1384740813', '1', 'ambiance', '3');
INSERT INTO `ad_config` VALUES ('28', 'DATA_BACKUP_PATH', '1', '数据库备份根路径', '4', '', '路径必须以 / 结尾', '1381482411', '1381482411', '1', './Data/', '5');
INSERT INTO `ad_config` VALUES ('29', 'DATA_BACKUP_PART_SIZE', '0', '数据库备份卷大小', '4', '', '该值用于限制压缩后的分卷最大长度。单位:B;建议设置20M', '1381482488', '1381729564', '1', '20971520', '7');
INSERT INTO `ad_config` VALUES ('30', 'DATA_BACKUP_COMPRESS', '4', '数据库备份文件是否启用压缩', '4', '0:不压缩\r\n1:启用压缩', '压缩备份文件需要PHP环境支持gzopen,gzwrite函数', '1381713345', '1381729544', '1', '1', '9');
INSERT INTO `ad_config` VALUES ('31', 'DATA_BACKUP_COMPRESS_LEVEL', '4', '数据库备份文件压缩级别', '4', '1:普通\r\n4:一般\r\n9:最高', '数据库备份文件的压缩级别,该配置在开启压缩时生效', '1381713408', '1381713408', '1', '9', '10');
INSERT INTO `ad_config` VALUES ('32', 'DEVELOP_MODE', '4', '开启开发者模式', '4', '0:关闭\r\n1:开启', '是否开启开发者模式', '1383105995', '1383291877', '1', '1', '11');
INSERT INTO `ad_config` VALUES ('33', 'ALLOW_VISIT', '3', '不受限控制器方法', '0', '', '', '1386644047', '1386644741', '1', '0:article/draftbox\r\n1:article/mydocument\r\n2:Category/tree\r\n3:Index/verify\r\n4:file/upload\r\n5:file/download\r\n6:user/updatePassword\r\n7:user/updateNickname\r\n8:user/submitPassword\r\n9:user/submitNickname\r\n10:file/uploadpicture', '0');
INSERT INTO `ad_config` VALUES ('34', 'DENY_VISIT', '3', '超管专限控制器方法', '0', '', '仅超级管理员可访问的控制器方法', '1386644141', '1386644659', '1', '0:Addons/addhook\r\n1:Addons/edithook\r\n2:Addons/delhook\r\n3:Addons/updateHook\r\n4:Admin/getMenus\r\n5:Admin/recordList\r\n6:AuthManager/updateRules\r\n7:AuthManager/tree', '0');
INSERT INTO `ad_config` VALUES ('35', 'REPLY_LIST_ROWS', '0', '回复列表每页条数', '2', '', '', '1386645376', '1387178083', '1', '10', '0');
INSERT INTO `ad_config` VALUES ('36', 'ADMIN_ALLOW_IP', '2', '后台允许访问IP', '4', '', '多个用逗号分隔,如果不配置表示不限制IP访问', '1387165454', '1387165553', '1', '', '12');
INSERT INTO `ad_config` VALUES ('37', 'SHOW_PAGE_TRACE', '4', '是否显示页面Trace', '4', '0:关闭\r\n1:开启', '是否显示页面Trace信息', '1387165685', '1387165685', '1', '0', '1');
-- ----------------------------
-- Table structure for `ad_member`
-- ----------------------------
DROP TABLE IF EXISTS `ad_member`;
CREATE TABLE `ad_member` (
`uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`nickname` char(16) NOT NULL DEFAULT '' COMMENT '昵称',
`sex` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '性别',
`birthday` date NOT NULL DEFAULT '0000-00-00' COMMENT '生日',
`qq` char(10) NOT NULL DEFAULT '' COMMENT 'qq号',
`score` mediumint(8) NOT NULL DEFAULT '0' COMMENT '用户积分',
`login` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '登录次数',
`reg_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '注册IP',
`reg_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间',
`last_login_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '最后登录IP',
`last_login_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后登录时间',
`mobile` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '会员状态',
PRIMARY KEY (`uid`),
KEY `status` (`status`)
) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COMMENT='会员表';
-- ----------------------------
-- Records of ad_member
-- ----------------------------
INSERT INTO `ad_member` VALUES ('1', 'admin', '0', '0000-00-00', '', '340', '181', '0', '1415930331', '2130706433', '1431659123', '', '', '1');
-- ----------------------------
-- Table structure for `ad_menu`
-- ----------------------------
DROP TABLE IF EXISTS `ad_menu`;
CREATE TABLE `ad_menu` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文档ID',
`title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
`pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上级分类ID',
`sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序(同级有效)',
`url` char(255) NOT NULL DEFAULT '' COMMENT '链接地址',
`hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏',
`tip` varchar(255) NOT NULL DEFAULT '' COMMENT '提示',
`group` varchar(50) DEFAULT '' COMMENT '分组',
`is_dev` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否仅开发者模式可见',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',
PRIMARY KEY (`id`),
KEY `pid` (`pid`),
KEY `status` (`status`)
) ENGINE=MyISAM AUTO_INCREMENT=254 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of ad_menu
-- ----------------------------
INSERT INTO `ad_menu` VALUES ('1', '首页', '0', '1', 'Index/index', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('16', '用户', '0', '3', 'User/index', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('17', '管理员信息', '16', '0', 'User/index', '0', '', '后台用户管理', '0', '1');
INSERT INTO `ad_menu` VALUES ('18', '新增用户', '17', '0', 'User/add', '0', '添加新用户', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('19', '用户行为', '16', '0', 'User/action', '0', '', '行为管理', '0', '1');
INSERT INTO `ad_menu` VALUES ('20', '新增用户行为', '19', '0', 'User/addaction', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('21', '编辑用户行为', '19', '0', 'User/editaction', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('22', '保存用户行为', '19', '0', 'User/saveAction', '0', '\"用户->用户行为\"保存编辑和新增的用户行为', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('23', '变更行为状态', '19', '0', 'User/setStatus', '0', '\"用户->用户行为\"中的启用,禁用和删除权限', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('24', '禁用会员', '19', '0', 'User/changeStatus?method=forbidUser', '0', '\"用户->用户信息\"中的禁用', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('25', '启用会员', '19', '0', 'User/changeStatus?method=resumeUser', '0', '\"用户->用户信息\"中的启用', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('26', '删除会员', '19', '0', 'User/changeStatus?method=deleteUser', '0', '\"用户->用户信息\"中的删除', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('27', '权限管理', '16', '0', 'AuthManager/index', '0', '', '后台用户管理', '0', '1');
INSERT INTO `ad_menu` VALUES ('28', '删除', '27', '0', 'AuthManager/changeStatus?method=deleteGroup', '0', '删除用户组', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('29', '禁用', '27', '0', 'AuthManager/changeStatus?method=forbidGroup', '0', '禁用用户组', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('30', '恢复', '27', '0', 'AuthManager/changeStatus?method=resumeGroup', '0', '恢复已禁用的用户组', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('31', '新增', '27', '0', 'AuthManager/createGroup', '0', '创建新的用户组', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('32', '编辑', '27', '0', 'AuthManager/editGroup', '0', '编辑用户组名称和描述', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('33', '保存用户组', '27', '0', 'AuthManager/writeGroup', '0', '新增和编辑用户组的\"保存\"按钮', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('34', '授权', '27', '0', 'AuthManager/group', '0', '\"后台 \\ 用户 \\ 用户信息\"列表页的\"授权\"操作按钮,用于设置用户所属用户组', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('35', '访问授权', '27', '0', 'AuthManager/access', '0', '\"后台 \\ 用户 \\ 权限管理\"列表页的\"访问授权\"操作按钮', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('36', '成员授权', '27', '0', 'AuthManager/user', '0', '\"后台 \\ 用户 \\ 权限管理\"列表页的\"成员授权\"操作按钮', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('37', '解除授权', '27', '0', 'AuthManager/removeFromGroup', '0', '\"成员授权\"列表页内的解除授权操作按钮', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('38', '保存成员授权', '27', '0', 'AuthManager/addToGroup', '0', '\"用户信息\"列表页\"授权\"时的\"保存\"按钮和\"成员授权\"里右上角的\"添加\"按钮)', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('39', '分类授权', '27', '0', 'AuthManager/category', '0', '\"后台 \\ 用户 \\ 权限管理\"列表页的\"分类授权\"操作按钮', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('40', '保存分类授权', '27', '0', 'AuthManager/addToCategory', '0', '\"分类授权\"页面的\"保存\"按钮', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('41', '模型授权', '27', '0', 'AuthManager/modelauth', '0', '\"后台 \\ 用户 \\ 权限管理\"列表页的\"模型授权\"操作按钮', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('42', '保存模型授权', '27', '0', 'AuthManager/addToModel', '0', '\"分类授权\"页面的\"保存\"按钮', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('44', '插件管理', '43', '1', 'Addons/index', '0', '', '扩展', '0', '1');
INSERT INTO `ad_menu` VALUES ('45', '创建', '44', '0', 'Addons/create', '0', '服务器上创建插件结构向导', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('46', '检测创建', '44', '0', 'Addons/checkForm', '0', '检测插件是否可以创建', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('47', '预览', '44', '0', 'Addons/preview', '0', '预览插件定义类文件', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('48', '快速生成插件', '44', '0', 'Addons/build', '0', '开始生成插件结构', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('49', '设置', '44', '0', 'Addons/config', '0', '设置插件配置', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('50', '禁用', '44', '0', 'Addons/disable', '0', '禁用插件', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('51', '启用', '44', '0', 'Addons/enable', '0', '启用插件', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('52', '安装', '44', '0', 'Addons/install', '0', '安装插件', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('53', '卸载', '44', '0', 'Addons/uninstall', '0', '卸载插件', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('54', '更新配置', '44', '0', 'Addons/saveconfig', '0', '更新插件配置处理', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('55', '插件后台列表', '44', '0', 'Addons/adminList', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('56', 'URL方式访问插件', '44', '0', 'Addons/execute', '0', '控制是否有权限通过url访问插件控制器方法', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('57', '钩子管理', '43', '2', 'Addons/hooks', '0', '', '扩展', '0', '1');
INSERT INTO `ad_menu` VALUES ('59', '新增', '58', '0', 'model/add', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('60', '编辑', '58', '0', 'model/edit', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('61', '改变状态', '58', '0', 'model/setStatus', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('62', '保存数据', '58', '0', 'model/update', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('64', '新增', '63', '0', 'Attribute/add', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('65', '编辑', '63', '0', 'Attribute/edit', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('66', '改变状态', '63', '0', 'Attribute/setStatus', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('67', '保存数据', '63', '0', 'Attribute/update', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('68', '系统', '0', '100', 'Config/group', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('69', '网站设置', '68', '1', 'Config/group', '0', '', '系统设置', '0', '1');
INSERT INTO `ad_menu` VALUES ('70', '配置管理', '68', '4', 'Config/index', '0', '', '系统设置', '0', '1');
INSERT INTO `ad_menu` VALUES ('71', '编辑', '70', '0', 'Config/edit', '0', '新增编辑和保存配置', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('72', '删除', '70', '0', 'Config/del', '0', '删除配置', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('73', '新增', '70', '0', 'Config/add', '0', '新增配置', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('74', '保存', '70', '0', 'Config/save', '0', '保存配置', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('75', '菜单管理', '68', '5', 'Menu/index', '0', '', '系统设置', '0', '1');
INSERT INTO `ad_menu` VALUES ('81', '编辑', '80', '0', 'Category/edit', '0', '编辑和保存栏目分类', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('82', '新增', '80', '0', 'Category/add', '0', '新增栏目分类', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('83', '删除', '80', '0', 'Category/remove', '0', '删除栏目分类', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('84', '移动', '80', '0', 'Category/operate/type/move', '0', '移动栏目分类', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('85', '合并', '80', '0', 'Category/operate/type/merge', '0', '合并栏目分类', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('87', '备份', '86', '0', 'Database/export', '0', '备份数据库', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('88', '优化表', '86', '0', 'Database/optimize', '0', '优化数据表', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('89', '修复表', '86', '0', 'Database/repair', '0', '修复数据表', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('91', '恢复', '90', '0', 'Database/import', '0', '数据库恢复', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('92', '删除', '90', '0', 'Database/del', '0', '删除备份文件', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('93', '其他', '0', '5', 'other', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('96', '新增', '75', '0', 'Menu/add', '0', '', '系统设置', '0', '1');
INSERT INTO `ad_menu` VALUES ('98', '编辑', '75', '0', 'Menu/edit', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('106', '行为日志', '16', '0', 'Action/actionlog', '0', '', '行为管理', '0', '1');
INSERT INTO `ad_menu` VALUES ('108', '修改密码', '16', '0', 'User/updatePassword', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('109', '修改昵称', '16', '0', 'User/updateNickname', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('110', '查看行为日志', '106', '0', 'action/edit', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('112', '新增数据', '58', '0', 'think/add', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('113', '编辑数据', '58', '0', 'think/edit', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('114', '导入', '75', '0', 'Menu/import', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('115', '生成', '58', '0', 'Model/generate', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('116', '新增钩子', '57', '0', 'Addons/addHook', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('117', '编辑钩子', '57', '0', 'Addons/edithook', '0', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('118', '文档排序', '3', '0', 'Article/sort', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('119', '排序', '70', '0', 'Config/sort', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('120', '排序', '75', '0', 'Menu/sort', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('121', '排序', '76', '0', 'Channel/sort', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('122', '数据列表', '58', '0', 'think/lists', '1', '', '', '0', '1');
INSERT INTO `ad_menu` VALUES ('123', '审核列表', '3', '0', 'Article/examine', '1', '', '', '0', '1');
-- ----------------------------
-- Table structure for `ad_ucenter_admin`
-- ----------------------------
DROP TABLE IF EXISTS `ad_ucenter_admin`;
CREATE TABLE `ad_ucenter_admin` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '管理员ID',
`member_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员用户ID',
`status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '管理员状态',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='管理员表';
-- ----------------------------
-- Records of ad_ucenter_admin
-- ----------------------------
-- ----------------------------
-- Table structure for `ad_ucenter_app`
-- ----------------------------
DROP TABLE IF EXISTS `ad_ucenter_app`;
CREATE TABLE `ad_ucenter_app` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '应用ID',
`title` varchar(30) NOT NULL COMMENT '应用名称',
`url` varchar(100) NOT NULL COMMENT '应用URL',
`ip` char(15) NOT NULL DEFAULT '' COMMENT '应用IP',
`auth_key` varchar(100) NOT NULL DEFAULT '' COMMENT '加密KEY',
`sys_login` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '同步登陆',
`allow_ip` varchar(255) NOT NULL DEFAULT '' COMMENT '允许访问的IP',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '应用状态',
PRIMARY KEY (`id`),
KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='应用表';
-- ----------------------------
-- Records of ad_ucenter_app
-- ----------------------------
-- ----------------------------
-- Table structure for `ad_ucenter_member`
-- ----------------------------
DROP TABLE IF EXISTS `ad_ucenter_member`;
CREATE TABLE `ad_ucenter_member` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`username` char(16) NOT NULL COMMENT '用户名',
`password` char(32) NOT NULL COMMENT '密码',
`email` char(32) NOT NULL COMMENT '用户邮箱',
`mobile` char(15) NOT NULL DEFAULT '' COMMENT '用户手机',
`reg_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间',
`reg_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '注册IP',
`last_login_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后登录时间',
`last_login_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '最后登录IP',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`status` tinyint(4) DEFAULT '0' COMMENT '用户状态',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`),
KEY `status` (`status`)
) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COMMENT='用户表';
-- ----------------------------
-- Records of ad_ucenter_member
-- ----------------------------
INSERT INTO `ad_ucenter_member` VALUES ('1', 'admin', 'e64d861187d43bb4a21baf610d44c0f5', '[email protected]', '', '1415930331', '2130706433', '1431659123', '2130706433', '1415930331', '1');
-- ----------------------------
-- Table structure for `ad_ucenter_setting`
-- ----------------------------
DROP TABLE IF EXISTS `ad_ucenter_setting`;
CREATE TABLE `ad_ucenter_setting` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '设置ID',
`type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '配置类型(1-用户配置)',
`value` text NOT NULL COMMENT '配置数据',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='设置表';
-- ----------------------------
-- Records of ad_ucenter_setting
-- ----------------------------