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

21 lines
2.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 { PatientUpsertWithoutPaymentInputObjectSchema as PatientUpsertWithoutPaymentInputObjectSchema } from './PatientUpsertWithoutPaymentInput.schema';
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
import { PatientUpdateToOneWithWhereWithoutPaymentInputObjectSchema as PatientUpdateToOneWithWhereWithoutPaymentInputObjectSchema } from './PatientUpdateToOneWithWhereWithoutPaymentInput.schema';
import { PatientUpdateWithoutPaymentInputObjectSchema as PatientUpdateWithoutPaymentInputObjectSchema } from './PatientUpdateWithoutPaymentInput.schema';
import { PatientUncheckedUpdateWithoutPaymentInputObjectSchema as PatientUncheckedUpdateWithoutPaymentInputObjectSchema } from './PatientUncheckedUpdateWithoutPaymentInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => PatientCreateWithoutPaymentInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutPaymentInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => PatientCreateOrConnectWithoutPaymentInputObjectSchema).optional(),
upsert: z.lazy(() => PatientUpsertWithoutPaymentInputObjectSchema).optional(),
connect: z.lazy(() => PatientWhereUniqueInputObjectSchema).optional(),
update: z.union([z.lazy(() => PatientUpdateToOneWithWhereWithoutPaymentInputObjectSchema), z.lazy(() => PatientUpdateWithoutPaymentInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutPaymentInputObjectSchema)]).optional()
}).strict();
export const PatientUpdateOneRequiredWithoutPaymentNestedInputObjectSchema: z.ZodType<Prisma.PatientUpdateOneRequiredWithoutPaymentNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpdateOneRequiredWithoutPaymentNestedInput>;
export const PatientUpdateOneRequiredWithoutPaymentNestedInputObjectZodSchema = makeSchema();