efiber-prisma-schema 1.11.0 → 1.11.1

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.0",
3
+ "version": "1.11.1",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2404,21 +2404,23 @@ model IntegrationReportTemplate {
2404
2404
  createdBy User? @relation(fields: [createdById], references: [id])
2405
2405
  createdById String?
2406
2406
 
2407
- metrics ReportMetric[]
2407
+ metrics ReportMetric[]
2408
2408
  visualizations ReportVisualization[]
2409
+ ReportTable ReportTable[]
2409
2410
  }
2410
2411
 
2411
2412
  model ReportMetric {
2412
2413
  id String @id @unique @default(uuid())
2413
2414
 
2414
- reportTemplate IntegrationReportTemplate @relation(fields: [reportTemplateId], references: [id])
2415
- reportTemplateId String
2415
+ reportTemplate IntegrationReportTemplate @relation(fields: [reportTemplateId], references: [id])
2416
+ reportTemplateId String
2416
2417
 
2417
- elementType NetworkElementChildType
2418
- attributeName String //Name of the attribute to be reported
2419
- formula FormulaOperation
2420
- groupByLevel ProjectLevel
2421
- visualizations ReportVisualization[]
2418
+ elementType NetworkElementChildType
2419
+ attributeName String //Name of the attribute to be reported
2420
+ formula FormulaOperation
2421
+ groupByLevel ProjectLevel
2422
+ visualizations ReportVisualization[]
2423
+ ReportTable ReportTable[]
2422
2424
  }
2423
2425
 
2424
2426
  model ReportVisualization {
@@ -2437,3 +2439,17 @@ model ReportVisualization {
2437
2439
  useCustomColors Boolean @default(false)
2438
2440
  customColors Json? //e.g {"red": "#FF0000", "blue": "#0000FF"}
2439
2441
  }
2442
+
2443
+ model ReportTable {
2444
+ id String @id @unique @default(uuid())
2445
+
2446
+ templateId String
2447
+ template IntegrationReportTemplate @relation(fields: [templateId], references: [id])
2448
+
2449
+ metricId String
2450
+ metric ReportMetric @relation(fields: [metricId], references: [id])
2451
+
2452
+ columns String[] //e.g ["Client Name", "Fat Available Capacity"]
2453
+ includeHeader Boolean @default(true)
2454
+ sortBy Json? //e.g {"column": "Client Name", "order": "asc"} for sorting the table by a specific column
2455
+ }