efiber-prisma-schema 1.8.0 → 1.8.2

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.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -436,33 +436,32 @@ model Project {
436
436
  ReportFormats ReportFormats[]
437
437
  platforms Platform[]
438
438
 
439
- pboFatTemplates PboFatTemplate[]
440
- pboFat PboFat[]
441
- cableAttributes CableAtttributes[]
442
- spliceClosureAttributes SpliceClosureAttributes[]
443
- Cable Cable[]
444
- CableTemplate CableTemplate[]
445
- CentralOffice CentralOffice[]
446
- qrCodeTemplate qrCodeTemplate[]
447
- projectPhaseLog projectPhaseLog[]
448
- ZoneNro ZoneNro[]
449
- Pole Pole[]
450
- Manhole Manhole[]
451
- Loop Loop[]
452
- FDTSRO FDTSRO[]
453
- SFU SFU[]
454
- Building Building[]
455
- SpliceClosure SpliceClosure[]
456
- SpliceClosureTemplate SpliceClosureTemplate[]
457
- ZoneNroTemplate ZoneNroTemplate[]
458
- PoleTemplate PoleTemplate[]
459
- ManholeTemplate ManholeTemplate[]
460
- LoopTemplate LoopTemplate[]
461
- FDTSROTemplate FDTSROTemplate[]
462
- SFUTemplate SFUTemplate[]
463
- BuildingTemplate BuildingTemplate[]
464
- usersOnline integrationProjectUserStatus[]
465
-
439
+ pboFatTemplates PboFatTemplate[]
440
+ pboFat PboFat[]
441
+ cableAttributes CableAtttributes[]
442
+ spliceClosureAttributes SpliceClosureAttributes[]
443
+ Cable Cable[]
444
+ CableTemplate CableTemplate[]
445
+ CentralOffice CentralOffice[]
446
+ qrCodeTemplate qrCodeTemplate[]
447
+ projectPhaseLog projectPhaseLog[]
448
+ ZoneNro ZoneNro[]
449
+ Pole Pole[]
450
+ Manhole Manhole[]
451
+ Loop Loop[]
452
+ FDTSRO FDTSRO[]
453
+ SFU SFU[]
454
+ Building Building[]
455
+ SpliceClosure SpliceClosure[]
456
+ SpliceClosureTemplate SpliceClosureTemplate[]
457
+ ZoneNroTemplate ZoneNroTemplate[]
458
+ PoleTemplate PoleTemplate[]
459
+ ManholeTemplate ManholeTemplate[]
460
+ LoopTemplate LoopTemplate[]
461
+ FDTSROTemplate FDTSROTemplate[]
462
+ SFUTemplate SFUTemplate[]
463
+ BuildingTemplate BuildingTemplate[]
464
+ usersOnline integrationProjectUserStatus[]
466
465
  }
467
466
 
468
467
  model integrationProjectUserStatus {
@@ -741,6 +740,12 @@ model WorkOrder {
741
740
  workOrderActivityLogs WorkOrderActivityLog[]
742
741
  workOrderEditLogs WorkOrderEditLog[]
743
742
  pboFatAttributes PboFatAttributes[]
743
+ PboFat PboFat? @relation(fields: [pboFatId], references: [id])
744
+ pboFatId String?
745
+ SFU SFU? @relation(fields: [sFUId], references: [id])
746
+ sFUId String?
747
+ Building Building? @relation(fields: [buildingId], references: [id])
748
+ buildingId String?
744
749
  }
745
750
 
746
751
  model WorkOrderChannel {
@@ -1389,6 +1394,8 @@ model PboFat {
1389
1394
  installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
1390
1395
  installationId String?
1391
1396
 
1397
+ workOrders WorkOrder[]
1398
+
1392
1399
  pboFatAttributes PboFatAttributes[]
1393
1400
  // qrCode qrCode[]
1394
1401
  qrCodeTag qrCodeTag[]
@@ -1928,7 +1935,8 @@ model SFU {
1928
1935
  installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
1929
1936
  installationId String?
1930
1937
 
1931
- qrCodeTag qrCodeTag[]
1938
+ qrCodeTag qrCodeTag[]
1939
+ workOrders WorkOrder[]
1932
1940
  }
1933
1941
 
1934
1942
  model SFUTemplate {
@@ -2001,7 +2009,8 @@ model Building {
2001
2009
  installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
2002
2010
  installationId String?
2003
2011
 
2004
- qrCodeTag qrCodeTag[]
2012
+ qrCodeTag qrCodeTag[]
2013
+ workOrders WorkOrder[]
2005
2014
  }
2006
2015
 
2007
2016
  model BuildingTemplate {
@@ -2045,22 +2054,22 @@ model NetworkElementInstallation {
2045
2054
  updatedAt DateTime @updatedAt
2046
2055
 
2047
2056
  networkElementId String?
2048
- previousType String?
2049
- previousName String?
2050
- previousId String?
2051
- nextType String?
2052
- nextName String?
2053
- nextId String?
2054
- Cable Cable[]
2055
- PboFat PboFat[]
2056
- SpliceClosure SpliceClosure[]
2057
- ZoneNro ZoneNro[]
2058
- Pole Pole[]
2059
- Manhole Manhole[]
2060
- Loop Loop[]
2061
- FDTSRO FDTSRO[]
2062
- SFU SFU[]
2063
- Building Building[]
2057
+ previousType String?
2058
+ previousName String?
2059
+ previousId String?
2060
+ nextType String?
2061
+ nextName String?
2062
+ nextId String?
2063
+ Cable Cable[]
2064
+ PboFat PboFat[]
2065
+ SpliceClosure SpliceClosure[]
2066
+ ZoneNro ZoneNro[]
2067
+ Pole Pole[]
2068
+ Manhole Manhole[]
2069
+ Loop Loop[]
2070
+ FDTSRO FDTSRO[]
2071
+ SFU SFU[]
2072
+ Building Building[]
2064
2073
  }
2065
2074
 
2066
2075
  model CentralOffice {
@@ -2080,11 +2089,11 @@ model CentralOffice {
2080
2089
  }
2081
2090
 
2082
2091
  model Cluster {
2083
- id String @id @unique @default(uuid())
2084
- no Int @default(autoincrement())
2085
- name String @unique
2092
+ id String @id @unique @default(uuid())
2093
+ no Int @default(autoincrement())
2094
+ name String @unique
2086
2095
  coordinates Json?
2087
- color String?
2096
+ color String?
2088
2097
 
2089
2098
  createdAt DateTime @default(now())
2090
2099
  updatedAt DateTime @updatedAt