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 +1 -1
- package/prisma/schema.prisma +24 -8
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -2404,21 +2404,23 @@ model IntegrationReportTemplate {
|
|
|
2404
2404
|
createdBy User? @relation(fields: [createdById], references: [id])
|
|
2405
2405
|
createdById String?
|
|
2406
2406
|
|
|
2407
|
-
metrics
|
|
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
|
|
2415
|
-
reportTemplateId
|
|
2415
|
+
reportTemplate IntegrationReportTemplate @relation(fields: [reportTemplateId], references: [id])
|
|
2416
|
+
reportTemplateId String
|
|
2416
2417
|
|
|
2417
|
-
elementType
|
|
2418
|
-
attributeName
|
|
2419
|
-
formula
|
|
2420
|
-
groupByLevel
|
|
2421
|
-
visualizations
|
|
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
|
+
}
|