mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 05:47:32 +00:00
cca92874ab
* get my zitadel permissions from memberships (not grants) * change SearchMyProjectOrgs to user user_membership
18 lines
451 B
SQL
18 lines
451 B
SQL
CREATE TABLE auth.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 management.user_memberships ADD COLUMN resource_owner_name TEXT; |