13 lines
1.2 KiB
TypeScript
13 lines
1.2 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
|
import { AppointmentCreateWithoutProceduresInputObjectSchema as AppointmentCreateWithoutProceduresInputObjectSchema } from './AppointmentCreateWithoutProceduresInput.schema';
|
|
import { AppointmentUncheckedCreateWithoutProceduresInputObjectSchema as AppointmentUncheckedCreateWithoutProceduresInputObjectSchema } from './AppointmentUncheckedCreateWithoutProceduresInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => AppointmentCreateWithoutProceduresInputObjectSchema), z.lazy(() => AppointmentUncheckedCreateWithoutProceduresInputObjectSchema)])
|
|
}).strict();
|
|
export const AppointmentCreateOrConnectWithoutProceduresInputObjectSchema: z.ZodType<Prisma.AppointmentCreateOrConnectWithoutProceduresInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentCreateOrConnectWithoutProceduresInput>;
|
|
export const AppointmentCreateOrConnectWithoutProceduresInputObjectZodSchema = makeSchema();
|