2022-06-16 21:36:07 -05:00
|
|
|
create type sign_in_mode as enum ('SignIn', 'Register', 'SignInAndRegister');
|
|
|
|
|
2022-01-24 22:48:47 -05:00
|
|
|
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,
|
2022-04-18 02:27:58 -05:00
|
|
|
id varchar(21) not null,
|
2022-06-23 21:26:30 -05:00
|
|
|
color jsonb /* @use Color */ not null,
|
2022-04-18 04:06:13 -05:00
|
|
|
branding jsonb /* @use Branding */ not null,
|
|
|
|
language_info jsonb /* @use LanguageInfo */ not null,
|
2022-12-15 04:04:42 -05:00
|
|
|
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,
|
2022-05-17 04:09:42 -05:00
|
|
|
social_sign_in_connector_targets jsonb /* @use ConnectorTargets */ not null default '[]'::jsonb,
|
2022-06-16 21:36:07 -05:00
|
|
|
sign_in_mode sign_in_mode not null default 'SignInAndRegister',
|
2022-01-24 22:48:47 -05:00
|
|
|
primary key (id)
|
2022-03-15 03:46:23 -05:00
|
|
|
);
|
2023-01-19 07:27:01 -05:00
|
|
|
|
|
|
|
create index sign_in_experiences__id
|
|
|
|
on sign_in_experiences (tenant_id, id);
|