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

17 lines
484 B
TypeScript

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