Files
DentalManagementMHAprilgg/packages/db/shared/schemas/variants/pure/CloudFile.pure.ts
2026-04-04 22:13:55 -04:00

20 lines
577 B
TypeScript

import * as z from 'zod';
// prettier-ignore
export const CloudFileModelSchema = z.object({
id: z.number().int(),
userId: z.number().int(),
name: z.string(),
mimeType: z.string().nullable(),
fileSize: z.bigint(),
folderId: z.number().int().nullable(),
isComplete: z.boolean(),
totalChunks: z.number().int().nullable(),
createdAt: z.date(),
updatedAt: z.date(),
user: z.unknown(),
folder: z.unknown().nullable(),
chunks: z.array(z.unknown())
}).strict();
export type CloudFilePureType = z.infer<typeof CloudFileModelSchema>;