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

19 lines
797 B
TypeScript

import { z } from 'zod';
import { PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
import { PatientCreateWithoutUserInputObjectSchema } from './PatientCreateWithoutUserInput.schema';
import { PatientUncheckedCreateWithoutUserInputObjectSchema } from './PatientUncheckedCreateWithoutUserInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.PatientCreateOrConnectWithoutUserInput> = z
.object({
where: z.lazy(() => PatientWhereUniqueInputObjectSchema),
create: z.union([
z.lazy(() => PatientCreateWithoutUserInputObjectSchema),
z.lazy(() => PatientUncheckedCreateWithoutUserInputObjectSchema),
]),
})
.strict();
export const PatientCreateOrConnectWithoutUserInputObjectSchema = Schema;