mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
3025ac577b
* search orgs * org by domain * member spooler * member * get roles * tests * types duration * use default func for renew * correct database * reorder migrations * delete unused consts * move get roles to internal * use prepared org by domain * implement org in other objects * add eventstores
35 lines
551 B
PL/PgSQL
35 lines
551 B
PL/PgSQL
BEGIN;
|
|
|
|
CREATE TABLE management.orgs (
|
|
id TEXT,
|
|
creation_date TIMESTAMPTZ,
|
|
change_date TIMESTAMPTZ,
|
|
resource_owner TEXT,
|
|
org_state SMALLINT,
|
|
sequence BIGINT,
|
|
|
|
domain TEXT,
|
|
name TEXT,
|
|
|
|
PRIMARY KEY (id)
|
|
);
|
|
|
|
CREATE TABLE management.org_members (
|
|
user_id TEXT,
|
|
org_id TEXT,
|
|
|
|
creation_date TIMESTAMPTZ,
|
|
change_date TIMESTAMPTZ,
|
|
|
|
user_name TEXT,
|
|
email_address TEXT,
|
|
first_name TEXT,
|
|
last_name TEXT,
|
|
roles TEXT ARRAY,
|
|
sequence BIGINT,
|
|
|
|
PRIMARY KEY (org_id, user_id)
|
|
);
|
|
|
|
COMMIT;
|