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