mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
e63179514c
* feat: projects and project grants seperated * fix: tests * fix: add mock
37 lines
667 B
PL/PgSQL
37 lines
667 B
PL/PgSQL
BEGIN;
|
|
|
|
DROP TABLE management.granted_projects;
|
|
|
|
CREATE TABLE management.projects (
|
|
project_id TEXT,
|
|
|
|
creation_date TIMESTAMPTZ,
|
|
change_date TIMESTAMPTZ,
|
|
project_name TEXT,
|
|
project_state SMALLINT,
|
|
resource_owner TEXT,
|
|
sequence BIGINT,
|
|
|
|
PRIMARY KEY (project_id)
|
|
);
|
|
|
|
CREATE TABLE management.project_grants (
|
|
grant_id TEXT,
|
|
|
|
creation_date TIMESTAMPTZ,
|
|
change_date TIMESTAMPTZ,
|
|
project_id TEXT,
|
|
project_name TEXT,
|
|
org_name TEXT,
|
|
org_domain TEXT,
|
|
project_state SMALLINT,
|
|
resource_owner TEXT,
|
|
org_id TEXT,
|
|
granted_role_keys TEXT Array,
|
|
sequence BIGINT,
|
|
|
|
PRIMARY KEY (grant_id)
|
|
);
|
|
|
|
COMMIT;
|