Files
DentalManagementMH06/packages/db/shared/schemas/objects/AppointmentCreateNestedOneWithoutFilesInput.schema.ts

15 lines
1.4 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AppointmentCreateWithoutFilesInputObjectSchema as AppointmentCreateWithoutFilesInputObjectSchema } from './AppointmentCreateWithoutFilesInput.schema';
import { AppointmentUncheckedCreateWithoutFilesInputObjectSchema as AppointmentUncheckedCreateWithoutFilesInputObjectSchema } from './AppointmentUncheckedCreateWithoutFilesInput.schema';
import { AppointmentCreateOrConnectWithoutFilesInputObjectSchema as AppointmentCreateOrConnectWithoutFilesInputObjectSchema } from './AppointmentCreateOrConnectWithoutFilesInput.schema';
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => AppointmentCreateWithoutFilesInputObjectSchema), z.lazy(() => AppointmentUncheckedCreateWithoutFilesInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => AppointmentCreateOrConnectWithoutFilesInputObjectSchema).optional(),
connect: z.lazy(() => AppointmentWhereUniqueInputObjectSchema).optional()
}).strict();
export const AppointmentCreateNestedOneWithoutFilesInputObjectSchema: z.ZodType<Prisma.AppointmentCreateNestedOneWithoutFilesInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentCreateNestedOneWithoutFilesInput>;
export const AppointmentCreateNestedOneWithoutFilesInputObjectZodSchema = makeSchema();