17 lines
2.2 KiB
TypeScript
17 lines
2.2 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { BackupDestinationCreateWithoutUserInputObjectSchema as BackupDestinationCreateWithoutUserInputObjectSchema } from './BackupDestinationCreateWithoutUserInput.schema';
|
|
import { BackupDestinationUncheckedCreateWithoutUserInputObjectSchema as BackupDestinationUncheckedCreateWithoutUserInputObjectSchema } from './BackupDestinationUncheckedCreateWithoutUserInput.schema';
|
|
import { BackupDestinationCreateOrConnectWithoutUserInputObjectSchema as BackupDestinationCreateOrConnectWithoutUserInputObjectSchema } from './BackupDestinationCreateOrConnectWithoutUserInput.schema';
|
|
import { BackupDestinationCreateManyUserInputEnvelopeObjectSchema as BackupDestinationCreateManyUserInputEnvelopeObjectSchema } from './BackupDestinationCreateManyUserInputEnvelope.schema';
|
|
import { BackupDestinationWhereUniqueInputObjectSchema as BackupDestinationWhereUniqueInputObjectSchema } from './BackupDestinationWhereUniqueInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => BackupDestinationCreateWithoutUserInputObjectSchema), z.lazy(() => BackupDestinationCreateWithoutUserInputObjectSchema).array(), z.lazy(() => BackupDestinationUncheckedCreateWithoutUserInputObjectSchema), z.lazy(() => BackupDestinationUncheckedCreateWithoutUserInputObjectSchema).array()]).optional(),
|
|
connectOrCreate: z.union([z.lazy(() => BackupDestinationCreateOrConnectWithoutUserInputObjectSchema), z.lazy(() => BackupDestinationCreateOrConnectWithoutUserInputObjectSchema).array()]).optional(),
|
|
createMany: z.lazy(() => BackupDestinationCreateManyUserInputEnvelopeObjectSchema).optional(),
|
|
connect: z.union([z.lazy(() => BackupDestinationWhereUniqueInputObjectSchema), z.lazy(() => BackupDestinationWhereUniqueInputObjectSchema).array()]).optional()
|
|
}).strict();
|
|
export const BackupDestinationUncheckedCreateNestedManyWithoutUserInputObjectSchema: z.ZodType<Prisma.BackupDestinationUncheckedCreateNestedManyWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.BackupDestinationUncheckedCreateNestedManyWithoutUserInput>;
|
|
export const BackupDestinationUncheckedCreateNestedManyWithoutUserInputObjectZodSchema = makeSchema();
|