zitadel/migrations/cockroach/V1.50__privacy_policy.sql
Fabi beb1c1604a
feat: Privacy policy (#1957)
* feat: command side privacy policy

* feat: add privacy policy to api

* feat: add privacy policy query side

* fix: add privacy policy to mgmt api

* fix: add privacy policy to auth and base data

* feat: use privacyPolicy in login gui

* feat: use privacyPolicy in login gui

* feat: test org fatures

* feat: typos

* feat: tos in register
2021-07-05 10:36:51 +02:00

46 lines
983 B
SQL

ALTER TABLE adminapi.features ADD COLUMN privacy_policy BOOLEAN;
ALTER TABLE auth.features ADD COLUMN privacy_policy BOOLEAN;
ALTER TABLE authz.features ADD COLUMN privacy_policy BOOLEAN;
ALTER TABLE management.features ADD COLUMN privacy_policy BOOLEAN;
CREATE TABLE auth.privacy_policies (
aggregate_id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
state SMALLINT,
sequence BIGINT,
tos_link STRING,
privacy_link STRING,
PRIMARY KEY (aggregate_id)
);
CREATE TABLE adminapi.privacy_policies (
aggregate_id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
state SMALLINT,
sequence BIGINT,
tos_link STRING,
privacy_link STRING,
PRIMARY KEY (aggregate_id)
);
CREATE TABLE management.privacy_policies (
aggregate_id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
state SMALLINT,
sequence BIGINT,
tos_link STRING,
privacy_link STRING,
PRIMARY KEY (aggregate_id)
);