efiber-prisma-schema 1.9.0 → 1.9.1

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.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "homepage": "https://github.com/ubuniworks-projects/efiber-prisma-schema#readme",
20
20
  "devDependencies": {
21
- "@prisma/client": "^5.18.0",
22
- "prisma": "^5.18.0"
21
+ "@prisma/client": "^6.3.1",
22
+ "prisma": "^6.3.1"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@prisma/client": ">=5"
@@ -2244,13 +2244,17 @@ model qrCodeTag {
2244
2244
  }
2245
2245
 
2246
2246
  model installationSequence {
2247
- id String @id @unique @default(uuid())
2248
- no Int @default(autoincrement())
2249
- installationId String
2250
- sequenceOrder Int
2251
- elementChildType NetworkElementChildType
2252
- elementChildId String
2247
+ id String @id @unique @default(uuid())
2248
+ no Int @default(autoincrement())
2249
+ installationId String?
2250
+ sequenceOrder Int
2251
+ elementChildType NetworkElementChildType
2252
+ elementChildId String
2253
+ previousInstallationSeqId String?
2253
2254
 
2254
2255
  createdAt DateTime @default(now())
2255
2256
  updatedAt DateTime @updatedAt
2257
+
2258
+ parent installationSequence? @relation("ChildToParent", fields: [previousInstallationSeqId], references: [id])
2259
+ children installationSequence[] @relation("ChildToParent")
2256
2260
  }