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

16 lines
1.6 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientUpdateWithoutProceduresInputObjectSchema as PatientUpdateWithoutProceduresInputObjectSchema } from './PatientUpdateWithoutProceduresInput.schema';
import { PatientUncheckedUpdateWithoutProceduresInputObjectSchema as PatientUncheckedUpdateWithoutProceduresInputObjectSchema } from './PatientUncheckedUpdateWithoutProceduresInput.schema';
import { PatientCreateWithoutProceduresInputObjectSchema as PatientCreateWithoutProceduresInputObjectSchema } from './PatientCreateWithoutProceduresInput.schema';
import { PatientUncheckedCreateWithoutProceduresInputObjectSchema as PatientUncheckedCreateWithoutProceduresInputObjectSchema } from './PatientUncheckedCreateWithoutProceduresInput.schema';
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema'
const makeSchema = () => z.object({
update: z.union([z.lazy(() => PatientUpdateWithoutProceduresInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutProceduresInputObjectSchema)]),
create: z.union([z.lazy(() => PatientCreateWithoutProceduresInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutProceduresInputObjectSchema)]),
where: z.lazy(() => PatientWhereInputObjectSchema).optional()
}).strict();
export const PatientUpsertWithoutProceduresInputObjectSchema: z.ZodType<Prisma.PatientUpsertWithoutProceduresInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpsertWithoutProceduresInput>;
export const PatientUpsertWithoutProceduresInputObjectZodSchema = makeSchema();