wip
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Made the column `payload` on table `project_insights` required. This step will fail if there are existing NULL values in that column.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "public"."project_insights" ALTER COLUMN "payload" SET NOT NULL,
|
||||
ALTER COLUMN "payload" SET DEFAULT '{}';
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `changePct` on the `project_insights` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `compareValue` on the `project_insights` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `currentValue` on the `project_insights` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "public"."project_insights" DROP COLUMN "changePct",
|
||||
DROP COLUMN "compareValue",
|
||||
DROP COLUMN "currentValue",
|
||||
ADD COLUMN "displayName" TEXT NOT NULL DEFAULT '';
|
||||
@@ -512,13 +512,12 @@ model ProjectInsight {
|
||||
windowKind String // "yesterday" | "rolling_7d" | "rolling_30d"
|
||||
state InsightState @default(active)
|
||||
|
||||
title String
|
||||
summary String?
|
||||
payload Json? // RenderedCard blocks, extra data
|
||||
title String
|
||||
summary String?
|
||||
displayName String @default("")
|
||||
/// [IPrismaProjectInsightPayload]
|
||||
payload Json @default("{}") // Rendered insight payload (typed)
|
||||
|
||||
currentValue Float?
|
||||
compareValue Float?
|
||||
changePct Float?
|
||||
direction String? // "up" | "down" | "flat"
|
||||
impactScore Float @default(0)
|
||||
severityBand String? // "low" | "moderate" | "severe"
|
||||
|
||||
Reference in New Issue
Block a user