efiber-prisma-schema 1.6.11 → 1.7.0
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 +115 -13
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1216,14 +1216,20 @@ 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
|
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1226
|
+
installationId String?
|
|
1227
|
+
|
|
1228
|
+
cableAttributes CableAtttributes[]
|
|
1229
|
+
PboFatAttributes PboFatAttributes[]
|
|
1230
|
+
// SpliceClosureAttributes SpliceClosureAttributes[]
|
|
1225
1231
|
// qrCode qrCode[]
|
|
1226
|
-
qrCodeTag
|
|
1232
|
+
qrCodeTag qrCodeTag[]
|
|
1227
1233
|
}
|
|
1228
1234
|
|
|
1229
1235
|
model CableTemplate {
|
|
@@ -1256,6 +1262,7 @@ model CableTemplate {
|
|
|
1256
1262
|
|
|
1257
1263
|
cableAttributes CableAtttributes[]
|
|
1258
1264
|
qrCodeTemplate qrCodeTemplate[]
|
|
1265
|
+
Cable Cable[]
|
|
1259
1266
|
}
|
|
1260
1267
|
|
|
1261
1268
|
model CableAtttributes {
|
|
@@ -1325,6 +1332,7 @@ model PboFatTemplate {
|
|
|
1325
1332
|
|
|
1326
1333
|
//TODO: Add the fields for input/output cable, previous/next equipment, CO and project phase
|
|
1327
1334
|
qrCodeTemplate qrCodeTemplate[]
|
|
1335
|
+
PboFat PboFat[]
|
|
1328
1336
|
}
|
|
1329
1337
|
|
|
1330
1338
|
model PboFat {
|
|
@@ -1352,9 +1360,15 @@ model PboFat {
|
|
|
1352
1360
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1353
1361
|
networkElementId String
|
|
1354
1362
|
|
|
1363
|
+
template PboFatTemplate? @relation(fields: [templateId], references: [id])
|
|
1364
|
+
templateId String?
|
|
1365
|
+
|
|
1355
1366
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1356
1367
|
projectId String?
|
|
1357
1368
|
|
|
1369
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1370
|
+
installationId String?
|
|
1371
|
+
|
|
1358
1372
|
pboFatAttributes PboFatAttributes[]
|
|
1359
1373
|
// qrCode qrCode[]
|
|
1360
1374
|
qrCodeTag qrCodeTag[]
|
|
@@ -1416,9 +1430,15 @@ model SpliceClosure {
|
|
|
1416
1430
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1417
1431
|
projectId String?
|
|
1418
1432
|
|
|
1433
|
+
template SpliceClosureTemplate? @relation(fields: [templateId], references: [id])
|
|
1434
|
+
templateId String?
|
|
1435
|
+
|
|
1419
1436
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1420
1437
|
clusterId String?
|
|
1421
1438
|
|
|
1439
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1440
|
+
installationId String?
|
|
1441
|
+
|
|
1422
1442
|
spliceClosureAttributes SpliceClosureAttributes[]
|
|
1423
1443
|
qrCodeTag qrCodeTag[]
|
|
1424
1444
|
}
|
|
@@ -1455,6 +1475,7 @@ model SpliceClosureTemplate {
|
|
|
1455
1475
|
|
|
1456
1476
|
spliceClosureAttributes SpliceClosureAttributes[]
|
|
1457
1477
|
qrCodeTemplate qrCodeTemplate[]
|
|
1478
|
+
SpliceClosure SpliceClosure[]
|
|
1458
1479
|
}
|
|
1459
1480
|
|
|
1460
1481
|
model SpliceClosureAttributes {
|
|
@@ -1468,8 +1489,8 @@ model SpliceClosureAttributes {
|
|
|
1468
1489
|
updatedAt DateTime @updatedAt
|
|
1469
1490
|
deletedAt DateTime?
|
|
1470
1491
|
|
|
1471
|
-
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1472
|
-
cableId String?
|
|
1492
|
+
// cable Cable? @relation(fields: [cableId], references: [id])
|
|
1493
|
+
// cableId String?
|
|
1473
1494
|
|
|
1474
1495
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1475
1496
|
projectId String?
|
|
@@ -1509,11 +1530,18 @@ model ZoneNro {
|
|
|
1509
1530
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1510
1531
|
networkElementId String
|
|
1511
1532
|
|
|
1533
|
+
template ZoneNroTemplate? @relation(fields: [templateId], references: [id])
|
|
1534
|
+
templateId String?
|
|
1535
|
+
|
|
1512
1536
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1513
1537
|
projectId String?
|
|
1514
1538
|
|
|
1515
|
-
cluster Cluster?
|
|
1539
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1516
1540
|
clusterId String?
|
|
1541
|
+
|
|
1542
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1543
|
+
installationId String?
|
|
1544
|
+
|
|
1517
1545
|
qrCodeTag qrCodeTag[]
|
|
1518
1546
|
}
|
|
1519
1547
|
|
|
@@ -1548,6 +1576,7 @@ model ZoneNroTemplate {
|
|
|
1548
1576
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1549
1577
|
clusterId String?
|
|
1550
1578
|
qrCodeTemplate qrCodeTemplate[]
|
|
1579
|
+
ZoneNro ZoneNro[]
|
|
1551
1580
|
}
|
|
1552
1581
|
|
|
1553
1582
|
model Pole {
|
|
@@ -1575,11 +1604,18 @@ model Pole {
|
|
|
1575
1604
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1576
1605
|
networkElementId String
|
|
1577
1606
|
|
|
1607
|
+
template PoleTemplate? @relation(fields: [templateId], references: [id])
|
|
1608
|
+
templateId String?
|
|
1609
|
+
|
|
1578
1610
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1579
1611
|
projectId String?
|
|
1580
1612
|
|
|
1581
|
-
cluster Cluster?
|
|
1613
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1582
1614
|
clusterId String?
|
|
1615
|
+
|
|
1616
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1617
|
+
installationId String?
|
|
1618
|
+
|
|
1583
1619
|
qrCodeTag qrCodeTag[]
|
|
1584
1620
|
}
|
|
1585
1621
|
|
|
@@ -1613,6 +1649,7 @@ model PoleTemplate {
|
|
|
1613
1649
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1614
1650
|
clusterId String?
|
|
1615
1651
|
qrCodeTemplate qrCodeTemplate[]
|
|
1652
|
+
Pole Pole[]
|
|
1616
1653
|
}
|
|
1617
1654
|
|
|
1618
1655
|
model Manhole {
|
|
@@ -1640,11 +1677,18 @@ model Manhole {
|
|
|
1640
1677
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1641
1678
|
networkElementId String
|
|
1642
1679
|
|
|
1680
|
+
template ManholeTemplate? @relation(fields: [templateId], references: [id])
|
|
1681
|
+
templateId String?
|
|
1682
|
+
|
|
1643
1683
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1644
1684
|
projectId String?
|
|
1645
1685
|
|
|
1646
|
-
cluster Cluster?
|
|
1686
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1647
1687
|
clusterId String?
|
|
1688
|
+
|
|
1689
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1690
|
+
installationId String?
|
|
1691
|
+
|
|
1648
1692
|
qrCodeTag qrCodeTag[]
|
|
1649
1693
|
}
|
|
1650
1694
|
|
|
@@ -1678,6 +1722,7 @@ model ManholeTemplate {
|
|
|
1678
1722
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1679
1723
|
clusterId String?
|
|
1680
1724
|
qrCodeTemplate qrCodeTemplate[]
|
|
1725
|
+
Manhole Manhole[]
|
|
1681
1726
|
}
|
|
1682
1727
|
|
|
1683
1728
|
model Loop {
|
|
@@ -1705,11 +1750,18 @@ model Loop {
|
|
|
1705
1750
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1706
1751
|
networkElementId String
|
|
1707
1752
|
|
|
1753
|
+
template LoopTemplate? @relation(fields: [templateId], references: [id])
|
|
1754
|
+
templateId String?
|
|
1755
|
+
|
|
1708
1756
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1709
1757
|
projectId String?
|
|
1710
1758
|
|
|
1711
|
-
cluster Cluster?
|
|
1759
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1712
1760
|
clusterId String?
|
|
1761
|
+
|
|
1762
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1763
|
+
installationId String?
|
|
1764
|
+
|
|
1713
1765
|
qrCodeTag qrCodeTag[]
|
|
1714
1766
|
}
|
|
1715
1767
|
|
|
@@ -1743,6 +1795,7 @@ model LoopTemplate {
|
|
|
1743
1795
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1744
1796
|
clusterId String?
|
|
1745
1797
|
qrCodeTemplate qrCodeTemplate[]
|
|
1798
|
+
Loop Loop[]
|
|
1746
1799
|
}
|
|
1747
1800
|
|
|
1748
1801
|
model FDTSRO {
|
|
@@ -1770,11 +1823,18 @@ model FDTSRO {
|
|
|
1770
1823
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1771
1824
|
networkElementId String
|
|
1772
1825
|
|
|
1826
|
+
template FDTSROTemplate? @relation(fields: [templateId], references: [id])
|
|
1827
|
+
templateId String?
|
|
1828
|
+
|
|
1773
1829
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1774
1830
|
projectId String?
|
|
1775
1831
|
|
|
1776
|
-
cluster Cluster?
|
|
1832
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1777
1833
|
clusterId String?
|
|
1834
|
+
|
|
1835
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1836
|
+
installationId String?
|
|
1837
|
+
|
|
1778
1838
|
qrCodeTag qrCodeTag[]
|
|
1779
1839
|
}
|
|
1780
1840
|
|
|
@@ -1808,6 +1868,7 @@ model FDTSROTemplate {
|
|
|
1808
1868
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1809
1869
|
clusterId String?
|
|
1810
1870
|
qrCodeTemplate qrCodeTemplate[]
|
|
1871
|
+
FDTSRO FDTSRO[]
|
|
1811
1872
|
}
|
|
1812
1873
|
|
|
1813
1874
|
model SFU {
|
|
@@ -1835,11 +1896,18 @@ model SFU {
|
|
|
1835
1896
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1836
1897
|
networkElementId String
|
|
1837
1898
|
|
|
1899
|
+
template SFUTemplate? @relation(fields: [templateId], references: [id])
|
|
1900
|
+
templateId String?
|
|
1901
|
+
|
|
1838
1902
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1839
1903
|
projectId String?
|
|
1840
1904
|
|
|
1841
|
-
cluster Cluster?
|
|
1905
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1842
1906
|
clusterId String?
|
|
1907
|
+
|
|
1908
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1909
|
+
installationId String?
|
|
1910
|
+
|
|
1843
1911
|
qrCodeTag qrCodeTag[]
|
|
1844
1912
|
}
|
|
1845
1913
|
|
|
@@ -1873,6 +1941,7 @@ model SFUTemplate {
|
|
|
1873
1941
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1874
1942
|
clusterId String?
|
|
1875
1943
|
qrCodeTemplate qrCodeTemplate[]
|
|
1944
|
+
SFU SFU[]
|
|
1876
1945
|
}
|
|
1877
1946
|
|
|
1878
1947
|
model Building {
|
|
@@ -1900,11 +1969,18 @@ model Building {
|
|
|
1900
1969
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1901
1970
|
networkElementId String
|
|
1902
1971
|
|
|
1972
|
+
template BuildingTemplate? @relation(fields: [templateId], references: [id])
|
|
1973
|
+
templateId String?
|
|
1974
|
+
|
|
1903
1975
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1904
1976
|
projectId String?
|
|
1905
1977
|
|
|
1906
|
-
cluster Cluster?
|
|
1978
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1907
1979
|
clusterId String?
|
|
1980
|
+
|
|
1981
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1982
|
+
installationId String?
|
|
1983
|
+
|
|
1908
1984
|
qrCodeTag qrCodeTag[]
|
|
1909
1985
|
}
|
|
1910
1986
|
|
|
@@ -1938,6 +2014,32 @@ model BuildingTemplate {
|
|
|
1938
2014
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1939
2015
|
clusterId String?
|
|
1940
2016
|
qrCodeTemplate qrCodeTemplate[]
|
|
2017
|
+
Building Building[]
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
model NetworkElementInstallation {
|
|
2021
|
+
id String @id @unique @default(uuid())
|
|
2022
|
+
no Int @default(autoincrement())
|
|
2023
|
+
|
|
2024
|
+
createdAt DateTime @default(now())
|
|
2025
|
+
updatedAt DateTime @updatedAt
|
|
2026
|
+
|
|
2027
|
+
previousType String?
|
|
2028
|
+
previousName String?
|
|
2029
|
+
previousId String?
|
|
2030
|
+
nextType String?
|
|
2031
|
+
nextName String?
|
|
2032
|
+
nextId String?
|
|
2033
|
+
Cable Cable[]
|
|
2034
|
+
PboFat PboFat[]
|
|
2035
|
+
SpliceClosure SpliceClosure[]
|
|
2036
|
+
ZoneNro ZoneNro[]
|
|
2037
|
+
Pole Pole[]
|
|
2038
|
+
Manhole Manhole[]
|
|
2039
|
+
Loop Loop[]
|
|
2040
|
+
FDTSRO FDTSRO[]
|
|
2041
|
+
SFU SFU[]
|
|
2042
|
+
Building Building[]
|
|
1941
2043
|
}
|
|
1942
2044
|
|
|
1943
2045
|
model CentralOffice {
|