文档列表documents添加用户id的限制,添加通过统一认证之后数据库中用户数据的添加和角色的添加,添加Sidebar菜单通过数据库请求获取
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : 智慧法务
|
||||
Source Server Type : PostgreSQL
|
||||
Source Server Version : 170005
|
||||
Source Host : nas.7bm.co:54302
|
||||
Source Catalog : docauditai
|
||||
Source Schema : public
|
||||
|
||||
Target Server Type : PostgreSQL
|
||||
Target Server Version : 170005
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 18/07/2025 20:13:33
|
||||
*/
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for user_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS "public"."user_role";
|
||||
CREATE TABLE "public"."user_role" (
|
||||
"id" int4 NOT NULL DEFAULT nextval('user_role_id_seq'::regclass),
|
||||
"user_id" int4 NOT NULL,
|
||||
"role_id" int4 NOT NULL,
|
||||
"created_at" timestamptz(6) DEFAULT now(),
|
||||
"updated_at" timestamptz(6) DEFAULT now()
|
||||
)
|
||||
;
|
||||
|
||||
-- ----------------------------
|
||||
-- Triggers structure for table user_role
|
||||
-- ----------------------------
|
||||
CREATE TRIGGER "update_user_role_updated_at" BEFORE UPDATE ON "public"."user_role"
|
||||
FOR EACH ROW
|
||||
EXECUTE PROCEDURE "public"."update_updated_at"();
|
||||
|
||||
-- ----------------------------
|
||||
-- Uniques structure for table user_role
|
||||
-- ----------------------------
|
||||
ALTER TABLE "public"."user_role" ADD CONSTRAINT "user_role_user_id_role_id_key" UNIQUE ("user_id", "role_id");
|
||||
|
||||
-- ----------------------------
|
||||
-- Primary Key structure for table user_role
|
||||
-- ----------------------------
|
||||
ALTER TABLE "public"."user_role" ADD CONSTRAINT "sys_user_role_pkey" PRIMARY KEY ("id");
|
||||
Reference in New Issue
Block a user