efiber-prisma-schema 1.6.10 → 1.6.12

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.10",
3
+ "version": "1.6.12",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1204,6 +1204,7 @@ model Cable {
1204
1204
  coordinates Json?
1205
1205
  autoincrement Boolean @default(true)
1206
1206
  namePrefix String?
1207
+ templateIndex Int?
1207
1208
 
1208
1209
  createdAt DateTime @default(now())
1209
1210
  updatedAt DateTime @updatedAt
@@ -1215,6 +1216,9 @@ model Cable {
1215
1216
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1216
1217
  networkElementId String
1217
1218
 
1219
+ template CableTemplate? @relation(fields: [templateId], references: [id])
1220
+ templateId String?
1221
+
1218
1222
  project Project? @relation(fields: [projectId], references: [id])
1219
1223
  projectId String?
1220
1224
 
@@ -1255,6 +1259,7 @@ model CableTemplate {
1255
1259
 
1256
1260
  cableAttributes CableAtttributes[]
1257
1261
  qrCodeTemplate qrCodeTemplate[]
1262
+ Cable Cable[]
1258
1263
  }
1259
1264
 
1260
1265
  model CableAtttributes {
@@ -1324,6 +1329,7 @@ model PboFatTemplate {
1324
1329
 
1325
1330
  //TODO: Add the fields for input/output cable, previous/next equipment, CO and project phase
1326
1331
  qrCodeTemplate qrCodeTemplate[]
1332
+ PboFat PboFat[]
1327
1333
  }
1328
1334
 
1329
1335
  model PboFat {
@@ -1339,6 +1345,7 @@ model PboFat {
1339
1345
  attributes Json? //Attributes for the PBO FAT
1340
1346
  autoincrement Boolean @default(true)
1341
1347
  namePrefix String?
1348
+ templateIndex Int?
1342
1349
 
1343
1350
  createdAt DateTime @default(now())
1344
1351
  updatedAt DateTime @updatedAt
@@ -1350,6 +1357,9 @@ model PboFat {
1350
1357
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1351
1358
  networkElementId String
1352
1359
 
1360
+ template PboFatTemplate? @relation(fields: [templateId], references: [id])
1361
+ templateId String?
1362
+
1353
1363
  project Project? @relation(fields: [projectId], references: [id])
1354
1364
  projectId String?
1355
1365
 
@@ -1400,6 +1410,7 @@ model SpliceClosure {
1400
1410
  description String?
1401
1411
  autoincrement Boolean @default(true)
1402
1412
  namePrefix String?
1413
+ templateIndex Int?
1403
1414
 
1404
1415
  createdAt DateTime @default(now())
1405
1416
  updatedAt DateTime @updatedAt
@@ -1413,6 +1424,9 @@ model SpliceClosure {
1413
1424
  project Project? @relation(fields: [projectId], references: [id])
1414
1425
  projectId String?
1415
1426
 
1427
+ template SpliceClosureTemplate? @relation(fields: [templateId], references: [id])
1428
+ templateId String?
1429
+
1416
1430
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1417
1431
  clusterId String?
1418
1432
 
@@ -1452,6 +1466,7 @@ model SpliceClosureTemplate {
1452
1466
 
1453
1467
  spliceClosureAttributes SpliceClosureAttributes[]
1454
1468
  qrCodeTemplate qrCodeTemplate[]
1469
+ SpliceClosure SpliceClosure[]
1455
1470
  }
1456
1471
 
1457
1472
  model SpliceClosureAttributes {
@@ -1494,6 +1509,7 @@ model ZoneNro {
1494
1509
  coordinates Json?
1495
1510
  autoincrement Boolean @default(true)
1496
1511
  namePrefix String?
1512
+ templateIndex Int?
1497
1513
 
1498
1514
  createdAt DateTime @default(now())
1499
1515
  updatedAt DateTime @updatedAt
@@ -1505,6 +1521,9 @@ model ZoneNro {
1505
1521
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1506
1522
  networkElementId String
1507
1523
 
1524
+ template ZoneNroTemplate? @relation(fields: [templateId], references: [id])
1525
+ templateId String?
1526
+
1508
1527
  project Project? @relation(fields: [projectId], references: [id])
1509
1528
  projectId String?
1510
1529
 
@@ -1544,6 +1563,7 @@ model ZoneNroTemplate {
1544
1563
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1545
1564
  clusterId String?
1546
1565
  qrCodeTemplate qrCodeTemplate[]
1566
+ ZoneNro ZoneNro[]
1547
1567
  }
1548
1568
 
1549
1569
  model Pole {
@@ -1559,6 +1579,7 @@ model Pole {
1559
1579
  attributes Json?
1560
1580
  autoincrement Boolean @default(true)
1561
1581
  namePrefix String?
1582
+ templateIndex Int?
1562
1583
 
1563
1584
  createdAt DateTime @default(now())
1564
1585
  updatedAt DateTime @updatedAt
@@ -1570,6 +1591,9 @@ model Pole {
1570
1591
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1571
1592
  networkElementId String
1572
1593
 
1594
+ template PoleTemplate? @relation(fields: [templateId], references: [id])
1595
+ templateId String?
1596
+
1573
1597
  project Project? @relation(fields: [projectId], references: [id])
1574
1598
  projectId String?
1575
1599
 
@@ -1608,6 +1632,7 @@ model PoleTemplate {
1608
1632
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1609
1633
  clusterId String?
1610
1634
  qrCodeTemplate qrCodeTemplate[]
1635
+ Pole Pole[]
1611
1636
  }
1612
1637
 
1613
1638
  model Manhole {
@@ -1623,6 +1648,7 @@ model Manhole {
1623
1648
  attributes Json?
1624
1649
  autoincrement Boolean @default(true)
1625
1650
  namePrefix String?
1651
+ templateIndex Int?
1626
1652
 
1627
1653
  createdAt DateTime @default(now())
1628
1654
  updatedAt DateTime @updatedAt
@@ -1634,6 +1660,9 @@ model Manhole {
1634
1660
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1635
1661
  networkElementId String
1636
1662
 
1663
+ template ManholeTemplate? @relation(fields: [templateId], references: [id])
1664
+ templateId String?
1665
+
1637
1666
  project Project? @relation(fields: [projectId], references: [id])
1638
1667
  projectId String?
1639
1668
 
@@ -1672,6 +1701,7 @@ model ManholeTemplate {
1672
1701
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1673
1702
  clusterId String?
1674
1703
  qrCodeTemplate qrCodeTemplate[]
1704
+ Manhole Manhole[]
1675
1705
  }
1676
1706
 
1677
1707
  model Loop {
@@ -1687,6 +1717,7 @@ model Loop {
1687
1717
  attributes Json?
1688
1718
  autoincrement Boolean @default(true)
1689
1719
  namePrefix String?
1720
+ templateIndex Int?
1690
1721
 
1691
1722
  createdAt DateTime @default(now())
1692
1723
  updatedAt DateTime @updatedAt
@@ -1698,6 +1729,9 @@ model Loop {
1698
1729
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1699
1730
  networkElementId String
1700
1731
 
1732
+ template LoopTemplate? @relation(fields: [templateId], references: [id])
1733
+ templateId String?
1734
+
1701
1735
  project Project? @relation(fields: [projectId], references: [id])
1702
1736
  projectId String?
1703
1737
 
@@ -1736,6 +1770,7 @@ model LoopTemplate {
1736
1770
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1737
1771
  clusterId String?
1738
1772
  qrCodeTemplate qrCodeTemplate[]
1773
+ Loop Loop[]
1739
1774
  }
1740
1775
 
1741
1776
  model FDTSRO {
@@ -1751,6 +1786,7 @@ model FDTSRO {
1751
1786
  attributes Json?
1752
1787
  autoincrement Boolean @default(true)
1753
1788
  namePrefix String?
1789
+ templateIndex Int?
1754
1790
 
1755
1791
  createdAt DateTime @default(now())
1756
1792
  updatedAt DateTime @updatedAt
@@ -1762,6 +1798,9 @@ model FDTSRO {
1762
1798
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1763
1799
  networkElementId String
1764
1800
 
1801
+ template FDTSROTemplate? @relation(fields: [templateId], references: [id])
1802
+ templateId String?
1803
+
1765
1804
  project Project? @relation(fields: [projectId], references: [id])
1766
1805
  projectId String?
1767
1806
 
@@ -1800,6 +1839,7 @@ model FDTSROTemplate {
1800
1839
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1801
1840
  clusterId String?
1802
1841
  qrCodeTemplate qrCodeTemplate[]
1842
+ FDTSRO FDTSRO[]
1803
1843
  }
1804
1844
 
1805
1845
  model SFU {
@@ -1815,6 +1855,7 @@ model SFU {
1815
1855
  attributes Json?
1816
1856
  autoincrement Boolean @default(true)
1817
1857
  namePrefix String?
1858
+ templateIndex Int?
1818
1859
 
1819
1860
  createdAt DateTime @default(now())
1820
1861
  updatedAt DateTime @updatedAt
@@ -1826,6 +1867,9 @@ model SFU {
1826
1867
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1827
1868
  networkElementId String
1828
1869
 
1870
+ template SFUTemplate? @relation(fields: [templateId], references: [id])
1871
+ templateId String?
1872
+
1829
1873
  project Project? @relation(fields: [projectId], references: [id])
1830
1874
  projectId String?
1831
1875
 
@@ -1864,6 +1908,7 @@ model SFUTemplate {
1864
1908
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1865
1909
  clusterId String?
1866
1910
  qrCodeTemplate qrCodeTemplate[]
1911
+ SFU SFU[]
1867
1912
  }
1868
1913
 
1869
1914
  model Building {
@@ -1879,6 +1924,7 @@ model Building {
1879
1924
  attributes Json?
1880
1925
  autoincrement Boolean @default(true)
1881
1926
  namePrefix String?
1927
+ templateIndex Int?
1882
1928
 
1883
1929
  createdAt DateTime @default(now())
1884
1930
  updatedAt DateTime @updatedAt
@@ -1890,6 +1936,9 @@ model Building {
1890
1936
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1891
1937
  networkElementId String
1892
1938
 
1939
+ template BuildingTemplate? @relation(fields: [templateId], references: [id])
1940
+ templateId String?
1941
+
1893
1942
  project Project? @relation(fields: [projectId], references: [id])
1894
1943
  projectId String?
1895
1944
 
@@ -1928,6 +1977,7 @@ model BuildingTemplate {
1928
1977
  cluster Cluster? @relation(fields: [clusterId], references: [id])
1929
1978
  clusterId String?
1930
1979
  qrCodeTemplate qrCodeTemplate[]
1980
+ Building Building[]
1931
1981
  }
1932
1982
 
1933
1983
  model CentralOffice {