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

13 lines
1.2 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema';
import { PatientUpdateWithoutServiceHistoryInputObjectSchema as PatientUpdateWithoutServiceHistoryInputObjectSchema } from './PatientUpdateWithoutServiceHistoryInput.schema';
import { PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema as PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema } from './PatientUncheckedUpdateWithoutServiceHistoryInput.schema'
const makeSchema = () => z.object({
where: z.lazy(() => PatientWhereInputObjectSchema).optional(),
data: z.union([z.lazy(() => PatientUpdateWithoutServiceHistoryInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema)])
}).strict();
export const PatientUpdateToOneWithWhereWithoutServiceHistoryInputObjectSchema: z.ZodType<Prisma.PatientUpdateToOneWithWhereWithoutServiceHistoryInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpdateToOneWithWhereWithoutServiceHistoryInput>;
export const PatientUpdateToOneWithWhereWithoutServiceHistoryInputObjectZodSchema = makeSchema();