2
0

🚸 (results) Add time filter to results table as…

This commit is contained in:
Baptiste Arnaud
2024-02-06 17:48:31 +01:00
parent 3e2533b934
commit 066fabce06
20 changed files with 376 additions and 67 deletions

View File

@@ -24,11 +24,13 @@ export const answerInputSchema = answerSchema
storageUsed: z.number().nullish(),
}) satisfies z.ZodType<Prisma.AnswerUncheckedUpdateInput>
export type Stats = {
totalViews: number
totalStarts: number
totalCompleted: number
}
export const statsSchema = z.object({
totalViews: z.number(),
totalStarts: z.number(),
totalCompleted: z.number(),
})
export type Stats = z.infer<typeof statsSchema>
export type Answer = z.infer<typeof answerSchema>