import { z } from "zod"

export const personAddSchema = z.object({
    firstName: z.string(),
    surname: z.string(),
    middleName: z.string().optional(),
    sexCode: z.string(),
    personRef: z.string().optional(),
    personTag: z.string().optional(),
    fatherName: z.string().optional(),
    motherName: z.string().optional(),
    countryCode: z.string(),
    nationalIdentityId: z.string(),
    birthPlace: z.string(),
    birthDate: z.string(),
    taxNo: z.string().optional(),
    birthname: z.string().optional(),
    expiryStarts: z.string(),
    expiryEnds: z.string(),
});

export type PeopleAdd = z.infer<typeof personAddSchema>;
