efiber-prisma-schema 1.12.2 → 1.12.3
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 +92 -11
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -462,6 +462,8 @@ model User {
|
|
|
462
462
|
integrationUserLocation integrationUserLocation[]
|
|
463
463
|
CamusatClient CamusatClient[]
|
|
464
464
|
IntegrationReportTemplate IntegrationReportTemplate[]
|
|
465
|
+
MapElementTemplate MapElementTemplate[]
|
|
466
|
+
MapElement MapElement[]
|
|
465
467
|
}
|
|
466
468
|
|
|
467
469
|
model MainProject {
|
|
@@ -536,6 +538,9 @@ model Project {
|
|
|
536
538
|
SFUTemplate SFUTemplate[]
|
|
537
539
|
BuildingTemplate BuildingTemplate[]
|
|
538
540
|
usersOnline integrationProjectUserStatus[]
|
|
541
|
+
MapElementTemplate MapElementTemplate? @relation(fields: [mapElementTemplateId], references: [id])
|
|
542
|
+
mapElementTemplateId String?
|
|
543
|
+
MapElement MapElement[]
|
|
539
544
|
}
|
|
540
545
|
|
|
541
546
|
model integrationProjectUserStatus {
|
|
@@ -1281,12 +1286,12 @@ model ReportFormats {
|
|
|
1281
1286
|
}
|
|
1282
1287
|
|
|
1283
1288
|
model NetworkElement {
|
|
1284
|
-
id
|
|
1285
|
-
no
|
|
1286
|
-
type
|
|
1287
|
-
createdAt
|
|
1288
|
-
updatedAt
|
|
1289
|
-
deletedAt
|
|
1289
|
+
id String @id @unique @default(uuid())
|
|
1290
|
+
no Int @default(autoincrement())
|
|
1291
|
+
type String @unique
|
|
1292
|
+
createdAt DateTime @default(now())
|
|
1293
|
+
updatedAt DateTime @updatedAt
|
|
1294
|
+
deletedAt DateTime?
|
|
1290
1295
|
classification NetworkElementClassification @default(NetworkElement)
|
|
1291
1296
|
|
|
1292
1297
|
PboFat PboFat[]
|
|
@@ -1310,6 +1315,8 @@ model NetworkElement {
|
|
|
1310
1315
|
FDTSROTemplate FDTSROTemplate[]
|
|
1311
1316
|
SFUTemplate SFUTemplate[]
|
|
1312
1317
|
BuildingTemplate BuildingTemplate[]
|
|
1318
|
+
MapElementTemplate MapElementTemplate[]
|
|
1319
|
+
MapElement MapElement[]
|
|
1313
1320
|
}
|
|
1314
1321
|
|
|
1315
1322
|
model Cable {
|
|
@@ -2214,6 +2221,74 @@ model BuildingTemplate {
|
|
|
2214
2221
|
Building Building[]
|
|
2215
2222
|
}
|
|
2216
2223
|
|
|
2224
|
+
model MapElementTemplate {
|
|
2225
|
+
id String @id @unique @default(uuid())
|
|
2226
|
+
no Int @default(autoincrement())
|
|
2227
|
+
|
|
2228
|
+
status String @default("active")
|
|
2229
|
+
name String?
|
|
2230
|
+
photos Json? //Upload files for photos
|
|
2231
|
+
texts Json? //Add text attributes to the map element
|
|
2232
|
+
files Json? //Upload files for the map element
|
|
2233
|
+
zone Json? //Color code for zone
|
|
2234
|
+
geometry Json? //Icon for the map element
|
|
2235
|
+
|
|
2236
|
+
createdAt DateTime @default(now())
|
|
2237
|
+
updatedAt DateTime @updatedAt
|
|
2238
|
+
deletedAt DateTime?
|
|
2239
|
+
|
|
2240
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
2241
|
+
updatedById String?
|
|
2242
|
+
|
|
2243
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
2244
|
+
networkElementId String
|
|
2245
|
+
|
|
2246
|
+
projects Project[]
|
|
2247
|
+
|
|
2248
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
2249
|
+
clusterId String?
|
|
2250
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
2251
|
+
MapElement MapElement[]
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
model MapElement {
|
|
2255
|
+
id String @id @unique @default(uuid())
|
|
2256
|
+
no Int @default(autoincrement())
|
|
2257
|
+
|
|
2258
|
+
status String @default("active")
|
|
2259
|
+
name String?
|
|
2260
|
+
photos Json? //Upload files for photos
|
|
2261
|
+
texts Json? //Add text attributes to the map element
|
|
2262
|
+
files Json? //Upload files for the map element
|
|
2263
|
+
zone Json? //Color code for zone
|
|
2264
|
+
geometry Json? //Icon for the map element
|
|
2265
|
+
coordinates Json?
|
|
2266
|
+
autoincrement Boolean @default(true)
|
|
2267
|
+
namePrefix String?
|
|
2268
|
+
templateIndex Int?
|
|
2269
|
+
|
|
2270
|
+
createdAt DateTime @default(now())
|
|
2271
|
+
updatedAt DateTime @updatedAt
|
|
2272
|
+
deletedAt DateTime?
|
|
2273
|
+
|
|
2274
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
2275
|
+
updatedById String?
|
|
2276
|
+
|
|
2277
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
2278
|
+
networkElementId String
|
|
2279
|
+
|
|
2280
|
+
template MapElementTemplate? @relation(fields: [templateId], references: [id])
|
|
2281
|
+
templateId String?
|
|
2282
|
+
|
|
2283
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
2284
|
+
projectId String?
|
|
2285
|
+
|
|
2286
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
2287
|
+
clusterId String?
|
|
2288
|
+
|
|
2289
|
+
qrCodeTag qrCodeTag[]
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2217
2292
|
model NetworkElementInstallation {
|
|
2218
2293
|
id String @id @unique @default(uuid())
|
|
2219
2294
|
no Int @default(autoincrement())
|
|
@@ -2297,6 +2372,8 @@ model Cluster {
|
|
|
2297
2372
|
usersOnline integrationProjectUserStatus[]
|
|
2298
2373
|
qrCodeTemplate qrCodeTemplate[]
|
|
2299
2374
|
integrationUserLocation integrationUserLocation[]
|
|
2375
|
+
MapElementTemplate MapElementTemplate[]
|
|
2376
|
+
MapElement MapElement[]
|
|
2300
2377
|
}
|
|
2301
2378
|
|
|
2302
2379
|
model qrCodeTemplate {
|
|
@@ -2359,7 +2436,9 @@ model qrCodeTemplate {
|
|
|
2359
2436
|
|
|
2360
2437
|
// cable Cable? @relation(fields: [networkElementId], references: [id])
|
|
2361
2438
|
// pboFat PboFat? @relation(fields: [networkElementId], references: [id])
|
|
2362
|
-
qrCodeTag
|
|
2439
|
+
qrCodeTag qrCodeTag[]
|
|
2440
|
+
MapElementTemplate MapElementTemplate? @relation(fields: [mapElementTemplateId], references: [id])
|
|
2441
|
+
mapElementTemplateId String?
|
|
2363
2442
|
}
|
|
2364
2443
|
|
|
2365
2444
|
model qrCodeTag {
|
|
@@ -2407,8 +2486,10 @@ model qrCodeTag {
|
|
|
2407
2486
|
sfu SFU? @relation(fields: [sfuId], references: [id])
|
|
2408
2487
|
sfuId String?
|
|
2409
2488
|
|
|
2410
|
-
building
|
|
2411
|
-
buildingId
|
|
2489
|
+
building Building? @relation(fields: [buildingId], references: [id])
|
|
2490
|
+
buildingId String?
|
|
2491
|
+
MapElement MapElement? @relation(fields: [mapElementId], references: [id])
|
|
2492
|
+
mapElementId String?
|
|
2412
2493
|
}
|
|
2413
2494
|
|
|
2414
2495
|
model installationSequence {
|
|
@@ -2489,7 +2570,7 @@ model ReportMetric {
|
|
|
2489
2570
|
elementType NetworkElementChildType?
|
|
2490
2571
|
attributeName String //Name of the attribute to be reported
|
|
2491
2572
|
|
|
2492
|
-
metricType
|
|
2573
|
+
metricType MetricType?
|
|
2493
2574
|
|
|
2494
2575
|
// Aggregation across records
|
|
2495
2576
|
formula AggregationOperation?
|
|
@@ -2501,7 +2582,7 @@ model ReportMetric {
|
|
|
2501
2582
|
// Usage Classification
|
|
2502
2583
|
usage ReportUsage[] @default([TABLE])
|
|
2503
2584
|
|
|
2504
|
-
ReportTable
|
|
2585
|
+
ReportTable ReportTable[]
|
|
2505
2586
|
}
|
|
2506
2587
|
|
|
2507
2588
|
model ReportFormulaConfig {
|