|
@@ -113,7 +113,7 @@ CREATE TABLE IF NOT EXISTS "sys_menu" (
|
|
PRIMARY KEY ("id")
|
|
PRIMARY KEY ("id")
|
|
) COMMENT '菜单权限表';
|
|
) COMMENT '菜单权限表';
|
|
|
|
|
|
-CREATE TABLE "sys_dict_type" (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS "sys_dict_type" (
|
|
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
|
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
|
"name" varchar(100) NOT NULL DEFAULT '',
|
|
"name" varchar(100) NOT NULL DEFAULT '',
|
|
"type" varchar(100) NOT NULL DEFAULT '',
|
|
"type" varchar(100) NOT NULL DEFAULT '',
|
|
@@ -127,7 +127,7 @@ CREATE TABLE "sys_dict_type" (
|
|
PRIMARY KEY ("id")
|
|
PRIMARY KEY ("id")
|
|
) COMMENT '字典类型表';
|
|
) COMMENT '字典类型表';
|
|
|
|
|
|
-CREATE TABLE `sys_user_session` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_user_session` (
|
|
`id` varchar(32) NOT NULL,
|
|
`id` varchar(32) NOT NULL,
|
|
`user_id` bigint DEFAULT NULL,
|
|
`user_id` bigint DEFAULT NULL,
|
|
`username` varchar(50) NOT NULL DEFAULT '',
|
|
`username` varchar(50) NOT NULL DEFAULT '',
|
|
@@ -191,7 +191,7 @@ CREATE TABLE IF NOT EXISTS `sys_login_log` (
|
|
) COMMENT ='系统访问记录';
|
|
) COMMENT ='系统访问记录';
|
|
|
|
|
|
|
|
|
|
-CREATE TABLE `sys_operate_log` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_operate_log` (
|
|
`id` bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
|
`id` bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
|
`trace_id` varchar(64) NOT NULL DEFAULT '',
|
|
`trace_id` varchar(64) NOT NULL DEFAULT '',
|
|
`user_id` bigint(20) NOT NULL,
|
|
`user_id` bigint(20) NOT NULL,
|
|
@@ -219,7 +219,7 @@ CREATE TABLE `sys_operate_log` (
|
|
PRIMARY KEY (`id`)
|
|
PRIMARY KEY (`id`)
|
|
) COMMENT ='操作日志记录';
|
|
) COMMENT ='操作日志记录';
|
|
|
|
|
|
-create table "sys_user" (
|
|
|
|
|
|
+create table IF NOT EXISTS "sys_user" (
|
|
"id" bigint not null GENERATED BY DEFAULT AS IDENTITY,
|
|
"id" bigint not null GENERATED BY DEFAULT AS IDENTITY,
|
|
"username" varchar(30) not null,
|
|
"username" varchar(30) not null,
|
|
"password" varchar(100) not null default '',
|
|
"password" varchar(100) not null default '',
|