efiber-prisma-schema 1.3.0 → 1.4.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 +35 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -420,6 +420,7 @@ model Project {
|
|
|
420
420
|
Cable Cable[]
|
|
421
421
|
CableTemplate CableTemplate[]
|
|
422
422
|
CentralOffice CentralOffice[]
|
|
423
|
+
qrCode qrCode[]
|
|
423
424
|
}
|
|
424
425
|
|
|
425
426
|
model Audit {
|
|
@@ -1112,6 +1113,7 @@ model NetworkElement {
|
|
|
1112
1113
|
Cable Cable[]
|
|
1113
1114
|
SpliceClosure SpliceClosure[]
|
|
1114
1115
|
CableTemplate CableTemplate[]
|
|
1116
|
+
qrCode qrCode[]
|
|
1115
1117
|
}
|
|
1116
1118
|
|
|
1117
1119
|
model Cable {
|
|
@@ -1142,6 +1144,7 @@ model Cable {
|
|
|
1142
1144
|
cableAttributes CableAtttributes[]
|
|
1143
1145
|
PboFatAttributes PboFatAttributes[]
|
|
1144
1146
|
SpliceClosureAttributes SpliceClosureAttributes[]
|
|
1147
|
+
qrCode qrCode[]
|
|
1145
1148
|
}
|
|
1146
1149
|
|
|
1147
1150
|
model CableTemplate {
|
|
@@ -1262,6 +1265,7 @@ model PboFat {
|
|
|
1262
1265
|
projectId String?
|
|
1263
1266
|
|
|
1264
1267
|
pboFatAttributes PboFatAttributes[]
|
|
1268
|
+
qrCode qrCode[]
|
|
1265
1269
|
}
|
|
1266
1270
|
|
|
1267
1271
|
model PboFatAttributes {
|
|
@@ -1373,3 +1377,34 @@ model Cluster {
|
|
|
1373
1377
|
|
|
1374
1378
|
users User[]
|
|
1375
1379
|
}
|
|
1380
|
+
|
|
1381
|
+
model qrCode {
|
|
1382
|
+
id String @id @unique @default(uuid())
|
|
1383
|
+
no Int @default(autoincrement())
|
|
1384
|
+
name String
|
|
1385
|
+
prefix String
|
|
1386
|
+
index Int //number of qr code generated
|
|
1387
|
+
scanned Int @default(0)
|
|
1388
|
+
link String? @unique //where the qr code will redirect to
|
|
1389
|
+
tagDetails Json?
|
|
1390
|
+
status String @default("active")
|
|
1391
|
+
|
|
1392
|
+
createdAt DateTime @default(now())
|
|
1393
|
+
updatedAt DateTime @updatedAt
|
|
1394
|
+
deletedAt DateTime?
|
|
1395
|
+
|
|
1396
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1397
|
+
projectId String?
|
|
1398
|
+
|
|
1399
|
+
// one to many relation with network element
|
|
1400
|
+
networkElement NetworkElement? @relation(fields: [networkElementId], references: [id])
|
|
1401
|
+
networkElementId String?
|
|
1402
|
+
|
|
1403
|
+
// one to many relation with cable
|
|
1404
|
+
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1405
|
+
cableId String?
|
|
1406
|
+
|
|
1407
|
+
// one to many relation with pbo fat
|
|
1408
|
+
pboFat PboFat? @relation(fields: [pboFatId], references: [id])
|
|
1409
|
+
pboFatId String?
|
|
1410
|
+
}
|