Skip to content

Commit 5661d5c

Browse files
feat: casbin deny policy sql scripts (#5677)
* system controller scripts * script additions * sql cript update * sql script number chnage
1 parent 3967bbc commit 5661d5c

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---- DROP TABLE
2+
DROP TABLE IF EXISTS public.rbac_role_audit;
3+
4+
---- DROP sequence
5+
DROP SEQUENCE IF EXISTS public.id_seq_rbac_role_audit;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CREATE SEQUENCE IF NOT EXISTS id_seq_rbac_role_audit;
2+
3+
CREATE TABLE IF NOT EXISTS "public"."rbac_role_audit"
4+
(
5+
"id" integer NOT NULL DEFAULT nextval('id_seq_rbac_role_audit'::regclass),
6+
"entity" varchar(250) NOT NULL,
7+
"access_type" varchar(250) ,
8+
"role" varchar(250) NOT NULL,
9+
"policy_data" jsonb,
10+
"role_data" jsonb,
11+
"audit_operation" varchar(20) NOT NULL,
12+
"created_on" timestamptz NOT NULL,
13+
"created_by" int4 NOT NULL,
14+
"updated_on" timestamptz NOT NULL,
15+
"updated_by" int4 NOT NULL,
16+
PRIMARY KEY ("id")
17+
);

0 commit comments

Comments
 (0)