import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientCreateWithoutCloudFoldersInputObjectSchema as PatientCreateWithoutCloudFoldersInputObjectSchema } from './PatientCreateWithoutCloudFoldersInput.schema';
import { PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema as PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema } from './PatientUncheckedCreateWithoutCloudFoldersInput.schema';
import { PatientCreateOrConnectWithoutCloudFoldersInputObjectSchema as PatientCreateOrConnectWithoutCloudFoldersInputObjectSchema } from './PatientCreateOrConnectWithoutCloudFoldersInput.schema';
import { PatientUpsertWithoutCloudFoldersInputObjectSchema as PatientUpsertWithoutCloudFoldersInputObjectSchema } from './PatientUpsertWithoutCloudFoldersInput.schema';
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema';
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
import { PatientUpdateToOneWithWhereWithoutCloudFoldersInputObjectSchema as PatientUpdateToOneWithWhereWithoutCloudFoldersInputObjectSchema } from './PatientUpdateToOneWithWhereWithoutCloudFoldersInput.schema';
import { PatientUpdateWithoutCloudFoldersInputObjectSchema as PatientUpdateWithoutCloudFoldersInputObjectSchema } from './PatientUpdateWithoutCloudFoldersInput.schema';
import { PatientUncheckedUpdateWithoutCloudFoldersInputObjectSchema as PatientUncheckedUpdateWithoutCloudFoldersInputObjectSchema } from './PatientUncheckedUpdateWithoutCloudFoldersInput.schema'

const makeSchema = () => z.object({
  create: z.union([z.lazy(() => PatientCreateWithoutCloudFoldersInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema)]).optional(),
  connectOrCreate: z.lazy(() => PatientCreateOrConnectWithoutCloudFoldersInputObjectSchema).optional(),
  upsert: z.lazy(() => PatientUpsertWithoutCloudFoldersInputObjectSchema).optional(),
  disconnect: z.union([z.boolean(), z.lazy(() => PatientWhereInputObjectSchema)]).optional(),
  delete: z.union([z.boolean(), z.lazy(() => PatientWhereInputObjectSchema)]).optional(),
  connect: z.lazy(() => PatientWhereUniqueInputObjectSchema).optional(),
  update: z.union([z.lazy(() => PatientUpdateToOneWithWhereWithoutCloudFoldersInputObjectSchema), z.lazy(() => PatientUpdateWithoutCloudFoldersInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutCloudFoldersInputObjectSchema)]).optional()
}).strict();
export const PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema: z.ZodType<Prisma.PatientUpdateOneWithoutCloudFoldersNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpdateOneWithoutCloudFoldersNestedInput>;
export const PatientUpdateOneWithoutCloudFoldersNestedInputObjectZodSchema = makeSchema();
