Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/CloudFileCreateWithoutFolderInput.schema.ts
2026-04-04 22:13:55 -04:00

19 lines
1.2 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { UserCreateNestedOneWithoutCloudFilesInputObjectSchema as UserCreateNestedOneWithoutCloudFilesInputObjectSchema } from './UserCreateNestedOneWithoutCloudFilesInput.schema';
import { CloudFileChunkCreateNestedManyWithoutFileInputObjectSchema as CloudFileChunkCreateNestedManyWithoutFileInputObjectSchema } from './CloudFileChunkCreateNestedManyWithoutFileInput.schema'
const makeSchema = () => z.object({
name: z.string(),
mimeType: z.string().optional().nullable(),
fileSize: z.bigint(),
isComplete: z.boolean().optional(),
totalChunks: z.number().int().optional().nullable(),
createdAt: z.coerce.date().optional(),
updatedAt: z.coerce.date().optional(),
user: z.lazy(() => UserCreateNestedOneWithoutCloudFilesInputObjectSchema),
chunks: z.lazy(() => CloudFileChunkCreateNestedManyWithoutFileInputObjectSchema).optional()
}).strict();
export const CloudFileCreateWithoutFolderInputObjectSchema: z.ZodType<Prisma.CloudFileCreateWithoutFolderInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFileCreateWithoutFolderInput>;
export const CloudFileCreateWithoutFolderInputObjectZodSchema = makeSchema();