Files
DentalManagement09/packages/db/shared/schemas/objects/PatientUpsertWithoutServiceHistoryInput.schema.ts
T

16 lines
1.6 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientUpdateWithoutServiceHistoryInputObjectSchema as PatientUpdateWithoutServiceHistoryInputObjectSchema } from './PatientUpdateWithoutServiceHistoryInput.schema';
import { PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema as PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema } from './PatientUncheckedUpdateWithoutServiceHistoryInput.schema';
import { PatientCreateWithoutServiceHistoryInputObjectSchema as PatientCreateWithoutServiceHistoryInputObjectSchema } from './PatientCreateWithoutServiceHistoryInput.schema';
import { PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema as PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema } from './PatientUncheckedCreateWithoutServiceHistoryInput.schema';
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema'
const makeSchema = () => z.object({
update: z.union([z.lazy(() => PatientUpdateWithoutServiceHistoryInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema)]),
create: z.union([z.lazy(() => PatientCreateWithoutServiceHistoryInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema)]),
where: z.lazy(() => PatientWhereInputObjectSchema).optional()
}).strict();
export const PatientUpsertWithoutServiceHistoryInputObjectSchema: z.ZodType<Prisma.PatientUpsertWithoutServiceHistoryInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpsertWithoutServiceHistoryInput>;
export const PatientUpsertWithoutServiceHistoryInputObjectZodSchema = makeSchema();