import { InputType, Field, GraphQLISODateTime, ID } from "@nestjs/graphql";

@InputType()
export class CreatePersonInput {

    @Field()
    firstName: string;

    @Field()
    surname: string;

    @Field()
    middleName: string;

    @Field()
    sexCode: string;

    @Field({ nullable: true })
    personRef?: string;

    @Field({ nullable: true })
    personTag?: string;

    @Field()
    fatherName: string;

    @Field()
    motherName: string;

    @Field()
    countryCode: string;

    @Field()
    nationalIdentityId: string;

    @Field()
    birthPlace: string;

    @Field({ nullable: true })
    birthDate?: string;

    @Field()
    taxNo: string;

    @Field(() => ID, { nullable: true })
    birthname?: string;

    @Field(() => ID, { nullable: true })
    expiryStarts?: string;

    @Field(() => ID, { nullable: true })
    expiryEnds?: string;
}
