import { z } from "zod";

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

export type schemaType = z.infer<typeof schema>;