Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/UserCreateNestedOneWithoutPatientsInput.schema.ts
2026-04-04 22:13:55 -04:00

15 lines
1.3 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { UserCreateWithoutPatientsInputObjectSchema as UserCreateWithoutPatientsInputObjectSchema } from './UserCreateWithoutPatientsInput.schema';
import { UserUncheckedCreateWithoutPatientsInputObjectSchema as UserUncheckedCreateWithoutPatientsInputObjectSchema } from './UserUncheckedCreateWithoutPatientsInput.schema';
import { UserCreateOrConnectWithoutPatientsInputObjectSchema as UserCreateOrConnectWithoutPatientsInputObjectSchema } from './UserCreateOrConnectWithoutPatientsInput.schema';
import { UserWhereUniqueInputObjectSchema as UserWhereUniqueInputObjectSchema } from './UserWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => UserCreateWithoutPatientsInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutPatientsInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutPatientsInputObjectSchema).optional(),
connect: z.lazy(() => UserWhereUniqueInputObjectSchema).optional()
}).strict();
export const UserCreateNestedOneWithoutPatientsInputObjectSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutPatientsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserCreateNestedOneWithoutPatientsInput>;
export const UserCreateNestedOneWithoutPatientsInputObjectZodSchema = makeSchema();