Files
DentalManagementMHAprilgg/packages/db/shared/schemas/results/NpiProviderGroupByResult.schema.ts
2026-04-04 22:13:55 -04:00

38 lines
1.1 KiB
TypeScript

import * as z from 'zod';
export const NpiProviderGroupByResultSchema = z.array(z.object({
id: z.number().int(),
userId: z.number().int(),
npiNumber: z.string(),
providerName: z.string(),
createdAt: z.date(),
_count: z.object({
id: z.number(),
userId: z.number(),
npiNumber: z.number(),
providerName: z.number(),
createdAt: z.number(),
user: z.number()
}).optional(),
_sum: z.object({
id: z.number().nullable(),
userId: z.number().nullable()
}).nullable().optional(),
_avg: z.object({
id: z.number().nullable(),
userId: z.number().nullable()
}).nullable().optional(),
_min: z.object({
id: z.number().int().nullable(),
userId: z.number().int().nullable(),
npiNumber: z.string().nullable(),
providerName: z.string().nullable(),
createdAt: z.date().nullable()
}).nullable().optional(),
_max: z.object({
id: z.number().int().nullable(),
userId: z.number().int().nullable(),
npiNumber: z.string().nullable(),
providerName: z.string().nullable(),
createdAt: z.date().nullable()
}).nullable().optional()
}));