mirror of
https://github.com/zitadel/zitadel.git
synced 2025-06-10 13:38:39 +00:00

* feat: sms config * feat: twilio as sms provider * feat:sms projection * feat: sms queries * feat: sms queries test * feat: sms configs * feat: sms configs sql file * fix merge * fix: rename from to sendername * fix: proto comments * fix: token as crypto * fix: tests * fix: sms config sender name to sender number * fix: sms config sender name to sender number * Update email.go * Update channel.go * Update V1.111__settings.sql Co-authored-by: Livio Amstutz <livio.a@gmail.com>
58 lines
1.5 KiB
SQL
58 lines
1.5 KiB
SQL
ALTER TABLE zitadel.projections.iam ADD COLUMN default_language TEXT DEFAULT '';
|
|
|
|
CREATE TABLE zitadel.projections.secret_generators (
|
|
generator_type INT2 NOT NULL
|
|
, aggregate_id STRING NOT NULL
|
|
, creation_date TIMESTAMPTZ NOT NULL
|
|
, change_date TIMESTAMPTZ NOT NULL
|
|
, resource_owner STRING NOT NULL
|
|
, sequence INT8 NOT NULL
|
|
|
|
, length BIGINT NOT NULL
|
|
, expiry BIGINT NOT NULL
|
|
, include_lower_letters BOOLEAN NOT NULL
|
|
, include_upper_letters BOOLEAN NOT NULL
|
|
, include_digits BOOLEAN NOT NULL
|
|
, include_symbols BOOLEAN NOT NULL
|
|
|
|
, PRIMARY KEY (generator_type, aggregate_id)
|
|
);
|
|
|
|
CREATE TABLE zitadel.projections.smtp_configs (
|
|
aggregate_id STRING NOT NULL
|
|
, creation_date TIMESTAMPTZ NOT NULL
|
|
, change_date TIMESTAMPTZ NOT NULL
|
|
, resource_owner STRING NOT NULL
|
|
, sequence INT8 NOT NULL
|
|
|
|
, tls BOOLEAN NOT NULL
|
|
, sender_address STRING NOT NULL
|
|
, sender_number STRING NOT NULL
|
|
, host STRING NOT NULL
|
|
, username STRING NOT NULL DEFAULT ''
|
|
, password JSONB
|
|
|
|
, PRIMARY KEY (aggregate_id)
|
|
);
|
|
|
|
CREATE TABLE zitadel.projections.sms_configs (
|
|
id STRING NOT NULL
|
|
,aggregate_id STRING NOT NULL
|
|
, creation_date TIMESTAMPTZ NOT NULL
|
|
, change_date TIMESTAMPTZ NOT NULL
|
|
, resource_owner STRING NOT NULL
|
|
, sequence INT8 NOT NULL
|
|
, state INT2
|
|
|
|
, PRIMARY KEY (id)
|
|
);
|
|
|
|
CREATE TABLE zitadel.projections.sms_configs_twilio (
|
|
sms_id STRING NOT NULL
|
|
,sid STRING NOT NULL
|
|
,sender_name STRING NOT NULL
|
|
,token JSONB
|
|
|
|
, PRIMARY KEY (sms_id)
|
|
);
|