efiber-prisma-schema 1.6.2 → 1.6.4
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 +318 -42
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -362,23 +362,31 @@ 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
|
|
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[]
|
|
382
390
|
}
|
|
383
391
|
|
|
384
392
|
model MainProject {
|
|
@@ -444,6 +452,14 @@ model Project {
|
|
|
444
452
|
SFU SFU[]
|
|
445
453
|
Building Building[]
|
|
446
454
|
SpliceClosure SpliceClosure[]
|
|
455
|
+
SpliceClosureTemplate SpliceClosureTemplate[]
|
|
456
|
+
ZoneNroTemplate ZoneNroTemplate[]
|
|
457
|
+
PoleTemplate PoleTemplate[]
|
|
458
|
+
ManholeTemplate ManholeTemplate[]
|
|
459
|
+
LoopTemplate LoopTemplate[]
|
|
460
|
+
FDTSROTemplate FDTSROTemplate[]
|
|
461
|
+
SFUTemplate SFUTemplate[]
|
|
462
|
+
BuildingTemplate BuildingTemplate[]
|
|
447
463
|
}
|
|
448
464
|
|
|
449
465
|
model projectPhaseLog {
|
|
@@ -1150,19 +1166,27 @@ model NetworkElement {
|
|
|
1150
1166
|
updatedAt DateTime @updatedAt
|
|
1151
1167
|
deletedAt DateTime?
|
|
1152
1168
|
|
|
1153
|
-
PboFat
|
|
1154
|
-
pboFatTemplate
|
|
1155
|
-
Cable
|
|
1156
|
-
SpliceClosure
|
|
1157
|
-
CableTemplate
|
|
1158
|
-
qrCode
|
|
1159
|
-
ZoneNro
|
|
1160
|
-
Pole
|
|
1161
|
-
Manhole
|
|
1162
|
-
Loop
|
|
1163
|
-
FDTSRO
|
|
1164
|
-
SFU
|
|
1165
|
-
Building
|
|
1169
|
+
PboFat PboFat[]
|
|
1170
|
+
pboFatTemplate PboFatTemplate[]
|
|
1171
|
+
Cable Cable[]
|
|
1172
|
+
SpliceClosure SpliceClosure[]
|
|
1173
|
+
CableTemplate CableTemplate[]
|
|
1174
|
+
qrCode qrCode[]
|
|
1175
|
+
ZoneNro ZoneNro[]
|
|
1176
|
+
Pole Pole[]
|
|
1177
|
+
Manhole Manhole[]
|
|
1178
|
+
Loop Loop[]
|
|
1179
|
+
FDTSRO FDTSRO[]
|
|
1180
|
+
SFU SFU[]
|
|
1181
|
+
Building Building[]
|
|
1182
|
+
SpliceClosureTemplate SpliceClosureTemplate[]
|
|
1183
|
+
ZoneNroTemplate ZoneNroTemplate[]
|
|
1184
|
+
PoleTemplate PoleTemplate[]
|
|
1185
|
+
ManholeTemplate ManholeTemplate[]
|
|
1186
|
+
LoopTemplate LoopTemplate[]
|
|
1187
|
+
FDTSROTemplate FDTSROTemplate[]
|
|
1188
|
+
SFUTemplate SFUTemplate[]
|
|
1189
|
+
BuildingTemplate BuildingTemplate[]
|
|
1166
1190
|
}
|
|
1167
1191
|
|
|
1168
1192
|
model Cable {
|
|
@@ -1300,6 +1324,7 @@ model PboFat {
|
|
|
1300
1324
|
|
|
1301
1325
|
status String @default("active")
|
|
1302
1326
|
terminalAccess Boolean @default(false)
|
|
1327
|
+
name String?
|
|
1303
1328
|
photos Json? //Upload files for photos
|
|
1304
1329
|
zone Json? //Color code for zone
|
|
1305
1330
|
geometry Json? //Icon for the PBO FAT
|
|
@@ -1354,7 +1379,38 @@ model SpliceClosure {
|
|
|
1354
1379
|
// TODO: Add the fields for previous/next equipment, CO and project phase
|
|
1355
1380
|
id String @id @unique @default(uuid())
|
|
1356
1381
|
no Int @default(autoincrement())
|
|
1357
|
-
name String
|
|
1382
|
+
name String?
|
|
1383
|
+
status String @default("active")
|
|
1384
|
+
terminalAccess Boolean @default(false)
|
|
1385
|
+
photos Json? //Upload files for photos
|
|
1386
|
+
zone Json? //Color code for zone
|
|
1387
|
+
geometry Json? //Icon for the PBO FAT
|
|
1388
|
+
attributes Json? //Attributes for the PBO FAT
|
|
1389
|
+
description String?
|
|
1390
|
+
|
|
1391
|
+
createdAt DateTime @default(now())
|
|
1392
|
+
updatedAt DateTime @updatedAt
|
|
1393
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1394
|
+
updatedById String?
|
|
1395
|
+
deletedAt DateTime?
|
|
1396
|
+
|
|
1397
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1398
|
+
networkElementId String
|
|
1399
|
+
|
|
1400
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1401
|
+
projectId String?
|
|
1402
|
+
|
|
1403
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1404
|
+
clusterId String?
|
|
1405
|
+
|
|
1406
|
+
spliceClosureAttributes SpliceClosureAttributes[]
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
model SpliceClosureTemplate {
|
|
1410
|
+
// TODO: Add the fields for previous/next equipment, CO and project phase
|
|
1411
|
+
id String @id @unique @default(uuid())
|
|
1412
|
+
no Int @default(autoincrement())
|
|
1413
|
+
name String?
|
|
1358
1414
|
status String @default("active")
|
|
1359
1415
|
terminalAccess Boolean @default(false)
|
|
1360
1416
|
photos Json? //Upload files for photos
|
|
@@ -1401,8 +1457,10 @@ model SpliceClosureAttributes {
|
|
|
1401
1457
|
material Material? @relation(fields: [materialId], references: [id])
|
|
1402
1458
|
materialId String?
|
|
1403
1459
|
|
|
1404
|
-
spliceClosure
|
|
1405
|
-
spliceClosureId
|
|
1460
|
+
spliceClosure SpliceClosure @relation(fields: [spliceClosureId], references: [id])
|
|
1461
|
+
spliceClosureId String
|
|
1462
|
+
SpliceClosureTemplate SpliceClosureTemplate? @relation(fields: [spliceClosureTemplateId], references: [id])
|
|
1463
|
+
spliceClosureTemplateId String?
|
|
1406
1464
|
}
|
|
1407
1465
|
|
|
1408
1466
|
model ZoneNro {
|
|
@@ -1411,6 +1469,36 @@ model ZoneNro {
|
|
|
1411
1469
|
|
|
1412
1470
|
status String @default("active")
|
|
1413
1471
|
terminalAccess Boolean @default(false)
|
|
1472
|
+
name String?
|
|
1473
|
+
photos Json?
|
|
1474
|
+
zone Json?
|
|
1475
|
+
geometry Json?
|
|
1476
|
+
attributes Json?
|
|
1477
|
+
|
|
1478
|
+
createdAt DateTime @default(now())
|
|
1479
|
+
updatedAt DateTime @updatedAt
|
|
1480
|
+
deletedAt DateTime?
|
|
1481
|
+
|
|
1482
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1483
|
+
updatedById String?
|
|
1484
|
+
|
|
1485
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1486
|
+
networkElementId String
|
|
1487
|
+
|
|
1488
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1489
|
+
projectId String?
|
|
1490
|
+
|
|
1491
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1492
|
+
clusterId String?
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
model ZoneNroTemplate {
|
|
1496
|
+
id String @id @unique @default(uuid())
|
|
1497
|
+
no Int @default(autoincrement())
|
|
1498
|
+
|
|
1499
|
+
status String @default("active")
|
|
1500
|
+
terminalAccess Boolean @default(false)
|
|
1501
|
+
name String?
|
|
1414
1502
|
photos Json?
|
|
1415
1503
|
zone Json?
|
|
1416
1504
|
geometry Json?
|
|
@@ -1439,6 +1527,36 @@ model Pole {
|
|
|
1439
1527
|
|
|
1440
1528
|
status String @default("active")
|
|
1441
1529
|
terminalAccess Boolean @default(false)
|
|
1530
|
+
name String?
|
|
1531
|
+
photos Json?
|
|
1532
|
+
zone Json?
|
|
1533
|
+
geometry Json?
|
|
1534
|
+
attributes Json?
|
|
1535
|
+
|
|
1536
|
+
createdAt DateTime @default(now())
|
|
1537
|
+
updatedAt DateTime @updatedAt
|
|
1538
|
+
deletedAt DateTime?
|
|
1539
|
+
|
|
1540
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1541
|
+
updatedById String?
|
|
1542
|
+
|
|
1543
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1544
|
+
networkElementId String
|
|
1545
|
+
|
|
1546
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1547
|
+
projectId String?
|
|
1548
|
+
|
|
1549
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1550
|
+
clusterId String?
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
model PoleTemplate {
|
|
1554
|
+
id String @id @unique @default(uuid())
|
|
1555
|
+
no Int @default(autoincrement())
|
|
1556
|
+
|
|
1557
|
+
status String @default("active")
|
|
1558
|
+
terminalAccess Boolean @default(false)
|
|
1559
|
+
name String?
|
|
1442
1560
|
photos Json?
|
|
1443
1561
|
zone Json?
|
|
1444
1562
|
geometry Json?
|
|
@@ -1467,6 +1585,36 @@ model Manhole {
|
|
|
1467
1585
|
|
|
1468
1586
|
status String @default("active")
|
|
1469
1587
|
terminalAccess Boolean @default(false)
|
|
1588
|
+
name String?
|
|
1589
|
+
photos Json?
|
|
1590
|
+
zone Json?
|
|
1591
|
+
geometry Json?
|
|
1592
|
+
attributes Json?
|
|
1593
|
+
|
|
1594
|
+
createdAt DateTime @default(now())
|
|
1595
|
+
updatedAt DateTime @updatedAt
|
|
1596
|
+
deletedAt DateTime?
|
|
1597
|
+
|
|
1598
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1599
|
+
updatedById String?
|
|
1600
|
+
|
|
1601
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1602
|
+
networkElementId String
|
|
1603
|
+
|
|
1604
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1605
|
+
projectId String?
|
|
1606
|
+
|
|
1607
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1608
|
+
clusterId String?
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
model ManholeTemplate {
|
|
1612
|
+
id String @id @unique @default(uuid())
|
|
1613
|
+
no Int @default(autoincrement())
|
|
1614
|
+
|
|
1615
|
+
status String @default("active")
|
|
1616
|
+
terminalAccess Boolean @default(false)
|
|
1617
|
+
name String?
|
|
1470
1618
|
photos Json?
|
|
1471
1619
|
zone Json?
|
|
1472
1620
|
geometry Json?
|
|
@@ -1495,6 +1643,36 @@ model Loop {
|
|
|
1495
1643
|
|
|
1496
1644
|
status String @default("active")
|
|
1497
1645
|
terminalAccess Boolean @default(false)
|
|
1646
|
+
name String?
|
|
1647
|
+
photos Json?
|
|
1648
|
+
zone Json?
|
|
1649
|
+
geometry Json?
|
|
1650
|
+
attributes Json?
|
|
1651
|
+
|
|
1652
|
+
createdAt DateTime @default(now())
|
|
1653
|
+
updatedAt DateTime @updatedAt
|
|
1654
|
+
deletedAt DateTime?
|
|
1655
|
+
|
|
1656
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1657
|
+
updatedById String?
|
|
1658
|
+
|
|
1659
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1660
|
+
networkElementId String
|
|
1661
|
+
|
|
1662
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1663
|
+
projectId String?
|
|
1664
|
+
|
|
1665
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1666
|
+
clusterId String?
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
model LoopTemplate {
|
|
1670
|
+
id String @id @unique @default(uuid())
|
|
1671
|
+
no Int @default(autoincrement())
|
|
1672
|
+
|
|
1673
|
+
status String @default("active")
|
|
1674
|
+
terminalAccess Boolean @default(false)
|
|
1675
|
+
name String?
|
|
1498
1676
|
photos Json?
|
|
1499
1677
|
zone Json?
|
|
1500
1678
|
geometry Json?
|
|
@@ -1523,6 +1701,36 @@ model FDTSRO {
|
|
|
1523
1701
|
|
|
1524
1702
|
status String @default("active")
|
|
1525
1703
|
terminalAccess Boolean @default(false)
|
|
1704
|
+
name String?
|
|
1705
|
+
photos Json?
|
|
1706
|
+
zone Json?
|
|
1707
|
+
geometry Json?
|
|
1708
|
+
attributes Json?
|
|
1709
|
+
|
|
1710
|
+
createdAt DateTime @default(now())
|
|
1711
|
+
updatedAt DateTime @updatedAt
|
|
1712
|
+
deletedAt DateTime?
|
|
1713
|
+
|
|
1714
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1715
|
+
updatedById String?
|
|
1716
|
+
|
|
1717
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1718
|
+
networkElementId String
|
|
1719
|
+
|
|
1720
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1721
|
+
projectId String?
|
|
1722
|
+
|
|
1723
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1724
|
+
clusterId String?
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
model FDTSROTemplate {
|
|
1728
|
+
id String @id @unique @default(uuid())
|
|
1729
|
+
no Int @default(autoincrement())
|
|
1730
|
+
|
|
1731
|
+
status String @default("active")
|
|
1732
|
+
terminalAccess Boolean @default(false)
|
|
1733
|
+
name String?
|
|
1526
1734
|
photos Json?
|
|
1527
1735
|
zone Json?
|
|
1528
1736
|
geometry Json?
|
|
@@ -1551,6 +1759,36 @@ model SFU {
|
|
|
1551
1759
|
|
|
1552
1760
|
status String @default("active")
|
|
1553
1761
|
terminalAccess Boolean @default(false)
|
|
1762
|
+
name String?
|
|
1763
|
+
photos Json?
|
|
1764
|
+
zone Json?
|
|
1765
|
+
geometry Json?
|
|
1766
|
+
attributes Json?
|
|
1767
|
+
|
|
1768
|
+
createdAt DateTime @default(now())
|
|
1769
|
+
updatedAt DateTime @updatedAt
|
|
1770
|
+
deletedAt DateTime?
|
|
1771
|
+
|
|
1772
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1773
|
+
updatedById String?
|
|
1774
|
+
|
|
1775
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1776
|
+
networkElementId String
|
|
1777
|
+
|
|
1778
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1779
|
+
projectId String?
|
|
1780
|
+
|
|
1781
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1782
|
+
clusterId String?
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
model SFUTemplate {
|
|
1786
|
+
id String @id @unique @default(uuid())
|
|
1787
|
+
no Int @default(autoincrement())
|
|
1788
|
+
|
|
1789
|
+
status String @default("active")
|
|
1790
|
+
terminalAccess Boolean @default(false)
|
|
1791
|
+
name String?
|
|
1554
1792
|
photos Json?
|
|
1555
1793
|
zone Json?
|
|
1556
1794
|
geometry Json?
|
|
@@ -1579,6 +1817,36 @@ model Building {
|
|
|
1579
1817
|
|
|
1580
1818
|
status String @default("active")
|
|
1581
1819
|
terminalAccess Boolean @default(false)
|
|
1820
|
+
name String?
|
|
1821
|
+
photos Json?
|
|
1822
|
+
zone Json?
|
|
1823
|
+
geometry Json?
|
|
1824
|
+
attributes Json?
|
|
1825
|
+
|
|
1826
|
+
createdAt DateTime @default(now())
|
|
1827
|
+
updatedAt DateTime @updatedAt
|
|
1828
|
+
deletedAt DateTime?
|
|
1829
|
+
|
|
1830
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1831
|
+
updatedById String?
|
|
1832
|
+
|
|
1833
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1834
|
+
networkElementId String
|
|
1835
|
+
|
|
1836
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1837
|
+
projectId String?
|
|
1838
|
+
|
|
1839
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1840
|
+
clusterId String?
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
model BuildingTemplate {
|
|
1844
|
+
id String @id @unique @default(uuid())
|
|
1845
|
+
no Int @default(autoincrement())
|
|
1846
|
+
|
|
1847
|
+
status String @default("active")
|
|
1848
|
+
terminalAccess Boolean @default(false)
|
|
1849
|
+
name String?
|
|
1582
1850
|
photos Json?
|
|
1583
1851
|
zone Json?
|
|
1584
1852
|
geometry Json?
|
|
@@ -1631,15 +1899,23 @@ model Cluster {
|
|
|
1631
1899
|
centralOffice CentralOffice? @relation(fields: [centralOfficeId], references: [id])
|
|
1632
1900
|
centralOfficeId String?
|
|
1633
1901
|
|
|
1634
|
-
users
|
|
1635
|
-
ZoneNro
|
|
1636
|
-
Pole
|
|
1637
|
-
Manhole
|
|
1638
|
-
Loop
|
|
1639
|
-
FDTSRO
|
|
1640
|
-
SFU
|
|
1641
|
-
Building
|
|
1642
|
-
SpliceClosure
|
|
1902
|
+
users User[]
|
|
1903
|
+
ZoneNro ZoneNro[]
|
|
1904
|
+
Pole Pole[]
|
|
1905
|
+
Manhole Manhole[]
|
|
1906
|
+
Loop Loop[]
|
|
1907
|
+
FDTSRO FDTSRO[]
|
|
1908
|
+
SFU SFU[]
|
|
1909
|
+
Building Building[]
|
|
1910
|
+
SpliceClosure SpliceClosure[]
|
|
1911
|
+
SpliceClosureTemplate SpliceClosureTemplate[]
|
|
1912
|
+
ZoneNroTemplate ZoneNroTemplate[]
|
|
1913
|
+
PoleTemplate PoleTemplate[]
|
|
1914
|
+
ManholeTemplate ManholeTemplate[]
|
|
1915
|
+
LoopTemplate LoopTemplate[]
|
|
1916
|
+
FDTSROTemplate FDTSROTemplate[]
|
|
1917
|
+
SFUTemplate SFUTemplate[]
|
|
1918
|
+
BuildingTemplate BuildingTemplate[]
|
|
1643
1919
|
}
|
|
1644
1920
|
|
|
1645
1921
|
model qrCode {
|