16 lines
1.7 KiB
TypeScript
16 lines
1.7 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { UserUpdateWithoutBackupDestinationsInputObjectSchema as UserUpdateWithoutBackupDestinationsInputObjectSchema } from './UserUpdateWithoutBackupDestinationsInput.schema';
|
|
import { UserUncheckedUpdateWithoutBackupDestinationsInputObjectSchema as UserUncheckedUpdateWithoutBackupDestinationsInputObjectSchema } from './UserUncheckedUpdateWithoutBackupDestinationsInput.schema';
|
|
import { UserCreateWithoutBackupDestinationsInputObjectSchema as UserCreateWithoutBackupDestinationsInputObjectSchema } from './UserCreateWithoutBackupDestinationsInput.schema';
|
|
import { UserUncheckedCreateWithoutBackupDestinationsInputObjectSchema as UserUncheckedCreateWithoutBackupDestinationsInputObjectSchema } from './UserUncheckedCreateWithoutBackupDestinationsInput.schema';
|
|
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => UserUpdateWithoutBackupDestinationsInputObjectSchema), z.lazy(() => UserUncheckedUpdateWithoutBackupDestinationsInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => UserCreateWithoutBackupDestinationsInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutBackupDestinationsInputObjectSchema)]),
|
|
where: z.lazy(() => UserWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const UserUpsertWithoutBackupDestinationsInputObjectSchema: z.ZodType<Prisma.UserUpsertWithoutBackupDestinationsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpsertWithoutBackupDestinationsInput>;
|
|
export const UserUpsertWithoutBackupDestinationsInputObjectZodSchema = makeSchema();
|