efiber-prisma-schema 1.8.4 → 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 +3 -3
- package/prisma/schema.prisma +29 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efiber-prisma-schema",
|
|
3
|
-
"version": "1.
|
|
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": "^
|
|
22
|
-
"prisma": "^
|
|
21
|
+
"@prisma/client": "^6.3.1",
|
|
22
|
+
"prisma": "^6.3.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@prisma/client": ">=5"
|
package/prisma/schema.prisma
CHANGED
|
@@ -7,6 +7,19 @@ datasource db {
|
|
|
7
7
|
url = env("DATABASE_URL")
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
enum NetworkElementChildType {
|
|
11
|
+
PboFat
|
|
12
|
+
Cable
|
|
13
|
+
SpliceClosure
|
|
14
|
+
Zone
|
|
15
|
+
SFU
|
|
16
|
+
Loop
|
|
17
|
+
FDTSRO
|
|
18
|
+
Manhole
|
|
19
|
+
Building
|
|
20
|
+
Pole
|
|
21
|
+
}
|
|
22
|
+
|
|
10
23
|
model Country {
|
|
11
24
|
id String @id @unique @default(uuid())
|
|
12
25
|
no Int @default(autoincrement())
|
|
@@ -2229,3 +2242,19 @@ model qrCodeTag {
|
|
|
2229
2242
|
building Building? @relation(fields: [buildingId], references: [id])
|
|
2230
2243
|
buildingId String?
|
|
2231
2244
|
}
|
|
2245
|
+
|
|
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
|
|
2253
|
+
previousInstallationSeqId String?
|
|
2254
|
+
|
|
2255
|
+
createdAt DateTime @default(now())
|
|
2256
|
+
updatedAt DateTime @updatedAt
|
|
2257
|
+
|
|
2258
|
+
parent installationSequence? @relation("ChildToParent", fields: [previousInstallationSeqId], references: [id])
|
|
2259
|
+
children installationSequence[] @relation("ChildToParent")
|
|
2260
|
+
}
|