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:
@ -9,10 +9,10 @@ export class PersonCountAggregateInput {
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
firstname?: true;
|
||||
firstName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
lastname?: true;
|
||||
lastName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
email?: true;
|
||||
|
||||
@ -10,10 +10,10 @@ export class PersonCountAggregate {
|
||||
id!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
firstname!: number;
|
||||
firstName!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
lastname!: number;
|
||||
lastName!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
email!: number;
|
||||
|
||||
@ -10,10 +10,10 @@ export class PersonCountOrderByAggregateInput {
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstname?: keyof typeof SortOrder;
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastname?: keyof typeof SortOrder;
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@ -13,11 +13,11 @@ export class PersonCreateManyCompanyInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -13,11 +13,11 @@ export class PersonCreateManyWorkspaceInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -13,11 +13,11 @@ export class PersonCreateManyInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -14,11 +14,11 @@ export class PersonCreateWithoutCompanyInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -14,11 +14,11 @@ export class PersonCreateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -15,11 +15,11 @@ export class PersonCreateInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -16,11 +16,11 @@ export class PersonGroupBy {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -9,10 +9,10 @@ export class PersonMaxAggregateInput {
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
firstname?: true;
|
||||
firstName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
lastname?: true;
|
||||
lastName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
email?: true;
|
||||
|
||||
@ -13,11 +13,11 @@ export class PersonMaxAggregate {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
firstname?: string;
|
||||
firstName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
lastname?: string;
|
||||
lastName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -10,10 +10,10 @@ export class PersonMaxOrderByAggregateInput {
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstname?: keyof typeof SortOrder;
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastname?: keyof typeof SortOrder;
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@ -9,10 +9,10 @@ export class PersonMinAggregateInput {
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
firstname?: true;
|
||||
firstName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
lastname?: true;
|
||||
lastName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
email?: true;
|
||||
|
||||
@ -13,11 +13,11 @@ export class PersonMinAggregate {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
firstname?: string;
|
||||
firstName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
lastname?: string;
|
||||
lastName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -10,10 +10,10 @@ export class PersonMinOrderByAggregateInput {
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstname?: keyof typeof SortOrder;
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastname?: keyof typeof SortOrder;
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@ -13,10 +13,10 @@ export class PersonOrderByWithAggregationInput {
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstname?: keyof typeof SortOrder;
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastname?: keyof typeof SortOrder;
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@ -12,10 +12,10 @@ export class PersonOrderByWithRelationInput {
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstname?: keyof typeof SortOrder;
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastname?: keyof typeof SortOrder;
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@ -2,8 +2,8 @@ import { registerEnumType } from '@nestjs/graphql';
|
||||
|
||||
export enum PersonScalarFieldEnum {
|
||||
id = "id",
|
||||
firstname = "firstname",
|
||||
lastname = "lastname",
|
||||
firstName = "firstName",
|
||||
lastName = "lastName",
|
||||
email = "email",
|
||||
phone = "phone",
|
||||
city = "city",
|
||||
|
||||
@ -22,10 +22,10 @@ export class PersonScalarWhereWithAggregatesInput {
|
||||
id?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
firstname?: StringWithAggregatesFilter;
|
||||
firstName?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
lastname?: StringWithAggregatesFilter;
|
||||
lastName?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
email?: StringWithAggregatesFilter;
|
||||
|
||||
@ -22,10 +22,10 @@ export class PersonScalarWhereInput {
|
||||
id?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
firstname?: StringFilter;
|
||||
firstName?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
lastname?: StringFilter;
|
||||
lastName?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
email?: StringFilter;
|
||||
|
||||
@ -13,11 +13,11 @@ export class PersonUncheckedCreateWithoutCompanyInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -13,11 +13,11 @@ export class PersonUncheckedCreateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -13,11 +13,11 @@ export class PersonUncheckedCreateInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -13,10 +13,10 @@ export class PersonUncheckedUpdateManyWithoutPeopleInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -13,10 +13,10 @@ export class PersonUncheckedUpdateManyInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -12,10 +12,10 @@ export class PersonUncheckedUpdateWithoutCompanyInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -13,10 +13,10 @@ export class PersonUncheckedUpdateWithoutWorkspaceInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -13,10 +13,10 @@ export class PersonUncheckedUpdateInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -12,10 +12,10 @@ export class PersonUpdateManyMutationInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -13,10 +13,10 @@ export class PersonUpdateWithoutCompanyInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -13,10 +13,10 @@ export class PersonUpdateWithoutWorkspaceInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -14,10 +14,10 @@ export class PersonUpdateInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstname?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastname?: StringFieldUpdateOperationsInput;
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -24,10 +24,10 @@ export class PersonWhereInput {
|
||||
id?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
firstname?: StringFilter;
|
||||
firstName?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
lastname?: StringFilter;
|
||||
lastName?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
email?: StringFilter;
|
||||
|
||||
@ -12,10 +12,10 @@ export class Person {
|
||||
id!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
firstname!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
lastname!: string;
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
email!: string;
|
||||
|
||||
@ -8,6 +8,12 @@ export class UserCountAggregateInput {
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
firstName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
lastName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
displayName?: true;
|
||||
|
||||
|
||||
@ -10,6 +10,12 @@ export class UserCountAggregate {
|
||||
id!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
firstName!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
lastName!: number;
|
||||
|
||||
@HideField()
|
||||
displayName!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
|
||||
@ -9,6 +9,12 @@ export class UserCountOrderByAggregateInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -14,8 +14,16 @@ export class UserCreateManyInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -17,8 +17,16 @@ export class UserCreateWithoutCommentsInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -17,8 +17,16 @@ export class UserCreateWithoutCompaniesInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -17,8 +17,16 @@ export class UserCreateWithoutRefreshTokensInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -17,8 +17,16 @@ export class UserCreateWithoutWorkspaceMemberInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -18,8 +18,16 @@ export class UserCreateInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -17,8 +17,14 @@ export class UserGroupBy {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@HideField()
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -8,6 +8,12 @@ export class UserMaxAggregateInput {
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
firstName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
lastName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
displayName?: true;
|
||||
|
||||
|
||||
@ -13,7 +13,13 @@ export class UserMaxAggregate {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
firstName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
lastName?: string;
|
||||
|
||||
@HideField()
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
|
||||
@ -9,6 +9,12 @@ export class UserMaxOrderByAggregateInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -8,6 +8,12 @@ export class UserMinAggregateInput {
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
firstName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
lastName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
displayName?: true;
|
||||
|
||||
|
||||
@ -13,7 +13,13 @@ export class UserMinAggregate {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
firstName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
lastName?: string;
|
||||
|
||||
@HideField()
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
|
||||
@ -9,6 +9,12 @@ export class UserMinOrderByAggregateInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -12,6 +12,12 @@ export class UserOrderByWithAggregationInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -13,6 +13,12 @@ export class UserOrderByWithRelationInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
firstName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
lastName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -2,6 +2,8 @@ import { registerEnumType } from '@nestjs/graphql';
|
||||
|
||||
export enum UserScalarFieldEnum {
|
||||
id = "id",
|
||||
firstName = "firstName",
|
||||
lastName = "lastName",
|
||||
displayName = "displayName",
|
||||
email = "email",
|
||||
emailVerified = "emailVerified",
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
|
||||
import { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input';
|
||||
import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input';
|
||||
import { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input';
|
||||
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { JsonNullableWithAggregatesFilter } from '../prisma/json-nullable-with-aggregates-filter.input';
|
||||
@ -24,7 +24,13 @@ export class UserScalarWhereWithAggregatesInput {
|
||||
id?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
displayName?: StringWithAggregatesFilter;
|
||||
firstName?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
lastName?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, {nullable:true})
|
||||
displayName?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
email?: StringWithAggregatesFilter;
|
||||
|
||||
@ -17,8 +17,16 @@ export class UserUncheckedCreateWithoutCommentsInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -17,8 +17,16 @@ export class UserUncheckedCreateWithoutCompaniesInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -17,8 +17,16 @@ export class UserUncheckedCreateWithoutRefreshTokensInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -17,8 +17,16 @@ export class UserUncheckedCreateWithoutWorkspaceMemberInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -18,8 +18,16 @@ export class UserUncheckedCreateInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
lastName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
displayName!: string;
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -16,7 +16,13 @@ export class UserUncheckedUpdateManyInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -19,7 +19,13 @@ export class UserUncheckedUpdateWithoutCommentsInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -19,7 +19,13 @@ export class UserUncheckedUpdateWithoutCompaniesInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -19,7 +19,13 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -19,7 +19,13 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -20,7 +20,13 @@ export class UserUncheckedUpdateInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -16,7 +16,13 @@ export class UserUpdateManyMutationInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -19,7 +19,13 @@ export class UserUpdateWithoutCommentsInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -19,7 +19,13 @@ export class UserUpdateWithoutCompaniesInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -19,7 +19,13 @@ export class UserUpdateWithoutRefreshTokensInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -19,7 +19,13 @@ export class UserUpdateWithoutWorkspaceMemberInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
@ -20,7 +20,13 @@ export class UserUpdateInput {
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
firstName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { BoolFilter } from '../prisma/bool-filter.input';
|
||||
import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
|
||||
import { BoolFilter } from '../prisma/bool-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { JsonNullableFilter } from '../prisma/json-nullable-filter.input';
|
||||
@ -28,7 +28,13 @@ export class UserWhereInput {
|
||||
id?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
displayName?: StringFilter;
|
||||
firstName?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
lastName?: StringFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, {nullable:true})
|
||||
displayName?: StringNullableFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
email?: StringFilter;
|
||||
|
||||
@ -16,7 +16,13 @@ export class User {
|
||||
id!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
firstName!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
lastName!: string;
|
||||
|
||||
@HideField()
|
||||
displayName!: string | null;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
email!: string;
|
||||
|
||||
@ -10,7 +10,6 @@ import { AuthGuard } from '@nestjs/passport';
|
||||
import { Response } from 'express';
|
||||
import { GoogleRequest } from '../strategies/google.auth.strategy';
|
||||
import { UserService } from '../../user/user.service';
|
||||
import { assertNotNull } from 'src/utils/assert';
|
||||
import { TokenService } from '../services/token.service';
|
||||
|
||||
@Controller('auth/google')
|
||||
@ -31,12 +30,12 @@ export class GoogleAuthController {
|
||||
@UseGuards(AuthGuard('google'))
|
||||
async googleAuthRedirect(@Req() req: GoogleRequest, @Res() res: Response) {
|
||||
const { firstName, lastName, email } = req.user;
|
||||
const displayName = [firstName, lastName].filter(assertNotNull).join(' ');
|
||||
|
||||
const user = await this.userService.createUser({
|
||||
data: {
|
||||
email,
|
||||
displayName,
|
||||
firstName: firstName ?? '',
|
||||
lastName: lastName ?? '',
|
||||
locale: 'en',
|
||||
},
|
||||
});
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import {
|
||||
IsEmail,
|
||||
IsNotEmpty,
|
||||
IsOptional,
|
||||
IsString,
|
||||
Matches,
|
||||
MinLength,
|
||||
@ -22,8 +23,21 @@ export class RegisterInput {
|
||||
@Matches(PASSWORD_REGEX, { message: 'password too weak' })
|
||||
password: string;
|
||||
|
||||
@Field(() => String, {
|
||||
deprecationReason: 'Deprecated, please use firstName and lastName instead',
|
||||
nullable: true,
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String)
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
displayName: string;
|
||||
firstName: string;
|
||||
|
||||
@Field(() => String)
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
lastName: string;
|
||||
}
|
||||
|
||||
@ -43,7 +43,8 @@ export class AuthService {
|
||||
|
||||
const user = await this.userService.createUser({
|
||||
data: {
|
||||
displayName: registerInput.displayName,
|
||||
firstName: registerInput.firstName,
|
||||
lastName: registerInput.lastName,
|
||||
email: registerInput.email,
|
||||
passwordHash,
|
||||
locale: 'en',
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as TypeGraphQL from '@nestjs/graphql';
|
||||
import { Resolver, ResolveField, Root, Int } from '@nestjs/graphql';
|
||||
import { CommentThread } from 'src/core/@generated/comment-thread/comment-thread.model';
|
||||
import { Comment } from 'src/core/@generated/comment/comment.model';
|
||||
import { Company } from 'src/core/@generated/company/company.model';
|
||||
@ -9,18 +9,18 @@ import {
|
||||
PrismaSelector,
|
||||
} from 'src/decorators/prisma-select.decorator';
|
||||
|
||||
@TypeGraphQL.Resolver(() => Company)
|
||||
@Resolver(() => Company)
|
||||
export class CompanyRelationsResolver {
|
||||
constructor(
|
||||
private readonly commentThreadService: CommentThreadService,
|
||||
private readonly commentService: CommentService,
|
||||
) {}
|
||||
|
||||
@TypeGraphQL.ResolveField(() => [CommentThread], {
|
||||
@ResolveField(() => [CommentThread], {
|
||||
nullable: false,
|
||||
})
|
||||
async commentThreads(
|
||||
@TypeGraphQL.Root() company: Company,
|
||||
@Root() company: Company,
|
||||
@PrismaSelector({ modelName: 'CommentThread' })
|
||||
prismaSelect: PrismaSelect<'CommentThread'>,
|
||||
): Promise<Partial<CommentThread>[]> {
|
||||
@ -37,11 +37,11 @@ export class CompanyRelationsResolver {
|
||||
});
|
||||
}
|
||||
|
||||
@TypeGraphQL.ResolveField(() => [Comment], {
|
||||
@ResolveField(() => [Comment], {
|
||||
nullable: false,
|
||||
})
|
||||
async comments(
|
||||
@TypeGraphQL.Root() company: Company,
|
||||
@Root() company: Company,
|
||||
@PrismaSelector({ modelName: 'Comment' })
|
||||
prismaSelect: PrismaSelect<'Comment'>,
|
||||
): Promise<Partial<Comment>[]> {
|
||||
@ -60,10 +60,10 @@ export class CompanyRelationsResolver {
|
||||
});
|
||||
}
|
||||
|
||||
@TypeGraphQL.ResolveField(() => TypeGraphQL.Int, {
|
||||
@ResolveField(() => Int, {
|
||||
nullable: false,
|
||||
})
|
||||
async _commentCount(@TypeGraphQL.Root() company: Company): Promise<number> {
|
||||
async _commentCount(@Root() company: Company): Promise<number> {
|
||||
return this.commentService.count({
|
||||
where: {
|
||||
commentThread: {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as TypeGraphQL from '@nestjs/graphql';
|
||||
import { Resolver, Root, ResolveField, Int } from '@nestjs/graphql';
|
||||
import { CommentThread } from 'src/core/@generated/comment-thread/comment-thread.model';
|
||||
import { Comment } from 'src/core/@generated/comment/comment.model';
|
||||
import { Person } from 'src/core/@generated/person/person.model';
|
||||
@ -9,18 +9,18 @@ import {
|
||||
PrismaSelector,
|
||||
} from 'src/decorators/prisma-select.decorator';
|
||||
|
||||
@TypeGraphQL.Resolver(() => Person)
|
||||
@Resolver(() => Person)
|
||||
export class PersonRelationsResolver {
|
||||
constructor(
|
||||
private readonly commentThreadService: CommentThreadService,
|
||||
private readonly commentService: CommentService,
|
||||
) {}
|
||||
|
||||
@TypeGraphQL.ResolveField(() => [CommentThread], {
|
||||
@ResolveField(() => [CommentThread], {
|
||||
nullable: false,
|
||||
})
|
||||
async commentThreads(
|
||||
@TypeGraphQL.Root() person: Person,
|
||||
@Root() person: Person,
|
||||
@PrismaSelector({ modelName: 'CommentThread' })
|
||||
prismaSelect: PrismaSelect<'CommentThread'>,
|
||||
): Promise<Partial<CommentThread>[]> {
|
||||
@ -37,11 +37,11 @@ export class PersonRelationsResolver {
|
||||
});
|
||||
}
|
||||
|
||||
@TypeGraphQL.ResolveField(() => [Comment], {
|
||||
@ResolveField(() => [Comment], {
|
||||
nullable: false,
|
||||
})
|
||||
async comments(
|
||||
@TypeGraphQL.Root() person: Person,
|
||||
@Root() person: Person,
|
||||
@PrismaSelector({ modelName: 'Comment' })
|
||||
prismaSelect: PrismaSelect<'Comment'>,
|
||||
): Promise<Partial<Comment>[]> {
|
||||
@ -60,10 +60,10 @@ export class PersonRelationsResolver {
|
||||
});
|
||||
}
|
||||
|
||||
@TypeGraphQL.ResolveField(() => TypeGraphQL.Int, {
|
||||
@ResolveField(() => Int, {
|
||||
nullable: false,
|
||||
})
|
||||
async _commentCount(@TypeGraphQL.Root() person: Person): Promise<number> {
|
||||
async _commentCount(@Root() person: Person): Promise<number> {
|
||||
return this.commentService.count({
|
||||
where: {
|
||||
commentThread: {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { Args, Resolver, Query } from '@nestjs/graphql';
|
||||
import { Args, Resolver, Query, ResolveField, Parent } from '@nestjs/graphql';
|
||||
import { UserService } from './user.service';
|
||||
import { FindManyUserArgs } from 'src/core/@generated/user/find-many-user.args';
|
||||
import { Workspace } from '@prisma/client';
|
||||
@ -46,4 +46,16 @@ export class UserResolver {
|
||||
select: prismaSelect.value,
|
||||
});
|
||||
}
|
||||
|
||||
@ResolveField(() => String, {
|
||||
nullable: false,
|
||||
})
|
||||
displayName(@Parent() parent: User): string {
|
||||
// TODO: Should be removed when displayName is removed from the database
|
||||
if (!parent.firstName && !parent.lastName) {
|
||||
return parent.displayName ?? '';
|
||||
}
|
||||
|
||||
return `${parent.firstName} ${parent.lastName}`;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as TypeGraphQL from '@nestjs/graphql';
|
||||
import { Resolver } from '@nestjs/graphql';
|
||||
import { WorkspaceMember } from '../../@generated/workspace-member/workspace-member.model';
|
||||
|
||||
@TypeGraphQL.Resolver(() => WorkspaceMember)
|
||||
@Resolver(() => WorkspaceMember)
|
||||
export class WorkspaceMemberResolver {}
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `firstName` to the `users` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `lastName` to the `users` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" ADD COLUMN "firstName" TEXT NOT NULL DEFAULT '',
|
||||
ADD COLUMN "lastName" TEXT NOT NULL DEFAULT '',
|
||||
ALTER COLUMN "displayName" DROP NOT NULL;
|
||||
@ -0,0 +1,19 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "people"
|
||||
ADD COLUMN "firstName" TEXT,
|
||||
ADD COLUMN "lastName" TEXT;
|
||||
|
||||
-- Update new columns using old columns
|
||||
UPDATE "people"
|
||||
SET "firstName" = "firstname",
|
||||
"lastName" = "lastname";
|
||||
|
||||
-- Drop old columns
|
||||
ALTER TABLE "people"
|
||||
DROP COLUMN "firstname",
|
||||
DROP COLUMN "lastname";
|
||||
|
||||
-- Make new columns NOT NULL
|
||||
ALTER TABLE "people"
|
||||
ALTER COLUMN "firstName" SET NOT NULL,
|
||||
ALTER COLUMN "lastName" SET NOT NULL;
|
||||
@ -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()
|
||||
|
||||
@ -5,8 +5,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-86083141-1c0e-494c-a1b6-85b1c6fefaa5',
|
||||
firstname: 'Christoph',
|
||||
lastname: 'Callisto',
|
||||
firstName: 'Christoph',
|
||||
lastName: 'Callisto',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33789012345',
|
||||
city: 'Seattle',
|
||||
@ -20,8 +20,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-0aa00beb-ac73-4797-824e-87a1f5aea9e0',
|
||||
firstname: 'Sylvie',
|
||||
lastname: 'Palmer',
|
||||
firstName: 'Sylvie',
|
||||
lastName: 'Palmer',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33780123456',
|
||||
city: 'Los Angeles',
|
||||
@ -35,8 +35,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-93c72d2e-f517-42fd-80ae-14173b3b70ae',
|
||||
firstname: 'Christopher',
|
||||
lastname: 'Gonzalez',
|
||||
firstName: 'Christopher',
|
||||
lastName: 'Gonzalez',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33789012345',
|
||||
city: 'Seattle',
|
||||
@ -50,8 +50,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-eeeacacf-eee1-4690-ad2c-8619e5b56a2e',
|
||||
firstname: 'Ashley',
|
||||
lastname: 'Parker',
|
||||
firstName: 'Ashley',
|
||||
lastName: 'Parker',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33780123456',
|
||||
city: 'Los Angeles',
|
||||
@ -65,8 +65,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-9b324a88-6784-4449-afdf-dc62cb8702f2',
|
||||
firstname: 'Nicholas',
|
||||
lastname: 'Wright',
|
||||
firstName: 'Nicholas',
|
||||
lastName: 'Wright',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33781234567',
|
||||
city: 'Seattle',
|
||||
@ -80,8 +80,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-1d151852-490f-4466-8391-733cfd66a0c8',
|
||||
firstname: 'Isabella',
|
||||
lastname: 'Scott',
|
||||
firstName: 'Isabella',
|
||||
lastName: 'Scott',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33782345678',
|
||||
city: 'New York',
|
||||
@ -95,8 +95,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-98406e26-80f1-4dff-b570-a74942528de3',
|
||||
firstname: 'Matthew',
|
||||
lastname: 'Green',
|
||||
firstName: 'Matthew',
|
||||
lastName: 'Green',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33783456789',
|
||||
city: 'Seattle',
|
||||
@ -110,8 +110,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-a2e78a5f-338b-46df-8811-fa08c7d19d35',
|
||||
firstname: 'Elizabeth',
|
||||
lastname: 'Baker',
|
||||
firstName: 'Elizabeth',
|
||||
lastName: 'Baker',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33784567890',
|
||||
city: 'New York',
|
||||
@ -125,8 +125,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-ca1f5bf3-64ad-4b0e-bbfd-e9fd795b7016',
|
||||
firstname: 'Christopher',
|
||||
lastname: 'Nelson',
|
||||
firstName: 'Christopher',
|
||||
lastName: 'Nelson',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33785678901',
|
||||
city: 'San Francisco',
|
||||
@ -140,8 +140,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-56955422-5d54-41b7-ba36-f0d20e1417ae',
|
||||
firstname: 'Avery',
|
||||
lastname: 'Carter',
|
||||
firstName: 'Avery',
|
||||
lastName: 'Carter',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33786789012',
|
||||
city: 'New York',
|
||||
@ -155,8 +155,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-755035db-623d-41fe-92e7-dd45b7c568e1',
|
||||
firstname: 'Ethan',
|
||||
lastname: 'Mitchell',
|
||||
firstName: 'Ethan',
|
||||
lastName: 'Mitchell',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33787890123',
|
||||
city: 'Los Angeles',
|
||||
@ -170,8 +170,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190ef',
|
||||
firstname: 'Madison',
|
||||
lastname: 'Perez',
|
||||
firstName: 'Madison',
|
||||
lastName: 'Perez',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33788901234',
|
||||
city: 'Seattle',
|
||||
@ -185,8 +185,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190df',
|
||||
firstname: 'Bertrand',
|
||||
lastname: 'Voulzy',
|
||||
firstName: 'Bertrand',
|
||||
lastName: 'Voulzy',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33788901234',
|
||||
city: 'Seattle',
|
||||
@ -200,8 +200,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190dg',
|
||||
firstname: 'Louis',
|
||||
lastname: 'Duss',
|
||||
firstName: 'Louis',
|
||||
lastName: 'Duss',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
phone: '+33788901234',
|
||||
city: 'Seattle',
|
||||
@ -215,8 +215,8 @@ export const seedPeople = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-dev-240da2ec-2d40-4e49-8df4-9c6a049190dh',
|
||||
firstname: 'Lorie',
|
||||
lastname: 'Vladim',
|
||||
firstName: 'Lorie',
|
||||
lastName: 'Vladim',
|
||||
workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420',
|
||||
phone: '+33788901235',
|
||||
city: 'Seattle',
|
||||
|
||||
@ -5,7 +5,8 @@ export const seedUsers = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfc102',
|
||||
displayName: 'Tim Apple',
|
||||
firstName: 'Tim',
|
||||
lastName: 'Apple',
|
||||
email: 'tim@apple.dev',
|
||||
passwordHash:
|
||||
'$2a$10$p2Pqc80JZX6bx/PkZJkC9OA/AasSHM7PMBk7mR3PCM0XSeKwDtwNa', // applecar2025
|
||||
@ -30,7 +31,8 @@ export const seedUsers = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408',
|
||||
displayName: 'Jony Ive',
|
||||
firstName: 'Jony',
|
||||
lastName: 'Ive',
|
||||
email: 'jony.ive@apple.dev',
|
||||
locale: 'en',
|
||||
avatarUrl:
|
||||
@ -49,7 +51,8 @@ export const seedUsers = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-gk256b39-3ec3-4fe3-8997-b76aa0bfa408',
|
||||
displayName: 'Phil Schiler',
|
||||
firstName: 'Phil',
|
||||
lastName: 'Schiler',
|
||||
email: 'phil.schiler@apple.dev',
|
||||
locale: 'en',
|
||||
avatarUrl:
|
||||
@ -68,7 +71,8 @@ export const seedUsers = async (prisma: PrismaClient) => {
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-dev-gk256b39-3ec3-4fe3-8997-b76aa0boa408',
|
||||
displayName: 'Charles Bochet',
|
||||
firstName: 'Charles',
|
||||
lastName: 'Bochet',
|
||||
email: 'charles@twenty.dev',
|
||||
locale: 'en',
|
||||
workspaceMember: {
|
||||
|
||||
Reference in New Issue
Block a user