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

17 lines
464 B
TypeScript

import * as z from 'zod';
// prettier-ignore
export const StaffModelSchema = z.object({
id: z.number().int(),
userId: z.number().int(),
name: z.string(),
email: z.string().nullable(),
role: z.string(),
phone: z.string().nullable(),
createdAt: z.date(),
user: z.unknown().nullable(),
appointments: z.array(z.unknown()),
claims: z.array(z.unknown())
}).strict();
export type StaffPureType = z.infer<typeof StaffModelSchema>;