efiber-prisma-schema 1.6.11 → 1.6.12
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 +40 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1216,6 +1216,9 @@ model Cable {
|
|
|
1216
1216
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1217
1217
|
networkElementId String
|
|
1218
1218
|
|
|
1219
|
+
template CableTemplate? @relation(fields: [templateId], references: [id])
|
|
1220
|
+
templateId String?
|
|
1221
|
+
|
|
1219
1222
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1220
1223
|
projectId String?
|
|
1221
1224
|
|
|
@@ -1256,6 +1259,7 @@ model CableTemplate {
|
|
|
1256
1259
|
|
|
1257
1260
|
cableAttributes CableAtttributes[]
|
|
1258
1261
|
qrCodeTemplate qrCodeTemplate[]
|
|
1262
|
+
Cable Cable[]
|
|
1259
1263
|
}
|
|
1260
1264
|
|
|
1261
1265
|
model CableAtttributes {
|
|
@@ -1325,6 +1329,7 @@ model PboFatTemplate {
|
|
|
1325
1329
|
|
|
1326
1330
|
//TODO: Add the fields for input/output cable, previous/next equipment, CO and project phase
|
|
1327
1331
|
qrCodeTemplate qrCodeTemplate[]
|
|
1332
|
+
PboFat PboFat[]
|
|
1328
1333
|
}
|
|
1329
1334
|
|
|
1330
1335
|
model PboFat {
|
|
@@ -1352,6 +1357,9 @@ model PboFat {
|
|
|
1352
1357
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1353
1358
|
networkElementId String
|
|
1354
1359
|
|
|
1360
|
+
template PboFatTemplate? @relation(fields: [templateId], references: [id])
|
|
1361
|
+
templateId String?
|
|
1362
|
+
|
|
1355
1363
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1356
1364
|
projectId String?
|
|
1357
1365
|
|
|
@@ -1416,6 +1424,9 @@ model SpliceClosure {
|
|
|
1416
1424
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1417
1425
|
projectId String?
|
|
1418
1426
|
|
|
1427
|
+
template SpliceClosureTemplate? @relation(fields: [templateId], references: [id])
|
|
1428
|
+
templateId String?
|
|
1429
|
+
|
|
1419
1430
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1420
1431
|
clusterId String?
|
|
1421
1432
|
|
|
@@ -1455,6 +1466,7 @@ model SpliceClosureTemplate {
|
|
|
1455
1466
|
|
|
1456
1467
|
spliceClosureAttributes SpliceClosureAttributes[]
|
|
1457
1468
|
qrCodeTemplate qrCodeTemplate[]
|
|
1469
|
+
SpliceClosure SpliceClosure[]
|
|
1458
1470
|
}
|
|
1459
1471
|
|
|
1460
1472
|
model SpliceClosureAttributes {
|
|
@@ -1509,6 +1521,9 @@ model ZoneNro {
|
|
|
1509
1521
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1510
1522
|
networkElementId String
|
|
1511
1523
|
|
|
1524
|
+
template ZoneNroTemplate? @relation(fields: [templateId], references: [id])
|
|
1525
|
+
templateId String?
|
|
1526
|
+
|
|
1512
1527
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1513
1528
|
projectId String?
|
|
1514
1529
|
|
|
@@ -1548,6 +1563,7 @@ model ZoneNroTemplate {
|
|
|
1548
1563
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1549
1564
|
clusterId String?
|
|
1550
1565
|
qrCodeTemplate qrCodeTemplate[]
|
|
1566
|
+
ZoneNro ZoneNro[]
|
|
1551
1567
|
}
|
|
1552
1568
|
|
|
1553
1569
|
model Pole {
|
|
@@ -1575,6 +1591,9 @@ model Pole {
|
|
|
1575
1591
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1576
1592
|
networkElementId String
|
|
1577
1593
|
|
|
1594
|
+
template PoleTemplate? @relation(fields: [templateId], references: [id])
|
|
1595
|
+
templateId String?
|
|
1596
|
+
|
|
1578
1597
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1579
1598
|
projectId String?
|
|
1580
1599
|
|
|
@@ -1613,6 +1632,7 @@ model PoleTemplate {
|
|
|
1613
1632
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1614
1633
|
clusterId String?
|
|
1615
1634
|
qrCodeTemplate qrCodeTemplate[]
|
|
1635
|
+
Pole Pole[]
|
|
1616
1636
|
}
|
|
1617
1637
|
|
|
1618
1638
|
model Manhole {
|
|
@@ -1640,6 +1660,9 @@ model Manhole {
|
|
|
1640
1660
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1641
1661
|
networkElementId String
|
|
1642
1662
|
|
|
1663
|
+
template ManholeTemplate? @relation(fields: [templateId], references: [id])
|
|
1664
|
+
templateId String?
|
|
1665
|
+
|
|
1643
1666
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1644
1667
|
projectId String?
|
|
1645
1668
|
|
|
@@ -1678,6 +1701,7 @@ model ManholeTemplate {
|
|
|
1678
1701
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1679
1702
|
clusterId String?
|
|
1680
1703
|
qrCodeTemplate qrCodeTemplate[]
|
|
1704
|
+
Manhole Manhole[]
|
|
1681
1705
|
}
|
|
1682
1706
|
|
|
1683
1707
|
model Loop {
|
|
@@ -1705,6 +1729,9 @@ model Loop {
|
|
|
1705
1729
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1706
1730
|
networkElementId String
|
|
1707
1731
|
|
|
1732
|
+
template LoopTemplate? @relation(fields: [templateId], references: [id])
|
|
1733
|
+
templateId String?
|
|
1734
|
+
|
|
1708
1735
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1709
1736
|
projectId String?
|
|
1710
1737
|
|
|
@@ -1743,6 +1770,7 @@ model LoopTemplate {
|
|
|
1743
1770
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1744
1771
|
clusterId String?
|
|
1745
1772
|
qrCodeTemplate qrCodeTemplate[]
|
|
1773
|
+
Loop Loop[]
|
|
1746
1774
|
}
|
|
1747
1775
|
|
|
1748
1776
|
model FDTSRO {
|
|
@@ -1770,6 +1798,9 @@ model FDTSRO {
|
|
|
1770
1798
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1771
1799
|
networkElementId String
|
|
1772
1800
|
|
|
1801
|
+
template FDTSROTemplate? @relation(fields: [templateId], references: [id])
|
|
1802
|
+
templateId String?
|
|
1803
|
+
|
|
1773
1804
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1774
1805
|
projectId String?
|
|
1775
1806
|
|
|
@@ -1808,6 +1839,7 @@ model FDTSROTemplate {
|
|
|
1808
1839
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1809
1840
|
clusterId String?
|
|
1810
1841
|
qrCodeTemplate qrCodeTemplate[]
|
|
1842
|
+
FDTSRO FDTSRO[]
|
|
1811
1843
|
}
|
|
1812
1844
|
|
|
1813
1845
|
model SFU {
|
|
@@ -1835,6 +1867,9 @@ model SFU {
|
|
|
1835
1867
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1836
1868
|
networkElementId String
|
|
1837
1869
|
|
|
1870
|
+
template SFUTemplate? @relation(fields: [templateId], references: [id])
|
|
1871
|
+
templateId String?
|
|
1872
|
+
|
|
1838
1873
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1839
1874
|
projectId String?
|
|
1840
1875
|
|
|
@@ -1873,6 +1908,7 @@ model SFUTemplate {
|
|
|
1873
1908
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1874
1909
|
clusterId String?
|
|
1875
1910
|
qrCodeTemplate qrCodeTemplate[]
|
|
1911
|
+
SFU SFU[]
|
|
1876
1912
|
}
|
|
1877
1913
|
|
|
1878
1914
|
model Building {
|
|
@@ -1900,6 +1936,9 @@ model Building {
|
|
|
1900
1936
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1901
1937
|
networkElementId String
|
|
1902
1938
|
|
|
1939
|
+
template BuildingTemplate? @relation(fields: [templateId], references: [id])
|
|
1940
|
+
templateId String?
|
|
1941
|
+
|
|
1903
1942
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1904
1943
|
projectId String?
|
|
1905
1944
|
|
|
@@ -1938,6 +1977,7 @@ model BuildingTemplate {
|
|
|
1938
1977
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1939
1978
|
clusterId String?
|
|
1940
1979
|
qrCodeTemplate qrCodeTemplate[]
|
|
1980
|
+
Building Building[]
|
|
1941
1981
|
}
|
|
1942
1982
|
|
|
1943
1983
|
model CentralOffice {
|