fix(query): add user metadata projection (#3021)

* fix: add metadata projection

* cleanup
This commit is contained in:
Livio Amstutz
2022-01-18 14:15:00 +01:00
committed by GitHub
parent d2e07636c9
commit c2e6fd8f40
4 changed files with 286 additions and 0 deletions
@@ -0,0 +1,13 @@
CREATE TABLE zitadel.projections.user_metadata (
user_id STRING NOT NULL
, resource_owner STRING NOT NULL
, creation_date TIMESTAMPTZ NOT NULL
, change_date TIMESTAMPTZ NOT NULL
, sequence INT8 NOT NULL
, key STRING NOT NULL
, value BYTES
, PRIMARY KEY (user_id, key)
, INDEX idx_ro (resource_owner)
);