23 lines
611 B
TypeScript
23 lines
611 B
TypeScript
import * as z from 'zod';
|
|
export const StaffFindManyResultSchema = z.object({
|
|
data: z.array(z.object({
|
|
id: z.number().int(),
|
|
userId: z.number().int(),
|
|
name: z.string(),
|
|
email: z.string().optional(),
|
|
role: z.string(),
|
|
phone: z.string().optional(),
|
|
createdAt: z.date(),
|
|
user: z.unknown().optional(),
|
|
appointments: z.array(z.unknown()),
|
|
claims: z.array(z.unknown())
|
|
})),
|
|
pagination: z.object({
|
|
page: z.number().int().min(1),
|
|
pageSize: z.number().int().min(1),
|
|
total: z.number().int().min(0),
|
|
totalPages: z.number().int().min(0),
|
|
hasNext: z.boolean(),
|
|
hasPrev: z.boolean()
|
|
})
|
|
}); |