Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/PatientCreateOrConnectWithoutAppointmentsInput.schema.ts
2026-04-04 22:13:55 -04:00

13 lines
1.1 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
import { PatientCreateWithoutAppointmentsInputObjectSchema as PatientCreateWithoutAppointmentsInputObjectSchema } from './PatientCreateWithoutAppointmentsInput.schema';
import { PatientUncheckedCreateWithoutAppointmentsInputObjectSchema as PatientUncheckedCreateWithoutAppointmentsInputObjectSchema } from './PatientUncheckedCreateWithoutAppointmentsInput.schema'
const makeSchema = () => z.object({
where: z.lazy(() => PatientWhereUniqueInputObjectSchema),
create: z.union([z.lazy(() => PatientCreateWithoutAppointmentsInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutAppointmentsInputObjectSchema)])
}).strict();
export const PatientCreateOrConnectWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.PatientCreateOrConnectWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateOrConnectWithoutAppointmentsInput>;
export const PatientCreateOrConnectWithoutAppointmentsInputObjectZodSchema = makeSchema();