Files
DentalManagementElogin/packages/db/shared/schemas/objects/AppointmentUpdateWithWhereUniqueWithoutPatientInput.schema.ts
2025-05-08 21:27:29 +05:30

21 lines
895 B
TypeScript

import { z } from 'zod';
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
import { AppointmentUpdateWithoutPatientInputObjectSchema } from './AppointmentUpdateWithoutPatientInput.schema';
import { AppointmentUncheckedUpdateWithoutPatientInputObjectSchema } from './AppointmentUncheckedUpdateWithoutPatientInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.AppointmentUpdateWithWhereUniqueWithoutPatientInput> =
z
.object({
where: z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
data: z.union([
z.lazy(() => AppointmentUpdateWithoutPatientInputObjectSchema),
z.lazy(() => AppointmentUncheckedUpdateWithoutPatientInputObjectSchema),
]),
})
.strict();
export const AppointmentUpdateWithWhereUniqueWithoutPatientInputObjectSchema =
Schema;