mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-25 00:32:15 +00:00
* feat: add machine tokens * fix test * rename to pat * fix merge and tests * fix scopes * fix migration version * fix test * Update internal/repository/user/personal_access_token.go Co-authored-by: Fabi <[email protected]> Co-authored-by: Fabi <[email protected]>
15 lines
410 B
SQL
15 lines
410 B
SQL
ALTER TABLE auth.tokens ADD COLUMN is_pat BOOLEAN DEFAULT false NOT NULL;
|
|
|
|
CREATE TABLE zitadel.projections.personal_access_tokens (
|
|
id STRING
|
|
, creation_date TIMESTAMPTZ NOT NULL
|
|
, change_date TIMESTAMPTZ NOT NULL
|
|
, resource_owner STRING NOT NULL
|
|
, sequence INT8 NOT NULL
|
|
, user_id STRING NOT NULL
|
|
, expiration TIMESTAMPTZ NOT NULL
|
|
, scopes STRING[]
|
|
|
|
, PRIMARY KEY (id)
|
|
);
|