import { Field, ObjectType } from '@nestjs/graphql';
import { UUID } from '../../global/scalars/UUID';
import { EmailAddress } from '../../global/scalars/EmailAddress'

@ObjectType()
export class Person {
    @Field(() => UUID,{ nullable: false })
    _id: UUID

    @Field(() => String, { nullable: false })
    givenName: string

    @Field(() => String, { nullable: false })
    familyName: string

    @Field(() => EmailAddress , { nullable: false })
    email: EmailAddress
}