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

23 lines
1.1 KiB
TypeScript

import { z } from 'zod';
import { PatientUpdateWithoutAppointmentsInputObjectSchema } from './PatientUpdateWithoutAppointmentsInput.schema';
import { PatientUncheckedUpdateWithoutAppointmentsInputObjectSchema } from './PatientUncheckedUpdateWithoutAppointmentsInput.schema';
import { PatientCreateWithoutAppointmentsInputObjectSchema } from './PatientCreateWithoutAppointmentsInput.schema';
import { PatientUncheckedCreateWithoutAppointmentsInputObjectSchema } from './PatientUncheckedCreateWithoutAppointmentsInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.PatientUpsertWithoutAppointmentsInput> = z
.object({
update: z.union([
z.lazy(() => PatientUpdateWithoutAppointmentsInputObjectSchema),
z.lazy(() => PatientUncheckedUpdateWithoutAppointmentsInputObjectSchema),
]),
create: z.union([
z.lazy(() => PatientCreateWithoutAppointmentsInputObjectSchema),
z.lazy(() => PatientUncheckedCreateWithoutAppointmentsInputObjectSchema),
]),
})
.strict();
export const PatientUpsertWithoutAppointmentsInputObjectSchema = Schema;