mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
5150ead19f
* feat(core,schemas): add new singleSignOnEnabled field to sie add new singleSignOnEnabled field to sie * chore(core): add some comment add some comment * fix(experience): update mock data update mock data
22 lines
1 KiB
SQL
22 lines
1 KiB
SQL
create type sign_in_mode as enum ('SignIn', 'Register', 'SignInAndRegister');
|
|
|
|
create table sign_in_experiences (
|
|
tenant_id varchar(21) not null
|
|
references tenants (id) on update cascade on delete cascade,
|
|
id varchar(21) not null,
|
|
color jsonb /* @use Color */ not null,
|
|
branding jsonb /* @use Branding */ not null,
|
|
language_info jsonb /* @use LanguageInfo */ not null,
|
|
terms_of_use_url varchar(2048),
|
|
privacy_policy_url varchar(2048),
|
|
sign_in jsonb /* @use SignIn */ not null,
|
|
sign_up jsonb /* @use SignUp */ not null,
|
|
social_sign_in_connector_targets jsonb /* @use ConnectorTargets */ not null default '[]'::jsonb,
|
|
sign_in_mode sign_in_mode not null default 'SignInAndRegister',
|
|
custom_css text,
|
|
custom_content jsonb /* @use CustomContent */ not null default '{}'::jsonb,
|
|
password_policy jsonb /* @use PartialPasswordPolicy */ not null default '{}'::jsonb,
|
|
mfa jsonb /* @use Mfa */ not null default '{}'::jsonb,
|
|
single_sign_on_enabled boolean not null default false,
|
|
primary key (tenant_id, id)
|
|
);
|