efiber-prisma-schema 1.10.0 → 1.10.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.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -380,10 +380,8 @@ model User {
380
380
  cable Cable[]
381
381
  SpliceClosure SpliceClosure[]
382
382
  CableTemplate CableTemplate[]
383
- CentralOffice CentralOffice? @relation(fields: [centralOfficeId], references: [id])
384
- centralOfficeId String?
385
- Cluster Cluster? @relation(fields: [clusterId], references: [id])
386
- clusterId String?
383
+ CentralOffices CentralOffice[]
384
+ Clusters Cluster[]
387
385
  projectPhaseLog projectPhaseLog[]
388
386
  ZoneNro ZoneNro[]
389
387
  Pole Pole[]
@@ -1298,8 +1296,7 @@ model CableTemplate {
1298
1296
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1299
1297
  networkElementId String
1300
1298
 
1301
- project Project? @relation(fields: [projectId], references: [id])
1302
- projectId String?
1299
+ projects Project[]
1303
1300
 
1304
1301
  cableAttributes CableAtttributes[]
1305
1302
  qrCodeTemplate qrCodeTemplate[]
@@ -1368,8 +1365,7 @@ model PboFatTemplate {
1368
1365
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1369
1366
  networkElementId String
1370
1367
 
1371
- project Project? @relation(fields: [projectId], references: [id])
1372
- projectId String?
1368
+ projects Project[]
1373
1369
 
1374
1370
  pboFatAttributes PboFatAttributes[]
1375
1371
 
@@ -1516,8 +1512,7 @@ model SpliceClosureTemplate {
1516
1512
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1517
1513
  networkElementId String
1518
1514
 
1519
- project Project? @relation(fields: [projectId], references: [id])
1520
- projectId String?
1515
+ projects Project[]
1521
1516
 
1522
1517
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1523
1518
  clusterId String?
@@ -1619,8 +1614,7 @@ model ZoneNroTemplate {
1619
1614
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1620
1615
  networkElementId String
1621
1616
 
1622
- project Project? @relation(fields: [projectId], references: [id])
1623
- projectId String?
1617
+ projects Project[]
1624
1618
 
1625
1619
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1626
1620
  clusterId String?
@@ -1692,8 +1686,7 @@ model PoleTemplate {
1692
1686
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1693
1687
  networkElementId String
1694
1688
 
1695
- project Project? @relation(fields: [projectId], references: [id])
1696
- projectId String?
1689
+ projects Project[]
1697
1690
 
1698
1691
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1699
1692
  clusterId String?
@@ -1765,8 +1758,7 @@ model ManholeTemplate {
1765
1758
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1766
1759
  networkElementId String
1767
1760
 
1768
- project Project? @relation(fields: [projectId], references: [id])
1769
- projectId String?
1761
+ projects Project[]
1770
1762
 
1771
1763
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1772
1764
  clusterId String?
@@ -1838,8 +1830,7 @@ model LoopTemplate {
1838
1830
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1839
1831
  networkElementId String
1840
1832
 
1841
- project Project? @relation(fields: [projectId], references: [id])
1842
- projectId String?
1833
+ projects Project[]
1843
1834
 
1844
1835
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1845
1836
  clusterId String?
@@ -1911,8 +1902,7 @@ model FDTSROTemplate {
1911
1902
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1912
1903
  networkElementId String
1913
1904
 
1914
- project Project? @relation(fields: [projectId], references: [id])
1915
- projectId String?
1905
+ projects Project[]
1916
1906
 
1917
1907
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1918
1908
  clusterId String?
@@ -1985,8 +1975,7 @@ model SFUTemplate {
1985
1975
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1986
1976
  networkElementId String
1987
1977
 
1988
- project Project? @relation(fields: [projectId], references: [id])
1989
- projectId String?
1978
+ projects Project[]
1990
1979
 
1991
1980
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1992
1981
  clusterId String?
@@ -2059,8 +2048,7 @@ model BuildingTemplate {
2059
2048
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
2060
2049
  networkElementId String
2061
2050
 
2062
- project Project? @relation(fields: [projectId], references: [id])
2063
- projectId String?
2051
+ projects Project[]
2064
2052
 
2065
2053
  cluster Cluster? @relation(fields: [clusterId], references: [id])
2066
2054
  clusterId String?