2b7634e425ac5cc49d8f2e2a9b3c3ee12f6a3bc0
import { z } from 'zod';
import { InsightPeriod, InsightType } from '@prisma/client';
export const InsightsQuerySchema = z.object({
type: z.nativeEnum(InsightType).optional(),
period: z.nativeEnum(InsightPeriod).optional(),
limit: z.coerce.number().int().positive().max(100).optional(),
});
export type InsightsQueryInput = z.infer<typeof InsightsQuerySchema>;