mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-09 09:53:40 +00:00
37 lines
667 B
MySQL
37 lines
667 B
MySQL
|
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;
|