20 lines
883 B
TypeScript
20 lines
883 B
TypeScript
import { z } from 'zod';
|
|
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
|
import { AppointmentCreateWithoutPatientInputObjectSchema } from './AppointmentCreateWithoutPatientInput.schema';
|
|
import { AppointmentUncheckedCreateWithoutPatientInputObjectSchema } from './AppointmentUncheckedCreateWithoutPatientInput.schema';
|
|
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
const Schema: z.ZodType<Prisma.AppointmentCreateOrConnectWithoutPatientInput> =
|
|
z
|
|
.object({
|
|
where: z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
|
create: z.union([
|
|
z.lazy(() => AppointmentCreateWithoutPatientInputObjectSchema),
|
|
z.lazy(() => AppointmentUncheckedCreateWithoutPatientInputObjectSchema),
|
|
]),
|
|
})
|
|
.strict();
|
|
|
|
export const AppointmentCreateOrConnectWithoutPatientInputObjectSchema = Schema;
|