13 lines
1.0 KiB
TypeScript
13 lines
1.0 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
|
|
import { PatientCreateWithoutUserInputObjectSchema as PatientCreateWithoutUserInputObjectSchema } from './PatientCreateWithoutUserInput.schema';
|
|
import { PatientUncheckedCreateWithoutUserInputObjectSchema as PatientUncheckedCreateWithoutUserInputObjectSchema } from './PatientUncheckedCreateWithoutUserInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => PatientWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => PatientCreateWithoutUserInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutUserInputObjectSchema)])
|
|
}).strict();
|
|
export const PatientCreateOrConnectWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientCreateOrConnectWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateOrConnectWithoutUserInput>;
|
|
export const PatientCreateOrConnectWithoutUserInputObjectZodSchema = makeSchema();
|