17 lines
503 B
TypeScript
17 lines
503 B
TypeScript
import * as z from 'zod';
|
|
// prettier-ignore
|
|
export const CloudFolderInputSchema = z.object({
|
|
id: z.number().int(),
|
|
userId: z.number().int(),
|
|
name: z.string(),
|
|
parentId: z.number().int().optional().nullable(),
|
|
parent: z.unknown().optional().nullable(),
|
|
children: z.array(z.unknown()),
|
|
user: z.unknown(),
|
|
files: z.array(z.unknown()),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date()
|
|
}).strict();
|
|
|
|
export type CloudFolderInputType = z.infer<typeof CloudFolderInputSchema>;
|