17 lines
2.0 KiB
TypeScript
17 lines
2.0 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { AppointmentCreateWithoutUserInputObjectSchema as AppointmentCreateWithoutUserInputObjectSchema } from './AppointmentCreateWithoutUserInput.schema';
|
|
import { AppointmentUncheckedCreateWithoutUserInputObjectSchema as AppointmentUncheckedCreateWithoutUserInputObjectSchema } from './AppointmentUncheckedCreateWithoutUserInput.schema';
|
|
import { AppointmentCreateOrConnectWithoutUserInputObjectSchema as AppointmentCreateOrConnectWithoutUserInputObjectSchema } from './AppointmentCreateOrConnectWithoutUserInput.schema';
|
|
import { AppointmentCreateManyUserInputEnvelopeObjectSchema as AppointmentCreateManyUserInputEnvelopeObjectSchema } from './AppointmentCreateManyUserInputEnvelope.schema';
|
|
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => AppointmentCreateWithoutUserInputObjectSchema), z.lazy(() => AppointmentCreateWithoutUserInputObjectSchema).array(), z.lazy(() => AppointmentUncheckedCreateWithoutUserInputObjectSchema), z.lazy(() => AppointmentUncheckedCreateWithoutUserInputObjectSchema).array()]).optional(),
|
|
connectOrCreate: z.union([z.lazy(() => AppointmentCreateOrConnectWithoutUserInputObjectSchema), z.lazy(() => AppointmentCreateOrConnectWithoutUserInputObjectSchema).array()]).optional(),
|
|
createMany: z.lazy(() => AppointmentCreateManyUserInputEnvelopeObjectSchema).optional(),
|
|
connect: z.union([z.lazy(() => AppointmentWhereUniqueInputObjectSchema), z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array()]).optional()
|
|
}).strict();
|
|
export const AppointmentUncheckedCreateNestedManyWithoutUserInputObjectSchema: z.ZodType<Prisma.AppointmentUncheckedCreateNestedManyWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUncheckedCreateNestedManyWithoutUserInput>;
|
|
export const AppointmentUncheckedCreateNestedManyWithoutUserInputObjectZodSchema = makeSchema();
|