efiber-prisma-schema 1.6.12 → 1.7.1
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 +144 -63
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -362,31 +362,32 @@ model User {
|
|
|
362
362
|
workOrderEditLogs WorkOrderEditLog[]
|
|
363
363
|
Notifications Notifications[]
|
|
364
364
|
|
|
365
|
-
pboFatTemplates
|
|
366
|
-
pboFat
|
|
367
|
-
cable
|
|
368
|
-
SpliceClosure
|
|
369
|
-
CableTemplate
|
|
370
|
-
CentralOffice
|
|
371
|
-
centralOfficeId
|
|
372
|
-
Cluster
|
|
373
|
-
clusterId
|
|
374
|
-
projectPhaseLog
|
|
375
|
-
ZoneNro
|
|
376
|
-
Pole
|
|
377
|
-
Manhole
|
|
378
|
-
Loop
|
|
379
|
-
FDTSRO
|
|
380
|
-
SFU
|
|
381
|
-
Building
|
|
382
|
-
SpliceClosureTemplate
|
|
383
|
-
ZoneNroTemplate
|
|
384
|
-
PoleTemplate
|
|
385
|
-
ManholeTemplate
|
|
386
|
-
LoopTemplate
|
|
387
|
-
FDTSROTemplate
|
|
388
|
-
SFUTemplate
|
|
389
|
-
BuildingTemplate
|
|
365
|
+
pboFatTemplates PboFatTemplate[]
|
|
366
|
+
pboFat PboFat[]
|
|
367
|
+
cable Cable[]
|
|
368
|
+
SpliceClosure SpliceClosure[]
|
|
369
|
+
CableTemplate CableTemplate[]
|
|
370
|
+
CentralOffice CentralOffice? @relation(fields: [centralOfficeId], references: [id])
|
|
371
|
+
centralOfficeId String?
|
|
372
|
+
Cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
373
|
+
clusterId String?
|
|
374
|
+
projectPhaseLog projectPhaseLog[]
|
|
375
|
+
ZoneNro ZoneNro[]
|
|
376
|
+
Pole Pole[]
|
|
377
|
+
Manhole Manhole[]
|
|
378
|
+
Loop Loop[]
|
|
379
|
+
FDTSRO FDTSRO[]
|
|
380
|
+
SFU SFU[]
|
|
381
|
+
Building Building[]
|
|
382
|
+
SpliceClosureTemplate SpliceClosureTemplate[]
|
|
383
|
+
ZoneNroTemplate ZoneNroTemplate[]
|
|
384
|
+
PoleTemplate PoleTemplate[]
|
|
385
|
+
ManholeTemplate ManholeTemplate[]
|
|
386
|
+
LoopTemplate LoopTemplate[]
|
|
387
|
+
FDTSROTemplate FDTSROTemplate[]
|
|
388
|
+
SFUTemplate SFUTemplate[]
|
|
389
|
+
BuildingTemplate BuildingTemplate[]
|
|
390
|
+
integrationProjectUserStatus integrationProjectUserStatus[]
|
|
390
391
|
}
|
|
391
392
|
|
|
392
393
|
model MainProject {
|
|
@@ -435,31 +436,49 @@ model Project {
|
|
|
435
436
|
ReportFormats ReportFormats[]
|
|
436
437
|
platforms Platform[]
|
|
437
438
|
|
|
438
|
-
pboFatTemplates
|
|
439
|
-
pboFat
|
|
440
|
-
cableAttributes
|
|
441
|
-
spliceClosureAttributes
|
|
442
|
-
Cable
|
|
443
|
-
CableTemplate
|
|
444
|
-
CentralOffice
|
|
445
|
-
qrCodeTemplate
|
|
446
|
-
projectPhaseLog
|
|
447
|
-
ZoneNro
|
|
448
|
-
Pole
|
|
449
|
-
Manhole
|
|
450
|
-
Loop
|
|
451
|
-
FDTSRO
|
|
452
|
-
SFU
|
|
453
|
-
Building
|
|
454
|
-
SpliceClosure
|
|
455
|
-
SpliceClosureTemplate
|
|
456
|
-
ZoneNroTemplate
|
|
457
|
-
PoleTemplate
|
|
458
|
-
ManholeTemplate
|
|
459
|
-
LoopTemplate
|
|
460
|
-
FDTSROTemplate
|
|
461
|
-
SFUTemplate
|
|
462
|
-
BuildingTemplate
|
|
439
|
+
pboFatTemplates PboFatTemplate[]
|
|
440
|
+
pboFat PboFat[]
|
|
441
|
+
cableAttributes CableAtttributes[]
|
|
442
|
+
spliceClosureAttributes SpliceClosureAttributes[]
|
|
443
|
+
Cable Cable[]
|
|
444
|
+
CableTemplate CableTemplate[]
|
|
445
|
+
CentralOffice CentralOffice[]
|
|
446
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
447
|
+
projectPhaseLog projectPhaseLog[]
|
|
448
|
+
ZoneNro ZoneNro[]
|
|
449
|
+
Pole Pole[]
|
|
450
|
+
Manhole Manhole[]
|
|
451
|
+
Loop Loop[]
|
|
452
|
+
FDTSRO FDTSRO[]
|
|
453
|
+
SFU SFU[]
|
|
454
|
+
Building Building[]
|
|
455
|
+
SpliceClosure SpliceClosure[]
|
|
456
|
+
SpliceClosureTemplate SpliceClosureTemplate[]
|
|
457
|
+
ZoneNroTemplate ZoneNroTemplate[]
|
|
458
|
+
PoleTemplate PoleTemplate[]
|
|
459
|
+
ManholeTemplate ManholeTemplate[]
|
|
460
|
+
LoopTemplate LoopTemplate[]
|
|
461
|
+
FDTSROTemplate FDTSROTemplate[]
|
|
462
|
+
SFUTemplate SFUTemplate[]
|
|
463
|
+
BuildingTemplate BuildingTemplate[]
|
|
464
|
+
integrationProjectUserStatus integrationProjectUserStatus[]
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
model integrationProjectUserStatus {
|
|
468
|
+
id String @id @unique @default(uuid())
|
|
469
|
+
no Int @default(autoincrement())
|
|
470
|
+
isOnline Boolean @default(false)
|
|
471
|
+
connectedAt DateTime?
|
|
472
|
+
|
|
473
|
+
createdAt DateTime @default(now())
|
|
474
|
+
updatedAt DateTime @updatedAt
|
|
475
|
+
deletedAt DateTime?
|
|
476
|
+
|
|
477
|
+
User User? @relation(fields: [userId], references: [id])
|
|
478
|
+
userId String?
|
|
479
|
+
|
|
480
|
+
Project Project? @relation(fields: [projectId], references: [id])
|
|
481
|
+
projectId String?
|
|
463
482
|
}
|
|
464
483
|
|
|
465
484
|
model projectPhaseLog {
|
|
@@ -1222,11 +1241,14 @@ model Cable {
|
|
|
1222
1241
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1223
1242
|
projectId String?
|
|
1224
1243
|
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1244
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1245
|
+
installationId String?
|
|
1246
|
+
|
|
1247
|
+
cableAttributes CableAtttributes[]
|
|
1248
|
+
PboFatAttributes PboFatAttributes[]
|
|
1249
|
+
// SpliceClosureAttributes SpliceClosureAttributes[]
|
|
1228
1250
|
// qrCode qrCode[]
|
|
1229
|
-
qrCodeTag
|
|
1251
|
+
qrCodeTag qrCodeTag[]
|
|
1230
1252
|
}
|
|
1231
1253
|
|
|
1232
1254
|
model CableTemplate {
|
|
@@ -1363,6 +1385,9 @@ model PboFat {
|
|
|
1363
1385
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1364
1386
|
projectId String?
|
|
1365
1387
|
|
|
1388
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1389
|
+
installationId String?
|
|
1390
|
+
|
|
1366
1391
|
pboFatAttributes PboFatAttributes[]
|
|
1367
1392
|
// qrCode qrCode[]
|
|
1368
1393
|
qrCodeTag qrCodeTag[]
|
|
@@ -1430,6 +1455,9 @@ model SpliceClosure {
|
|
|
1430
1455
|
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1431
1456
|
clusterId String?
|
|
1432
1457
|
|
|
1458
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1459
|
+
installationId String?
|
|
1460
|
+
|
|
1433
1461
|
spliceClosureAttributes SpliceClosureAttributes[]
|
|
1434
1462
|
qrCodeTag qrCodeTag[]
|
|
1435
1463
|
}
|
|
@@ -1480,8 +1508,8 @@ model SpliceClosureAttributes {
|
|
|
1480
1508
|
updatedAt DateTime @updatedAt
|
|
1481
1509
|
deletedAt DateTime?
|
|
1482
1510
|
|
|
1483
|
-
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1484
|
-
cableId String?
|
|
1511
|
+
// cable Cable? @relation(fields: [cableId], references: [id])
|
|
1512
|
+
// cableId String?
|
|
1485
1513
|
|
|
1486
1514
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1487
1515
|
projectId String?
|
|
@@ -1527,8 +1555,12 @@ model ZoneNro {
|
|
|
1527
1555
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1528
1556
|
projectId String?
|
|
1529
1557
|
|
|
1530
|
-
cluster Cluster?
|
|
1558
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1531
1559
|
clusterId String?
|
|
1560
|
+
|
|
1561
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1562
|
+
installationId String?
|
|
1563
|
+
|
|
1532
1564
|
qrCodeTag qrCodeTag[]
|
|
1533
1565
|
}
|
|
1534
1566
|
|
|
@@ -1597,8 +1629,12 @@ model Pole {
|
|
|
1597
1629
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1598
1630
|
projectId String?
|
|
1599
1631
|
|
|
1600
|
-
cluster Cluster?
|
|
1632
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1601
1633
|
clusterId String?
|
|
1634
|
+
|
|
1635
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1636
|
+
installationId String?
|
|
1637
|
+
|
|
1602
1638
|
qrCodeTag qrCodeTag[]
|
|
1603
1639
|
}
|
|
1604
1640
|
|
|
@@ -1666,8 +1702,12 @@ model Manhole {
|
|
|
1666
1702
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1667
1703
|
projectId String?
|
|
1668
1704
|
|
|
1669
|
-
cluster Cluster?
|
|
1705
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1670
1706
|
clusterId String?
|
|
1707
|
+
|
|
1708
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1709
|
+
installationId String?
|
|
1710
|
+
|
|
1671
1711
|
qrCodeTag qrCodeTag[]
|
|
1672
1712
|
}
|
|
1673
1713
|
|
|
@@ -1735,8 +1775,12 @@ model Loop {
|
|
|
1735
1775
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1736
1776
|
projectId String?
|
|
1737
1777
|
|
|
1738
|
-
cluster Cluster?
|
|
1778
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1739
1779
|
clusterId String?
|
|
1780
|
+
|
|
1781
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1782
|
+
installationId String?
|
|
1783
|
+
|
|
1740
1784
|
qrCodeTag qrCodeTag[]
|
|
1741
1785
|
}
|
|
1742
1786
|
|
|
@@ -1804,8 +1848,12 @@ model FDTSRO {
|
|
|
1804
1848
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1805
1849
|
projectId String?
|
|
1806
1850
|
|
|
1807
|
-
cluster Cluster?
|
|
1851
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1808
1852
|
clusterId String?
|
|
1853
|
+
|
|
1854
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1855
|
+
installationId String?
|
|
1856
|
+
|
|
1809
1857
|
qrCodeTag qrCodeTag[]
|
|
1810
1858
|
}
|
|
1811
1859
|
|
|
@@ -1873,8 +1921,12 @@ model SFU {
|
|
|
1873
1921
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1874
1922
|
projectId String?
|
|
1875
1923
|
|
|
1876
|
-
cluster Cluster?
|
|
1924
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1877
1925
|
clusterId String?
|
|
1926
|
+
|
|
1927
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
1928
|
+
installationId String?
|
|
1929
|
+
|
|
1878
1930
|
qrCodeTag qrCodeTag[]
|
|
1879
1931
|
}
|
|
1880
1932
|
|
|
@@ -1942,8 +1994,12 @@ model Building {
|
|
|
1942
1994
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1943
1995
|
projectId String?
|
|
1944
1996
|
|
|
1945
|
-
cluster Cluster?
|
|
1997
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1946
1998
|
clusterId String?
|
|
1999
|
+
|
|
2000
|
+
installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
|
|
2001
|
+
installationId String?
|
|
2002
|
+
|
|
1947
2003
|
qrCodeTag qrCodeTag[]
|
|
1948
2004
|
}
|
|
1949
2005
|
|
|
@@ -1980,6 +2036,31 @@ model BuildingTemplate {
|
|
|
1980
2036
|
Building Building[]
|
|
1981
2037
|
}
|
|
1982
2038
|
|
|
2039
|
+
model NetworkElementInstallation {
|
|
2040
|
+
id String @id @unique @default(uuid())
|
|
2041
|
+
no Int @default(autoincrement())
|
|
2042
|
+
|
|
2043
|
+
createdAt DateTime @default(now())
|
|
2044
|
+
updatedAt DateTime @updatedAt
|
|
2045
|
+
|
|
2046
|
+
previousType String?
|
|
2047
|
+
previousName String?
|
|
2048
|
+
previousId String?
|
|
2049
|
+
nextType String?
|
|
2050
|
+
nextName String?
|
|
2051
|
+
nextId String?
|
|
2052
|
+
Cable Cable[]
|
|
2053
|
+
PboFat PboFat[]
|
|
2054
|
+
SpliceClosure SpliceClosure[]
|
|
2055
|
+
ZoneNro ZoneNro[]
|
|
2056
|
+
Pole Pole[]
|
|
2057
|
+
Manhole Manhole[]
|
|
2058
|
+
Loop Loop[]
|
|
2059
|
+
FDTSRO FDTSRO[]
|
|
2060
|
+
SFU SFU[]
|
|
2061
|
+
Building Building[]
|
|
2062
|
+
}
|
|
2063
|
+
|
|
1983
2064
|
model CentralOffice {
|
|
1984
2065
|
id String @id @unique @default(uuid())
|
|
1985
2066
|
no Int @default(autoincrement())
|