fix: add firstName and lastName to user model (#473)

* fix: add firstname and lastanme to user model

* fix: avoid undefined in displayName resolve field

* fix: user firstName and lastName instead of firstname lastname

* fix: person table proper naming firstName lastName

* fix: migrate front with firstName and lastName

* fix: make front-graphql-generate not working
This commit is contained in:
Jérémy M
2023-06-29 17:11:15 +02:00
committed by GitHub
parent d9af205ccb
commit 097b278b11
100 changed files with 606 additions and 329 deletions

View File

@ -135,8 +135,14 @@ model User {
/// @Validator.IsOptional()
id String @id @default(uuid())
/// @Validator.IsString()
firstName String
/// @Validator.IsString()
lastName String
// @deprecated: Use `firstName` and `lastName` instead
/// @Validator.IsString()
/// @Validator.IsOptional()
displayName String
/// @TypeGraphQL.omit(input: false, output: true)
displayName String?
/// @Validator.IsEmail()
email String @unique
/// @Validator.IsBoolean()
@ -266,9 +272,9 @@ model Person {
/// @Validator.IsOptional()
id String @id @default(uuid())
/// @Validator.IsString()
firstname String
firstName String
/// @Validator.IsString()
lastname String
lastName String
/// @Validator.IsEmail()
email String
/// @Validator.IsPhoneNumber()