13 lines
1.1 KiB
TypeScript
13 lines
1.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
|
import { AppointmentCreateWithoutUserInputObjectSchema as AppointmentCreateWithoutUserInputObjectSchema } from './AppointmentCreateWithoutUserInput.schema';
|
|
import { AppointmentUncheckedCreateWithoutUserInputObjectSchema as AppointmentUncheckedCreateWithoutUserInputObjectSchema } from './AppointmentUncheckedCreateWithoutUserInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => AppointmentCreateWithoutUserInputObjectSchema), z.lazy(() => AppointmentUncheckedCreateWithoutUserInputObjectSchema)])
|
|
}).strict();
|
|
export const AppointmentCreateOrConnectWithoutUserInputObjectSchema: z.ZodType<Prisma.AppointmentCreateOrConnectWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentCreateOrConnectWithoutUserInput>;
|
|
export const AppointmentCreateOrConnectWithoutUserInputObjectZodSchema = makeSchema();
|