efiber-prisma-schema 1.6.3 → 1.6.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efiber-prisma-schema",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -660,22 +660,23 @@ model EmailsOutgoing {
660
660
  }
661
661
 
662
662
  model EmailTemplates {
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
- templateInfo Json?
673
- status String @default("active")
674
- createdAt DateTime @default(now())
675
- updatedAt DateTime @updatedAt
676
- deletedAt DateTime?
677
- project Project @relation(fields: [projectId], references: [id])
678
- projectId String
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 {
@@ -1219,6 +1220,7 @@ model Cable {
1219
1220
  PboFatAttributes PboFatAttributes[]
1220
1221
  SpliceClosureAttributes SpliceClosureAttributes[]
1221
1222
  qrCode qrCode[]
1223
+ qrCodeTag qrCodeTag[]
1222
1224
  }
1223
1225
 
1224
1226
  model CableTemplate {
@@ -1324,6 +1326,7 @@ model PboFat {
1324
1326
 
1325
1327
  status String @default("active")
1326
1328
  terminalAccess Boolean @default(false)
1329
+ name String?
1327
1330
  photos Json? //Upload files for photos
1328
1331
  zone Json? //Color code for zone
1329
1332
  geometry Json? //Icon for the PBO FAT
@@ -1344,6 +1347,7 @@ model PboFat {
1344
1347
 
1345
1348
  pboFatAttributes PboFatAttributes[]
1346
1349
  qrCode qrCode[]
1350
+ qrCodeTag qrCodeTag[]
1347
1351
  }
1348
1352
 
1349
1353
  model PboFatAttributes {
@@ -1378,7 +1382,7 @@ model SpliceClosure {
1378
1382
  // TODO: Add the fields for previous/next equipment, CO and project phase
1379
1383
  id String @id @unique @default(uuid())
1380
1384
  no Int @default(autoincrement())
1381
- name String
1385
+ name String?
1382
1386
  status String @default("active")
1383
1387
  terminalAccess Boolean @default(false)
1384
1388
  photos Json? //Upload files for photos
@@ -1403,13 +1407,14 @@ model SpliceClosure {
1403
1407
  clusterId String?
1404
1408
 
1405
1409
  spliceClosureAttributes SpliceClosureAttributes[]
1410
+ qrCodeTag qrCodeTag[]
1406
1411
  }
1407
1412
 
1408
1413
  model SpliceClosureTemplate {
1409
1414
  // TODO: Add the fields for previous/next equipment, CO and project phase
1410
1415
  id String @id @unique @default(uuid())
1411
1416
  no Int @default(autoincrement())
1412
- name String
1417
+ name String?
1413
1418
  status String @default("active")
1414
1419
  terminalAccess Boolean @default(false)
1415
1420
  photos Json? //Upload files for photos
@@ -1468,6 +1473,7 @@ model ZoneNro {
1468
1473
 
1469
1474
  status String @default("active")
1470
1475
  terminalAccess Boolean @default(false)
1476
+ name String?
1471
1477
  photos Json?
1472
1478
  zone Json?
1473
1479
  geometry Json?
@@ -1486,8 +1492,9 @@ model ZoneNro {
1486
1492
  project Project? @relation(fields: [projectId], references: [id])
1487
1493
  projectId String?
1488
1494
 
1489
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1495
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1490
1496
  clusterId String?
1497
+ qrCodeTag qrCodeTag[]
1491
1498
  }
1492
1499
 
1493
1500
  model ZoneNroTemplate {
@@ -1496,6 +1503,7 @@ model ZoneNroTemplate {
1496
1503
 
1497
1504
  status String @default("active")
1498
1505
  terminalAccess Boolean @default(false)
1506
+ name String?
1499
1507
  photos Json?
1500
1508
  zone Json?
1501
1509
  geometry Json?
@@ -1524,6 +1532,7 @@ model Pole {
1524
1532
 
1525
1533
  status String @default("active")
1526
1534
  terminalAccess Boolean @default(false)
1535
+ name String?
1527
1536
  photos Json?
1528
1537
  zone Json?
1529
1538
  geometry Json?
@@ -1542,8 +1551,9 @@ model Pole {
1542
1551
  project Project? @relation(fields: [projectId], references: [id])
1543
1552
  projectId String?
1544
1553
 
1545
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1554
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1546
1555
  clusterId String?
1556
+ qrCodeTag qrCodeTag[]
1547
1557
  }
1548
1558
 
1549
1559
  model PoleTemplate {
@@ -1552,6 +1562,7 @@ model PoleTemplate {
1552
1562
 
1553
1563
  status String @default("active")
1554
1564
  terminalAccess Boolean @default(false)
1565
+ name String?
1555
1566
  photos Json?
1556
1567
  zone Json?
1557
1568
  geometry Json?
@@ -1580,6 +1591,7 @@ model Manhole {
1580
1591
 
1581
1592
  status String @default("active")
1582
1593
  terminalAccess Boolean @default(false)
1594
+ name String?
1583
1595
  photos Json?
1584
1596
  zone Json?
1585
1597
  geometry Json?
@@ -1598,8 +1610,9 @@ model Manhole {
1598
1610
  project Project? @relation(fields: [projectId], references: [id])
1599
1611
  projectId String?
1600
1612
 
1601
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1613
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1602
1614
  clusterId String?
1615
+ qrCodeTag qrCodeTag[]
1603
1616
  }
1604
1617
 
1605
1618
  model ManholeTemplate {
@@ -1608,6 +1621,7 @@ model ManholeTemplate {
1608
1621
 
1609
1622
  status String @default("active")
1610
1623
  terminalAccess Boolean @default(false)
1624
+ name String?
1611
1625
  photos Json?
1612
1626
  zone Json?
1613
1627
  geometry Json?
@@ -1636,6 +1650,7 @@ model Loop {
1636
1650
 
1637
1651
  status String @default("active")
1638
1652
  terminalAccess Boolean @default(false)
1653
+ name String?
1639
1654
  photos Json?
1640
1655
  zone Json?
1641
1656
  geometry Json?
@@ -1654,8 +1669,9 @@ model Loop {
1654
1669
  project Project? @relation(fields: [projectId], references: [id])
1655
1670
  projectId String?
1656
1671
 
1657
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1672
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1658
1673
  clusterId String?
1674
+ qrCodeTag qrCodeTag[]
1659
1675
  }
1660
1676
 
1661
1677
  model LoopTemplate {
@@ -1664,6 +1680,7 @@ model LoopTemplate {
1664
1680
 
1665
1681
  status String @default("active")
1666
1682
  terminalAccess Boolean @default(false)
1683
+ name String?
1667
1684
  photos Json?
1668
1685
  zone Json?
1669
1686
  geometry Json?
@@ -1692,6 +1709,7 @@ model FDTSRO {
1692
1709
 
1693
1710
  status String @default("active")
1694
1711
  terminalAccess Boolean @default(false)
1712
+ name String?
1695
1713
  photos Json?
1696
1714
  zone Json?
1697
1715
  geometry Json?
@@ -1710,8 +1728,9 @@ model FDTSRO {
1710
1728
  project Project? @relation(fields: [projectId], references: [id])
1711
1729
  projectId String?
1712
1730
 
1713
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1731
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1714
1732
  clusterId String?
1733
+ qrCodeTag qrCodeTag[]
1715
1734
  }
1716
1735
 
1717
1736
  model FDTSROTemplate {
@@ -1720,6 +1739,7 @@ model FDTSROTemplate {
1720
1739
 
1721
1740
  status String @default("active")
1722
1741
  terminalAccess Boolean @default(false)
1742
+ name String?
1723
1743
  photos Json?
1724
1744
  zone Json?
1725
1745
  geometry Json?
@@ -1748,6 +1768,7 @@ model SFU {
1748
1768
 
1749
1769
  status String @default("active")
1750
1770
  terminalAccess Boolean @default(false)
1771
+ name String?
1751
1772
  photos Json?
1752
1773
  zone Json?
1753
1774
  geometry Json?
@@ -1766,8 +1787,9 @@ model SFU {
1766
1787
  project Project? @relation(fields: [projectId], references: [id])
1767
1788
  projectId String?
1768
1789
 
1769
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1790
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1770
1791
  clusterId String?
1792
+ qrCodeTag qrCodeTag[]
1771
1793
  }
1772
1794
 
1773
1795
  model SFUTemplate {
@@ -1776,6 +1798,7 @@ model SFUTemplate {
1776
1798
 
1777
1799
  status String @default("active")
1778
1800
  terminalAccess Boolean @default(false)
1801
+ name String?
1779
1802
  photos Json?
1780
1803
  zone Json?
1781
1804
  geometry Json?
@@ -1804,6 +1827,7 @@ model Building {
1804
1827
 
1805
1828
  status String @default("active")
1806
1829
  terminalAccess Boolean @default(false)
1830
+ name String?
1807
1831
  photos Json?
1808
1832
  zone Json?
1809
1833
  geometry Json?
@@ -1822,8 +1846,9 @@ model Building {
1822
1846
  project Project? @relation(fields: [projectId], references: [id])
1823
1847
  projectId String?
1824
1848
 
1825
- cluster Cluster? @relation(fields: [clusterId], references: [id])
1849
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1826
1850
  clusterId String?
1851
+ qrCodeTag qrCodeTag[]
1827
1852
  }
1828
1853
 
1829
1854
  model BuildingTemplate {
@@ -1832,6 +1857,7 @@ model BuildingTemplate {
1832
1857
 
1833
1858
  status String @default("active")
1834
1859
  terminalAccess Boolean @default(false)
1860
+ name String?
1835
1861
  photos Json?
1836
1862
  zone Json?
1837
1863
  geometry Json?
@@ -1953,6 +1979,39 @@ model qrCodeTag {
1953
1979
  updatedAt DateTime @updatedAt
1954
1980
  deletedAt DateTime?
1955
1981
 
1982
+ templateId String?
1983
+ networkElementId String?
1984
+
1956
1985
  qrCode qrCode @relation(fields: [qrCodeId], references: [id])
1957
1986
  qrCodeId 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?
1958
2017
  }