Files
DentalManagement09/packages/db/shared/schemas/objects/PatientServiceHistoryCreateOrConnectWithoutPatientInput.schema.ts
T

13 lines
1.3 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientServiceHistoryWhereUniqueInputObjectSchema as PatientServiceHistoryWhereUniqueInputObjectSchema } from './PatientServiceHistoryWhereUniqueInput.schema';
import { PatientServiceHistoryCreateWithoutPatientInputObjectSchema as PatientServiceHistoryCreateWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateWithoutPatientInput.schema';
import { PatientServiceHistoryUncheckedCreateWithoutPatientInputObjectSchema as PatientServiceHistoryUncheckedCreateWithoutPatientInputObjectSchema } from './PatientServiceHistoryUncheckedCreateWithoutPatientInput.schema'
const makeSchema = () => z.object({
where: z.lazy(() => PatientServiceHistoryWhereUniqueInputObjectSchema),
create: z.union([z.lazy(() => PatientServiceHistoryCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientServiceHistoryUncheckedCreateWithoutPatientInputObjectSchema)])
}).strict();
export const PatientServiceHistoryCreateOrConnectWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientServiceHistoryCreateOrConnectWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientServiceHistoryCreateOrConnectWithoutPatientInput>;
export const PatientServiceHistoryCreateOrConnectWithoutPatientInputObjectZodSchema = makeSchema();