0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/schemas/tables/sign_in_experiences.sql

18 lines
722 B
MySQL
Raw Normal View History

create type sign_in_mode as enum ('SignIn', 'Register', 'SignInAndRegister');
create table sign_in_experiences (
2023-01-19 07:27:01 -05:00
tenant_id varchar(21) not null
references tenants (id) on update cascade on delete cascade,
id varchar(21) not null,
2022-06-23 21:26:30 -05: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),
2022-10-09 02:31:40 -05:00
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',
2023-02-20 21:55:44 -05:00
custom_css text,
2023-02-19 11:27:12 -05:00
primary key (tenant_id, id)
);