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
|
);
|