efiber-prisma-schema 1.6.4 → 1.6.6
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 +83 -39
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -442,7 +442,7 @@ model Project {
|
|
|
442
442
|
Cable Cable[]
|
|
443
443
|
CableTemplate CableTemplate[]
|
|
444
444
|
CentralOffice CentralOffice[]
|
|
445
|
-
|
|
445
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
446
446
|
projectPhaseLog projectPhaseLog[]
|
|
447
447
|
ZoneNro ZoneNro[]
|
|
448
448
|
Pole Pole[]
|
|
@@ -660,22 +660,23 @@ model EmailsOutgoing {
|
|
|
660
660
|
}
|
|
661
661
|
|
|
662
662
|
model EmailTemplates {
|
|
663
|
-
id
|
|
664
|
-
no
|
|
665
|
-
name
|
|
666
|
-
subject
|
|
667
|
-
body
|
|
668
|
-
signature
|
|
669
|
-
attachments
|
|
670
|
-
workOrderInfo
|
|
671
|
-
mailingList
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
projectId
|
|
663
|
+
id String @id @unique @default(uuid())
|
|
664
|
+
no Int @default(autoincrement())
|
|
665
|
+
name String
|
|
666
|
+
subject String?
|
|
667
|
+
body String?
|
|
668
|
+
signature String? //Signature of the email
|
|
669
|
+
attachments Json?
|
|
670
|
+
workOrderInfo Json?
|
|
671
|
+
mailingList Json?
|
|
672
|
+
carbonCopyList Json?
|
|
673
|
+
templateInfo Json?
|
|
674
|
+
status String @default("active")
|
|
675
|
+
createdAt DateTime @default(now())
|
|
676
|
+
updatedAt DateTime @updatedAt
|
|
677
|
+
deletedAt DateTime?
|
|
678
|
+
project Project @relation(fields: [projectId], references: [id])
|
|
679
|
+
projectId String
|
|
679
680
|
}
|
|
680
681
|
|
|
681
682
|
model WorkOrder {
|
|
@@ -1171,7 +1172,7 @@ model NetworkElement {
|
|
|
1171
1172
|
Cable Cable[]
|
|
1172
1173
|
SpliceClosure SpliceClosure[]
|
|
1173
1174
|
CableTemplate CableTemplate[]
|
|
1174
|
-
|
|
1175
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
1175
1176
|
ZoneNro ZoneNro[]
|
|
1176
1177
|
Pole Pole[]
|
|
1177
1178
|
Manhole Manhole[]
|
|
@@ -1218,7 +1219,8 @@ model Cable {
|
|
|
1218
1219
|
cableAttributes CableAtttributes[]
|
|
1219
1220
|
PboFatAttributes PboFatAttributes[]
|
|
1220
1221
|
SpliceClosureAttributes SpliceClosureAttributes[]
|
|
1221
|
-
qrCode qrCode[]
|
|
1222
|
+
// qrCode qrCode[]
|
|
1223
|
+
qrCodeTag qrCodeTag[]
|
|
1222
1224
|
}
|
|
1223
1225
|
|
|
1224
1226
|
model CableTemplate {
|
|
@@ -1248,7 +1250,7 @@ model CableTemplate {
|
|
|
1248
1250
|
projectId String?
|
|
1249
1251
|
|
|
1250
1252
|
cableAttributes CableAtttributes[]
|
|
1251
|
-
|
|
1253
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
1252
1254
|
}
|
|
1253
1255
|
|
|
1254
1256
|
model CableAtttributes {
|
|
@@ -1315,7 +1317,7 @@ model PboFatTemplate {
|
|
|
1315
1317
|
pboFatAttributes PboFatAttributes[]
|
|
1316
1318
|
|
|
1317
1319
|
//TODO: Add the fields for input/output cable, previous/next equipment, CO and project phase
|
|
1318
|
-
|
|
1320
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
1319
1321
|
}
|
|
1320
1322
|
|
|
1321
1323
|
model PboFat {
|
|
@@ -1344,7 +1346,8 @@ model PboFat {
|
|
|
1344
1346
|
projectId String?
|
|
1345
1347
|
|
|
1346
1348
|
pboFatAttributes PboFatAttributes[]
|
|
1347
|
-
qrCode qrCode[]
|
|
1349
|
+
// qrCode qrCode[]
|
|
1350
|
+
qrCodeTag qrCodeTag[]
|
|
1348
1351
|
}
|
|
1349
1352
|
|
|
1350
1353
|
model PboFatAttributes {
|
|
@@ -1404,6 +1407,7 @@ model SpliceClosure {
|
|
|
1404
1407
|
clusterId String?
|
|
1405
1408
|
|
|
1406
1409
|
spliceClosureAttributes SpliceClosureAttributes[]
|
|
1410
|
+
qrCodeTag qrCodeTag[]
|
|
1407
1411
|
}
|
|
1408
1412
|
|
|
1409
1413
|
model SpliceClosureTemplate {
|
|
@@ -1488,8 +1492,9 @@ model ZoneNro {
|
|
|
1488
1492
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1489
1493
|
projectId String?
|
|
1490
1494
|
|
|
1491
|
-
cluster Cluster?
|
|
1495
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1492
1496
|
clusterId String?
|
|
1497
|
+
qrCodeTag qrCodeTag[]
|
|
1493
1498
|
}
|
|
1494
1499
|
|
|
1495
1500
|
model ZoneNroTemplate {
|
|
@@ -1546,8 +1551,9 @@ model Pole {
|
|
|
1546
1551
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1547
1552
|
projectId String?
|
|
1548
1553
|
|
|
1549
|
-
cluster Cluster?
|
|
1554
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1550
1555
|
clusterId String?
|
|
1556
|
+
qrCodeTag qrCodeTag[]
|
|
1551
1557
|
}
|
|
1552
1558
|
|
|
1553
1559
|
model PoleTemplate {
|
|
@@ -1604,8 +1610,9 @@ model Manhole {
|
|
|
1604
1610
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1605
1611
|
projectId String?
|
|
1606
1612
|
|
|
1607
|
-
cluster Cluster?
|
|
1613
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1608
1614
|
clusterId String?
|
|
1615
|
+
qrCodeTag qrCodeTag[]
|
|
1609
1616
|
}
|
|
1610
1617
|
|
|
1611
1618
|
model ManholeTemplate {
|
|
@@ -1662,8 +1669,9 @@ model Loop {
|
|
|
1662
1669
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1663
1670
|
projectId String?
|
|
1664
1671
|
|
|
1665
|
-
cluster Cluster?
|
|
1672
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1666
1673
|
clusterId String?
|
|
1674
|
+
qrCodeTag qrCodeTag[]
|
|
1667
1675
|
}
|
|
1668
1676
|
|
|
1669
1677
|
model LoopTemplate {
|
|
@@ -1720,8 +1728,9 @@ model FDTSRO {
|
|
|
1720
1728
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1721
1729
|
projectId String?
|
|
1722
1730
|
|
|
1723
|
-
cluster Cluster?
|
|
1731
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1724
1732
|
clusterId String?
|
|
1733
|
+
qrCodeTag qrCodeTag[]
|
|
1725
1734
|
}
|
|
1726
1735
|
|
|
1727
1736
|
model FDTSROTemplate {
|
|
@@ -1778,8 +1787,9 @@ model SFU {
|
|
|
1778
1787
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1779
1788
|
projectId String?
|
|
1780
1789
|
|
|
1781
|
-
cluster Cluster?
|
|
1790
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1782
1791
|
clusterId String?
|
|
1792
|
+
qrCodeTag qrCodeTag[]
|
|
1783
1793
|
}
|
|
1784
1794
|
|
|
1785
1795
|
model SFUTemplate {
|
|
@@ -1836,8 +1846,9 @@ model Building {
|
|
|
1836
1846
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1837
1847
|
projectId String?
|
|
1838
1848
|
|
|
1839
|
-
cluster Cluster?
|
|
1849
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1840
1850
|
clusterId String?
|
|
1851
|
+
qrCodeTag qrCodeTag[]
|
|
1841
1852
|
}
|
|
1842
1853
|
|
|
1843
1854
|
model BuildingTemplate {
|
|
@@ -1918,7 +1929,7 @@ model Cluster {
|
|
|
1918
1929
|
BuildingTemplate BuildingTemplate[]
|
|
1919
1930
|
}
|
|
1920
1931
|
|
|
1921
|
-
model
|
|
1932
|
+
model qrCodeTemplate {
|
|
1922
1933
|
id String @id @unique @default(uuid())
|
|
1923
1934
|
no Int @default(autoincrement())
|
|
1924
1935
|
name String
|
|
@@ -1937,8 +1948,12 @@ model qrCode {
|
|
|
1937
1948
|
projectId String?
|
|
1938
1949
|
|
|
1939
1950
|
// one to many relation with network element
|
|
1940
|
-
networkElement NetworkElement? @relation(fields: [
|
|
1951
|
+
networkElement NetworkElement? @relation(fields: [networkElementTypeId], references: [id])
|
|
1952
|
+
networkElementTypeId String?
|
|
1953
|
+
|
|
1954
|
+
|
|
1941
1955
|
networkElementId String?
|
|
1956
|
+
templateId String?
|
|
1942
1957
|
|
|
1943
1958
|
pboFatTemplate PboFatTemplate? @relation(fields: [pboFatTemplateId], references: [id])
|
|
1944
1959
|
pboFatTemplateId String?
|
|
@@ -1946,13 +1961,9 @@ model qrCode {
|
|
|
1946
1961
|
cableTemplate CableTemplate? @relation(fields: [cableTemplateId], references: [id])
|
|
1947
1962
|
cableTemplateId String?
|
|
1948
1963
|
|
|
1949
|
-
// one to many relation with cable
|
|
1950
|
-
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1951
|
-
cableId String?
|
|
1952
1964
|
|
|
1953
|
-
//
|
|
1954
|
-
pboFat PboFat? @relation(fields: [
|
|
1955
|
-
pboFatId String?
|
|
1965
|
+
// cable Cable? @relation(fields: [networkElementId], references: [id])
|
|
1966
|
+
// pboFat PboFat? @relation(fields: [networkElementId], references: [id])
|
|
1956
1967
|
qrCodeTag qrCodeTag[]
|
|
1957
1968
|
}
|
|
1958
1969
|
|
|
@@ -1968,6 +1979,39 @@ model qrCodeTag {
|
|
|
1968
1979
|
updatedAt DateTime @updatedAt
|
|
1969
1980
|
deletedAt DateTime?
|
|
1970
1981
|
|
|
1971
|
-
|
|
1972
|
-
|
|
1982
|
+
templateId String?
|
|
1983
|
+
networkElementId String?
|
|
1984
|
+
|
|
1985
|
+
qrCode qrCodeTemplate @relation(fields: [qrCodeTemplateId], references: [id])
|
|
1986
|
+
qrCodeTemplateId String
|
|
1987
|
+
|
|
1988
|
+
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1989
|
+
cableId String?
|
|
1990
|
+
|
|
1991
|
+
pboFat PboFat? @relation(fields: [pboFatId], references: [id])
|
|
1992
|
+
pboFatId String?
|
|
1993
|
+
|
|
1994
|
+
spliceClosure SpliceClosure? @relation(fields: [spliceClosureId], references: [id])
|
|
1995
|
+
spliceClosureId String?
|
|
1996
|
+
|
|
1997
|
+
zoneNro ZoneNro? @relation(fields: [zoneNroId], references: [id])
|
|
1998
|
+
zoneNroId String?
|
|
1999
|
+
|
|
2000
|
+
pole Pole? @relation(fields: [poleId], references: [id])
|
|
2001
|
+
poleId String?
|
|
2002
|
+
|
|
2003
|
+
manhole Manhole? @relation(fields: [manholeId], references: [id])
|
|
2004
|
+
manholeId String?
|
|
2005
|
+
|
|
2006
|
+
loop Loop? @relation(fields: [loopId], references: [id])
|
|
2007
|
+
loopId String?
|
|
2008
|
+
|
|
2009
|
+
fdtsro FDTSRO? @relation(fields: [fdtsroId], references: [id])
|
|
2010
|
+
fdtsroId String?
|
|
2011
|
+
|
|
2012
|
+
sfu SFU? @relation(fields: [sfuId], references: [id])
|
|
2013
|
+
sfuId String?
|
|
2014
|
+
|
|
2015
|
+
building Building? @relation(fields: [buildingId], references: [id])
|
|
2016
|
+
buildingId String?
|
|
1973
2017
|
}
|