efiber-prisma-schema 1.11.4 → 1.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efiber-prisma-schema",
3
- "version": "1.11.4",
3
+ "version": "1.11.5",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,12 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `metricId` on the `ReportVisualization` table. All the data in the column will be lost.
5
+
6
+ */
7
+ -- DropForeignKey
8
+ ALTER TABLE "ReportVisualization" DROP CONSTRAINT "ReportVisualization_metricId_fkey";
9
+
10
+ -- AlterTable
11
+ ALTER TABLE "ReportVisualization" DROP COLUMN "metricId",
12
+ ADD COLUMN "metricIds" TEXT[];
@@ -2445,7 +2445,6 @@ model ReportMetric {
2445
2445
  // Usage Classification
2446
2446
  usage ReportUsage[] @default([TABLE])
2447
2447
 
2448
- visualizations ReportVisualization[]
2449
2448
  ReportTable ReportTable[]
2450
2449
  }
2451
2450
 
@@ -2466,8 +2465,7 @@ model ReportVisualization {
2466
2465
  template IntegrationReportTemplate @relation(fields: [templateId], references: [id])
2467
2466
  templateId String
2468
2467
 
2469
- metric ReportMetric @relation(fields: [metricId], references: [id])
2470
- metricId String
2468
+ metricIds String[] //List of ReportMetric IDs to be visualized
2471
2469
 
2472
2470
  chartType ChartType
2473
2471
  xAxisField String? //e.g "Client Name"