-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_center.sql
1808 lines (1714 loc) · 154 KB
/
user_center.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
/*
Navicat Premium Data Transfer
Source Server : 本机mysql
Source Server Type : MySQL
Source Server Version : 50742
Source Host : localhost:3306
Source Schema : user_center
Target Server Type : MySQL
Target Server Version : 50742
File Encoding : 65001
Date: 15/03/2024 18:11:27
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for gen_table
-- ----------------------------
DROP TABLE IF EXISTS `gen_table`;
CREATE TABLE `gen_table` (
`table_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
`table_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表名称',
`table_comment` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表描述',
`sub_table_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联子表的表名',
`sub_table_fk_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '子表关联的外键名',
`class_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '实体类名称',
`tpl_category` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'crud' COMMENT '使用的模板(crud单表操作 tree树表操作)',
`package_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成包路径',
`module_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成模块名',
`business_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成业务名',
`function_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成功能名',
`function_author` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成功能作者',
`gen_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '生成代码方式(0zip压缩包 1自定义路径)',
`gen_path` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '/' COMMENT '生成路径(不填默认项目路径)',
`options` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其它生成选项',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`table_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '代码生成业务表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for gen_table_column
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_column`;
CREATE TABLE `gen_table_column` (
`column_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
`table_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '归属表编号',
`column_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列名称',
`column_comment` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列描述',
`column_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列类型',
`java_type` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'JAVA类型',
`java_field` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'JAVA字段名',
`is_pk` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否主键(1是)',
`is_increment` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否自增(1是)',
`is_required` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否必填(1是)',
`is_insert` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否为插入字段(1是)',
`is_edit` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否编辑字段(1是)',
`is_list` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否列表字段(1是)',
`is_query` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否查询字段(1是)',
`query_type` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'EQ' COMMENT '查询方式(等于、不等于、大于、小于、范围)',
`html_type` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)',
`dict_type` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`column_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '代码生成业务表字段' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_blob_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_blob_triggers`;
CREATE TABLE `qrtz_blob_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`BLOB_DATA` blob NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
INDEX `SCHED_NAME`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_calendars
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_calendars`;
CREATE TABLE `qrtz_calendars` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`CALENDAR_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`CALENDAR` blob NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_cron_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_cron_triggers`;
CREATE TABLE `qrtz_cron_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`CRON_EXPRESSION` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TIME_ZONE_ID` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_fired_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_fired_triggers`;
CREATE TABLE `qrtz_fired_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`ENTRY_ID` varchar(95) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`INSTANCE_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`FIRED_TIME` bigint(13) NOT NULL,
`SCHED_TIME` bigint(13) NOT NULL,
`PRIORITY` int(11) NOT NULL,
`STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`JOB_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`) USING BTREE,
INDEX `IDX_QRTZ_FT_TRIG_INST_NAME`(`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE,
INDEX `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY`(`SCHED_NAME`, `INSTANCE_NAME`, `REQUESTS_RECOVERY`) USING BTREE,
INDEX `IDX_QRTZ_FT_J_G`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_FT_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_FT_T_G`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_FT_TG`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_job_details
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_job_details`;
CREATE TABLE `qrtz_job_details` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`JOB_CLASS_NAME` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`IS_DURABLE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`IS_UPDATE_DATA` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_DATA` blob NULL,
PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_J_REQ_RECOVERY`(`SCHED_NAME`, `REQUESTS_RECOVERY`) USING BTREE,
INDEX `IDX_QRTZ_J_GRP`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_locks
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_locks`;
CREATE TABLE `qrtz_locks` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`LOCK_NAME` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_locks
-- ----------------------------
INSERT INTO `qrtz_locks` VALUES ('MetanetClusteredScheduler', 'STATE_ACCESS');
INSERT INTO `qrtz_locks` VALUES ('MetanetClusteredScheduler', 'TRIGGER_ACCESS');
-- ----------------------------
-- Table structure for qrtz_paused_trigger_grps
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
CREATE TABLE `qrtz_paused_trigger_grps` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_scheduler_state
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_scheduler_state`;
CREATE TABLE `qrtz_scheduler_state` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`INSTANCE_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`LAST_CHECKIN_TIME` bigint(13) NOT NULL,
`CHECKIN_INTERVAL` bigint(13) NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_scheduler_state
-- ----------------------------
INSERT INTO `qrtz_scheduler_state` VALUES ('MetanetClusteredScheduler', 'LAPTOP-S47RJNDF1710381781815', 1710389204397, 7500);
INSERT INTO `qrtz_scheduler_state` VALUES ('MetanetClusteredScheduler', 'LAPTOP-S47RJNDF1710381819438', 1710389205514, 7500);
-- ----------------------------
-- Table structure for qrtz_simple_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simple_triggers`;
CREATE TABLE `qrtz_simple_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`REPEAT_COUNT` bigint(7) NOT NULL,
`REPEAT_INTERVAL` bigint(12) NOT NULL,
`TIMES_TRIGGERED` bigint(10) NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_simprop_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
CREATE TABLE `qrtz_simprop_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`STR_PROP_1` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`STR_PROP_2` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`STR_PROP_3` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`INT_PROP_1` int(11) NULL DEFAULT NULL,
`INT_PROP_2` int(11) NULL DEFAULT NULL,
`LONG_PROP_1` bigint(20) NULL DEFAULT NULL,
`LONG_PROP_2` bigint(20) NULL DEFAULT NULL,
`DEC_PROP_1` decimal(13, 4) NULL DEFAULT NULL,
`DEC_PROP_2` decimal(13, 4) NULL DEFAULT NULL,
`BOOL_PROP_1` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`BOOL_PROP_2` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_triggers`;
CREATE TABLE `qrtz_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_GROUP` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`NEXT_FIRE_TIME` bigint(13) NULL DEFAULT NULL,
`PREV_FIRE_TIME` bigint(13) NULL DEFAULT NULL,
`PRIORITY` int(11) NULL DEFAULT NULL,
`TRIGGER_STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_TYPE` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`START_TIME` bigint(13) NOT NULL,
`END_TIME` bigint(13) NULL DEFAULT NULL,
`CALENDAR_NAME` varchar(190) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`MISFIRE_INSTR` smallint(2) NULL DEFAULT NULL,
`JOB_DATA` blob NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_T_J`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_T_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_T_C`(`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE,
INDEX `IDX_QRTZ_T_G`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_T_STATE`(`SCHED_NAME`, `TRIGGER_STATE`) USING BTREE,
INDEX `IDX_QRTZ_T_N_STATE`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
INDEX `IDX_QRTZ_T_N_G_STATE`(`SCHED_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
INDEX `IDX_QRTZ_T_NEXT_FIRE_TIME`(`SCHED_NAME`, `NEXT_FIRE_TIME`) USING BTREE,
INDEX `IDX_QRTZ_T_NFT_ST`(`SCHED_NAME`, `TRIGGER_STATE`, `NEXT_FIRE_TIME`) USING BTREE,
INDEX `IDX_QRTZ_T_NFT_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`) USING BTREE,
INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_STATE`) USING BTREE,
INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `qrtz_job_details` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_acls
-- ----------------------------
DROP TABLE IF EXISTS `uc_acls`;
CREATE TABLE `uc_acls` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`role_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '角色ID',
`resource_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '资源ID',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '访问控制列表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_acls
-- ----------------------------
INSERT INTO `uc_acls` VALUES ('224', '4', '1', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('225', '4', '2', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('226', '4', '9', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('227', '4', '3', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('228', '4', '13', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('229', '4', '4', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('230', '4', '17', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('231', '4', '5', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('232', '4', '21', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('233', '4', '6', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('234', '4', '7', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('235', '4', '31', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('236', '4', '8', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('237', '4', '25', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('238', '4', '26', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('239', '4', '27', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('240', '4', '28', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('241', '4', '29', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('242', '4', '30', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('243', '4', '35', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('388', '2', '1', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('389', '2', '2', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('390', '2', '9', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('391', '2', '3', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('392', '2', '13', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('393', '2', '17', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('394', '2', '5', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('395', '2', '21', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('396', '2', '7', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('397', '2', '31', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('398', '2', '8', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('399', '2', '6', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('400', '2', '35', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('401', '2', '28', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('402', '2', '29', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('403', '2', '30', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('404', '3', '1', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('405', '3', '2', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('406', '3', '9', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('407', '3', '3', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('408', '3', '13', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('409', '3', '8', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('410', '3', '6', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('411', '3', '28', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('412', '3', '29', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('413', '3', '30', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('431', '8', '1', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('432', '8', '2', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('433', '8', '9', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('434', '8', '3', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('435', '8', '13', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('436', '8', '4', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('437', '8', '17', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('438', '8', '5', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('439', '8', '21', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('440', '8', '7', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('441', '8', '31', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('442', '8', '8', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('443', '8', '6', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_acls` VALUES ('444', '8', '35', NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
-- ----------------------------
-- Table structure for uc_apps
-- ----------------------------
DROP TABLE IF EXISTS `uc_apps`;
CREATE TABLE `uc_apps` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '应用id',
`channel_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '渠道id',
`app_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '应用名称',
`package_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '包名',
`auth_type` enum('MAC','SN','MACSN') CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT 'MACSN' COMMENT '认证方式',
`app_type` enum('0','1') CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '0' COMMENT '应用类型-0 APP,1 固件',
`instruction` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '应用说明',
`enable_sn` bit(1) NOT NULL DEFAULT b'1' COMMENT '启动激活码激活',
`app_key` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`app_secret` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '应用' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_appstore
-- ----------------------------
DROP TABLE IF EXISTS `uc_appstore`;
CREATE TABLE `uc_appstore` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '应用商店id',
`channel_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '渠道id',
`app_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '应用名称',
`package_name` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '包名',
`call_class` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '调用类名',
`file_size` decimal(19, 2) NOT NULL DEFAULT 0.00 COMMENT '文件大小(b)字节',
`version_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '版本名',
`version_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '版本号',
`url` varchar(1000) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '文件地址',
`md5` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5值',
`icon` varchar(1000) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '图标',
`instruction` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '应用说明',
`app_scope` enum('0','1') CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '应用范围-0所有/1指定',
`download_number` int(11) NULL DEFAULT NULL COMMENT '下载次数',
`phase_tag` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '阶段标签(0幼儿,1小学,2中学,3高中,100综合)',
`release_time` date NULL DEFAULT NULL COMMENT '发布时间',
`content_type` enum('EDU','AMUSEMENT') CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '内容类型',
`developer` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '开发商',
`images` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '应用截图',
`enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '应用商店' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_area_dept
-- ----------------------------
DROP TABLE IF EXISTS `uc_area_dept`;
CREATE TABLE `uc_area_dept` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`area_id` bigint(20) NULL DEFAULT NULL COMMENT '区域ID',
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '机构ID',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '区域机构关系表,备用' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_areas
-- ----------------------------
DROP TABLE IF EXISTS `uc_areas`;
CREATE TABLE `uc_areas` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`code` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '代号',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '区域名称',
`parent_id` bigint(20) NULL DEFAULT NULL COMMENT '上级区域ID,一级区域为0',
`acreage` bigint(20) NULL DEFAULT NULL COMMENT '面积,单位:平方公里',
`population` bigint(20) NULL DEFAULT NULL COMMENT '人口,单位:万人',
`households` bigint(20) NULL DEFAULT NULL COMMENT '户数',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
`order_num` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `k_sort`(`sort`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '区域管理' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_areas
-- ----------------------------
INSERT INTO `uc_areas` VALUES ('1', 'sh', '上海', 0, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_areas` VALUES ('2', 'mh', '闵行区', 1, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_areas` VALUES ('3', 'zz', '紫竹科技园', 2, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
-- ----------------------------
-- Table structure for uc_browses
-- ----------------------------
DROP TABLE IF EXISTS `uc_browses`;
CREATE TABLE `uc_browses` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '浏览id',
`user_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户id',
`resource_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '资源id',
`content_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '内容id',
`ratio` double(3, 0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '播放占比%',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
PRIMARY KEY (`id`) USING BTREE,
INDEX `k_user_id`(`user_id`) USING BTREE,
INDEX `k_resource_id`(`resource_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '浏览' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_certifications
-- ----------------------------
DROP TABLE IF EXISTS `uc_certifications`;
CREATE TABLE `uc_certifications` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`user_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户ID',
`mode` int(11) NULL DEFAULT 0 COMMENT '认证方式 0短信 1银行 2人脸识别 3公有云实名认证服务 4身份证查验 5护照查验',
`certfied_real_name` int(11) NULL DEFAULT 0 COMMENT '是否已通过实名认证 0未通过 1通过',
`organization_real_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '实名认证机构',
`certfied_result` varchar(512) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '实名认证机构返回的认证结果',
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '身份证姓名',
`id_card_number` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '身份证号码',
`passport_number` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '护照号码',
`driving_license_number` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '驾照号码',
`url` varchar(512) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '认证资料链接',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
`id_card_mumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_name`(`name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '用户认证表,不含密码认证' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_collections
-- ----------------------------
DROP TABLE IF EXISTS `uc_collections`;
CREATE TABLE `uc_collections` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '收藏id',
`user_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户id',
`resource_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '资源id',
`content_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '内容id',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE,
INDEX `k_user_id`(`user_id`) USING BTREE,
INDEX `k_resource_id`(`resource_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '收藏' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_departments
-- ----------------------------
DROP TABLE IF EXISTS `uc_departments`;
CREATE TABLE `uc_departments` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`code` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '代号',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '机构名称',
`parent_id` bigint(20) NULL DEFAULT NULL COMMENT '上级机构ID,一级机构为0',
`department_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT 'department' COMMENT '类型,company公司,department部门,office-room科室,group小组,other其他',
`principal` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '负责人',
`department_level` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '级别',
`address` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '地址',
`telephone` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '电话',
`fax` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '传真',
`postcode` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '邮编',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
`order_num` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_code`(`code`) USING BTREE,
INDEX `k_sort`(`sort`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '机构管理' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_departments
-- ----------------------------
INSERT INTO `uc_departments` VALUES ('17', 'yjt', '第一集团', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('18', 'ejt', '第二集团', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('19', 'sjt', '第三集团', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('21', 'sh', '上海分公司', 18, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('22', 'bj', '北京分公司', 17, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('23', 'gz', '广州分公司', 18, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('25', 'rj', '软件研发部', 22, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('26', 'yj', '硬件研发部', 21, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('27', 'yw', '交付运维部', 23, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('29', 'yx', '营销部', 22, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('30', 'sc', '市场部', 23, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('33', 'xt', '系统组', 19, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('34', 'kf', '开发组', 19, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
INSERT INTO `uc_departments` VALUES ('35', 'cs', '测试组', 19, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1', NULL);
-- ----------------------------
-- Table structure for uc_diaries
-- ----------------------------
DROP TABLE IF EXISTS `uc_diaries`;
CREATE TABLE `uc_diaries` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '日记id',
`user_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户id',
`content` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '内容',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '日记' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_dictionaries
-- ----------------------------
DROP TABLE IF EXISTS `uc_dictionaries`;
CREATE TABLE `uc_dictionaries` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`value` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '数据值',
`label` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '标签名',
`type` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '类型',
`description` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '描述',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE,
INDEX `k_sort`(`sort`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '字典表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_dictionaries
-- ----------------------------
INSERT INTO `uc_dictionaries` VALUES ('3', 'male', '男', 'sex', '性别', 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_dictionaries` VALUES ('4', 'female', '女', 'sex', '性别', 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
-- ----------------------------
-- Table structure for uc_family_members
-- ----------------------------
DROP TABLE IF EXISTS `uc_family_members`;
CREATE TABLE `uc_family_members` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '标识',
`user_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '成员id,关联users表',
`master_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '家主id,关联users表',
`relation_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '关系名称',
`education` int(11) NULL DEFAULT NULL COMMENT '教育阶段-0幼儿园/1小学/2中学',
`grade` int(11) NULL DEFAULT NULL COMMENT '年级-1/2/3/4/5/6/7/8/9/10/11/12',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '家庭成员' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_logs
-- ----------------------------
DROP TABLE IF EXISTS `uc_logs`;
CREATE TABLE `uc_logs` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '用户名',
`operation` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '用户操作',
`method` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '请求方法',
`params` varchar(5000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '请求参数',
`execute_time` bigint(20) NOT NULL COMMENT '执行时长(毫秒)',
`ip` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'IP地址',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '系统日志,不允许修改删除' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_prizes
-- ----------------------------
DROP TABLE IF EXISTS `uc_prizes`;
CREATE TABLE `uc_prizes` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '商品id',
`channel_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '渠道id',
`prize_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '商品名称',
`prize_img` varchar(1000) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '商品图片',
`score` decimal(9, 2) UNSIGNED NOT NULL COMMENT '积分',
`inventory` double(9, 0) UNSIGNED NOT NULL DEFAULT 1 COMMENT '库存',
`prize_status` enum('UP','DOWN') CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT 'DOWN' COMMENT '商品状态-UP:上架/DOWN:下架',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '商品' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_resources
-- ----------------------------
DROP TABLE IF EXISTS `uc_resources`;
CREATE TABLE `uc_resources` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '资源名称',
`parent_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '父资源ID,一级资源为NULL或者空串',
`url` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '资源URL,类型:1.普通页面(如用户管理, /sys/user) 2.嵌套完整外部页面,以http(s)开头的链接 3.嵌套服务器页面,使用iframe:前缀+目标URL(如SQL监控, iframe:/druid/login.html, iframe:前缀会替换成服务器地址), 4.表记录,使用rec:{tablename}/{id},其中多个tablename使用逗号分隔,多个id使用逗号分隔',
`perms` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '授权(多个用逗号分隔,如:sys:user:add,sys:user:edit)',
`resource_type` int(11) NULL DEFAULT NULL COMMENT '类型 0:目录/元数据 1:菜单 2:按钮 3:信息项/数据记录',
`icon` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '图标',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_name`(`name`) USING BTREE,
INDEX `k_sort`(`sort`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '资源管理' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_resources
-- ----------------------------
INSERT INTO `uc_resources` VALUES ('1', '系统管理', NULL, NULL, NULL, 0, 'el-icon-setting', 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('10', '新增用户', '2', NULL, 'sys:user:add', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('11', '修改用户', '2', NULL, 'sys:user:edit', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('12', '删除用户', '2', NULL, 'sys:user:delete', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('13', '查看部门', '3', NULL, 'sys:dept:view', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('14', '新增部门', '3', NULL, 'sys:dept:add', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('15', '修改部门', '3', NULL, 'sys:dept:edit', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('16', '删除部门', '3', NULL, 'sys:dept:delete', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('17', '查看角色', '4', NULL, 'sys:role:view', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('18', '新增角色', '4', NULL, 'sys:role:add', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('19', '修改角色', '4', NULL, 'sys:role:edit', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('2', '用户管理', '1', '/sys/user', NULL, 1, 'el-icon-service', 1, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('20', '删除角色', '4', NULL, 'sys:role:delete', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('21', '查看菜单', '5', NULL, 'sys:menu:view', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('22', '新增菜单', '5', NULL, 'sys:menu:add', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('23', '修改菜单', '5', NULL, 'sys:menu:edit', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('24', '删除菜单', '5', NULL, 'sys:menu:delete', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('3', '机构管理', '1', '/sys/dept', NULL, 1, 'el-icon-news', 2, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('31', '查看字典', '7', NULL, 'sys:dict:view', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('32', '新增字典', '7', NULL, 'sys:dict:add', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('33', '修改字典', '7', NULL, 'sys:dict:edit', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('34', '删除字典', '7', NULL, 'sys:dict:delete', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('4', '角色管理', '1', '/sys/role', NULL, 1, 'el-icon-view', 4, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('5', '资源管理', '1', '/sys/menu', NULL, 1, 'el-icon-menu', 5, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('7', '字典管理', '1', '/sys/dict', NULL, 1, 'el-icon-edit-outline', 7, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('8', '系统日志', '1', '/sys/log', 'sys:log:view', 1, 'el-icon-info', 8, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_resources` VALUES ('9', '查看用户', '2', NULL, 'sys:user:view', 2, NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
-- ----------------------------
-- Table structure for uc_rewards
-- ----------------------------
DROP TABLE IF EXISTS `uc_rewards`;
CREATE TABLE `uc_rewards` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '奖励id',
`user_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户id',
`resource_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '资源id',
`content_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '内容id',
`reward_number` double(3, 0) UNSIGNED NOT NULL COMMENT '奖励数量',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_resource_id`(`resource_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '星星奖励记录' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `uc_role_dept`;
CREATE TABLE `uc_role_dept` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`role_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '角色ID',
`dept_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '机构ID',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '角色机构关系表,备用' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_roles
-- ----------------------------
DROP TABLE IF EXISTS `uc_roles`;
CREATE TABLE `uc_roles` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'id',
`code` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '角色代号',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '角色名称',
`parent_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '父ID,一级为空',
`role_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '职责/类型',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_code`(`code`) USING BTREE,
INDEX `k_sort`(`sort`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '角色管理' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_roles
-- ----------------------------
INSERT INTO `uc_roles` VALUES ('1', 'admin', '超级管理员', '0', NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_roles` VALUES ('2', 'dev', '开发人员', '0', NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_roles` VALUES ('3', 'test', '测试人员', '0', NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_roles` VALUES ('4', 'project', '项目经理', '0', NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
INSERT INTO `uc_roles` VALUES ('8', 'mng', '部门经理', '0', NULL, 0, NULL, '2018-08-14 11:11:11.000000', '2018-08-14 11:11:11.000000', 'admin', 'admin', b'1');
-- ----------------------------
-- Table structure for uc_score_detail
-- ----------------------------
DROP TABLE IF EXISTS `uc_score_detail`;
CREATE TABLE `uc_score_detail` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户积分明细id',
`user_score_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户积分id',
`change_value` decimal(9, 2) NOT NULL COMMENT '交易值',
`after_value` decimal(9, 2) UNSIGNED NOT NULL COMMENT '交易后的值',
`change_type` enum('EDU','EXCHANGE') CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '交易类型-EDU:学习/EXCHANGE:兑换',
`join_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '关联业务id, 现解释为appID',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '用户积分明细' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_score_exchanges
-- ----------------------------
DROP TABLE IF EXISTS `uc_score_exchanges`;
CREATE TABLE `uc_score_exchanges` (
`id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户积分兑换id',
`order_number` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '订单号',
`channel_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '渠道id',
`user_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户id',
`prize_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '商品id',
`prize_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '商品名称',
`prize_img` varchar(1000) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '商品图片',
`score` decimal(9, 2) UNSIGNED NOT NULL COMMENT '积分',
`logistics_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '物流id',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注-内部使用',
`create_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '创建时间,默认系统时间,不需要手动插入',
`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) COMMENT '修改时间,默认系统时间,不需要手动插入',
`create_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者id',
`update_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者id',
`status` bit(1) NOT NULL DEFAULT b'1' COMMENT '数据有效性-0无效/1有效(实体类为boolean)',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_order_number`(`order_number`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '用户积分兑换记录' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for uc_sec_config
-- ----------------------------
DROP TABLE IF EXISTS `uc_sec_config`;
CREATE TABLE `uc_sec_config` (
`config_id` int(5) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
`config_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数名称',
`config_key` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数键名',
`config_value` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数键值',
`config_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '系统内置(Y是 N否)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '参数配置表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_sec_config
-- ----------------------------
INSERT INTO `uc_sec_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2024-03-13 19:02:13', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `uc_sec_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2024-03-13 19:02:13', '', NULL, '初始化密码 123456');
INSERT INTO `uc_sec_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2024-03-13 19:02:13', '', NULL, '深色主题theme-dark,浅色主题theme-light');
INSERT INTO `uc_sec_config` VALUES (4, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2024-03-13 19:02:13', '', NULL, '是否开启注册用户功能(true开启,false关闭)');
-- ----------------------------
-- Table structure for uc_sec_dept
-- ----------------------------
DROP TABLE IF EXISTS `uc_sec_dept`;
CREATE TABLE `uc_sec_dept` (
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父部门id',
`ancestors` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '祖级列表',
`dept_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '部门名称',
`order_num` int(4) NULL DEFAULT 0 COMMENT '显示顺序',
`leader` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人',
`phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 110 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_sec_dept
-- ----------------------------
INSERT INTO `uc_sec_dept` VALUES (100, 0, '0', 'TESTU科技', 0, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (101, 100, '0,100', '深圳总公司', 1, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (102, 100, '0,100', '长沙分公司', 2, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (103, 101, '0,100,101', '研发部门', 1, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (104, 101, '0,100,101', '市场部门', 2, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (105, 101, '0,100,101', '测试部门', 3, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (106, 101, '0,100,101', '财务部门', 4, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (107, 101, '0,100,101', '运维部门', 5, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (108, 102, '0,100,102', '市场部门', 1, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
INSERT INTO `uc_sec_dept` VALUES (109, 102, '0,100,102', '财务部门', 2, 'TESTU', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2024-03-13 19:02:13', '', NULL);
-- ----------------------------
-- Table structure for uc_sec_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `uc_sec_dict_data`;
CREATE TABLE `uc_sec_dict_data` (
`dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
`dict_sort` int(4) NULL DEFAULT 0 COMMENT '字典排序',
`dict_label` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典标签',
`dict_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典键值',
`dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
`css_class` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
`list_class` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
`is_default` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`dict_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典数据表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_sec_dict_data
-- ----------------------------
INSERT INTO `uc_sec_dict_data` VALUES (1, 1, '男', '0', 'uc_sec_user_sex', '', '', 'Y', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '性别男');
INSERT INTO `uc_sec_dict_data` VALUES (2, 2, '女', '1', 'uc_sec_user_sex', '', '', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '性别女');
INSERT INTO `uc_sec_dict_data` VALUES (3, 3, '未知', '2', 'uc_sec_user_sex', '', '', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '性别未知');
INSERT INTO `uc_sec_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '显示菜单');
INSERT INTO `uc_sec_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '隐藏菜单');
INSERT INTO `uc_sec_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '正常状态');
INSERT INTO `uc_sec_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '停用状态');
INSERT INTO `uc_sec_dict_data` VALUES (8, 1, '正常', '0', 'uc_sec_job_status', '', 'primary', 'Y', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '正常状态');
INSERT INTO `uc_sec_dict_data` VALUES (9, 2, '暂停', '1', 'uc_sec_job_status', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '停用状态');
INSERT INTO `uc_sec_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'uc_sec_job_group', '', '', 'Y', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '默认分组');
INSERT INTO `uc_sec_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'uc_sec_job_group', '', '', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '系统分组');
INSERT INTO `uc_sec_dict_data` VALUES (12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '系统默认是');
INSERT INTO `uc_sec_dict_data` VALUES (13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '系统默认否');
INSERT INTO `uc_sec_dict_data` VALUES (14, 1, '通知', '1', 'uc_sec_notice_type', '', 'warning', 'Y', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '通知');
INSERT INTO `uc_sec_dict_data` VALUES (15, 2, '公告', '2', 'uc_sec_notice_type', '', 'success', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '公告');
INSERT INTO `uc_sec_dict_data` VALUES (16, 1, '正常', '0', 'uc_sec_notice_status', '', 'primary', 'Y', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '正常状态');
INSERT INTO `uc_sec_dict_data` VALUES (17, 2, '关闭', '1', 'uc_sec_notice_status', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '关闭状态');
INSERT INTO `uc_sec_dict_data` VALUES (18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '其他操作');
INSERT INTO `uc_sec_dict_data` VALUES (19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '新增操作');
INSERT INTO `uc_sec_dict_data` VALUES (20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '修改操作');
INSERT INTO `uc_sec_dict_data` VALUES (21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '删除操作');
INSERT INTO `uc_sec_dict_data` VALUES (22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '授权操作');
INSERT INTO `uc_sec_dict_data` VALUES (23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '导出操作');
INSERT INTO `uc_sec_dict_data` VALUES (24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '导入操作');
INSERT INTO `uc_sec_dict_data` VALUES (25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '强退操作');
INSERT INTO `uc_sec_dict_data` VALUES (26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '生成操作');
INSERT INTO `uc_sec_dict_data` VALUES (27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '清空操作');
INSERT INTO `uc_sec_dict_data` VALUES (28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '正常状态');
INSERT INTO `uc_sec_dict_data` VALUES (29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '停用状态');
-- ----------------------------
-- Table structure for uc_sec_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `uc_sec_dict_type`;
CREATE TABLE `uc_sec_dict_type` (
`dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
`dict_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典名称',
`dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`dict_id`) USING BTREE,
UNIQUE INDEX `dict_type`(`dict_type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典类型表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of uc_sec_dict_type
-- ----------------------------
INSERT INTO `uc_sec_dict_type` VALUES (1, '用户性别', 'uc_sec_user_sex', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '用户性别列表');
INSERT INTO `uc_sec_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '菜单状态列表');
INSERT INTO `uc_sec_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '系统开关列表');
INSERT INTO `uc_sec_dict_type` VALUES (4, '任务状态', 'uc_sec_job_status', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '任务状态列表');
INSERT INTO `uc_sec_dict_type` VALUES (5, '任务分组', 'uc_sec_job_group', '0', 'admin', '2024-03-13 19:02:13', '', NULL, '任务分组列表');