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

24 lines
2.5 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { UserCreateWithoutStaffInputObjectSchema as UserCreateWithoutStaffInputObjectSchema } from './UserCreateWithoutStaffInput.schema';
import { UserUncheckedCreateWithoutStaffInputObjectSchema as UserUncheckedCreateWithoutStaffInputObjectSchema } from './UserUncheckedCreateWithoutStaffInput.schema';
import { UserCreateOrConnectWithoutStaffInputObjectSchema as UserCreateOrConnectWithoutStaffInputObjectSchema } from './UserCreateOrConnectWithoutStaffInput.schema';
import { UserUpsertWithoutStaffInputObjectSchema as UserUpsertWithoutStaffInputObjectSchema } from './UserUpsertWithoutStaffInput.schema';
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema';
import { UserWhereUniqueInputObjectSchema as UserWhereUniqueInputObjectSchema } from './UserWhereUniqueInput.schema';
import { UserUpdateToOneWithWhereWithoutStaffInputObjectSchema as UserUpdateToOneWithWhereWithoutStaffInputObjectSchema } from './UserUpdateToOneWithWhereWithoutStaffInput.schema';
import { UserUpdateWithoutStaffInputObjectSchema as UserUpdateWithoutStaffInputObjectSchema } from './UserUpdateWithoutStaffInput.schema';
import { UserUncheckedUpdateWithoutStaffInputObjectSchema as UserUncheckedUpdateWithoutStaffInputObjectSchema } from './UserUncheckedUpdateWithoutStaffInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => UserCreateWithoutStaffInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutStaffInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutStaffInputObjectSchema).optional(),
upsert: z.lazy(() => UserUpsertWithoutStaffInputObjectSchema).optional(),
disconnect: z.union([z.boolean(), z.lazy(() => UserWhereInputObjectSchema)]).optional(),
delete: z.union([z.boolean(), z.lazy(() => UserWhereInputObjectSchema)]).optional(),
connect: z.lazy(() => UserWhereUniqueInputObjectSchema).optional(),
update: z.union([z.lazy(() => UserUpdateToOneWithWhereWithoutStaffInputObjectSchema), z.lazy(() => UserUpdateWithoutStaffInputObjectSchema), z.lazy(() => UserUncheckedUpdateWithoutStaffInputObjectSchema)]).optional()
}).strict();
export const UserUpdateOneWithoutStaffNestedInputObjectSchema: z.ZodType<Prisma.UserUpdateOneWithoutStaffNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpdateOneWithoutStaffNestedInput>;
export const UserUpdateOneWithoutStaffNestedInputObjectZodSchema = makeSchema();