-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathwtcms.sql
758 lines (706 loc) · 49.4 KB
/
wtcms.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
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50553
Source Host : localhost:3306
Source Database : storage
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2017-09-07 19:21:36
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for wt_ad
-- ----------------------------
DROP TABLE IF EXISTS `wt_ad`;
CREATE TABLE `wt_ad` (
`ad_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '广告id',
`ad_name` varchar(255) NOT NULL COMMENT '广告名称',
`ad_content` text COMMENT '广告内容',
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1显示,0不显示',
PRIMARY KEY (`ad_id`),
KEY `ad_name` (`ad_name`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wt_ad
-- ----------------------------
-- ----------------------------
-- Table structure for wt_asset
-- ----------------------------
DROP TABLE IF EXISTS `wt_asset`;
CREATE TABLE `wt_asset` (
`aid` bigint(20) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户 id',
`key` varchar(50) NOT NULL COMMENT '资源 key',
`filename` varchar(50) DEFAULT NULL COMMENT '文件名',
`filesize` int(11) DEFAULT NULL COMMENT '文件大小,单位Byte',
`filepath` varchar(200) NOT NULL COMMENT '文件路径,相对于 upload 目录,可以为 url',
`uploadtime` int(11) NOT NULL COMMENT '上传时间',
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1:可用,0:删除,不可用',
`meta` text COMMENT '其它详细信息,JSON格式',
`suffix` varchar(50) DEFAULT NULL COMMENT '文件后缀名,不包括点',
`download_times` int(11) NOT NULL DEFAULT '0' COMMENT '下载次数',
PRIMARY KEY (`aid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='资源表';
-- ----------------------------
-- Records of wt_asset
-- ----------------------------
-- ----------------------------
-- Table structure for wt_auth_access
-- ----------------------------
DROP TABLE IF EXISTS `wt_auth_access`;
CREATE TABLE `wt_auth_access` (
`role_id` mediumint(8) unsigned NOT NULL COMMENT '角色',
`rule_name` varchar(255) NOT NULL COMMENT '规则唯一英文标识,全小写',
`type` varchar(30) DEFAULT NULL COMMENT '权限规则分类,请加应用前缀,如admin_',
KEY `role_id` (`role_id`) USING BTREE,
KEY `rule_name` (`rule_name`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权限授权表';
-- ----------------------------
-- Records of wt_auth_access
-- ----------------------------
-- ----------------------------
-- Table structure for wt_auth_rule
-- ----------------------------
DROP TABLE IF EXISTS `wt_auth_rule`;
CREATE TABLE `wt_auth_rule` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '规则id,自增主键',
`module` varchar(20) NOT NULL COMMENT '规则所属module',
`type` varchar(30) NOT NULL DEFAULT '1' COMMENT '权限规则分类,请加应用前缀,如admin_',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '规则唯一英文标识,全小写',
`param` varchar(255) DEFAULT NULL COMMENT '额外url参数',
`title` varchar(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`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=174 DEFAULT CHARSET=utf8 COMMENT='权限规则表';
-- ----------------------------
-- Records of wt_auth_rule
-- ----------------------------
-- ----------------------------
-- Table structure for wt_comments
-- ----------------------------
DROP TABLE IF EXISTS `wt_comments`;
CREATE TABLE `wt_comments` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`post_table` varchar(100) NOT NULL COMMENT '评论内容所在表,不带表前缀',
`post_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '评论内容 id',
`url` varchar(255) DEFAULT NULL COMMENT '原文地址',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '发表评论的用户id',
`to_uid` int(11) NOT NULL DEFAULT '0' COMMENT '被评论的用户id',
`full_name` varchar(50) DEFAULT NULL COMMENT '评论者昵称',
`email` varchar(255) DEFAULT NULL COMMENT '评论者邮箱',
`createtime` datetime NOT NULL DEFAULT '2000-01-01 00:00:00' COMMENT '评论时间',
`content` text NOT NULL COMMENT '评论内容',
`type` smallint(1) NOT NULL DEFAULT '1' COMMENT '评论类型;1实名评论',
`parentid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '被回复的评论id',
`path` varchar(500) DEFAULT NULL,
`status` smallint(1) NOT NULL DEFAULT '1' COMMENT '状态,1已审核,0未审核',
PRIMARY KEY (`id`),
KEY `comment_post_ID` (`post_id`) USING BTREE,
KEY `comment_approved_date_gmt` (`status`) USING BTREE,
KEY `comment_parent` (`parentid`) USING BTREE,
KEY `table_id_status` (`post_table`,`post_id`,`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COMMENT='评论表';
-- ----------------------------
-- Records of wt_comments
-- ----------------------------
-- ----------------------------
-- Table structure for wt_common_action_log
-- ----------------------------
DROP TABLE IF EXISTS `wt_common_action_log`;
CREATE TABLE `wt_common_action_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` bigint(20) DEFAULT '0' COMMENT '用户id',
`object` varchar(100) DEFAULT NULL COMMENT '访问对象的id,格式:不带前缀的表名+id;如posts1表示xx_posts表里id为1的记录',
`action` varchar(50) DEFAULT NULL COMMENT '操作名称;格式规定为:应用名+控制器+操作名;也可自己定义格式只要不发生冲突且惟一;',
`count` int(11) DEFAULT '0' COMMENT '访问次数',
`last_time` int(11) DEFAULT '0' COMMENT '最后访问的时间戳',
`ip` varchar(15) DEFAULT NULL COMMENT '访问者最后访问ip',
PRIMARY KEY (`id`),
KEY `user_object_action` (`user`,`object`,`action`) USING BTREE,
KEY `user_object_action_ip` (`user`,`object`,`action`,`ip`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='访问记录表';
-- ----------------------------
-- Records of wt_common_action_log
-- ----------------------------
-- ----------------------------
-- Table structure for wt_guestbook
-- ----------------------------
DROP TABLE IF EXISTS `wt_guestbook`;
CREATE TABLE `wt_guestbook` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`full_name` varchar(50) NOT NULL COMMENT '留言者姓名',
`email` varchar(100) NOT NULL COMMENT '留言者邮箱',
`title` varchar(255) DEFAULT NULL COMMENT '留言标题',
`msg` text NOT NULL COMMENT '留言内容',
`createtime` datetime NOT NULL COMMENT '留言时间',
`status` smallint(2) NOT NULL DEFAULT '1' COMMENT '留言状态,1:正常,0:删除',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='留言表';
-- ----------------------------
-- Records of wt_guestbook
-- ----------------------------
-- ----------------------------
-- Table structure for wt_links
-- ----------------------------
DROP TABLE IF EXISTS `wt_links`;
CREATE TABLE `wt_links` (
`link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`link_url` varchar(255) NOT NULL COMMENT '友情链接地址',
`link_name` varchar(255) NOT NULL COMMENT '友情链接名称',
`link_image` varchar(255) DEFAULT NULL COMMENT '友情链接图标',
`link_target` varchar(25) NOT NULL DEFAULT '_blank' COMMENT '友情链接打开方式',
`link_description` text NOT NULL COMMENT '友情链接描述',
`link_status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1显示,0不显示',
`link_rating` int(11) NOT NULL DEFAULT '0' COMMENT '友情链接评级',
`link_rel` varchar(255) DEFAULT NULL COMMENT '链接与网站的关系',
`listorder` int(10) NOT NULL DEFAULT '0' COMMENT '排序',
PRIMARY KEY (`link_id`),
KEY `link_visible` (`link_status`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='友情链接表';
-- ----------------------------
-- Records of wt_links
-- ----------------------------
INSERT INTO `wt_links` VALUES ('10', 'http://php.net/', 'php', 'admin/20170907/59b11eb6dd126.png', '_blank', 'http://php.net/', '1', '0', null, '0');
INSERT INTO `wt_links` VALUES ('8', 'https://www.thinkcmf.com/', 'thinkcmf', 'admin/20170907/59b11eb6dd126.png', '_blank', 'thinkcmf', '1', '0', null, '1');
INSERT INTO `wt_links` VALUES ('9', 'http://www.thinkphp.cn/', 'thinkphp', 'admin/20170907/59b11eb6dd126.png', '_blank', 'http://www.thinkphp.cn/', '1', '0', null, '0');
-- ----------------------------
-- Table structure for wt_menu
-- ----------------------------
DROP TABLE IF EXISTS `wt_menu`;
CREATE TABLE `wt_menu` (
`id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`parentid` smallint(6) unsigned NOT NULL DEFAULT '0',
`app` varchar(30) NOT NULL DEFAULT '' COMMENT '应用名称app',
`model` varchar(30) NOT NULL DEFAULT '' COMMENT '控制器',
`action` varchar(50) NOT NULL DEFAULT '' COMMENT '操作名称',
`data` varchar(50) NOT NULL DEFAULT '' COMMENT '额外参数',
`type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '菜单类型 1:权限认证+菜单;0:只作为菜单',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态,1显示,0不显示',
`name` varchar(50) NOT NULL COMMENT '菜单名称',
`icon` varchar(50) DEFAULT NULL COMMENT '菜单图标',
`remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
`listorder` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '排序ID',
PRIMARY KEY (`id`),
KEY `status` (`status`) USING BTREE,
KEY `parentid` (`parentid`) USING BTREE,
KEY `model` (`model`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=187 DEFAULT CHARSET=utf8 COMMENT='后台菜单表';
-- ----------------------------
-- Records of wt_menu
-- ----------------------------
INSERT INTO `wt_menu` VALUES ('1', '0', 'Admin', 'Content', 'default', '', '0', '1', '内容管理', 'th', '', '30');
INSERT INTO `wt_menu` VALUES ('2', '1', 'Api', 'Guestbookadmin', 'index', '', '1', '1', '所有留言', '', '', '0');
INSERT INTO `wt_menu` VALUES ('3', '2', 'Api', 'Guestbookadmin', 'delete', '', '1', '0', '删除网站留言', '', '', '0');
INSERT INTO `wt_menu` VALUES ('4', '1', 'Comment', 'Commentadmin', 'index', '', '1', '1', '评论管理', '', '', '0');
INSERT INTO `wt_menu` VALUES ('5', '4', 'Comment', 'Commentadmin', 'delete', '', '1', '0', '删除评论', '', '', '0');
INSERT INTO `wt_menu` VALUES ('6', '4', 'Comment', 'Commentadmin', 'check', '', '1', '0', '评论审核', '', '', '0');
INSERT INTO `wt_menu` VALUES ('7', '1', 'Portal', 'AdminPost', 'index', '', '1', '1', '文章管理', '', '', '1');
INSERT INTO `wt_menu` VALUES ('8', '7', 'Portal', 'AdminPost', 'listorders', '', '1', '0', '文章排序', '', '', '0');
INSERT INTO `wt_menu` VALUES ('9', '7', 'Portal', 'AdminPost', 'top', '', '1', '0', '文章置顶', '', '', '0');
INSERT INTO `wt_menu` VALUES ('10', '7', 'Portal', 'AdminPost', 'recommend', '', '1', '0', '文章推荐', '', '', '0');
INSERT INTO `wt_menu` VALUES ('11', '7', 'Portal', 'AdminPost', 'move', '', '1', '0', '批量移动', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('12', '7', 'Portal', 'AdminPost', 'check', '', '1', '0', '文章审核', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('13', '7', 'Portal', 'AdminPost', 'delete', '', '1', '0', '删除文章', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('14', '7', 'Portal', 'AdminPost', 'edit', '', '1', '0', '编辑文章', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('15', '14', 'Portal', 'AdminPost', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('16', '7', 'Portal', 'AdminPost', 'add', '', '1', '0', '添加文章', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('17', '16', 'Portal', 'AdminPost', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('18', '1', 'Portal', 'AdminTerm', 'index', '', '0', '1', '分类管理', '', '', '2');
INSERT INTO `wt_menu` VALUES ('19', '18', 'Portal', 'AdminTerm', 'listorders', '', '1', '0', '文章分类排序', '', '', '0');
INSERT INTO `wt_menu` VALUES ('20', '18', 'Portal', 'AdminTerm', 'delete', '', '1', '0', '删除分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('21', '18', 'Portal', 'AdminTerm', 'edit', '', '1', '0', '编辑分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('22', '21', 'Portal', 'AdminTerm', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('23', '18', 'Portal', 'AdminTerm', 'add', '', '1', '0', '添加分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('24', '23', 'Portal', 'AdminTerm', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('25', '1', 'Portal', 'AdminPage', 'index', '', '1', '1', '页面管理', '', '', '3');
INSERT INTO `wt_menu` VALUES ('26', '25', 'Portal', 'AdminPage', 'listorders', '', '1', '0', '页面排序', '', '', '0');
INSERT INTO `wt_menu` VALUES ('27', '25', 'Portal', 'AdminPage', 'delete', '', '1', '0', '删除页面', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('28', '25', 'Portal', 'AdminPage', 'edit', '', '1', '0', '编辑页面', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('29', '28', 'Portal', 'AdminPage', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('30', '25', 'Portal', 'AdminPage', 'add', '', '1', '0', '添加页面', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('31', '30', 'Portal', 'AdminPage', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('32', '1', 'Admin', 'Recycle', 'default', '', '1', '1', '回收站', '', '', '4');
INSERT INTO `wt_menu` VALUES ('33', '32', 'Portal', 'AdminPost', 'recyclebin', '', '1', '1', '文章回收', '', '', '0');
INSERT INTO `wt_menu` VALUES ('34', '33', 'Portal', 'AdminPost', 'restore', '', '1', '0', '文章还原', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('35', '33', 'Portal', 'AdminPost', 'clean', '', '1', '0', '彻底删除', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('36', '32', 'Portal', 'AdminPage', 'recyclebin', '', '1', '1', '页面回收', '', '', '1');
INSERT INTO `wt_menu` VALUES ('37', '36', 'Portal', 'AdminPage', 'clean', '', '1', '0', '彻底删除', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('38', '36', 'Portal', 'AdminPage', 'restore', '', '1', '0', '页面还原', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('39', '0', 'Admin', 'Extension', 'default', '', '0', '1', '扩展工具', 'cloud', '', '40');
INSERT INTO `wt_menu` VALUES ('40', '39', 'Admin', 'Backup', 'default', '', '1', '0', '备份管理', '', '', '0');
INSERT INTO `wt_menu` VALUES ('41', '40', 'Admin', 'Backup', 'restore', '', '1', '1', '数据还原', '', '', '0');
INSERT INTO `wt_menu` VALUES ('42', '40', 'Admin', 'Backup', 'index', '', '1', '1', '数据备份', '', '', '0');
INSERT INTO `wt_menu` VALUES ('43', '42', 'Admin', 'Backup', 'index_post', '', '1', '0', '提交数据备份', '', '', '0');
INSERT INTO `wt_menu` VALUES ('44', '40', 'Admin', 'Backup', 'download', '', '1', '0', '下载备份', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('45', '40', 'Admin', 'Backup', 'del_backup', '', '1', '0', '删除备份', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('46', '40', 'Admin', 'Backup', 'import', '', '1', '0', '数据备份导入', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('47', '39', 'Admin', 'Plugin', 'index', '', '1', '1', '插件管理', '', '', '0');
INSERT INTO `wt_menu` VALUES ('48', '47', 'Admin', 'Plugin', 'toggle', '', '1', '0', '插件启用切换', '', '', '0');
INSERT INTO `wt_menu` VALUES ('49', '47', 'Admin', 'Plugin', 'setting', '', '1', '0', '插件设置', '', '', '0');
INSERT INTO `wt_menu` VALUES ('50', '49', 'Admin', 'Plugin', 'setting_post', '', '1', '0', '插件设置提交', '', '', '0');
INSERT INTO `wt_menu` VALUES ('51', '47', 'Admin', 'Plugin', 'install', '', '1', '0', '插件安装', '', '', '0');
INSERT INTO `wt_menu` VALUES ('52', '47', 'Admin', 'Plugin', 'uninstall', '', '1', '0', '插件卸载', '', '', '0');
INSERT INTO `wt_menu` VALUES ('53', '39', 'Admin', 'Slide', 'default', '', '1', '1', '幻灯片', '', '', '1');
INSERT INTO `wt_menu` VALUES ('54', '53', 'Admin', 'Slide', 'index', '', '1', '1', '幻灯片管理', '', '', '0');
INSERT INTO `wt_menu` VALUES ('55', '54', 'Admin', 'Slide', 'listorders', '', '1', '0', '幻灯片排序', '', '', '0');
INSERT INTO `wt_menu` VALUES ('56', '54', 'Admin', 'Slide', 'toggle', '', '1', '0', '幻灯片显示切换', '', '', '0');
INSERT INTO `wt_menu` VALUES ('57', '54', 'Admin', 'Slide', 'delete', '', '1', '0', '删除幻灯片', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('58', '54', 'Admin', 'Slide', 'edit', '', '1', '0', '编辑幻灯片', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('59', '58', 'Admin', 'Slide', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('60', '54', 'Admin', 'Slide', 'add', '', '1', '0', '添加幻灯片', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('61', '60', 'Admin', 'Slide', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('62', '53', 'Admin', 'Slidecat', 'index', '', '1', '1', '幻灯片分类', '', '', '0');
INSERT INTO `wt_menu` VALUES ('63', '62', 'Admin', 'Slidecat', 'delete', '', '1', '0', '删除分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('64', '62', 'Admin', 'Slidecat', 'edit', '', '1', '0', '编辑分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('65', '64', 'Admin', 'Slidecat', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('66', '62', 'Admin', 'Slidecat', 'add', '', '1', '0', '添加分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('67', '66', 'Admin', 'Slidecat', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('68', '39', 'Admin', 'Ad', 'index', '', '1', '1', '网站广告', '', '', '2');
INSERT INTO `wt_menu` VALUES ('69', '68', 'Admin', 'Ad', 'toggle', '', '1', '0', '广告显示切换', '', '', '0');
INSERT INTO `wt_menu` VALUES ('70', '68', 'Admin', 'Ad', 'delete', '', '1', '0', '删除广告', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('71', '68', 'Admin', 'Ad', 'edit', '', '1', '0', '编辑广告', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('72', '71', 'Admin', 'Ad', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('73', '68', 'Admin', 'Ad', 'add', '', '1', '0', '添加广告', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('74', '73', 'Admin', 'Ad', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('75', '39', 'Admin', 'Link', 'index', '', '0', '1', '友情链接', '', '', '3');
INSERT INTO `wt_menu` VALUES ('76', '75', 'Admin', 'Link', 'listorders', '', '1', '0', '友情链接排序', '', '', '0');
INSERT INTO `wt_menu` VALUES ('77', '75', 'Admin', 'Link', 'toggle', '', '1', '0', '友链显示切换', '', '', '0');
INSERT INTO `wt_menu` VALUES ('78', '75', 'Admin', 'Link', 'delete', '', '1', '0', '删除友情链接', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('79', '75', 'Admin', 'Link', 'edit', '', '1', '0', '编辑友情链接', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('80', '79', 'Admin', 'Link', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('81', '75', 'Admin', 'Link', 'add', '', '1', '0', '添加友情链接', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('82', '81', 'Admin', 'Link', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('83', '39', 'Api', 'Oauthadmin', 'setting', '', '1', '1', '第三方登陆', 'leaf', '', '4');
INSERT INTO `wt_menu` VALUES ('84', '83', 'Api', 'Oauthadmin', 'setting_post', '', '1', '0', '提交设置', '', '', '0');
INSERT INTO `wt_menu` VALUES ('85', '0', 'Admin', 'Menu', 'default', '', '1', '1', '菜单管理', 'list', '', '20');
INSERT INTO `wt_menu` VALUES ('86', '85', 'Admin', 'Navcat', 'default1', '', '1', '1', '前台菜单', '', '', '0');
INSERT INTO `wt_menu` VALUES ('87', '86', 'Admin', 'Nav', 'index', '', '1', '1', '菜单管理', '', '', '0');
INSERT INTO `wt_menu` VALUES ('88', '87', 'Admin', 'Nav', 'listorders', '', '1', '0', '前台导航排序', '', '', '0');
INSERT INTO `wt_menu` VALUES ('89', '87', 'Admin', 'Nav', 'delete', '', '1', '0', '删除菜单', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('90', '87', 'Admin', 'Nav', 'edit', '', '1', '0', '编辑菜单', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('91', '90', 'Admin', 'Nav', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('92', '87', 'Admin', 'Nav', 'add', '', '1', '0', '添加菜单', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('93', '92', 'Admin', 'Nav', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('94', '86', 'Admin', 'Navcat', 'index', '', '1', '1', '菜单分类', '', '', '0');
INSERT INTO `wt_menu` VALUES ('95', '94', 'Admin', 'Navcat', 'delete', '', '1', '0', '删除分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('96', '94', 'Admin', 'Navcat', 'edit', '', '1', '0', '编辑分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('97', '96', 'Admin', 'Navcat', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('98', '94', 'Admin', 'Navcat', 'add', '', '1', '0', '添加分类', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('99', '98', 'Admin', 'Navcat', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('100', '85', 'Admin', 'Menu', 'index', '', '1', '1', '后台菜单', '', '', '0');
INSERT INTO `wt_menu` VALUES ('101', '100', 'Admin', 'Menu', 'add', '', '1', '0', '添加菜单', '', '', '0');
INSERT INTO `wt_menu` VALUES ('102', '101', 'Admin', 'Menu', 'add_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('103', '100', 'Admin', 'Menu', 'listorders', '', '1', '0', '后台菜单排序', '', '', '0');
INSERT INTO `wt_menu` VALUES ('104', '100', 'Admin', 'Menu', 'export_menu', '', '1', '0', '菜单备份', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('105', '100', 'Admin', 'Menu', 'edit', '', '1', '0', '编辑菜单', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('106', '105', 'Admin', 'Menu', 'edit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('107', '100', 'Admin', 'Menu', 'delete', '', '1', '0', '删除菜单', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('108', '100', 'Admin', 'Menu', 'lists', '', '1', '0', '所有菜单', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('109', '0', 'Admin', 'Setting', 'default', '', '0', '1', '设置', 'cogs', '', '0');
INSERT INTO `wt_menu` VALUES ('110', '109', 'Admin', 'Setting', 'userdefault', '', '0', '1', '个人信息', '', '', '0');
INSERT INTO `wt_menu` VALUES ('111', '110', 'Admin', 'User', 'userinfo', '', '1', '1', '修改信息', '', '', '0');
INSERT INTO `wt_menu` VALUES ('112', '111', 'Admin', 'User', 'userinfo_post', '', '1', '0', '修改信息提交', '', '', '0');
INSERT INTO `wt_menu` VALUES ('113', '110', 'Admin', 'Setting', 'password', '', '1', '1', '修改密码', '', '', '0');
INSERT INTO `wt_menu` VALUES ('114', '113', 'Admin', 'Setting', 'password_post', '', '1', '0', '提交修改', '', '', '0');
INSERT INTO `wt_menu` VALUES ('115', '109', 'Admin', 'Setting', 'site', '', '1', '1', '网站信息', '', '', '0');
INSERT INTO `wt_menu` VALUES ('116', '115', 'Admin', 'Setting', 'site_post', '', '1', '0', '提交修改', '', '', '0');
INSERT INTO `wt_menu` VALUES ('117', '115', 'Admin', 'Route', 'index', '', '1', '0', '路由列表', '', '', '0');
INSERT INTO `wt_menu` VALUES ('118', '115', 'Admin', 'Route', 'add', '', '1', '0', '路由添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('119', '118', 'Admin', 'Route', 'add_post', '', '1', '0', '路由添加提交', '', '', '0');
INSERT INTO `wt_menu` VALUES ('120', '115', 'Admin', 'Route', 'edit', '', '1', '0', '路由编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('121', '120', 'Admin', 'Route', 'edit_post', '', '1', '0', '路由编辑提交', '', '', '0');
INSERT INTO `wt_menu` VALUES ('122', '115', 'Admin', 'Route', 'delete', '', '1', '0', '路由删除', '', '', '0');
INSERT INTO `wt_menu` VALUES ('123', '115', 'Admin', 'Route', 'ban', '', '1', '0', '路由禁止', '', '', '0');
INSERT INTO `wt_menu` VALUES ('124', '115', 'Admin', 'Route', 'open', '', '1', '0', '路由启用', '', '', '0');
INSERT INTO `wt_menu` VALUES ('125', '115', 'Admin', 'Route', 'listorders', '', '1', '0', '路由排序', '', '', '0');
INSERT INTO `wt_menu` VALUES ('126', '109', 'Admin', 'Mailer', 'default', '', '1', '1', '邮箱配置', '', '', '0');
INSERT INTO `wt_menu` VALUES ('127', '126', 'Admin', 'Mailer', 'index', '', '1', '1', 'SMTP配置', '', '', '0');
INSERT INTO `wt_menu` VALUES ('128', '127', 'Admin', 'Mailer', 'index_post', '', '1', '0', '提交配置', '', '', '0');
INSERT INTO `wt_menu` VALUES ('129', '126', 'Admin', 'Mailer', 'active', '', '1', '1', '注册邮件模板', '', '', '0');
INSERT INTO `wt_menu` VALUES ('130', '129', 'Admin', 'Mailer', 'active_post', '', '1', '0', '提交模板', '', '', '0');
INSERT INTO `wt_menu` VALUES ('131', '109', 'Admin', 'Setting', 'clearcache', '', '1', '1', '清除缓存', '', '', '1');
INSERT INTO `wt_menu` VALUES ('132', '0', 'User', 'Indexadmin', 'default', '', '1', '1', '用户管理', 'group', '', '10');
INSERT INTO `wt_menu` VALUES ('133', '132', 'User', 'Indexadmin', 'default1', '', '1', '1', '用户组', '', '', '0');
INSERT INTO `wt_menu` VALUES ('134', '133', 'User', 'Indexadmin', 'index', '', '1', '1', '本站用户', 'leaf', '', '0');
INSERT INTO `wt_menu` VALUES ('135', '134', 'User', 'Indexadmin', 'ban', '', '1', '0', '拉黑会员', '', '', '0');
INSERT INTO `wt_menu` VALUES ('136', '134', 'User', 'Indexadmin', 'cancelban', '', '1', '0', '启用会员', '', '', '0');
INSERT INTO `wt_menu` VALUES ('137', '133', 'User', 'Oauthadmin', 'index', '', '1', '1', '第三方用户', 'leaf', '', '0');
INSERT INTO `wt_menu` VALUES ('138', '137', 'User', 'Oauthadmin', 'delete', '', '1', '0', '第三方用户解绑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('139', '132', 'User', 'Indexadmin', 'default3', '', '1', '1', '管理组', '', '', '0');
INSERT INTO `wt_menu` VALUES ('140', '139', 'Admin', 'Rbac', 'index', '', '1', '1', '角色管理', '', '', '0');
INSERT INTO `wt_menu` VALUES ('141', '140', 'Admin', 'Rbac', 'member', '', '1', '0', '成员管理', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('142', '140', 'Admin', 'Rbac', 'authorize', '', '1', '0', '权限设置', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('143', '142', 'Admin', 'Rbac', 'authorize_post', '', '1', '0', '提交设置', '', '', '0');
INSERT INTO `wt_menu` VALUES ('144', '140', 'Admin', 'Rbac', 'roleedit', '', '1', '0', '编辑角色', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('145', '144', 'Admin', 'Rbac', 'roleedit_post', '', '1', '0', '提交编辑', '', '', '0');
INSERT INTO `wt_menu` VALUES ('146', '140', 'Admin', 'Rbac', 'roledelete', '', '1', '1', '删除角色', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('147', '140', 'Admin', 'Rbac', 'roleadd', '', '1', '1', '添加角色', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('148', '147', 'Admin', 'Rbac', 'roleadd_post', '', '1', '0', '提交添加', '', '', '0');
INSERT INTO `wt_menu` VALUES ('149', '139', 'Admin', 'User', 'index', '', '1', '1', '管理员', '', '', '0');
INSERT INTO `wt_menu` VALUES ('150', '149', 'Admin', 'User', 'delete', '', '1', '0', '删除管理员', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('151', '149', 'Admin', 'User', 'edit', '', '1', '0', '管理员编辑', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('152', '151', 'Admin', 'User', 'edit_post', '', '1', '0', '编辑提交', '', '', '0');
INSERT INTO `wt_menu` VALUES ('153', '149', 'Admin', 'User', 'add', '', '1', '0', '管理员添加', '', '', '1000');
INSERT INTO `wt_menu` VALUES ('154', '153', 'Admin', 'User', 'add_post', '', '1', '0', '添加提交', '', '', '0');
INSERT INTO `wt_menu` VALUES ('155', '47', 'Admin', 'Plugin', 'update', '', '1', '0', '插件更新', '', '', '0');
INSERT INTO `wt_menu` VALUES ('156', '109', 'Admin', 'Storage', 'index', '', '1', '1', '文件存储', '', '', '0');
INSERT INTO `wt_menu` VALUES ('157', '156', 'Admin', 'Storage', 'setting_post', '', '1', '0', '文件存储设置提交', '', '', '0');
INSERT INTO `wt_menu` VALUES ('158', '54', 'Admin', 'Slide', 'ban', '', '1', '0', '禁用幻灯片', '', '', '0');
INSERT INTO `wt_menu` VALUES ('159', '54', 'Admin', 'Slide', 'cancelban', '', '1', '0', '启用幻灯片', '', '', '0');
INSERT INTO `wt_menu` VALUES ('160', '149', 'Admin', 'User', 'ban', '', '1', '0', '禁用管理员', '', '', '0');
INSERT INTO `wt_menu` VALUES ('161', '149', 'Admin', 'User', 'cancelban', '', '1', '0', '启用管理员', '', '', '0');
INSERT INTO `wt_menu` VALUES ('166', '127', 'Admin', 'Mailer', 'test', '', '1', '0', '测试邮件', '', '', '0');
INSERT INTO `wt_menu` VALUES ('167', '109', 'Admin', 'Setting', 'upload', '', '1', '1', '上传设置', '', '', '0');
INSERT INTO `wt_menu` VALUES ('168', '167', 'Admin', 'Setting', 'upload_post', '', '1', '0', '上传设置提交', '', '', '0');
INSERT INTO `wt_menu` VALUES ('169', '7', 'Portal', 'AdminPost', 'copy', '', '1', '0', '文章批量复制', '', '', '0');
INSERT INTO `wt_menu` VALUES ('174', '100', 'Admin', 'Menu', 'backup_menu', '', '1', '0', '备份菜单', '', '', '0');
INSERT INTO `wt_menu` VALUES ('175', '100', 'Admin', 'Menu', 'export_menu_lang', '', '1', '0', '导出后台菜单多语言包', '', '', '0');
INSERT INTO `wt_menu` VALUES ('176', '100', 'Admin', 'Menu', 'restore_menu', '', '1', '0', '还原菜单', '', '', '0');
INSERT INTO `wt_menu` VALUES ('177', '100', 'Admin', 'Menu', 'getactions', '', '1', '0', '导入新菜单', '', '', '0');
-- ----------------------------
-- Table structure for wt_nav
-- ----------------------------
DROP TABLE IF EXISTS `wt_nav`;
CREATE TABLE `wt_nav` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cid` int(11) NOT NULL COMMENT '导航分类 id',
`parentid` int(11) NOT NULL COMMENT '导航父 id',
`label` varchar(255) NOT NULL COMMENT '导航标题',
`target` varchar(50) DEFAULT NULL COMMENT '打开方式',
`href` varchar(255) NOT NULL COMMENT '导航链接',
`icon` varchar(255) NOT NULL COMMENT '导航图标',
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1显示,0不显示',
`listorder` int(6) DEFAULT '0' COMMENT '排序',
`path` varchar(255) NOT NULL DEFAULT '0' COMMENT '层级关系',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=93 DEFAULT CHARSET=utf8 COMMENT='前台导航表';
-- ----------------------------
-- Records of wt_nav
-- ----------------------------
INSERT INTO `wt_nav` VALUES ('91', '3', '72', 'submenu1_3', '', 'home', '', '1', '2', '0-71-91');
INSERT INTO `wt_nav` VALUES ('90', '3', '72', 'submenu1_2', '', 'home', '', '1', '1', '0-71-90');
INSERT INTO `wt_nav` VALUES ('88', '3', '86', 'submenu8_1', '', 'home', '', '1', '0', '0-86-88');
INSERT INTO `wt_nav` VALUES ('85', '3', '76', 'submenu5_1', '', 'home', '', '1', '0', '0-76-85');
INSERT INTO `wt_nav` VALUES ('86', '3', '0', '主页菜单8', '', 'home', '', '1', '8', '0-86');
INSERT INTO `wt_nav` VALUES ('83', '3', '78', 'submenu7_1', '', 'home', '', '1', '0', '0-78-83');
INSERT INTO `wt_nav` VALUES ('84', '3', '77', 'submenu6_1', '', 'home', '', '1', '0', '0-77-84');
INSERT INTO `wt_nav` VALUES ('81', '3', '74', 'submenu3_1', '', 'home', '', '1', '0', '0-74-81');
INSERT INTO `wt_nav` VALUES ('82', '3', '75', 'submenu4_1', '', 'home', '', '1', '0', '0-75-82');
INSERT INTO `wt_nav` VALUES ('79', '3', '72', 'submenu1_1', '', 'home', '', '1', '0', '0-71-79');
INSERT INTO `wt_nav` VALUES ('80', '3', '73', 'submenu2_1', '', 'home', '', '1', '0', '0-73-80');
INSERT INTO `wt_nav` VALUES ('76', '3', '0', '主页菜单5', '', 'home', '', '1', '5', '0-76');
INSERT INTO `wt_nav` VALUES ('77', '3', '0', '主页菜单6', '', 'home', '', '1', '6', '0-77');
INSERT INTO `wt_nav` VALUES ('78', '3', '0', '主页菜单7', '', 'home', '', '1', '7', '0-78');
INSERT INTO `wt_nav` VALUES ('75', '3', '0', '主页菜单4', '', 'home', '', '1', '4', '0-75');
INSERT INTO `wt_nav` VALUES ('74', '3', '0', '最新动态', '', 'a:2:{s:6:\"action\";s:17:\"Portal/List/index\";s:5:\"param\";a:1:{s:2:\"id\";s:1:\"3\";}}', '', '1', '3', '0-74');
INSERT INTO `wt_nav` VALUES ('71', '3', '0', '主页', '', 'home', '', '1', '0', '0-72');
INSERT INTO `wt_nav` VALUES ('73', '3', '0', '通知公告', '', 'a:2:{s:6:\"action\";s:17:\"Portal/List/index\";s:5:\"param\";a:1:{s:2:\"id\";s:1:\"2\";}}', '', '1', '2', '0-73');
INSERT INTO `wt_nav` VALUES ('72', '3', '0', '新闻消息', '', 'a:2:{s:6:\"action\";s:17:\"Portal/List/index\";s:5:\"param\";a:1:{s:2:\"id\";s:1:\"1\";}}', '', '1', '1', '0-71');
-- ----------------------------
-- Table structure for wt_nav_cat
-- ----------------------------
DROP TABLE IF EXISTS `wt_nav_cat`;
CREATE TABLE `wt_nav_cat` (
`navcid` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL COMMENT '导航分类名',
`active` int(1) NOT NULL DEFAULT '1' COMMENT '是否为主菜单,1是,0不是',
`remark` text COMMENT '备注',
PRIMARY KEY (`navcid`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='前台导航分类表';
-- ----------------------------
-- Records of wt_nav_cat
-- ----------------------------
INSERT INTO `wt_nav_cat` VALUES ('3', '主菜单', '1', '');
-- ----------------------------
-- Table structure for wt_oauth_user
-- ----------------------------
DROP TABLE IF EXISTS `wt_oauth_user`;
CREATE TABLE `wt_oauth_user` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`from` varchar(20) NOT NULL COMMENT '用户来源key',
`name` varchar(30) NOT NULL COMMENT '第三方昵称',
`head_img` varchar(200) NOT NULL COMMENT '头像',
`uid` int(20) NOT NULL COMMENT '关联的本站用户id',
`create_time` datetime NOT NULL COMMENT '绑定时间',
`last_login_time` datetime NOT NULL COMMENT '最后登录时间',
`last_login_ip` varchar(16) NOT NULL COMMENT '最后登录ip',
`login_times` int(6) NOT NULL COMMENT '登录次数',
`status` tinyint(2) NOT NULL,
`access_token` varchar(512) NOT NULL,
`expires_date` int(11) NOT NULL COMMENT 'access_token过期时间',
`openid` varchar(40) NOT NULL COMMENT '第三方用户id',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='第三方用户表';
-- ----------------------------
-- Records of wt_oauth_user
-- ----------------------------
-- ----------------------------
-- Table structure for wt_options
-- ----------------------------
DROP TABLE IF EXISTS `wt_options`;
CREATE TABLE `wt_options` (
`option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`option_name` varchar(64) NOT NULL COMMENT '配置名',
`option_value` longtext NOT NULL COMMENT '配置值',
`autoload` int(2) NOT NULL DEFAULT '1' COMMENT '是否自动加载',
PRIMARY KEY (`option_id`),
UNIQUE KEY `option_name` (`option_name`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='全站配置表';
-- ----------------------------
-- Records of wt_options
-- ----------------------------
INSERT INTO `wt_options` VALUES ('10', 'site_options', '{\"site_name\":\"TAOSIR\",\"site_admin_url_password\":\"\",\"site_tpl\":\"default\",\"site_adminstyle\":\"flat\",\"site_icp\":\"\",\"site_admin_email\":\"\",\"site_tongji\":\"\",\"site_copyright\":\"\",\"site_seo_title\":\"\\u4e3b\\u9875\",\"site_seo_keywords\":\"\",\"site_seo_description\":\"\",\"urlmode\":\"0\",\"html_suffix\":\"\",\"comment_time_interval\":\"60\"}', '1');
INSERT INTO `wt_options` VALUES ('11', 'cmf_settings', '{\"banned_usernames\":\"\"}', '1');
INSERT INTO `wt_options` VALUES ('12', 'cdn_settings', '{\"cdn_static_root\":\"\"}', '1');
-- ----------------------------
-- Table structure for wt_plugins
-- ----------------------------
DROP TABLE IF EXISTS `wt_plugins`;
CREATE TABLE `wt_plugins` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` varchar(50) NOT NULL COMMENT '插件名,英文',
`title` varchar(50) NOT NULL DEFAULT '' COMMENT '插件名称',
`description` text COMMENT '插件描述',
`type` tinyint(2) DEFAULT '0' COMMENT '插件类型, 1:网站;8;微信',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态;1开启;',
`config` text COMMENT '插件配置',
`hooks` varchar(255) DEFAULT NULL COMMENT '实现的钩子;以“,”分隔',
`has_admin` tinyint(2) DEFAULT '0' COMMENT '插件是否有后台管理界面',
`author` varchar(50) DEFAULT '' COMMENT '插件作者',
`version` varchar(20) DEFAULT '' COMMENT '插件版本号',
`createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '插件安装时间',
`listorder` smallint(6) NOT NULL DEFAULT '0' COMMENT '排序',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='插件表';
-- ----------------------------
-- Records of wt_plugins
-- ----------------------------
-- ----------------------------
-- Table structure for wt_posts
-- ----------------------------
DROP TABLE IF EXISTS `wt_posts`;
CREATE TABLE `wt_posts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`post_author` bigint(20) unsigned DEFAULT '0' COMMENT '发表者id',
`post_keywords` varchar(150) NOT NULL COMMENT 'seo keywords',
`post_source` varchar(150) DEFAULT NULL COMMENT '转载文章的来源',
`post_date` datetime DEFAULT '2000-01-01 00:00:00' COMMENT 'post发布日期',
`post_content` longtext COMMENT 'post内容',
`post_title` text COMMENT 'post标题',
`post_excerpt` text COMMENT 'post摘要',
`post_status` int(2) DEFAULT '1' COMMENT 'post状态,1已审核,0未审核,3删除',
`comment_status` int(2) DEFAULT '1' COMMENT '评论状态,1允许,0不允许',
`post_modified` datetime DEFAULT '2000-01-01 00:00:00' COMMENT 'post更新时间,可在前台修改,显示给用户',
`post_content_filtered` longtext,
`post_parent` bigint(20) unsigned DEFAULT '0' COMMENT 'post的父级post id,表示post层级关系',
`post_type` int(2) DEFAULT '1' COMMENT 'post类型,1文章,2页面',
`post_mime_type` varchar(100) DEFAULT '',
`comment_count` bigint(20) DEFAULT '0',
`smeta` text COMMENT 'post的扩展字段,保存相关扩展属性,如缩略图;格式为json',
`post_hits` int(11) DEFAULT '0' COMMENT 'post点击数,查看数',
`post_like` int(11) DEFAULT '0' COMMENT 'post赞数',
`istop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '置顶 1置顶; 0不置顶',
`recommended` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐 1推荐 0不推荐',
PRIMARY KEY (`id`),
KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`id`) USING BTREE,
KEY `post_parent` (`post_parent`) USING BTREE,
KEY `post_author` (`post_author`) USING BTREE,
KEY `post_date` (`post_date`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=190 DEFAULT CHARSET=utf8 COMMENT='Portal文章表';
-- ----------------------------
-- Records of wt_posts
-- ----------------------------
INSERT INTO `wt_posts` VALUES ('185', '1', 'news', '', '2017-09-07 18:17:01', '<p>news_title_1</p>', 'news_title_1', 'news_title_1', '1', '1', '2017-09-07 18:17:40', null, '0', '1', '', '0', '{\"thumb\":\"\",\"template\":\"article\"}', '0', '0', '0', '0');
INSERT INTO `wt_posts` VALUES ('186', '1', 'notice', '', '2017-09-07 18:17:43', '<p>Notice_title_1!</p>', 'Notice_title_1', 'Notice_title_1', '1', '1', '2017-09-07 18:18:06', null, '0', '1', '', '0', '{\"thumb\":\"\",\"template\":\"article\"}', '0', '0', '0', '0');
INSERT INTO `wt_posts` VALUES ('187', '1', 'trend', '', '2017-09-07 18:18:08', '<p>Trends_title_1!</p>', 'Trends_title_1', 'Trends_title_1', '1', '1', '2017-09-07 18:18:57', null, '0', '1', '', '0', '{\"thumb\":\"\",\"template\":\"article\"}', '0', '0', '0', '0');
INSERT INTO `wt_posts` VALUES ('188', '1', 'news', '', '2017-09-07 18:19:05', '<p>news_title_2</p>', 'news_title_2', 'news_title_2', '1', '1', '2017-09-07 18:19:23', null, '0', '1', '', '0', '{\"thumb\":\"\",\"template\":\"article\"}', '0', '0', '0', '0');
INSERT INTO `wt_posts` VALUES ('189', '1', 'notice', '', '2017-09-07 18:19:26', '<p>Notice_title_2</p>', 'Notice_title_2', 'Notice_title_2', '1', '1', '2017-09-07 18:19:49', null, '0', '1', '', '0', '{\"thumb\":\"\",\"template\":\"article\"}', '12', '0', '0', '0');
-- ----------------------------
-- Table structure for wt_role
-- ----------------------------
DROP TABLE IF EXISTS `wt_role`;
CREATE TABLE `wt_role` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL COMMENT '角色名称',
`pid` smallint(6) DEFAULT NULL COMMENT '父角色ID',
`status` tinyint(1) unsigned DEFAULT NULL COMMENT '状态',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`listorder` int(3) NOT NULL DEFAULT '0' COMMENT '排序字段',
PRIMARY KEY (`id`),
KEY `parentId` (`pid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='角色表';
-- ----------------------------
-- Records of wt_role
-- ----------------------------
-- ----------------------------
-- Table structure for wt_role_user
-- ----------------------------
DROP TABLE IF EXISTS `wt_role_user`;
CREATE TABLE `wt_role_user` (
`role_id` int(11) unsigned DEFAULT '0' COMMENT '角色 id',
`user_id` int(11) DEFAULT '0' COMMENT '用户id',
KEY `group_id` (`role_id`) USING BTREE,
KEY `user_id` (`user_id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户角色对应表';
-- ----------------------------
-- Records of wt_role_user
-- ----------------------------
-- ----------------------------
-- Table structure for wt_route
-- ----------------------------
DROP TABLE IF EXISTS `wt_route`;
CREATE TABLE `wt_route` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '路由id',
`full_url` varchar(255) DEFAULT NULL COMMENT '完整url, 如:portal/list/index?id=1',
`url` varchar(255) DEFAULT NULL COMMENT '实际显示的url',
`listorder` int(5) DEFAULT '0' COMMENT '排序,优先级,越小优先级越高',
`status` tinyint(1) DEFAULT '1' COMMENT '状态,1:启用 ;0:不启用',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='url路由表';
-- ----------------------------
-- Records of wt_route
-- ----------------------------
-- ----------------------------
-- Table structure for wt_slide
-- ----------------------------
DROP TABLE IF EXISTS `wt_slide`;
CREATE TABLE `wt_slide` (
`slide_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`slide_cid` int(11) NOT NULL COMMENT '幻灯片分类 id',
`slide_name` varchar(255) NOT NULL COMMENT '幻灯片名称',
`slide_pic` varchar(255) DEFAULT NULL COMMENT '幻灯片图片',
`slide_url` varchar(255) DEFAULT NULL COMMENT '幻灯片链接',
`slide_des` varchar(255) DEFAULT NULL COMMENT '幻灯片描述',
`slide_content` text COMMENT '幻灯片内容',
`slide_status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1显示,0不显示',
`listorder` int(10) DEFAULT '0' COMMENT '排序',
PRIMARY KEY (`slide_id`),
KEY `slide_cid` (`slide_cid`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='幻灯片表';
-- ----------------------------
-- Records of wt_slide
-- ----------------------------
-- ----------------------------
-- Table structure for wt_slide_cat
-- ----------------------------
DROP TABLE IF EXISTS `wt_slide_cat`;
CREATE TABLE `wt_slide_cat` (
`cid` int(11) NOT NULL AUTO_INCREMENT,
`cat_name` varchar(255) NOT NULL COMMENT '幻灯片分类',
`cat_idname` varchar(255) NOT NULL COMMENT '幻灯片分类标识',
`cat_remark` text COMMENT '分类备注',
`cat_status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1显示,0不显示',
PRIMARY KEY (`cid`),
KEY `cat_idname` (`cat_idname`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='幻灯片分类表';
-- ----------------------------
-- Records of wt_slide_cat
-- ----------------------------
-- ----------------------------
-- Table structure for wt_terms
-- ----------------------------
DROP TABLE IF EXISTS `wt_terms`;
CREATE TABLE `wt_terms` (
`term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类id',
`name` varchar(200) DEFAULT NULL COMMENT '分类名称',
`slug` varchar(200) DEFAULT '',
`taxonomy` varchar(32) DEFAULT NULL COMMENT '分类类型',
`description` longtext COMMENT '分类描述',
`parent` bigint(20) unsigned DEFAULT '0' COMMENT '分类父id',
`count` bigint(20) DEFAULT '0' COMMENT '分类文章数',
`path` varchar(500) DEFAULT NULL COMMENT '分类层级关系路径',
`seo_title` varchar(500) DEFAULT NULL,
`seo_keywords` varchar(500) DEFAULT NULL,
`seo_description` varchar(500) DEFAULT NULL,
`list_tpl` varchar(50) DEFAULT NULL COMMENT '分类列表模板',
`one_tpl` varchar(50) DEFAULT NULL COMMENT '分类文章页模板',
`listorder` int(5) NOT NULL DEFAULT '0' COMMENT '排序',
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1发布,0不发布',
PRIMARY KEY (`term_id`)
) ENGINE=MyISAM AUTO_INCREMENT=126 DEFAULT CHARSET=utf8 COMMENT='Portal 文章分类表';
-- ----------------------------
-- Records of wt_terms
-- ----------------------------
INSERT INTO `wt_terms` VALUES ('1', '新闻消息', '', 'article', '实验室新闻', '0', '0', '0-123', '', '', '', 'list', 'article', '0', '1');
INSERT INTO `wt_terms` VALUES ('2', '通知公告', '', 'article', '实验室通知', '0', '0', '0-124', '', '', '', 'list', 'article', '0', '1');
INSERT INTO `wt_terms` VALUES ('3', '公司动态', '', 'article', '公司动态', '0', '0', '0-3', '', '', '', 'list', 'article', '0', '1');
-- ----------------------------
-- Table structure for wt_term_relationships
-- ----------------------------
DROP TABLE IF EXISTS `wt_term_relationships`;
CREATE TABLE `wt_term_relationships` (
`tid` bigint(20) NOT NULL AUTO_INCREMENT,
`object_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'posts表里文章id',
`term_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '分类id',
`listorder` int(10) NOT NULL DEFAULT '0' COMMENT '排序',
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1发布,0不发布',
PRIMARY KEY (`tid`),
KEY `term_taxonomy_id` (`term_id`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=142 DEFAULT CHARSET=utf8 COMMENT='Portal 文章分类对应表';
-- ----------------------------
-- Records of wt_term_relationships
-- ----------------------------
INSERT INTO `wt_term_relationships` VALUES ('141', '189', '2', '0', '1');
INSERT INTO `wt_term_relationships` VALUES ('140', '188', '1', '0', '1');
INSERT INTO `wt_term_relationships` VALUES ('139', '187', '3', '0', '1');
INSERT INTO `wt_term_relationships` VALUES ('138', '186', '2', '0', '1');
INSERT INTO `wt_term_relationships` VALUES ('137', '185', '1', '0', '1');
-- ----------------------------
-- Table structure for wt_users
-- ----------------------------
DROP TABLE IF EXISTS `wt_users`;
CREATE TABLE `wt_users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_login` varchar(60) NOT NULL DEFAULT '' COMMENT '用户名',
`user_pass` varchar(64) NOT NULL DEFAULT '' COMMENT '登录密码;sp_password加密',
`user_nicename` varchar(50) NOT NULL DEFAULT '' COMMENT '用户美名',
`user_email` varchar(100) NOT NULL DEFAULT '' COMMENT '登录邮箱',
`user_url` varchar(100) NOT NULL DEFAULT '' COMMENT '用户个人网站',
`avatar` varchar(255) DEFAULT 'avatar/default_headicon.png' COMMENT '用户头像,相对于upload/avatar目录',
`sex` smallint(1) DEFAULT '0' COMMENT '性别;0:保密,1:男;2:女',
`birthday` date DEFAULT '2000-01-01' COMMENT '生日',
`signature` varchar(255) DEFAULT NULL COMMENT '个性签名',
`last_login_ip` varchar(16) DEFAULT NULL COMMENT '最后登录ip',
`last_login_time` datetime NOT NULL DEFAULT '2000-01-01 00:00:00' COMMENT '最后登录时间',
`create_time` datetime NOT NULL DEFAULT '2000-01-01 00:00:00' COMMENT '注册时间',
`user_activation_key` varchar(60) NOT NULL DEFAULT '' COMMENT '激活码',
`user_status` int(11) NOT NULL DEFAULT '1' COMMENT '用户状态 0:禁用; 1:正常 ;2:未验证',
`score` int(11) NOT NULL DEFAULT '0' COMMENT '用户积分',
`user_type` smallint(1) DEFAULT '1' COMMENT '用户类型,1:admin ;2:会员',
`coin` int(11) NOT NULL DEFAULT '0' COMMENT '金币',
`mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号',
PRIMARY KEY (`id`),
KEY `user_login_key` (`user_login`) USING BTREE,
KEY `user_nicename` (`user_nicename`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='用户表';
-- ----------------------------
-- Records of wt_users
-- ----------------------------
INSERT INTO `wt_users` VALUES ('1', 'admin', '###1b09e9a9262680ba9582a035c32c5667', 'admin', '365224772@qq.com', '', 'avatar/admin_headicon.png', '0', '2017-01-01', '', '127.0.0.1', '2017-09-07 17:49:26', '2017-05-11 09:43:49', '6818d5f626a1e499782cab7aed3911a8', '1', '0', '1', '0', '');
-- ----------------------------
-- Table structure for wt_user_favorites
-- ----------------------------
DROP TABLE IF EXISTS `wt_user_favorites`;
CREATE TABLE `wt_user_favorites` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` bigint(20) DEFAULT NULL COMMENT '用户 id',
`title` varchar(255) DEFAULT NULL COMMENT '收藏内容的标题',
`url` varchar(255) DEFAULT NULL COMMENT '收藏内容的原文地址,不带域名',
`description` varchar(500) DEFAULT NULL COMMENT '收藏内容的描述',
`table` varchar(50) DEFAULT NULL COMMENT '收藏实体以前所在表,不带前缀',
`object_id` int(11) DEFAULT NULL COMMENT '收藏内容原来的主键id',
`createtime` int(11) DEFAULT NULL COMMENT '收藏时间',
PRIMARY KEY (`id`),
KEY `uid` (`uid`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='用户收藏表';
-- ----------------------------
-- Records of wt_user_favorites
-- ----------------------------