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

25 lines
1.2 KiB
TypeScript

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