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