efiber-prisma-schema 1.11.5 → 1.11.6

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.5",
3
+ "version": "1.11.6",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,5 @@
1
+ -- CreateEnum
2
+ CREATE TYPE "MetricType" AS ENUM ('ProjectInfo', 'NetworkElement', 'NetworkElementAttributes', 'FormulaResult');
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "ReportMetric" ADD COLUMN "metricType" "MetricType";
@@ -65,6 +65,13 @@ enum ChartType {
65
65
  PIE
66
66
  }
67
67
 
68
+ enum MetricType {
69
+ ProjectInfo
70
+ NetworkElement
71
+ NetworkElementAttributes
72
+ FormulaResult
73
+ }
74
+
68
75
  model Country {
69
76
  id String @id @unique @default(uuid())
70
77
  no Int @default(autoincrement())
@@ -2435,6 +2442,8 @@ model ReportMetric {
2435
2442
  elementType NetworkElementChildType?
2436
2443
  attributeName String //Name of the attribute to be reported
2437
2444
 
2445
+ metricType MetricType?
2446
+
2438
2447
  // Aggregation across records
2439
2448
  formula AggregationOperation?
2440
2449
  groupByLevel ProjectLevel?