chore: reset initial prisma/migration
This commit is contained in:
@ -20,7 +20,7 @@ export const userSchema = {
|
||||
id,
|
||||
name: Type.String({ minLength: 1, maxLength: 30 }),
|
||||
email: Type.String({ minLength: 1, maxLength: 254, format: 'email' }),
|
||||
password: Type.String(),
|
||||
password: Type.String({ minLength: 1 }),
|
||||
logo: Type.String({ minLength: 1, format: 'uri-reference' }),
|
||||
status: Type.String({ minLength: 1, maxLength: 50 }),
|
||||
biography: Type.String({ minLength: 1, maxLength: 160 }),
|
||||
|
@ -8,10 +8,10 @@ export const themes = [Type.Literal('light'), Type.Literal('dark')]
|
||||
|
||||
export const userSettingsSchema = {
|
||||
id,
|
||||
language: Type.Union(languages),
|
||||
theme: Type.Union(themes),
|
||||
isPublicEmail: Type.Boolean(),
|
||||
isPublicGuilds: Type.Boolean(),
|
||||
language: Type.Union(languages, { default: 'en' }),
|
||||
theme: Type.Union(themes, { default: 'dark' }),
|
||||
isPublicEmail: Type.Boolean({ default: false }),
|
||||
isPublicGuilds: Type.Boolean({ default: false }),
|
||||
createdAt: date.createdAt,
|
||||
updatedAt: date.updatedAt,
|
||||
userId: id
|
||||
|
Reference in New Issue
Block a user