16 lines
1.4 KiB
TypeScript
16 lines
1.4 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { UserUpdateWithoutBackupsInputObjectSchema as UserUpdateWithoutBackupsInputObjectSchema } from './UserUpdateWithoutBackupsInput.schema';
|
|
import { UserUncheckedUpdateWithoutBackupsInputObjectSchema as UserUncheckedUpdateWithoutBackupsInputObjectSchema } from './UserUncheckedUpdateWithoutBackupsInput.schema';
|
|
import { UserCreateWithoutBackupsInputObjectSchema as UserCreateWithoutBackupsInputObjectSchema } from './UserCreateWithoutBackupsInput.schema';
|
|
import { UserUncheckedCreateWithoutBackupsInputObjectSchema as UserUncheckedCreateWithoutBackupsInputObjectSchema } from './UserUncheckedCreateWithoutBackupsInput.schema';
|
|
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => UserUpdateWithoutBackupsInputObjectSchema), z.lazy(() => UserUncheckedUpdateWithoutBackupsInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => UserCreateWithoutBackupsInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutBackupsInputObjectSchema)]),
|
|
where: z.lazy(() => UserWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const UserUpsertWithoutBackupsInputObjectSchema: z.ZodType<Prisma.UserUpsertWithoutBackupsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpsertWithoutBackupsInput>;
|
|
export const UserUpsertWithoutBackupsInputObjectZodSchema = makeSchema();
|