mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-19 06:46:13 +00:00
fix: usermemberships in authz (#1288)
* fix: usermemberships in authz * fix: tests * fix: migration * fix: handler
This commit is contained in:
18
migrations/cockroach/V1.29__user_memberships.sql
Normal file
18
migrations/cockroach/V1.29__user_memberships.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
CREATE TABLE authz.user_memberships (
|
||||
user_id TEXT,
|
||||
member_type SMALLINT,
|
||||
aggregate_id TEXT,
|
||||
object_id TEXT,
|
||||
|
||||
roles TEXT ARRAY,
|
||||
display_name TEXT,
|
||||
resource_owner TEXT,
|
||||
resource_owner_name TEXT,
|
||||
creation_date TIMESTAMPTZ,
|
||||
change_date TIMESTAMPTZ,
|
||||
sequence BIGINT,
|
||||
|
||||
PRIMARY KEY (user_id, member_type, aggregate_id, object_id)
|
||||
);
|
||||
|
||||
ALTER TABLE authz.user_memberships OWNER TO admin;
|
Reference in New Issue
Block a user