097b278b11
* 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
46 lines
2.0 KiB
TypeScript
46 lines
2.0 KiB
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { InputType } from '@nestjs/graphql';
|
|
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
|
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
|
import { HideField } from '@nestjs/graphql';
|
|
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
|
import { CompanyUpdateOneWithoutPeopleNestedInput } from '../company/company-update-one-without-people-nested.input';
|
|
import { WorkspaceUpdateOneRequiredWithoutPeopleNestedInput } from '../workspace/workspace-update-one-required-without-people-nested.input';
|
|
|
|
@InputType()
|
|
export class PersonUpdateInput {
|
|
|
|
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
|
id?: StringFieldUpdateOperationsInput;
|
|
|
|
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
|
firstName?: StringFieldUpdateOperationsInput;
|
|
|
|
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
|
lastName?: StringFieldUpdateOperationsInput;
|
|
|
|
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
|
email?: StringFieldUpdateOperationsInput;
|
|
|
|
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
|
phone?: StringFieldUpdateOperationsInput;
|
|
|
|
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
|
city?: StringFieldUpdateOperationsInput;
|
|
|
|
@HideField()
|
|
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
|
|
|
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
|
createdAt?: DateTimeFieldUpdateOperationsInput;
|
|
|
|
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
|
|
|
@Field(() => CompanyUpdateOneWithoutPeopleNestedInput, {nullable:true})
|
|
company?: CompanyUpdateOneWithoutPeopleNestedInput;
|
|
|
|
@HideField()
|
|
workspace?: WorkspaceUpdateOneRequiredWithoutPeopleNestedInput;
|
|
}
|