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

17 lines
480 B
TypeScript

import * as z from 'zod';
// prettier-ignore
export const CloudFolderModelSchema = 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 CloudFolderPureType = z.infer<typeof CloudFolderModelSchema>;