efiber-prisma-schema 1.6.4 → 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.4",
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 {
@@ -1345,6 +1347,7 @@ model PboFat {
1345
1347
 
1346
1348
  pboFatAttributes PboFatAttributes[]
1347
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? @relation(fields: [clusterId], references: [id])
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? @relation(fields: [clusterId], references: [id])
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? @relation(fields: [clusterId], references: [id])
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? @relation(fields: [clusterId], references: [id])
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? @relation(fields: [clusterId], references: [id])
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? @relation(fields: [clusterId], references: [id])
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? @relation(fields: [clusterId], references: [id])
1849
+ cluster Cluster? @relation(fields: [clusterId], references: [id])
1840
1850
  clusterId String?
1851
+ qrCodeTag qrCodeTag[]
1841
1852
  }
1842
1853
 
1843
1854
  model BuildingTemplate {
@@ -1968,6 +1979,39 @@ model qrCodeTag {
1968
1979
  updatedAt DateTime @updatedAt
1969
1980
  deletedAt DateTime?
1970
1981
 
1982
+ templateId String?
1983
+ networkElementId String?
1984
+
1971
1985
  qrCode qrCode @relation(fields: [qrCodeId], references: [id])
1972
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?
1973
2017
  }