mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
fix(schemas): remove wrong default values from sign-in experience schema (#565)
This commit is contained in:
parent
975ed6b6c3
commit
afaaed9f29
2 changed files with 12 additions and 12 deletions
|
@ -19,10 +19,10 @@ import {
|
|||
|
||||
export type CreateSignInExperience = {
|
||||
id: string;
|
||||
branding?: Branding;
|
||||
languageInfo?: LanguageInfo;
|
||||
termsOfUse?: TermsOfUse;
|
||||
signInMethods?: SignInMethods;
|
||||
branding: Branding;
|
||||
languageInfo: LanguageInfo;
|
||||
termsOfUse: TermsOfUse;
|
||||
signInMethods: SignInMethods;
|
||||
socialSignInConnectorIds?: ConnectorIds;
|
||||
};
|
||||
|
||||
|
@ -37,10 +37,10 @@ export type SignInExperience = {
|
|||
|
||||
const createGuard: Guard<CreateSignInExperience> = z.object({
|
||||
id: z.string(),
|
||||
branding: brandingGuard.optional(),
|
||||
languageInfo: languageInfoGuard.optional(),
|
||||
termsOfUse: termsOfUseGuard.optional(),
|
||||
signInMethods: signInMethodsGuard.optional(),
|
||||
branding: brandingGuard,
|
||||
languageInfo: languageInfoGuard,
|
||||
termsOfUse: termsOfUseGuard,
|
||||
signInMethods: signInMethodsGuard,
|
||||
socialSignInConnectorIds: connectorIdsGuard.optional(),
|
||||
});
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
create table sign_in_experiences (
|
||||
id varchar(21) not null,
|
||||
branding jsonb /* @use Branding */ not null default '{}'::jsonb,
|
||||
language_info jsonb /* @use LanguageInfo */ not null default '{}'::jsonb,
|
||||
terms_of_use jsonb /* @use TermsOfUse */ not null default '{}'::jsonb,
|
||||
sign_in_methods jsonb /* @use SignInMethods */ not null default '{}'::jsonb,
|
||||
branding jsonb /* @use Branding */ not null,
|
||||
language_info jsonb /* @use LanguageInfo */ not null,
|
||||
terms_of_use jsonb /* @use TermsOfUse */ not null,
|
||||
sign_in_methods jsonb /* @use SignInMethods */ not null,
|
||||
social_sign_in_connector_ids jsonb /* @use ConnectorIds */ not null default '[]'::jsonb,
|
||||
primary key (id)
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue