feat: auth method projection (#3020)

* feat: auth method projection

* feat: auth method projection

* feat: add tests
This commit is contained in:
Fabi
2022-01-19 14:49:50 +01:00
committed by GitHub
parent c2e6fd8f40
commit 3902f9adb5
6 changed files with 481 additions and 1 deletions
@@ -0,0 +1,15 @@
CREATE TABLE zitadel.projections.user_auth_methods (
token_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
, state INT2 NOT NULL
, method_type INT2 NOT NULL
, name STRING NOT NULL
, PRIMARY KEY (user_id, method_type, token_id)
, INDEX idx_ro (resource_owner)
);