chore: moved insights model to database package (#4575)

This commit is contained in:
Piyush Gupta
2025-01-15 13:17:05 +05:30
committed by GitHub
parent 8399391aaa
commit 2575b649a0
21 changed files with 114 additions and 255 deletions
+12
View File
@@ -0,0 +1,12 @@
import { type Insight } from "@prisma/client";
import { z } from "zod";
export const ZInsight = z.object({
id: z.string().cuid2(),
createdAt: z.date(),
updatedAt: z.date(),
environmentId: z.string().cuid2(),
title: z.string(),
description: z.string(),
category: z.enum(["featureRequest", "complaint", "praise", "other"]),
}) satisfies z.ZodType<Insight>;