13 lines
1.2 KiB
TypeScript
13 lines
1.2 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
|
|
import { PatientCreateWithoutServiceHistoryInputObjectSchema as PatientCreateWithoutServiceHistoryInputObjectSchema } from './PatientCreateWithoutServiceHistoryInput.schema';
|
|
import { PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema as PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema } from './PatientUncheckedCreateWithoutServiceHistoryInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => PatientWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => PatientCreateWithoutServiceHistoryInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema)])
|
|
}).strict();
|
|
export const PatientCreateOrConnectWithoutServiceHistoryInputObjectSchema: z.ZodType<Prisma.PatientCreateOrConnectWithoutServiceHistoryInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateOrConnectWithoutServiceHistoryInput>;
|
|
export const PatientCreateOrConnectWithoutServiceHistoryInputObjectZodSchema = makeSchema();
|