-
Notifications
You must be signed in to change notification settings - Fork 0
/
umr.sql
1466 lines (1303 loc) · 70.1 KB
/
umr.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
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- phpMyAdmin SQL Dump
-- version 4.6.0
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: 2016-03-29 15:34:46
-- 服务器版本: 10.1.12-MariaDB
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `umr`
--
CREATE DATABASE IF NOT EXISTS `umr` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `umr`;
-- --------------------------------------------------------
--
-- 表的结构 `umr_ad`
--
DROP TABLE IF EXISTS `umr_ad`;
CREATE TABLE `umr_ad` (
`ad_id` bigint(20) NOT NULL COMMENT '广告id',
`ad_name` varchar(255) NOT NULL COMMENT '广告名称',
`ad_content` text COMMENT '广告内容',
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态,1显示,0不显示'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `umr_asset`
--
DROP TABLE IF EXISTS `umr_asset`;
CREATE TABLE `umr_asset` (
`aid` bigint(20) NOT NULL,
`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 '下载次数'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='资源表';
--
-- 插入之前先把表清空(truncate) `umr_asset`
--
TRUNCATE TABLE `umr_asset`;
-- --------------------------------------------------------
--
-- 表的结构 `umr_auth_access`
--
DROP TABLE IF EXISTS `umr_auth_access`;
CREATE TABLE `umr_auth_access` (
`role_id` mediumint(8) UNSIGNED NOT NULL COMMENT '角色',
`rule_name` varchar(255) NOT NULL COMMENT '规则唯一英文标识,全小写',
`type` varchar(30) DEFAULT NULL COMMENT '权限规则分类,请加应用前缀,如admin_'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权限授权表';
--
-- 插入之前先把表清空(truncate) `umr_auth_access`
--
TRUNCATE TABLE `umr_auth_access`;
-- --------------------------------------------------------
--
-- 表的结构 `umr_auth_rule`
--
DROP TABLE IF EXISTS `umr_auth_rule`;
CREATE TABLE `umr_auth_rule` (
`id` mediumint(8) UNSIGNED NOT NULL 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 '规则附加条件'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权限规则表';
--
-- 插入之前先把表清空(truncate) `umr_auth_rule`
--
TRUNCATE TABLE `umr_auth_rule`;
--
-- 转存表中的数据 `umr_auth_rule`
--
INSERT INTO `umr_auth_rule` (`id`, `module`, `type`, `name`, `param`, `title`, `status`, `condition`) VALUES
(1, 'Admin', 'admin_url', 'admin/content/default', NULL, '内容管理', 1, ''),
(2, 'Api', 'admin_url', 'api/guestbookadmin/index', NULL, '所有留言', 1, ''),
(3, 'Api', 'admin_url', 'api/guestbookadmin/delete', NULL, '删除网站留言', 1, ''),
(4, 'Comment', 'admin_url', 'comment/commentadmin/index', NULL, '评论管理', 1, ''),
(5, 'Comment', 'admin_url', 'comment/commentadmin/delete', NULL, '删除评论', 1, ''),
(6, 'Comment', 'admin_url', 'comment/commentadmin/check', NULL, '评论审核', 1, ''),
(7, 'Portal', 'admin_url', 'portal/adminpost/index', NULL, '文章管理', 1, ''),
(8, 'Portal', 'admin_url', 'portal/adminpost/listorders', NULL, '文章排序', 1, ''),
(9, 'Portal', 'admin_url', 'portal/adminpost/top', NULL, '文章置顶', 1, ''),
(10, 'Portal', 'admin_url', 'portal/adminpost/recommend', NULL, '文章推荐', 1, ''),
(11, 'Portal', 'admin_url', 'portal/adminpost/move', NULL, '批量移动', 1, ''),
(12, 'Portal', 'admin_url', 'portal/adminpost/check', NULL, '文章审核', 1, ''),
(13, 'Portal', 'admin_url', 'portal/adminpost/delete', NULL, '删除文章', 1, ''),
(14, 'Portal', 'admin_url', 'portal/adminpost/edit', NULL, '编辑文章', 1, ''),
(15, 'Portal', 'admin_url', 'portal/adminpost/edit_post', NULL, '提交编辑', 1, ''),
(16, 'Portal', 'admin_url', 'portal/adminpost/add', NULL, '添加文章', 1, ''),
(17, 'Portal', 'admin_url', 'portal/adminpost/add_post', NULL, '提交添加', 1, ''),
(18, 'Portal', 'admin_url', 'portal/adminterm/index', NULL, '分类管理', 1, ''),
(19, 'Portal', 'admin_url', 'portal/adminterm/listorders', NULL, '文章分类排序', 1, ''),
(20, 'Portal', 'admin_url', 'portal/adminterm/delete', NULL, '删除分类', 1, ''),
(21, 'Portal', 'admin_url', 'portal/adminterm/edit', NULL, '编辑分类', 1, ''),
(22, 'Portal', 'admin_url', 'portal/adminterm/edit_post', NULL, '提交编辑', 1, ''),
(23, 'Portal', 'admin_url', 'portal/adminterm/add', NULL, '添加分类', 1, ''),
(24, 'Portal', 'admin_url', 'portal/adminterm/add_post', NULL, '提交添加', 1, ''),
(25, 'Portal', 'admin_url', 'portal/adminpage/index', NULL, '页面管理', 1, ''),
(26, 'Portal', 'admin_url', 'portal/adminpage/listorders', NULL, '页面排序', 1, ''),
(27, 'Portal', 'admin_url', 'portal/adminpage/delete', NULL, '删除页面', 1, ''),
(28, 'Portal', 'admin_url', 'portal/adminpage/edit', NULL, '编辑页面', 1, ''),
(29, 'Portal', 'admin_url', 'portal/adminpage/edit_post', NULL, '提交编辑', 1, ''),
(30, 'Portal', 'admin_url', 'portal/adminpage/add', NULL, '添加页面', 1, ''),
(31, 'Portal', 'admin_url', 'portal/adminpage/add_post', NULL, '提交添加', 1, ''),
(32, 'Admin', 'admin_url', 'admin/recycle/default', NULL, '回收站', 1, ''),
(33, 'Portal', 'admin_url', 'portal/adminpost/recyclebin', NULL, '文章回收', 1, ''),
(34, 'Portal', 'admin_url', 'portal/adminpost/restore', NULL, '文章还原', 1, ''),
(35, 'Portal', 'admin_url', 'portal/adminpost/clean', NULL, '彻底删除', 1, ''),
(36, 'Portal', 'admin_url', 'portal/adminpage/recyclebin', NULL, '页面回收', 1, ''),
(37, 'Portal', 'admin_url', 'portal/adminpage/clean', NULL, '彻底删除', 1, ''),
(38, 'Portal', 'admin_url', 'portal/adminpage/restore', NULL, '页面还原', 1, ''),
(39, 'Admin', 'admin_url', 'admin/extension/default', NULL, '扩展工具', 1, ''),
(40, 'Admin', 'admin_url', 'admin/backup/default', NULL, '备份管理', 1, ''),
(41, 'Admin', 'admin_url', 'admin/backup/restore', NULL, '数据还原', 1, ''),
(42, 'Admin', 'admin_url', 'admin/backup/index', NULL, '数据备份', 1, ''),
(43, 'Admin', 'admin_url', 'admin/backup/index_post', NULL, '提交数据备份', 1, ''),
(44, 'Admin', 'admin_url', 'admin/backup/download', NULL, '下载备份', 1, ''),
(45, 'Admin', 'admin_url', 'admin/backup/del_backup', NULL, '删除备份', 1, ''),
(46, 'Admin', 'admin_url', 'admin/backup/import', NULL, '数据备份导入', 1, ''),
(47, 'Admin', 'admin_url', 'admin/plugin/index', NULL, '插件管理', 1, ''),
(48, 'Admin', 'admin_url', 'admin/plugin/toggle', NULL, '插件启用切换', 1, ''),
(49, 'Admin', 'admin_url', 'admin/plugin/setting', NULL, '插件设置', 1, ''),
(50, 'Admin', 'admin_url', 'admin/plugin/setting_post', NULL, '插件设置提交', 1, ''),
(51, 'Admin', 'admin_url', 'admin/plugin/install', NULL, '插件安装', 1, ''),
(52, 'Admin', 'admin_url', 'admin/plugin/uninstall', NULL, '插件卸载', 1, ''),
(53, 'Admin', 'admin_url', 'admin/slide/default', NULL, '幻灯片', 1, ''),
(54, 'Admin', 'admin_url', 'admin/slide/index', NULL, '幻灯片管理', 1, ''),
(55, 'Admin', 'admin_url', 'admin/slide/listorders', NULL, '幻灯片排序', 1, ''),
(56, 'Admin', 'admin_url', 'admin/slide/toggle', NULL, '幻灯片显示切换', 1, ''),
(57, 'Admin', 'admin_url', 'admin/slide/delete', NULL, '删除幻灯片', 1, ''),
(58, 'Admin', 'admin_url', 'admin/slide/edit', NULL, '编辑幻灯片', 1, ''),
(59, 'Admin', 'admin_url', 'admin/slide/edit_post', NULL, '提交编辑', 1, ''),
(60, 'Admin', 'admin_url', 'admin/slide/add', NULL, '添加幻灯片', 1, ''),
(61, 'Admin', 'admin_url', 'admin/slide/add_post', NULL, '提交添加', 1, ''),
(62, 'Admin', 'admin_url', 'admin/slidecat/index', NULL, '幻灯片分类', 1, ''),
(63, 'Admin', 'admin_url', 'admin/slidecat/delete', NULL, '删除分类', 1, ''),
(64, 'Admin', 'admin_url', 'admin/slidecat/edit', NULL, '编辑分类', 1, ''),
(65, 'Admin', 'admin_url', 'admin/slidecat/edit_post', NULL, '提交编辑', 1, ''),
(66, 'Admin', 'admin_url', 'admin/slidecat/add', NULL, '添加分类', 1, ''),
(67, 'Admin', 'admin_url', 'admin/slidecat/add_post', NULL, '提交添加', 1, ''),
(68, 'Admin', 'admin_url', 'admin/ad/index', NULL, '网站广告', 1, ''),
(69, 'Admin', 'admin_url', 'admin/ad/toggle', NULL, '广告显示切换', 1, ''),
(70, 'Admin', 'admin_url', 'admin/ad/delete', NULL, '删除广告', 1, ''),
(71, 'Admin', 'admin_url', 'admin/ad/edit', NULL, '编辑广告', 1, ''),
(72, 'Admin', 'admin_url', 'admin/ad/edit_post', NULL, '提交编辑', 1, ''),
(73, 'Admin', 'admin_url', 'admin/ad/add', NULL, '添加广告', 1, ''),
(74, 'Admin', 'admin_url', 'admin/ad/add_post', NULL, '提交添加', 1, ''),
(75, 'Admin', 'admin_url', 'admin/link/index', NULL, '友情链接', 1, ''),
(76, 'Admin', 'admin_url', 'admin/link/listorders', NULL, '友情链接排序', 1, ''),
(77, 'Admin', 'admin_url', 'admin/link/toggle', NULL, '友链显示切换', 1, ''),
(78, 'Admin', 'admin_url', 'admin/link/delete', NULL, '删除友情链接', 1, ''),
(79, 'Admin', 'admin_url', 'admin/link/edit', NULL, '编辑友情链接', 1, ''),
(80, 'Admin', 'admin_url', 'admin/link/edit_post', NULL, '提交编辑', 1, ''),
(81, 'Admin', 'admin_url', 'admin/link/add', NULL, '添加友情链接', 1, ''),
(82, 'Admin', 'admin_url', 'admin/link/add_post', NULL, '提交添加', 1, ''),
(83, 'Api', 'admin_url', 'api/oauthadmin/setting', NULL, '第三方登陆', 1, ''),
(84, 'Api', 'admin_url', 'api/oauthadmin/setting_post', NULL, '提交设置', 1, ''),
(85, 'Admin', 'admin_url', 'admin/menu/default', NULL, '菜单管理', 1, ''),
(86, 'Admin', 'admin_url', 'admin/navcat/default1', NULL, '前台菜单', 1, ''),
(87, 'Admin', 'admin_url', 'admin/nav/index', NULL, '菜单管理', 1, ''),
(88, 'Admin', 'admin_url', 'admin/nav/listorders', NULL, '前台导航排序', 1, ''),
(89, 'Admin', 'admin_url', 'admin/nav/delete', NULL, '删除菜单', 1, ''),
(90, 'Admin', 'admin_url', 'admin/nav/edit', NULL, '编辑菜单', 1, ''),
(91, 'Admin', 'admin_url', 'admin/nav/edit_post', NULL, '提交编辑', 1, ''),
(92, 'Admin', 'admin_url', 'admin/nav/add', NULL, '添加菜单', 1, ''),
(93, 'Admin', 'admin_url', 'admin/nav/add_post', NULL, '提交添加', 1, ''),
(94, 'Admin', 'admin_url', 'admin/navcat/index', NULL, '菜单分类', 1, ''),
(95, 'Admin', 'admin_url', 'admin/navcat/delete', NULL, '删除分类', 1, ''),
(96, 'Admin', 'admin_url', 'admin/navcat/edit', NULL, '编辑分类', 1, ''),
(97, 'Admin', 'admin_url', 'admin/navcat/edit_post', NULL, '提交编辑', 1, ''),
(98, 'Admin', 'admin_url', 'admin/navcat/add', NULL, '添加分类', 1, ''),
(99, 'Admin', 'admin_url', 'admin/navcat/add_post', NULL, '提交添加', 1, ''),
(100, 'Admin', 'admin_url', 'admin/menu/index', NULL, '后台菜单', 1, ''),
(101, 'Admin', 'admin_url', 'admin/menu/add', NULL, '添加菜单', 1, ''),
(102, 'Admin', 'admin_url', 'admin/menu/add_post', NULL, '提交添加', 1, ''),
(103, 'Admin', 'admin_url', 'admin/menu/listorders', NULL, '后台菜单排序', 1, ''),
(104, 'Admin', 'admin_url', 'admin/menu/export_menu', NULL, '菜单备份', 1, ''),
(105, 'Admin', 'admin_url', 'admin/menu/edit', NULL, '编辑菜单', 1, ''),
(106, 'Admin', 'admin_url', 'admin/menu/edit_post', NULL, '提交编辑', 1, ''),
(107, 'Admin', 'admin_url', 'admin/menu/delete', NULL, '删除菜单', 1, ''),
(108, 'Admin', 'admin_url', 'admin/menu/lists', NULL, '所有菜单', 1, ''),
(109, 'Admin', 'admin_url', 'admin/setting/default', NULL, '设置', 1, ''),
(110, 'Admin', 'admin_url', 'admin/setting/userdefault', NULL, '个人信息', 1, ''),
(111, 'Admin', 'admin_url', 'admin/user/userinfo', NULL, '修改信息', 1, ''),
(112, 'Admin', 'admin_url', 'admin/user/userinfo_post', NULL, '修改信息提交', 1, ''),
(113, 'Admin', 'admin_url', 'admin/setting/password', NULL, '修改密码', 1, ''),
(114, 'Admin', 'admin_url', 'admin/setting/password_post', NULL, '提交修改', 1, ''),
(115, 'Admin', 'admin_url', 'admin/setting/site', NULL, '网站信息', 1, ''),
(116, 'Admin', 'admin_url', 'admin/setting/site_post', NULL, '提交修改', 1, ''),
(117, 'Admin', 'admin_url', 'admin/route/index', NULL, '路由列表', 1, ''),
(118, 'Admin', 'admin_url', 'admin/route/add', NULL, '路由添加', 1, ''),
(119, 'Admin', 'admin_url', 'admin/route/add_post', NULL, '路由添加提交', 1, ''),
(120, 'Admin', 'admin_url', 'admin/route/edit', NULL, '路由编辑', 1, ''),
(121, 'Admin', 'admin_url', 'admin/route/edit_post', NULL, '路由编辑提交', 1, ''),
(122, 'Admin', 'admin_url', 'admin/route/delete', NULL, '路由删除', 1, ''),
(123, 'Admin', 'admin_url', 'admin/route/ban', NULL, '路由禁止', 1, ''),
(124, 'Admin', 'admin_url', 'admin/route/open', NULL, '路由启用', 1, ''),
(125, 'Admin', 'admin_url', 'admin/route/listorders', NULL, '路由排序', 1, ''),
(126, 'Admin', 'admin_url', 'admin/mailer/default', NULL, '邮箱配置', 1, ''),
(127, 'Admin', 'admin_url', 'admin/mailer/index', NULL, 'SMTP配置', 1, ''),
(128, 'Admin', 'admin_url', 'admin/mailer/index_post', NULL, '提交配置', 1, ''),
(129, 'Admin', 'admin_url', 'admin/mailer/active', NULL, '邮件模板', 1, ''),
(130, 'Admin', 'admin_url', 'admin/mailer/active_post', NULL, '提交模板', 1, ''),
(131, 'Admin', 'admin_url', 'admin/setting/clearcache', NULL, '清除缓存', 1, ''),
(132, 'User', 'admin_url', 'user/indexadmin/default', NULL, '用户管理', 1, ''),
(133, 'User', 'admin_url', 'user/indexadmin/default1', NULL, '用户组', 1, ''),
(134, 'User', 'admin_url', 'user/indexadmin/index', NULL, '本站用户', 1, ''),
(135, 'User', 'admin_url', 'user/indexadmin/ban', NULL, '拉黑会员', 1, ''),
(136, 'User', 'admin_url', 'user/indexadmin/cancelban', NULL, '启用会员', 1, ''),
(137, 'User', 'admin_url', 'user/oauthadmin/index', NULL, '第三方用户', 1, ''),
(138, 'User', 'admin_url', 'user/oauthadmin/delete', NULL, '第三方用户解绑', 1, ''),
(139, 'User', 'admin_url', 'user/indexadmin/default3', NULL, '管理组', 1, ''),
(140, 'Admin', 'admin_url', 'admin/rbac/index', NULL, '角色管理', 1, ''),
(141, 'Admin', 'admin_url', 'admin/rbac/member', NULL, '成员管理', 1, ''),
(142, 'Admin', 'admin_url', 'admin/rbac/authorize', NULL, '权限设置', 1, ''),
(143, 'Admin', 'admin_url', 'admin/rbac/authorize_post', NULL, '提交设置', 1, ''),
(144, 'Admin', 'admin_url', 'admin/rbac/roleedit', NULL, '编辑角色', 1, ''),
(145, 'Admin', 'admin_url', 'admin/rbac/roleedit_post', NULL, '提交编辑', 1, ''),
(146, 'Admin', 'admin_url', 'admin/rbac/roledelete', NULL, '删除角色', 1, ''),
(147, 'Admin', 'admin_url', 'admin/rbac/roleadd', NULL, '添加角色', 1, ''),
(148, 'Admin', 'admin_url', 'admin/rbac/roleadd_post', NULL, '提交添加', 1, ''),
(149, 'Admin', 'admin_url', 'admin/user/index', NULL, '管理员', 1, ''),
(150, 'Admin', 'admin_url', 'admin/user/delete', NULL, '删除管理员', 1, ''),
(151, 'Admin', 'admin_url', 'admin/user/edit', NULL, '管理员编辑', 1, ''),
(152, 'Admin', 'admin_url', 'admin/user/edit_post', NULL, '编辑提交', 1, ''),
(153, 'Admin', 'admin_url', 'admin/user/add', NULL, '管理员添加', 1, ''),
(154, 'Admin', 'admin_url', 'admin/user/add_post', NULL, '添加提交', 1, ''),
(155, 'Admin', 'admin_url', 'admin/plugin/update', NULL, '插件更新', 1, ''),
(156, 'Admin', 'admin_url', 'admin/storage/index', NULL, '文件存储', 1, ''),
(157, 'Admin', 'admin_url', 'admin/storage/setting_post', NULL, '文件存储设置提交', 1, ''),
(158, 'Admin', 'admin_url', 'admin/slide/ban', NULL, '禁用幻灯片', 1, ''),
(159, 'Admin', 'admin_url', 'admin/slide/cancelban', NULL, '启用幻灯片', 1, ''),
(160, 'Admin', 'admin_url', 'admin/user/ban', NULL, '禁用管理员', 1, ''),
(161, 'Admin', 'admin_url', 'admin/user/cancelban', NULL, '启用管理员', 1, '');
-- --------------------------------------------------------
--
-- 表的结构 `umr_comments`
--
DROP TABLE IF EXISTS `umr_comments`;
CREATE TABLE `umr_comments` (
`id` bigint(20) UNSIGNED NOT NULL,
`post_table` varchar(100) NOT NULL COMMENT '评论内容所在表,不带表前缀',
`post_id` char(36) 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未审核'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='评论表';
-- --------------------------------------------------------
--
-- 表的结构 `umr_common_action_log`
--
DROP TABLE IF EXISTS `umr_common_action_log`;
CREATE TABLE `umr_common_action_log` (
`id` int(11) NOT NULL,
`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'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='访问记录表';
-- --------------------------------------------------------
--
-- 替换视图以便查看 `umr_content`
-- (See below for the actual view)
--
DROP VIEW IF EXISTS `umr_content`;
CREATE TABLE `umr_content` (
`id` char(36)
,`post_author` bigint(20) unsigned
,`post_title` text
,`term_id` bigint(20)
,`post_status` tinyint(4)
,`post_date` datetime
,`post_modified` datetime
,`post_hits` int(11)
,`post_like` int(11)
,`table_name` varchar(15)
);
-- --------------------------------------------------------
--
-- 表的结构 `umr_content_award`
--
DROP TABLE IF EXISTS `umr_content_award`;
CREATE TABLE `umr_content_award` (
`id` char(36) NOT NULL COMMENT 'UUID',
`college` varchar(50) DEFAULT NULL COMMENT '学院名称',
`post_author` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '发表内容者id',
`title` varchar(255) NOT NULL COMMENT '获奖名称',
`grantee_list` varchar(255) NOT NULL COMMENT '获奖者列表',
`award_level` tinyint(1) UNSIGNED ZEROFILL NOT NULL COMMENT '获奖级别',
`grantor` varchar(255) NOT NULL COMMENT '颁发者',
`provement` text NOT NULL COMMENT '证明材料,对应原生CMF的文章内容',
`status` tinyint(2) DEFAULT '0' COMMENT '状态,1已审核,0未审核',
`comment_status` tinyint(2) DEFAULT '1' COMMENT '评论状态,1允许,0不允许',
`post_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '内容创建日期,永久不变,一般不显示给用户',
`post_modified` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '内容更新时间,可在前台修改,显示给用户',
`post_content_filtered` longtext,
`comment_count` bigint(20) DEFAULT '0',
`smeta` text COMMENT '扩展字段,保存相关扩展属性,如缩略图;格式为json',
`post_hits` int(11) DEFAULT '0' COMMENT '点击数,查看数',
`post_like` int(11) DEFAULT '0' COMMENT '赞数',
`istop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '置顶 1置顶; 0不置顶',
`recommended` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐 1推荐 0不推荐'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='获奖表';
-- --------------------------------------------------------
--
-- 表的结构 `umr_content_paper`
--
DROP TABLE IF EXISTS `umr_content_paper`;
CREATE TABLE `umr_content_paper` (
`id` char(36) NOT NULL COMMENT 'UUID',
`college` varchar(50) DEFAULT NULL COMMENT '学院名称',
`post_author` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '发表内容者id',
`title` text NOT NULL COMMENT '论文标题',
`press` varchar(255) NOT NULL COMMENT '论文出版社',
`publish_date` date NOT NULL COMMENT '论文出版日期',
`volume_info` varchar(255) NOT NULL COMMENT '卷号页码等信息',
`author_list` varchar(255) NOT NULL COMMENT '作者列表',
`contribute` tinyint(3) UNSIGNED NOT NULL COMMENT '本人贡献度,1-100',
`journal_class` tinyint(4) NOT NULL COMMENT '期刊级别(1-6类)',
`provement` text NOT NULL COMMENT '证明材料,对应原生CMF的文章内容',
`status` tinyint(2) DEFAULT '0' COMMENT '状态,1已审核,0未审核',
`comment_status` tinyint(2) DEFAULT '1' COMMENT '评论状态,1允许,0不允许',
`post_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '内容创建日期,永久不变,一般不显示给用户',
`post_modified` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '内容更新时间,可在前台修改,显示给用户',
`post_content_filtered` longtext,
`comment_count` bigint(20) DEFAULT '0',
`smeta` text COMMENT '扩展字段,保存相关扩展属性,如缩略图;格式为json',
`post_hits` int(11) DEFAULT '0' COMMENT '点击数,查看数',
`post_like` int(11) DEFAULT '0' COMMENT '赞数',
`istop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '置顶 1置顶; 0不置顶',
`recommended` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐 1推荐 0不推荐'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='论文表';
-- --------------------------------------------------------
--
-- 表的结构 `umr_content_patent`
--
DROP TABLE IF EXISTS `umr_content_patent`;
CREATE TABLE `umr_content_patent` (
`id` char(36) NOT NULL COMMENT 'UUID',
`college` varchar(50) DEFAULT NULL COMMENT '学院名称',
`post_author` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '发表内容者id',
`title` text NOT NULL COMMENT '专利名(标题)',
`type` tinyint(2) UNSIGNED NOT NULL COMMENT '专利类型',
`inventor` varchar(255) NOT NULL COMMENT '发明者',
`provement` text NOT NULL COMMENT '证明材料,对应原生CMF的文章内容',
`status` tinyint(2) DEFAULT '0' COMMENT '状态,1已审核,0未审核',
`comment_status` tinyint(2) DEFAULT '1' COMMENT '评论状态,1允许,0不允许',
`post_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '内容创建日期,永久不变,一般不显示给用户',
`post_modified` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '内容更新时间,可在前台修改,显示给用户',
`post_content_filtered` longtext,
`comment_count` bigint(20) DEFAULT '0',
`smeta` text COMMENT '扩展字段,保存相关扩展属性,如缩略图;格式为json',
`post_hits` int(11) DEFAULT '0' COMMENT '点击数,查看数',
`post_like` int(11) DEFAULT '0' COMMENT '赞数',
`istop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '置顶 1置顶; 0不置顶',
`recommended` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐 1推荐 0不推荐'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='专利表';
-- --------------------------------------------------------
--
-- 表的结构 `umr_content_project`
--
DROP TABLE IF EXISTS `umr_content_project`;
CREATE TABLE `umr_content_project` (
`id` char(36) NOT NULL COMMENT 'UUID',
`college` varchar(50) DEFAULT NULL COMMENT '学院名称',
`post_author` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '发表内容者id',
`title` text NOT NULL COMMENT '项目名(标题)',
`type` varchar(255) NOT NULL COMMENT '项目类型',
`project_level` tinyint(3) UNSIGNED NOT NULL COMMENT '项目级别(国省市校etc)',
`fund` int(10) UNSIGNED NOT NULL COMMENT '项目经费额度',
`provement` text NOT NULL COMMENT '证明材料,对应原生CMF的文章内容',
`status` tinyint(2) DEFAULT '0' COMMENT '状态,1已审核,0未审核',
`comment_status` tinyint(2) DEFAULT '1' COMMENT '评论状态,1允许,0不允许',
`post_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '内容创建日期,永久不变,一般不显示给用户',
`post_modified` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '内容更新时间,可在前台修改,显示给用户',
`post_content_filtered` longtext,
`comment_count` bigint(20) DEFAULT '0',
`smeta` text COMMENT '扩展字段,保存相关扩展属性,如缩略图;格式为json',
`post_hits` int(11) DEFAULT '0' COMMENT '点击数,查看数',
`post_like` int(11) DEFAULT '0' COMMENT '赞数',
`istop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '置顶 1置顶; 0不置顶',
`recommended` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐 1推荐 0不推荐'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='项目表';
-- --------------------------------------------------------
--
-- 表的结构 `umr_guestbook`
--
DROP TABLE IF EXISTS `umr_guestbook`;
CREATE TABLE `umr_guestbook` (
`id` int(11) NOT NULL,
`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:删除'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='留言表';
-- --------------------------------------------------------
--
-- 表的结构 `umr_like`
--
DROP TABLE IF EXISTS `umr_like`;
CREATE TABLE `umr_like` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`object_id` char(36) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `umr_links`
--
DROP TABLE IF EXISTS `umr_links`;
CREATE TABLE `umr_links` (
`link_id` bigint(20) UNSIGNED NOT NULL,
`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 '排序'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='友情链接表';
--
-- 插入之前先把表清空(truncate) `umr_links`
--
TRUNCATE TABLE `umr_links`;
--
-- 转存表中的数据 `umr_links`
--
INSERT INTO `umr_links` (`link_id`, `link_url`, `link_name`, `link_image`, `link_target`, `link_description`, `link_status`, `link_rating`, `link_rel`, `listorder`) VALUES
(1, 'http://www.thinkcmf.com', 'ThinkCMF', '', '_blank', '', 1, 0, '', 0);
-- --------------------------------------------------------
--
-- 表的结构 `umr_menu`
--
DROP TABLE IF EXISTS `umr_menu`;
CREATE TABLE `umr_menu` (
`id` smallint(6) UNSIGNED NOT NULL,
`parentid` smallint(6) UNSIGNED NOT NULL DEFAULT '0',
`app` char(20) NOT NULL COMMENT '应用名称app',
`model` char(20) NOT NULL COMMENT '控制器',
`action` char(20) NOT NULL COMMENT '操作名称',
`data` char(50) NOT NULL 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 COMMENT '备注',
`listorder` smallint(6) UNSIGNED NOT NULL DEFAULT '0' COMMENT '排序ID'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='后台菜单表';
--
-- 插入之前先把表清空(truncate) `umr_menu`
--
TRUNCATE TABLE `umr_menu`;
--
-- 转存表中的数据 `umr_menu`
--
INSERT INTO `umr_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES
(1, 0, 'Admin', 'Content', 'default', '', 0, 1, '内容管理', 'th', '', 30),
(2, 1, 'Api', 'Guestbookadmin', 'index', '', 1, 1, '所有留言', '', '', 0),
(3, 2, 'Api', 'Guestbookadmin', 'delete', '', 1, 0, '删除网站留言', '', '', 0),
(4, 1, 'Comment', 'Commentadmin', 'index', '', 1, 1, '评论管理', '', '', 0),
(5, 4, 'Comment', 'Commentadmin', 'delete', '', 1, 0, '删除评论', '', '', 0),
(6, 4, 'Comment', 'Commentadmin', 'check', '', 1, 0, '评论审核', '', '', 0),
(7, 1, 'Portal', 'AdminPost', 'index', '', 1, 1, '文章管理', '', '', 1),
(8, 7, 'Portal', 'AdminPost', 'listorders', '', 1, 0, '文章排序', '', '', 0),
(9, 7, 'Portal', 'AdminPost', 'top', '', 1, 0, '文章置顶', '', '', 0),
(10, 7, 'Portal', 'AdminPost', 'recommend', '', 1, 0, '文章推荐', '', '', 0),
(11, 7, 'Portal', 'AdminPost', 'move', '', 1, 0, '批量移动', '', '', 1000),
(12, 7, 'Portal', 'AdminPost', 'check', '', 1, 0, '文章审核', '', '', 1000),
(13, 7, 'Portal', 'AdminPost', 'delete', '', 1, 0, '删除文章', '', '', 1000),
(14, 7, 'Portal', 'AdminPost', 'edit', '', 1, 0, '编辑文章', '', '', 1000),
(15, 14, 'Portal', 'AdminPost', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(16, 7, 'Portal', 'AdminPost', 'add', '', 1, 0, '添加文章', '', '', 1000),
(17, 16, 'Portal', 'AdminPost', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(18, 1, 'Portal', 'AdminTerm', 'index', '', 0, 1, '分类管理', '', '', 2),
(19, 18, 'Portal', 'AdminTerm', 'listorders', '', 1, 0, '文章分类排序', '', '', 0),
(20, 18, 'Portal', 'AdminTerm', 'delete', '', 1, 0, '删除分类', '', '', 1000),
(21, 18, 'Portal', 'AdminTerm', 'edit', '', 1, 0, '编辑分类', '', '', 1000),
(22, 21, 'Portal', 'AdminTerm', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(23, 18, 'Portal', 'AdminTerm', 'add', '', 1, 0, '添加分类', '', '', 1000),
(24, 23, 'Portal', 'AdminTerm', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(25, 1, 'Portal', 'AdminPage', 'index', '', 1, 1, '页面管理', '', '', 3),
(26, 25, 'Portal', 'AdminPage', 'listorders', '', 1, 0, '页面排序', '', '', 0),
(27, 25, 'Portal', 'AdminPage', 'delete', '', 1, 0, '删除页面', '', '', 1000),
(28, 25, 'Portal', 'AdminPage', 'edit', '', 1, 0, '编辑页面', '', '', 1000),
(29, 28, 'Portal', 'AdminPage', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(30, 25, 'Portal', 'AdminPage', 'add', '', 1, 0, '添加页面', '', '', 1000),
(31, 30, 'Portal', 'AdminPage', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(32, 1, 'Admin', 'Recycle', 'default', '', 1, 1, '回收站', '', '', 4),
(33, 32, 'Portal', 'AdminPost', 'recyclebin', '', 1, 1, '文章回收', '', '', 0),
(34, 33, 'Portal', 'AdminPost', 'restore', '', 1, 0, '文章还原', '', '', 1000),
(35, 33, 'Portal', 'AdminPost', 'clean', '', 1, 0, '彻底删除', '', '', 1000),
(36, 32, 'Portal', 'AdminPage', 'recyclebin', '', 1, 1, '页面回收', '', '', 1),
(37, 36, 'Portal', 'AdminPage', 'clean', '', 1, 0, '彻底删除', '', '', 1000),
(38, 36, 'Portal', 'AdminPage', 'restore', '', 1, 0, '页面还原', '', '', 1000),
(39, 0, 'Admin', 'Extension', 'default', '', 0, 1, '扩展工具', 'cloud', '', 40),
(40, 39, 'Admin', 'Backup', 'default', '', 1, 1, '备份管理', '', '', 0),
(41, 40, 'Admin', 'Backup', 'restore', '', 1, 1, '数据还原', '', '', 0),
(42, 40, 'Admin', 'Backup', 'index', '', 1, 1, '数据备份', '', '', 0),
(43, 42, 'Admin', 'Backup', 'index_post', '', 1, 0, '提交数据备份', '', '', 0),
(44, 40, 'Admin', 'Backup', 'download', '', 1, 0, '下载备份', '', '', 1000),
(45, 40, 'Admin', 'Backup', 'del_backup', '', 1, 0, '删除备份', '', '', 1000),
(46, 40, 'Admin', 'Backup', 'import', '', 1, 0, '数据备份导入', '', '', 1000),
(47, 39, 'Admin', 'Plugin', 'index', '', 1, 1, '插件管理', '', '', 0),
(48, 47, 'Admin', 'Plugin', 'toggle', '', 1, 0, '插件启用切换', '', '', 0),
(49, 47, 'Admin', 'Plugin', 'setting', '', 1, 0, '插件设置', '', '', 0),
(50, 49, 'Admin', 'Plugin', 'setting_post', '', 1, 0, '插件设置提交', '', '', 0),
(51, 47, 'Admin', 'Plugin', 'install', '', 1, 0, '插件安装', '', '', 0),
(52, 47, 'Admin', 'Plugin', 'uninstall', '', 1, 0, '插件卸载', '', '', 0),
(53, 39, 'Admin', 'Slide', 'default', '', 1, 1, '幻灯片', '', '', 1),
(54, 53, 'Admin', 'Slide', 'index', '', 1, 1, '幻灯片管理', '', '', 0),
(55, 54, 'Admin', 'Slide', 'listorders', '', 1, 0, '幻灯片排序', '', '', 0),
(56, 54, 'Admin', 'Slide', 'toggle', '', 1, 0, '幻灯片显示切换', '', '', 0),
(57, 54, 'Admin', 'Slide', 'delete', '', 1, 0, '删除幻灯片', '', '', 1000),
(58, 54, 'Admin', 'Slide', 'edit', '', 1, 0, '编辑幻灯片', '', '', 1000),
(59, 58, 'Admin', 'Slide', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(60, 54, 'Admin', 'Slide', 'add', '', 1, 0, '添加幻灯片', '', '', 1000),
(61, 60, 'Admin', 'Slide', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(62, 53, 'Admin', 'Slidecat', 'index', '', 1, 1, '幻灯片分类', '', '', 0),
(63, 62, 'Admin', 'Slidecat', 'delete', '', 1, 0, '删除分类', '', '', 1000),
(64, 62, 'Admin', 'Slidecat', 'edit', '', 1, 0, '编辑分类', '', '', 1000),
(65, 64, 'Admin', 'Slidecat', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(66, 62, 'Admin', 'Slidecat', 'add', '', 1, 0, '添加分类', '', '', 1000),
(67, 66, 'Admin', 'Slidecat', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(68, 39, 'Admin', 'Ad', 'index', '', 1, 1, '网站广告', '', '', 2),
(69, 68, 'Admin', 'Ad', 'toggle', '', 1, 0, '广告显示切换', '', '', 0),
(70, 68, 'Admin', 'Ad', 'delete', '', 1, 0, '删除广告', '', '', 1000),
(71, 68, 'Admin', 'Ad', 'edit', '', 1, 0, '编辑广告', '', '', 1000),
(72, 71, 'Admin', 'Ad', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(73, 68, 'Admin', 'Ad', 'add', '', 1, 0, '添加广告', '', '', 1000),
(74, 73, 'Admin', 'Ad', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(75, 39, 'Admin', 'Link', 'index', '', 0, 1, '友情链接', '', '', 3),
(76, 75, 'Admin', 'Link', 'listorders', '', 1, 0, '友情链接排序', '', '', 0),
(77, 75, 'Admin', 'Link', 'toggle', '', 1, 0, '友链显示切换', '', '', 0),
(78, 75, 'Admin', 'Link', 'delete', '', 1, 0, '删除友情链接', '', '', 1000),
(79, 75, 'Admin', 'Link', 'edit', '', 1, 0, '编辑友情链接', '', '', 1000),
(80, 79, 'Admin', 'Link', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(81, 75, 'Admin', 'Link', 'add', '', 1, 0, '添加友情链接', '', '', 1000),
(82, 81, 'Admin', 'Link', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(83, 39, 'Api', 'Oauthadmin', 'setting', '', 1, 1, '第三方登陆', 'leaf', '', 4),
(84, 83, 'Api', 'Oauthadmin', 'setting_post', '', 1, 0, '提交设置', '', '', 0),
(85, 0, 'Admin', 'Menu', 'default', '', 1, 1, '菜单管理', 'list', '', 20),
(86, 85, 'Admin', 'Navcat', 'default1', '', 1, 1, '前台菜单', '', '', 0),
(87, 86, 'Admin', 'Nav', 'index', '', 1, 1, '菜单管理', '', '', 0),
(88, 87, 'Admin', 'Nav', 'listorders', '', 1, 0, '前台导航排序', '', '', 0),
(89, 87, 'Admin', 'Nav', 'delete', '', 1, 0, '删除菜单', '', '', 1000),
(90, 87, 'Admin', 'Nav', 'edit', '', 1, 0, '编辑菜单', '', '', 1000),
(91, 90, 'Admin', 'Nav', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(92, 87, 'Admin', 'Nav', 'add', '', 1, 0, '添加菜单', '', '', 1000),
(93, 92, 'Admin', 'Nav', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(94, 86, 'Admin', 'Navcat', 'index', '', 1, 1, '菜单分类', '', '', 0),
(95, 94, 'Admin', 'Navcat', 'delete', '', 1, 0, '删除分类', '', '', 1000),
(96, 94, 'Admin', 'Navcat', 'edit', '', 1, 0, '编辑分类', '', '', 1000),
(97, 96, 'Admin', 'Navcat', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(98, 94, 'Admin', 'Navcat', 'add', '', 1, 0, '添加分类', '', '', 1000),
(99, 98, 'Admin', 'Navcat', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(100, 85, 'Admin', 'Menu', 'index', '', 1, 1, '后台菜单', '', '', 0),
(101, 100, 'Admin', 'Menu', 'add', '', 1, 0, '添加菜单', '', '', 0),
(102, 101, 'Admin', 'Menu', 'add_post', '', 1, 0, '提交添加', '', '', 0),
(103, 100, 'Admin', 'Menu', 'listorders', '', 1, 0, '后台菜单排序', '', '', 0),
(104, 100, 'Admin', 'Menu', 'export_menu', '', 1, 0, '菜单备份', '', '', 1000),
(105, 100, 'Admin', 'Menu', 'edit', '', 1, 0, '编辑菜单', '', '', 1000),
(106, 105, 'Admin', 'Menu', 'edit_post', '', 1, 0, '提交编辑', '', '', 0),
(107, 100, 'Admin', 'Menu', 'delete', '', 1, 0, '删除菜单', '', '', 1000),
(108, 100, 'Admin', 'Menu', 'lists', '', 1, 0, '所有菜单', '', '', 1000),
(109, 0, 'Admin', 'Setting', 'default', '', 0, 1, '设置', 'cogs', '', 0),
(110, 109, 'Admin', 'Setting', 'userdefault', '', 0, 1, '个人信息', '', '', 0),
(111, 110, 'Admin', 'User', 'userinfo', '', 1, 1, '修改信息', '', '', 0),
(112, 111, 'Admin', 'User', 'userinfo_post', '', 1, 0, '修改信息提交', '', '', 0),
(113, 110, 'Admin', 'Setting', 'password', '', 1, 1, '修改密码', '', '', 0),
(114, 113, 'Admin', 'Setting', 'password_post', '', 1, 0, '提交修改', '', '', 0),
(115, 109, 'Admin', 'Setting', 'site', '', 1, 1, '网站信息', '', '', 0),
(116, 115, 'Admin', 'Setting', 'site_post', '', 1, 0, '提交修改', '', '', 0),
(117, 115, 'Admin', 'Route', 'index', '', 1, 0, '路由列表', '', '', 0),
(118, 115, 'Admin', 'Route', 'add', '', 1, 0, '路由添加', '', '', 0),
(119, 118, 'Admin', 'Route', 'add_post', '', 1, 0, '路由添加提交', '', '', 0),
(120, 115, 'Admin', 'Route', 'edit', '', 1, 0, '路由编辑', '', '', 0),
(121, 120, 'Admin', 'Route', 'edit_post', '', 1, 0, '路由编辑提交', '', '', 0),
(122, 115, 'Admin', 'Route', 'delete', '', 1, 0, '路由删除', '', '', 0),
(123, 115, 'Admin', 'Route', 'ban', '', 1, 0, '路由禁止', '', '', 0),
(124, 115, 'Admin', 'Route', 'open', '', 1, 0, '路由启用', '', '', 0),
(125, 115, 'Admin', 'Route', 'listorders', '', 1, 0, '路由排序', '', '', 0),
(126, 109, 'Admin', 'Mailer', 'default', '', 1, 1, '邮箱配置', '', '', 0),
(127, 126, 'Admin', 'Mailer', 'index', '', 1, 1, 'SMTP配置', '', '', 0),
(128, 127, 'Admin', 'Mailer', 'index_post', '', 1, 0, '提交配置', '', '', 0),
(129, 126, 'Admin', 'Mailer', 'active', '', 1, 1, '邮件模板', '', '', 0),
(130, 129, 'Admin', 'Mailer', 'active_post', '', 1, 0, '提交模板', '', '', 0),
(131, 109, 'Admin', 'Setting', 'clearcache', '', 1, 1, '清除缓存', '', '', 1),
(132, 0, 'User', 'Indexadmin', 'default', '', 1, 1, '用户管理', 'group', '', 10),
(133, 132, 'User', 'Indexadmin', 'default1', '', 1, 1, '用户组', '', '', 0),
(134, 133, 'User', 'Indexadmin', 'index', '', 1, 1, '本站用户', 'leaf', '', 0),
(135, 134, 'User', 'Indexadmin', 'ban', '', 1, 0, '拉黑会员', '', '', 0),
(136, 134, 'User', 'Indexadmin', 'cancelban', '', 1, 0, '启用会员', '', '', 0),
(137, 133, 'User', 'Oauthadmin', 'index', '', 1, 1, '第三方用户', 'leaf', '', 0),
(138, 137, 'User', 'Oauthadmin', 'delete', '', 1, 0, '第三方用户解绑', '', '', 0),
(139, 132, 'User', 'Indexadmin', 'default3', '', 1, 1, '管理组', '', '', 0),
(140, 139, 'Admin', 'Rbac', 'index', '', 1, 1, '角色管理', '', '', 0),
(141, 140, 'Admin', 'Rbac', 'member', '', 1, 0, '成员管理', '', '', 1000),
(142, 140, 'Admin', 'Rbac', 'authorize', '', 1, 0, '权限设置', '', '', 1000),
(143, 142, 'Admin', 'Rbac', 'authorize_post', '', 1, 0, '提交设置', '', '', 0),
(144, 140, 'Admin', 'Rbac', 'roleedit', '', 1, 0, '编辑角色', '', '', 1000),
(145, 144, 'Admin', 'Rbac', 'roleedit_post', '', 1, 0, '提交编辑', '', '', 0),
(146, 140, 'Admin', 'Rbac', 'roledelete', '', 1, 1, '删除角色', '', '', 1000),
(147, 140, 'Admin', 'Rbac', 'roleadd', '', 1, 1, '添加角色', '', '', 1000),
(148, 147, 'Admin', 'Rbac', 'roleadd_post', '', 1, 0, '提交添加', '', '', 0),
(149, 139, 'Admin', 'User', 'index', '', 1, 1, '管理员', '', '', 0),
(150, 149, 'Admin', 'User', 'delete', '', 1, 0, '删除管理员', '', '', 1000),
(151, 149, 'Admin', 'User', 'edit', '', 1, 0, '管理员编辑', '', '', 1000),
(152, 151, 'Admin', 'User', 'edit_post', '', 1, 0, '编辑提交', '', '', 0),
(153, 149, 'Admin', 'User', 'add', '', 1, 0, '管理员添加', '', '', 1000),
(154, 153, 'Admin', 'User', 'add_post', '', 1, 0, '添加提交', '', '', 0),
(155, 47, 'Admin', 'Plugin', 'update', '', 1, 0, '插件更新', '', '', 0),
(156, 39, 'Admin', 'Storage', 'index', '', 1, 1, '文件存储', '', '', 0),
(157, 156, 'Admin', 'Storage', 'setting_post', '', 1, 0, '文件存储设置提交', '', '', 0),
(158, 54, 'Admin', 'Slide', 'ban', '', 1, 0, '禁用幻灯片', '', '', 0),
(159, 54, 'Admin', 'Slide', 'cancelban', '', 1, 0, '启用幻灯片', '', '', 0),
(160, 149, 'Admin', 'User', 'ban', '', 1, 0, '禁用管理员', '', '', 0),
(161, 149, 'Admin', 'User', 'cancelban', '', 1, 0, '启用管理员', '', '', 0);
-- --------------------------------------------------------
--
-- 表的结构 `umr_nav`
--
DROP TABLE IF EXISTS `umr_nav`;
CREATE TABLE `umr_nav` (
`id` int(11) NOT NULL,
`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 '层级关系'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='前台导航表';
--
-- 插入之前先把表清空(truncate) `umr_nav`
--
TRUNCATE TABLE `umr_nav`;
--
-- 转存表中的数据 `umr_nav`
--
INSERT INTO `umr_nav` (`id`, `cid`, `parentid`, `label`, `target`, `href`, `icon`, `status`, `listorder`, `path`) VALUES
(1, 1, 0, '首页', '', 'home', '', 1, 0, '0-1'),
(2, 1, 0, '内容列表', '', 'a:2:{s:6:"action";s:24:"Portal/List/list_content";s:5:"param";a:0:{}}', '', 1, 0, '0-2'),
(3, 1, 0, '瀑布流', '', 'a:2:{s:6:"action";s:17:"Portal/List/index";s:5:"param";a:1:{s:2:"id";s:1:"3";}}', '', 1, 0, '0-3');
-- --------------------------------------------------------
--
-- 表的结构 `umr_nav_cat`
--
DROP TABLE IF EXISTS `umr_nav_cat`;
CREATE TABLE `umr_nav_cat` (
`navcid` int(11) NOT NULL,
`name` varchar(255) NOT NULL COMMENT '导航分类名',
`active` int(1) NOT NULL DEFAULT '1' COMMENT '是否为主菜单,1是,0不是',
`remark` text COMMENT '备注'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='前台导航分类表';
--
-- 插入之前先把表清空(truncate) `umr_nav_cat`
--
TRUNCATE TABLE `umr_nav_cat`;
--
-- 转存表中的数据 `umr_nav_cat`
--
INSERT INTO `umr_nav_cat` (`navcid`, `name`, `active`, `remark`) VALUES
(1, '主导航', 1, '主导航');
-- --------------------------------------------------------
--
-- 表的结构 `umr_oauth_user`
--
DROP TABLE IF EXISTS `umr_oauth_user`;
CREATE TABLE `umr_oauth_user` (
`id` int(20) NOT NULL,
`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'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='第三方用户表';
--
-- 插入之前先把表清空(truncate) `umr_oauth_user`
--
TRUNCATE TABLE `umr_oauth_user`;
-- --------------------------------------------------------
--
-- 表的结构 `umr_options`
--
DROP TABLE IF EXISTS `umr_options`;
CREATE TABLE `umr_options` (
`option_id` bigint(20) UNSIGNED NOT NULL,
`option_name` varchar(64) NOT NULL COMMENT '配置名',
`option_value` longtext NOT NULL COMMENT '配置值',
`autoload` int(2) NOT NULL DEFAULT '1' COMMENT '是否自动加载'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='全站配置表';
--
-- 插入之前先把表清空(truncate) `umr_options`
--
TRUNCATE TABLE `umr_options`;
--
-- 转存表中的数据 `umr_options`
--
INSERT INTO `umr_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES
(1, 'member_email_active', '{"title":"ThinkCMF\\u90ae\\u4ef6\\u6fc0\\u6d3b\\u901a\\u77e5.","template":"<p>\\u672c\\u90ae\\u4ef6\\u6765\\u81ea<a href=\\"http:\\/\\/www.thinkcmf.com\\">ThinkCMF<\\/a><br\\/><br\\/> <strong>---------------<\\/strong><br\\/> <strong>\\u5e10\\u53f7\\u6fc0\\u6d3b\\u8bf4\\u660e<\\/strong><br\\/> <strong>---------------<\\/strong><br\\/><br\\/> \\u5c0a\\u656c\\u7684<span style=\\"FONT-SIZE: 16px; FONT-FAMILY: Arial; COLOR: rgb(51,51,51); LINE-HEIGHT: 18px; BACKGROUND-COLOR: rgb(255,255,255)\\">#username#\\uff0c\\u60a8\\u597d\\u3002<\\/span>\\u5982\\u679c\\u60a8\\u662fThinkCMF\\u7684\\u65b0\\u7528\\u6237\\uff0c\\u6216\\u5728\\u4fee\\u6539\\u60a8\\u7684\\u6ce8\\u518cEmail\\u65f6\\u4f7f\\u7528\\u4e86\\u672c\\u5730\\u5740\\uff0c\\u6211\\u4eec\\u9700\\u8981\\u5bf9\\u60a8\\u7684\\u5730\\u5740\\u6709\\u6548\\u6027\\u8fdb\\u884c\\u9a8c\\u8bc1\\u4ee5\\u907f\\u514d\\u5783\\u573e\\u90ae\\u4ef6\\u6216\\u5730\\u5740\\u88ab\\u6ee5\\u7528\\u3002<br\\/> \\u60a8\\u53ea\\u9700\\u70b9\\u51fb\\u4e0b\\u9762\\u7684\\u94fe\\u63a5\\u5373\\u53ef\\u6fc0\\u6d3b\\u60a8\\u7684\\u5e10\\u53f7\\uff1a<br\\/> <a title=\\"\\" href=\\"http:\\/\\/#link#\\" target=\\"_self\\">http:\\/\\/#link#<\\/a><br\\/> (\\u5982\\u679c\\u4e0a\\u9762\\u4e0d\\u662f\\u94fe\\u63a5\\u5f62\\u5f0f\\uff0c\\u8bf7\\u5c06\\u8be5\\u5730\\u5740\\u624b\\u5de5\\u7c98\\u8d34\\u5230\\u6d4f\\u89c8\\u5668\\u5730\\u5740\\u680f\\u518d\\u8bbf\\u95ee)<br\\/> \\u611f\\u8c22\\u60a8\\u7684\\u8bbf\\u95ee\\uff0c\\u795d\\u60a8\\u4f7f\\u7528\\u6109\\u5feb\\uff01<br\\/><br\\/> \\u6b64\\u81f4<br\\/> ThinkCMF \\u7ba1\\u7406\\u56e2\\u961f.<\\/p>"}', 1),
(2, 'site_options', '{"site_name":"\\u9ad8\\u6821\\u79d1\\u7814\\u7ba1\\u7406\\u7cfb\\u7edf","site_host":"http:\\/\\/localhost\\/","site_admin_url_password":"","site_tpl":"simplebootx","site_adminstyle":"flat","site_icp":"","site_admin_email":"[email protected]","site_tongji":"","site_copyright":"","site_seo_title":"\\u9ad8\\u6821\\u79d1\\u7814\\u7ba1\\u7406\\u7cfb\\u7edf","site_seo_keywords":"ThinkCMF,php,\\u5185\\u5bb9\\u7ba1\\u7406\\u6846\\u67b6,cmf,cms,\\u7b80\\u7ea6\\u98ce, simplewind,framework","site_seo_description":"ThinkCMF\\u662f\\u7b80\\u7ea6\\u98ce\\u7f51\\u7edc\\u79d1\\u6280\\u53d1\\u5e03\\u7684\\u4e00\\u6b3e\\u7528\\u4e8e\\u5feb\\u901f\\u5f00\\u53d1\\u7684\\u5185\\u5bb9\\u7ba1\\u7406\\u6846\\u67b6","urlmode":"1","html_suffix":"","comment_time_interval":15}', 1),
(3, 'cmf_settings', '{"banned_usernames":""}', 1);
-- --------------------------------------------------------
--
-- 表的结构 `umr_plugins`
--
DROP TABLE IF EXISTS `umr_plugins`;
CREATE TABLE `umr_plugins` (
`id` int(11) UNSIGNED NOT NULL 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 '排序'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='插件表';
--
-- 插入之前先把表清空(truncate) `umr_plugins`
--
TRUNCATE TABLE `umr_plugins`;
--
-- 转存表中的数据 `umr_plugins`
--
INSERT INTO `umr_plugins` (`id`, `name`, `title`, `description`, `type`, `status`, `config`, `hooks`, `has_admin`, `author`, `version`, `createtime`, `listorder`) VALUES
(1, 'Demo', '插件演示', '插件演示', 0, 0, '{"text":"hello,ThinkCMF!","password":"","select":"1","checkbox":1,"radio":"1","textarea":"\\u8fd9\\u91cc\\u662f\\u4f60\\u8981\\u586b\\u5199\\u7684\\u5185\\u5bb9"}', 'footer', 1, 'ThinkCMF', '1.0', 0, 0),
(2, 'Comment', '系统评论插件', '系统评论插件', 0, 1, 'null', 'comment', 0, 'ThinkCMF', '1.0', 0, 0);
-- --------------------------------------------------------
--
-- 表的结构 `umr_posts`
--
DROP TABLE IF EXISTS `umr_posts`;
CREATE TABLE `umr_posts` (
`id` bigint(20) UNSIGNED NOT NULL,
`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未审核',
`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 NULL,
`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不推荐'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Portal文章表';
-- --------------------------------------------------------
--
-- 表的结构 `umr_role`
--
DROP TABLE IF EXISTS `umr_role`;
CREATE TABLE `umr_role` (
`id` int(11) UNSIGNED NOT NULL,
`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 '排序字段'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='角色表';
--
-- 插入之前先把表清空(truncate) `umr_role`
--
TRUNCATE TABLE `umr_role`;
--
-- 转存表中的数据 `umr_role`
--
INSERT INTO `umr_role` (`id`, `name`, `pid`, `status`, `remark`, `create_time`, `update_time`, `listorder`) VALUES
(1, '超级管理员', 0, 1, '拥有网站最高管理员权限!', 1329633709, 1329633709, 0),
(2, '院管', NULL, 1, '', 1457178104, 0, 0);
-- --------------------------------------------------------
--
-- 表的结构 `umr_role_user`
--
DROP TABLE IF EXISTS `umr_role_user`;
CREATE TABLE `umr_role_user` (
`role_id` int(11) UNSIGNED DEFAULT '0' COMMENT '角色 id',
`user_id` int(11) DEFAULT '0' COMMENT '用户id'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户角色对应表';
--
-- 插入之前先把表清空(truncate) `umr_role_user`
--
TRUNCATE TABLE `umr_role_user`;
-- --------------------------------------------------------
--
-- 表的结构 `umr_route`
--
DROP TABLE IF EXISTS `umr_route`;
CREATE TABLE `umr_route` (
`id` int(11) NOT NULL 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:不启用'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='url路由表';
--
-- 插入之前先把表清空(truncate) `umr_route`
--
TRUNCATE TABLE `umr_route`;
-- --------------------------------------------------------
--
-- 表的结构 `umr_slide`
--
DROP TABLE IF EXISTS `umr_slide`;
CREATE TABLE `umr_slide` (
`slide_id` bigint(20) UNSIGNED NOT NULL,
`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 '排序'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='幻灯片表';
--
-- 插入之前先把表清空(truncate) `umr_slide`
--
TRUNCATE TABLE `umr_slide`;
-- --------------------------------------------------------
--
-- 表的结构 `umr_slide_cat`
--
DROP TABLE IF EXISTS `umr_slide_cat`;
CREATE TABLE `umr_slide_cat` (
`cid` int(11) NOT NULL,
`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不显示'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='幻灯片分类表';