13 lines
1.2 KiB
TypeScript
13 lines
1.2 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { BackupDestinationWhereUniqueInputObjectSchema as BackupDestinationWhereUniqueInputObjectSchema } from './BackupDestinationWhereUniqueInput.schema';
|
|
import { BackupDestinationCreateWithoutUserInputObjectSchema as BackupDestinationCreateWithoutUserInputObjectSchema } from './BackupDestinationCreateWithoutUserInput.schema';
|
|
import { BackupDestinationUncheckedCreateWithoutUserInputObjectSchema as BackupDestinationUncheckedCreateWithoutUserInputObjectSchema } from './BackupDestinationUncheckedCreateWithoutUserInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => BackupDestinationWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => BackupDestinationCreateWithoutUserInputObjectSchema), z.lazy(() => BackupDestinationUncheckedCreateWithoutUserInputObjectSchema)])
|
|
}).strict();
|
|
export const BackupDestinationCreateOrConnectWithoutUserInputObjectSchema: z.ZodType<Prisma.BackupDestinationCreateOrConnectWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.BackupDestinationCreateOrConnectWithoutUserInput>;
|
|
export const BackupDestinationCreateOrConnectWithoutUserInputObjectZodSchema = makeSchema();
|