17 lines
1.3 KiB
TypeScript
17 lines
1.3 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema as CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema } from './CloudFolderCreateNestedOneWithoutChildrenInput.schema';
|
|
import { CloudFolderCreateNestedManyWithoutParentInputObjectSchema as CloudFolderCreateNestedManyWithoutParentInputObjectSchema } from './CloudFolderCreateNestedManyWithoutParentInput.schema';
|
|
import { CloudFileCreateNestedManyWithoutFolderInputObjectSchema as CloudFileCreateNestedManyWithoutFolderInputObjectSchema } from './CloudFileCreateNestedManyWithoutFolderInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
name: z.string(),
|
|
createdAt: z.coerce.date().optional(),
|
|
updatedAt: z.coerce.date().optional(),
|
|
parent: z.lazy(() => CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema).optional(),
|
|
children: z.lazy(() => CloudFolderCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
|
files: z.lazy(() => CloudFileCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
|
}).strict();
|
|
export const CloudFolderCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateWithoutUserInput>;
|
|
export const CloudFolderCreateWithoutUserInputObjectZodSchema = makeSchema();
|