mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-07 22:31:35 -05:00
chore: moved insights model to database package (#4575)
This commit is contained in:
@@ -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>;
|
||||
Reference in New Issue
Block a user