efiber-prisma-schema 1.6.5 → 1.6.6
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 +16 -16
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -442,7 +442,7 @@ model Project {
|
|
|
442
442
|
Cable Cable[]
|
|
443
443
|
CableTemplate CableTemplate[]
|
|
444
444
|
CentralOffice CentralOffice[]
|
|
445
|
-
|
|
445
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
446
446
|
projectPhaseLog projectPhaseLog[]
|
|
447
447
|
ZoneNro ZoneNro[]
|
|
448
448
|
Pole Pole[]
|
|
@@ -1172,7 +1172,7 @@ model NetworkElement {
|
|
|
1172
1172
|
Cable Cable[]
|
|
1173
1173
|
SpliceClosure SpliceClosure[]
|
|
1174
1174
|
CableTemplate CableTemplate[]
|
|
1175
|
-
|
|
1175
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
1176
1176
|
ZoneNro ZoneNro[]
|
|
1177
1177
|
Pole Pole[]
|
|
1178
1178
|
Manhole Manhole[]
|
|
@@ -1219,7 +1219,7 @@ model Cable {
|
|
|
1219
1219
|
cableAttributes CableAtttributes[]
|
|
1220
1220
|
PboFatAttributes PboFatAttributes[]
|
|
1221
1221
|
SpliceClosureAttributes SpliceClosureAttributes[]
|
|
1222
|
-
qrCode qrCode[]
|
|
1222
|
+
// qrCode qrCode[]
|
|
1223
1223
|
qrCodeTag qrCodeTag[]
|
|
1224
1224
|
}
|
|
1225
1225
|
|
|
@@ -1250,7 +1250,7 @@ model CableTemplate {
|
|
|
1250
1250
|
projectId String?
|
|
1251
1251
|
|
|
1252
1252
|
cableAttributes CableAtttributes[]
|
|
1253
|
-
|
|
1253
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
1256
|
model CableAtttributes {
|
|
@@ -1317,7 +1317,7 @@ model PboFatTemplate {
|
|
|
1317
1317
|
pboFatAttributes PboFatAttributes[]
|
|
1318
1318
|
|
|
1319
1319
|
//TODO: Add the fields for input/output cable, previous/next equipment, CO and project phase
|
|
1320
|
-
|
|
1320
|
+
qrCodeTemplate qrCodeTemplate[]
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
1323
|
model PboFat {
|
|
@@ -1346,7 +1346,7 @@ model PboFat {
|
|
|
1346
1346
|
projectId String?
|
|
1347
1347
|
|
|
1348
1348
|
pboFatAttributes PboFatAttributes[]
|
|
1349
|
-
qrCode qrCode[]
|
|
1349
|
+
// qrCode qrCode[]
|
|
1350
1350
|
qrCodeTag qrCodeTag[]
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
@@ -1929,7 +1929,7 @@ model Cluster {
|
|
|
1929
1929
|
BuildingTemplate BuildingTemplate[]
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
|
-
model
|
|
1932
|
+
model qrCodeTemplate {
|
|
1933
1933
|
id String @id @unique @default(uuid())
|
|
1934
1934
|
no Int @default(autoincrement())
|
|
1935
1935
|
name String
|
|
@@ -1948,8 +1948,12 @@ model qrCode {
|
|
|
1948
1948
|
projectId String?
|
|
1949
1949
|
|
|
1950
1950
|
// one to many relation with network element
|
|
1951
|
-
networkElement NetworkElement? @relation(fields: [
|
|
1951
|
+
networkElement NetworkElement? @relation(fields: [networkElementTypeId], references: [id])
|
|
1952
|
+
networkElementTypeId String?
|
|
1953
|
+
|
|
1954
|
+
|
|
1952
1955
|
networkElementId String?
|
|
1956
|
+
templateId String?
|
|
1953
1957
|
|
|
1954
1958
|
pboFatTemplate PboFatTemplate? @relation(fields: [pboFatTemplateId], references: [id])
|
|
1955
1959
|
pboFatTemplateId String?
|
|
@@ -1957,13 +1961,9 @@ model qrCode {
|
|
|
1957
1961
|
cableTemplate CableTemplate? @relation(fields: [cableTemplateId], references: [id])
|
|
1958
1962
|
cableTemplateId String?
|
|
1959
1963
|
|
|
1960
|
-
// one to many relation with cable
|
|
1961
|
-
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1962
|
-
cableId String?
|
|
1963
1964
|
|
|
1964
|
-
//
|
|
1965
|
-
pboFat PboFat? @relation(fields: [
|
|
1966
|
-
pboFatId String?
|
|
1965
|
+
// cable Cable? @relation(fields: [networkElementId], references: [id])
|
|
1966
|
+
// pboFat PboFat? @relation(fields: [networkElementId], references: [id])
|
|
1967
1967
|
qrCodeTag qrCodeTag[]
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
@@ -1982,8 +1982,8 @@ model qrCodeTag {
|
|
|
1982
1982
|
templateId String?
|
|
1983
1983
|
networkElementId String?
|
|
1984
1984
|
|
|
1985
|
-
qrCode
|
|
1986
|
-
|
|
1985
|
+
qrCode qrCodeTemplate @relation(fields: [qrCodeTemplateId], references: [id])
|
|
1986
|
+
qrCodeTemplateId String
|
|
1987
1987
|
|
|
1988
1988
|
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1989
1989
|
cableId String?
|