efiber-prisma-schema 1.15.0 → 1.16.0

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.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1540,6 +1540,15 @@ model Cable {
1540
1540
  client String? //Client associated with the cable
1541
1541
  subsidiary String? //Subsidiary or branch
1542
1542
 
1543
+ // parent/subcable implementation
1544
+ isSubcable Boolean @default(false)
1545
+
1546
+ parentCable Cable? @relation("CableToSubcables", fields: [parentCableId], references: [id])
1547
+ parentCableId String?
1548
+ parentCableName String?
1549
+
1550
+ subcables Cable[] @relation("CableToSubcables")
1551
+
1543
1552
  createdAt DateTime @default(now())
1544
1553
  updatedAt DateTime @updatedAt
1545
1554
  deletedAt DateTime?