15 lines
1.4 KiB
TypeScript
15 lines
1.4 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { UserCreateWithoutNpiProvidersInputObjectSchema as UserCreateWithoutNpiProvidersInputObjectSchema } from './UserCreateWithoutNpiProvidersInput.schema';
|
|
import { UserUncheckedCreateWithoutNpiProvidersInputObjectSchema as UserUncheckedCreateWithoutNpiProvidersInputObjectSchema } from './UserUncheckedCreateWithoutNpiProvidersInput.schema';
|
|
import { UserCreateOrConnectWithoutNpiProvidersInputObjectSchema as UserCreateOrConnectWithoutNpiProvidersInputObjectSchema } from './UserCreateOrConnectWithoutNpiProvidersInput.schema';
|
|
import { UserWhereUniqueInputObjectSchema as UserWhereUniqueInputObjectSchema } from './UserWhereUniqueInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => UserCreateWithoutNpiProvidersInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutNpiProvidersInputObjectSchema)]).optional(),
|
|
connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutNpiProvidersInputObjectSchema).optional(),
|
|
connect: z.lazy(() => UserWhereUniqueInputObjectSchema).optional()
|
|
}).strict();
|
|
export const UserCreateNestedOneWithoutNpiProvidersInputObjectSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutNpiProvidersInput> = makeSchema() as unknown as z.ZodType<Prisma.UserCreateNestedOneWithoutNpiProvidersInput>;
|
|
export const UserCreateNestedOneWithoutNpiProvidersInputObjectZodSchema = makeSchema();
|