Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/PatientCreateNestedOneWithoutPaymentInput.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 { PatientCreateWithoutPaymentInputObjectSchema as PatientCreateWithoutPaymentInputObjectSchema } from './PatientCreateWithoutPaymentInput.schema';
import { PatientUncheckedCreateWithoutPaymentInputObjectSchema as PatientUncheckedCreateWithoutPaymentInputObjectSchema } from './PatientUncheckedCreateWithoutPaymentInput.schema';
import { PatientCreateOrConnectWithoutPaymentInputObjectSchema as PatientCreateOrConnectWithoutPaymentInputObjectSchema } from './PatientCreateOrConnectWithoutPaymentInput.schema';
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => PatientCreateWithoutPaymentInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutPaymentInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => PatientCreateOrConnectWithoutPaymentInputObjectSchema).optional(),
connect: z.lazy(() => PatientWhereUniqueInputObjectSchema).optional()
}).strict();
export const PatientCreateNestedOneWithoutPaymentInputObjectSchema: z.ZodType<Prisma.PatientCreateNestedOneWithoutPaymentInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateNestedOneWithoutPaymentInput>;
export const PatientCreateNestedOneWithoutPaymentInputObjectZodSchema = makeSchema();