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

15 lines
1.4 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientCreateWithoutProceduresInputObjectSchema as PatientCreateWithoutProceduresInputObjectSchema } from './PatientCreateWithoutProceduresInput.schema';
import { PatientUncheckedCreateWithoutProceduresInputObjectSchema as PatientUncheckedCreateWithoutProceduresInputObjectSchema } from './PatientUncheckedCreateWithoutProceduresInput.schema';
import { PatientCreateOrConnectWithoutProceduresInputObjectSchema as PatientCreateOrConnectWithoutProceduresInputObjectSchema } from './PatientCreateOrConnectWithoutProceduresInput.schema';
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => PatientCreateWithoutProceduresInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutProceduresInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => PatientCreateOrConnectWithoutProceduresInputObjectSchema).optional(),
connect: z.lazy(() => PatientWhereUniqueInputObjectSchema).optional()
}).strict();
export const PatientCreateNestedOneWithoutProceduresInputObjectSchema: z.ZodType<Prisma.PatientCreateNestedOneWithoutProceduresInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateNestedOneWithoutProceduresInput>;
export const PatientCreateNestedOneWithoutProceduresInputObjectZodSchema = makeSchema();