0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-13 21:30:30 -05:00
logto/packages/schemas/tables/sign_in_experiences.sql

31 lines
1.5 KiB
MySQL
Raw Permalink Normal View History

create type sign_in_mode as enum ('SignIn', 'Register', 'SignInAndRegister');
create type agree_to_terms_policy as enum ('Automatic', 'ManualRegistrationOnly', 'Manual');
create table sign_in_experiences (
2023-01-19 20:27:01 +08:00
tenant_id varchar(21) not null
references tenants (id) on update cascade on delete cascade,
id varchar(21) not null,
2022-06-24 10:26:30 +08:00
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),
/** The policy that determines how users agree to the terms of use and privacy policy. */
agree_to_terms_policy agree_to_terms_policy not null default 'Automatic',
2022-10-09 15:31:40 +08:00
sign_in jsonb /* @use SignIn */ not null,
sign_up jsonb /* @use SignUp */ not null,
social_sign_in jsonb /* @use SocialSignIn */ not null default '{}'::jsonb,
social_sign_in_connector_targets jsonb /* @use ConnectorTargets */ not null default '[]'::jsonb,
sign_in_mode sign_in_mode not null default 'SignInAndRegister',
2023-02-21 10:55:44 +08:00
custom_css text,
custom_content jsonb /* @use CustomContent */ not null default '{}'::jsonb,
custom_ui_assets jsonb /* @use CustomUiAssets */,
2023-09-03 02:11:22 +08:00
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,
support_email text,
support_website_url text,
unknown_session_redirect_url text,
2023-02-20 00:27:12 +08:00
primary key (tenant_id, id)
);