Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/UserCreateNestedOneWithoutBackupsInput.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 { UserCreateWithoutBackupsInputObjectSchema as UserCreateWithoutBackupsInputObjectSchema } from './UserCreateWithoutBackupsInput.schema';
import { UserUncheckedCreateWithoutBackupsInputObjectSchema as UserUncheckedCreateWithoutBackupsInputObjectSchema } from './UserUncheckedCreateWithoutBackupsInput.schema';
import { UserCreateOrConnectWithoutBackupsInputObjectSchema as UserCreateOrConnectWithoutBackupsInputObjectSchema } from './UserCreateOrConnectWithoutBackupsInput.schema';
import { UserWhereUniqueInputObjectSchema as UserWhereUniqueInputObjectSchema } from './UserWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => UserCreateWithoutBackupsInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutBackupsInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutBackupsInputObjectSchema).optional(),
connect: z.lazy(() => UserWhereUniqueInputObjectSchema).optional()
}).strict();
export const UserCreateNestedOneWithoutBackupsInputObjectSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutBackupsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserCreateNestedOneWithoutBackupsInput>;
export const UserCreateNestedOneWithoutBackupsInputObjectZodSchema = makeSchema();