mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 05:47:32 +00:00
17 lines
455 B
MySQL
17 lines
455 B
MySQL
|
CREATE TABLE zitadel.projections.user_grants (
|
||
|
id STRING NOT NULL
|
||
|
, resource_owner STRING NOT NULL
|
||
|
, creation_date TIMESTAMPTZ NOT NULL
|
||
|
, change_date TIMESTAMPTZ NOT NULL
|
||
|
, sequence INT8 NOT NULL
|
||
|
|
||
|
, user_id STRING NOT NULL
|
||
|
, project_id STRING NOT NULL
|
||
|
, grant_id STRING NOT NULL
|
||
|
, roles STRING[]
|
||
|
, state INT2 NOT NULL
|
||
|
|
||
|
, PRIMARY KEY (id)
|
||
|
, INDEX idx_user (user_id)
|
||
|
, INDEX idx_ro (resource_owner)
|
||
|
);
|