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

29 lines
1.2 KiB
TypeScript

import { z } from 'zod';
import { PatientCreateWithoutAppointmentsInputObjectSchema } from './PatientCreateWithoutAppointmentsInput.schema';
import { PatientUncheckedCreateWithoutAppointmentsInputObjectSchema } from './PatientUncheckedCreateWithoutAppointmentsInput.schema';
import { PatientCreateOrConnectWithoutAppointmentsInputObjectSchema } from './PatientCreateOrConnectWithoutAppointmentsInput.schema';
import { PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.PatientCreateNestedOneWithoutAppointmentsInput> =
z
.object({
create: z
.union([
z.lazy(() => PatientCreateWithoutAppointmentsInputObjectSchema),
z.lazy(
() => PatientUncheckedCreateWithoutAppointmentsInputObjectSchema,
),
])
.optional(),
connectOrCreate: z
.lazy(() => PatientCreateOrConnectWithoutAppointmentsInputObjectSchema)
.optional(),
connect: z.lazy(() => PatientWhereUniqueInputObjectSchema).optional(),
})
.strict();
export const PatientCreateNestedOneWithoutAppointmentsInputObjectSchema =
Schema;