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 +1 -1
- package/prisma/schema.prisma +9 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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?
|