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
create table table_user
(
    `id`          bigint not null primary key AUTO_INCREMENT,
    `nick_name`   varchar(128) DEFAULT NULL,
    `portrait`    varchar(256) DEFAULT NULL,
    `system`      varchar(64)  DEFAULT NULL,
    `create_time` datetime     DEFAULT NULL,
    `update_time` datetime     DEFAULT NULL
);
 
create table table_user_auth
(
    `id`            bigint not null primary key AUTO_INCREMENT,
    `user_id`       bigint       DEFAULT NULL,
    `system`        varchar(64)  DEFAULT NULL,
    `identity_type` varchar(128) DEFAULT NULL,
    `identifier`    varchar(128) DEFAULT NULL,
    `credential`    varchar(128) DEFAULT NULL,
    `nick_name`     varchar(128) DEFAULT NULL,
    `portrait`      varchar(256) DEFAULT NULL,
    `create_time`   datetime     DEFAULT NULL,
    `update_time`   datetime     DEFAULT NULL
);
 
create table table_admin
(
    `id`          bigint not null primary key AUTO_INCREMENT,
    `account`     varchar(128) DEFAULT NULL,
    `pwd`         varchar(128) DEFAULT NULL,
    `name`        varchar(128) DEFAULT NULL,
    `rule`        int          DEFAULT NULL,
    `create_time` datetime     DEFAULT NULL,
    `update_time` datetime     DEFAULT NULL
);
 
create table table_system_config
(
    `id`          bigint not null primary key AUTO_INCREMENT,
    `key`         varchar(128) DEFAULT NULL,
    `value`       varchar(1024) DEFAULT NULL,
    `name`        varchar(128) DEFAULT NULL,
    `system`      varchar(128) DEFAULT NULL,
    `create_time` datetime     DEFAULT NULL,
    `update_time` datetime     DEFAULT NULL
);