efiber-prisma-schema 1.6.6 → 1.6.8

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.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1250,7 +1250,7 @@ model CableTemplate {
1250
1250
  projectId String?
1251
1251
 
1252
1252
  cableAttributes CableAtttributes[]
1253
- qrCodeTemplate qrCodeTemplate[]
1253
+ qrCodeTemplate qrCodeTemplate[]
1254
1254
  }
1255
1255
 
1256
1256
  model CableAtttributes {
@@ -1439,6 +1439,7 @@ model SpliceClosureTemplate {
1439
1439
  clusterId String?
1440
1440
 
1441
1441
  spliceClosureAttributes SpliceClosureAttributes[]
1442
+ qrCodeTemplate qrCodeTemplate[]
1442
1443
  }
1443
1444
 
1444
1445
  model SpliceClosureAttributes {
@@ -1478,6 +1479,7 @@ model ZoneNro {
1478
1479
  zone Json?
1479
1480
  geometry Json?
1480
1481
  attributes Json?
1482
+ coordinates Json?
1481
1483
 
1482
1484
  createdAt DateTime @default(now())
1483
1485
  updatedAt DateTime @updatedAt
@@ -1508,6 +1510,7 @@ model ZoneNroTemplate {
1508
1510
  zone Json?
1509
1511
  geometry Json?
1510
1512
  attributes Json?
1513
+ coordinates Json?
1511
1514
 
1512
1515
  createdAt DateTime @default(now())
1513
1516
  updatedAt DateTime @updatedAt
@@ -1522,8 +1525,9 @@ model ZoneNroTemplate {
1522
1525
  project Project? @relation(fields: [projectId], references: [id])
1523
1526
  projectId String?
1524
1527
 
1525
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1526
- clusterId String?
1528
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1529
+ clusterId String?
1530
+ qrCodeTemplate qrCodeTemplate[]
1527
1531
  }
1528
1532
 
1529
1533
  model Pole {
@@ -1581,8 +1585,9 @@ model PoleTemplate {
1581
1585
  project Project? @relation(fields: [projectId], references: [id])
1582
1586
  projectId String?
1583
1587
 
1584
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1585
- clusterId String?
1588
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1589
+ clusterId String?
1590
+ qrCodeTemplate qrCodeTemplate[]
1586
1591
  }
1587
1592
 
1588
1593
  model Manhole {
@@ -1640,8 +1645,9 @@ model ManholeTemplate {
1640
1645
  project Project? @relation(fields: [projectId], references: [id])
1641
1646
  projectId String?
1642
1647
 
1643
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1644
- clusterId String?
1648
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1649
+ clusterId String?
1650
+ qrCodeTemplate qrCodeTemplate[]
1645
1651
  }
1646
1652
 
1647
1653
  model Loop {
@@ -1699,8 +1705,9 @@ model LoopTemplate {
1699
1705
  project Project? @relation(fields: [projectId], references: [id])
1700
1706
  projectId String?
1701
1707
 
1702
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1703
- clusterId String?
1708
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1709
+ clusterId String?
1710
+ qrCodeTemplate qrCodeTemplate[]
1704
1711
  }
1705
1712
 
1706
1713
  model FDTSRO {
@@ -1758,8 +1765,9 @@ model FDTSROTemplate {
1758
1765
  project Project? @relation(fields: [projectId], references: [id])
1759
1766
  projectId String?
1760
1767
 
1761
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1762
- clusterId String?
1768
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1769
+ clusterId String?
1770
+ qrCodeTemplate qrCodeTemplate[]
1763
1771
  }
1764
1772
 
1765
1773
  model SFU {
@@ -1817,8 +1825,9 @@ model SFUTemplate {
1817
1825
  project Project? @relation(fields: [projectId], references: [id])
1818
1826
  projectId String?
1819
1827
 
1820
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1821
- clusterId String?
1828
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1829
+ clusterId String?
1830
+ qrCodeTemplate qrCodeTemplate[]
1822
1831
  }
1823
1832
 
1824
1833
  model Building {
@@ -1876,8 +1885,9 @@ model BuildingTemplate {
1876
1885
  project Project? @relation(fields: [projectId], references: [id])
1877
1886
  projectId String?
1878
1887
 
1879
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1880
- clusterId String?
1888
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1889
+ clusterId String?
1890
+ qrCodeTemplate qrCodeTemplate[]
1881
1891
  }
1882
1892
 
1883
1893
  model CentralOffice {
@@ -1948,10 +1958,9 @@ model qrCodeTemplate {
1948
1958
  projectId String?
1949
1959
 
1950
1960
  // one to many relation with network element
1951
- networkElement NetworkElement? @relation(fields: [networkElementTypeId], references: [id])
1961
+ networkElement NetworkElement? @relation(fields: [networkElementTypeId], references: [id])
1952
1962
  networkElementTypeId String?
1953
1963
 
1954
-
1955
1964
  networkElementId String?
1956
1965
  templateId String?
1957
1966
 
@@ -1961,6 +1970,29 @@ model qrCodeTemplate {
1961
1970
  cableTemplate CableTemplate? @relation(fields: [cableTemplateId], references: [id])
1962
1971
  cableTemplateId String?
1963
1972
 
1973
+ spliceClosureTemplate SpliceClosureTemplate? @relation(fields: [spliceClosureTemplateId], references: [id])
1974
+ spliceClosureTemplateId String?
1975
+
1976
+ zoneNroTemplate ZoneNroTemplate? @relation(fields: [zoneNroTemplateId], references: [id])
1977
+ zoneNroTemplateId String?
1978
+
1979
+ poleTemplate PoleTemplate? @relation(fields: [poleTemplateId], references: [id])
1980
+ poleTemplateId String?
1981
+
1982
+ manholeTemplate ManholeTemplate? @relation(fields: [manholeTemplateId], references: [id])
1983
+ manholeTemplateId String?
1984
+
1985
+ loopTemplate LoopTemplate? @relation(fields: [loopTemplateId], references: [id])
1986
+ loopTemplateId String?
1987
+
1988
+ fdtsroTemplate FDTSROTemplate? @relation(fields: [fdtsroTemplateId], references: [id])
1989
+ fdtsroTemplateId String?
1990
+
1991
+ sfuTemplate SFUTemplate? @relation(fields: [sfuTemplateId], references: [id])
1992
+ sfuTemplateId String?
1993
+
1994
+ buildingTemplate BuildingTemplate? @relation(fields: [buildingTemplateId], references: [id])
1995
+ buildingTemplateId String?
1964
1996
 
1965
1997
  // cable Cable? @relation(fields: [networkElementId], references: [id])
1966
1998
  // pboFat PboFat? @relation(fields: [networkElementId], references: [id])
@@ -1982,7 +2014,7 @@ model qrCodeTag {
1982
2014
  templateId String?
1983
2015
  networkElementId String?
1984
2016
 
1985
- qrCode qrCodeTemplate @relation(fields: [qrCodeTemplateId], references: [id])
2017
+ qrCode qrCodeTemplate @relation(fields: [qrCodeTemplateId], references: [id])
1986
2018
  qrCodeTemplateId String
1987
2019
 
1988
2020
  cable Cable? @relation(fields: [cableId], references: [id])