mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 22:07:32 +00:00
38 lines
1.1 KiB
MySQL
38 lines
1.1 KiB
MySQL
|
ALTER TABLE zitadel.projections.projects ADD COLUMN project_role_assertion BOOLEAN;
|
||
|
ALTER TABLE zitadel.projections.projects ADD COLUMN project_role_check BOOLEAN;
|
||
|
ALTER TABLE zitadel.projections.projects ADD COLUMN has_project_check BOOLEAN;
|
||
|
ALTER TABLE zitadel.projections.projects ADD COLUMN private_labeling_setting SMALLINT;
|
||
|
ALTER TABLE zitadel.projections.projects ADD COLUMN sequence BIGINT;
|
||
|
ALTER TABLE zitadel.projections.projects RENAME COLUMN owner_id TO resource_owner;
|
||
|
|
||
|
CREATE TABLE zitadel.projections.project_grants (
|
||
|
project_id TEXT,
|
||
|
grant_id TEXT,
|
||
|
creation_date TIMESTAMPTZ,
|
||
|
change_date TIMESTAMPTZ,
|
||
|
resource_owner TEXT,
|
||
|
state INT2,
|
||
|
sequence BIGINT,
|
||
|
|
||
|
granted_org_id TEXT,
|
||
|
granted_role_keys TEXT Array,
|
||
|
creator_id TEXT,
|
||
|
|
||
|
PRIMARY KEY (grant_id)
|
||
|
);
|
||
|
|
||
|
CREATE TABLE zitadel.projections.project_roles (
|
||
|
project_id TEXT,
|
||
|
creation_date TIMESTAMPTZ,
|
||
|
change_date TIMESTAMPTZ,
|
||
|
resource_owner TEXT,
|
||
|
sequence BIGINT,
|
||
|
|
||
|
role_key TEXT,
|
||
|
display_name TEXT,
|
||
|
group_name TEXT,
|
||
|
creator_id TEXT,
|
||
|
|
||
|
PRIMARY KEY (project_id, role_key)
|
||
|
);
|