efiber-prisma-schema 1.2.3 → 1.2.5
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 +60 -64
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -358,9 +358,9 @@ model User {
|
|
|
358
358
|
Notifications Notifications[]
|
|
359
359
|
|
|
360
360
|
pboFatTemplates PboFatTemplate[]
|
|
361
|
-
pboFat
|
|
362
|
-
cable
|
|
363
|
-
SpliceClosure
|
|
361
|
+
pboFat PboFat[]
|
|
362
|
+
cable Cable[]
|
|
363
|
+
SpliceClosure SpliceClosure[]
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
model MainProject {
|
|
@@ -408,9 +408,9 @@ model Project {
|
|
|
408
408
|
ReportFormats ReportFormats[]
|
|
409
409
|
platforms Platform[]
|
|
410
410
|
|
|
411
|
-
pboFatTemplates
|
|
412
|
-
pboFat
|
|
413
|
-
cableAttributes
|
|
411
|
+
pboFatTemplates PboFatTemplate[]
|
|
412
|
+
pboFat PboFat[]
|
|
413
|
+
cableAttributes CableAtttributes[]
|
|
414
414
|
spliceClosureAttributes SpliceClosureAttributes[]
|
|
415
415
|
}
|
|
416
416
|
|
|
@@ -790,7 +790,7 @@ model Material {
|
|
|
790
790
|
|
|
791
791
|
billOfMaterial MaterialBillOfMaterial[]
|
|
792
792
|
|
|
793
|
-
pboFatAttributes
|
|
793
|
+
pboFatAttributes PboFatAttributes[]
|
|
794
794
|
cableAttributes CableAtttributes[]
|
|
795
795
|
spliceClosureAttributes SpliceClosureAttributes[]
|
|
796
796
|
}
|
|
@@ -1099,14 +1099,14 @@ model NetworkElement {
|
|
|
1099
1099
|
updatedAt DateTime @updatedAt
|
|
1100
1100
|
deletedAt DateTime?
|
|
1101
1101
|
|
|
1102
|
-
PboFat
|
|
1102
|
+
PboFat PboFat[]
|
|
1103
1103
|
pboFatTemplate PboFatTemplate[]
|
|
1104
|
-
Cable
|
|
1105
|
-
SpliceClosure
|
|
1104
|
+
Cable Cable[]
|
|
1105
|
+
SpliceClosure SpliceClosure[]
|
|
1106
1106
|
}
|
|
1107
1107
|
|
|
1108
1108
|
model Cable {
|
|
1109
|
-
id String @id @unique @default(uuid())
|
|
1109
|
+
id String @id @unique @default(uuid())
|
|
1110
1110
|
no Int @default(autoincrement())
|
|
1111
1111
|
name String
|
|
1112
1112
|
type String //aerial/underground
|
|
@@ -1130,24 +1130,23 @@ model Cable {
|
|
|
1130
1130
|
|
|
1131
1131
|
cableAttributes CableAtttributes[]
|
|
1132
1132
|
|
|
1133
|
-
pboFatAttributes
|
|
1133
|
+
pboFatAttributes PboFatAttributes[]
|
|
1134
1134
|
spliceClosureAttributes SpliceClosureAttributes[]
|
|
1135
|
-
|
|
1136
1135
|
}
|
|
1137
1136
|
|
|
1138
1137
|
model CableAtttributes {
|
|
1139
|
-
id
|
|
1140
|
-
no
|
|
1141
|
-
name
|
|
1138
|
+
id String @id @unique @default(uuid())
|
|
1139
|
+
no Int @default(autoincrement())
|
|
1140
|
+
name String
|
|
1142
1141
|
description String?
|
|
1143
|
-
value
|
|
1142
|
+
value String?
|
|
1144
1143
|
|
|
1145
1144
|
createdAt DateTime @default(now())
|
|
1146
1145
|
updatedAt DateTime @updatedAt
|
|
1147
1146
|
deletedAt DateTime?
|
|
1148
1147
|
|
|
1149
|
-
cable
|
|
1150
|
-
cableId
|
|
1148
|
+
cable Cable @relation(fields: [cableId], references: [id])
|
|
1149
|
+
cableId String
|
|
1151
1150
|
|
|
1152
1151
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1153
1152
|
projectId String?
|
|
@@ -1169,13 +1168,14 @@ model Splitter {
|
|
|
1169
1168
|
}
|
|
1170
1169
|
|
|
1171
1170
|
model PboFatTemplate {
|
|
1172
|
-
id
|
|
1173
|
-
no
|
|
1171
|
+
id String @id @unique @default(uuid())
|
|
1172
|
+
no Int @default(autoincrement())
|
|
1174
1173
|
|
|
1175
|
-
status
|
|
1176
|
-
terminalAccess
|
|
1177
|
-
photos
|
|
1178
|
-
zone
|
|
1174
|
+
status String @default("active")
|
|
1175
|
+
terminalAccess Boolean @default(false)
|
|
1176
|
+
photos Json? //Upload files for photos
|
|
1177
|
+
zone String? //Color code for zone
|
|
1178
|
+
geometry String? //Icon for the PBO FAT
|
|
1179
1179
|
|
|
1180
1180
|
createdAt DateTime @default(now())
|
|
1181
1181
|
updatedAt DateTime @updatedAt
|
|
@@ -1187,69 +1187,65 @@ model PboFatTemplate {
|
|
|
1187
1187
|
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1188
1188
|
networkElementId String
|
|
1189
1189
|
|
|
1190
|
-
|
|
1191
1190
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1192
1191
|
projectId String?
|
|
1193
1192
|
|
|
1194
|
-
|
|
1195
1193
|
pboFatAttributes PboFatAttributes[]
|
|
1196
1194
|
|
|
1197
1195
|
//TODO: Add the fields for input/output cable, previous/next equipment, CO and project phase
|
|
1198
1196
|
}
|
|
1199
1197
|
|
|
1200
1198
|
model PboFat {
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
status String @default("active")
|
|
1205
|
-
terminalAccess Boolean @default(false)
|
|
1206
|
-
photos Json? //Upload files for photos
|
|
1207
|
-
zone String? //Color code for zone
|
|
1208
|
-
|
|
1209
|
-
createdAt DateTime @default(now())
|
|
1210
|
-
updatedAt DateTime @updatedAt
|
|
1211
|
-
deletedAt DateTime?
|
|
1199
|
+
id String @id @unique @default(uuid())
|
|
1200
|
+
no Int @default(autoincrement())
|
|
1212
1201
|
|
|
1213
|
-
|
|
1214
|
-
|
|
1202
|
+
status String @default("active")
|
|
1203
|
+
terminalAccess Boolean @default(false)
|
|
1204
|
+
photos Json? //Upload files for photos
|
|
1205
|
+
zone String? //Color code for zone
|
|
1206
|
+
geometry String? //Icon for the PBO FAT
|
|
1215
1207
|
|
|
1216
|
-
|
|
1217
|
-
|
|
1208
|
+
createdAt DateTime @default(now())
|
|
1209
|
+
updatedAt DateTime @updatedAt
|
|
1210
|
+
deletedAt DateTime?
|
|
1218
1211
|
|
|
1212
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1213
|
+
updatedById String?
|
|
1219
1214
|
|
|
1220
|
-
|
|
1221
|
-
|
|
1215
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1216
|
+
networkElementId String
|
|
1222
1217
|
|
|
1218
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1219
|
+
projectId String?
|
|
1223
1220
|
|
|
1224
|
-
|
|
1221
|
+
pboFatAttributes PboFatAttributes[]
|
|
1225
1222
|
}
|
|
1226
1223
|
|
|
1227
1224
|
model PboFatAttributes {
|
|
1228
|
-
id
|
|
1229
|
-
no
|
|
1230
|
-
name
|
|
1225
|
+
id String @id @unique @default(uuid())
|
|
1226
|
+
no Int @default(autoincrement())
|
|
1227
|
+
name String
|
|
1231
1228
|
description String?
|
|
1232
|
-
value
|
|
1229
|
+
value String?
|
|
1233
1230
|
|
|
1234
1231
|
createdAt DateTime @default(now())
|
|
1235
1232
|
updatedAt DateTime @updatedAt
|
|
1236
1233
|
deletedAt DateTime?
|
|
1237
1234
|
|
|
1238
|
-
cable
|
|
1239
|
-
cableId
|
|
1235
|
+
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1236
|
+
cableId String?
|
|
1240
1237
|
|
|
1241
1238
|
material Material? @relation(fields: [materialId], references: [id])
|
|
1242
1239
|
materialId String?
|
|
1243
1240
|
|
|
1244
|
-
pboFatTemplate
|
|
1241
|
+
pboFatTemplate PboFatTemplate? @relation(fields: [pboFatTemplateId], references: [id])
|
|
1245
1242
|
pboFatTemplateId String?
|
|
1246
|
-
|
|
1247
|
-
pboFat
|
|
1243
|
+
|
|
1244
|
+
pboFat PboFat? @relation(fields: [pboFatId], references: [id])
|
|
1248
1245
|
pboFatId String?
|
|
1249
1246
|
|
|
1250
|
-
splitter
|
|
1247
|
+
splitter Splitter[]
|
|
1251
1248
|
workOrder WorkOrder[]
|
|
1252
|
-
|
|
1253
1249
|
}
|
|
1254
1250
|
|
|
1255
1251
|
model SpliceClosure {
|
|
@@ -1278,18 +1274,18 @@ model SpliceClosure {
|
|
|
1278
1274
|
}
|
|
1279
1275
|
|
|
1280
1276
|
model SpliceClosureAttributes {
|
|
1281
|
-
id
|
|
1282
|
-
no
|
|
1283
|
-
name
|
|
1277
|
+
id String @id @unique @default(uuid())
|
|
1278
|
+
no Int @default(autoincrement())
|
|
1279
|
+
name String
|
|
1284
1280
|
description String?
|
|
1285
|
-
value
|
|
1281
|
+
value String?
|
|
1286
1282
|
|
|
1287
1283
|
createdAt DateTime @default(now())
|
|
1288
1284
|
updatedAt DateTime @updatedAt
|
|
1289
1285
|
deletedAt DateTime?
|
|
1290
1286
|
|
|
1291
|
-
cable
|
|
1292
|
-
cableId
|
|
1287
|
+
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1288
|
+
cableId String?
|
|
1293
1289
|
|
|
1294
1290
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1295
1291
|
projectId String?
|
|
@@ -1297,6 +1293,6 @@ model SpliceClosureAttributes {
|
|
|
1297
1293
|
material Material? @relation(fields: [materialId], references: [id])
|
|
1298
1294
|
materialId String?
|
|
1299
1295
|
|
|
1300
|
-
spliceClosure
|
|
1296
|
+
spliceClosure SpliceClosure @relation(fields: [spliceClosureId], references: [id])
|
|
1301
1297
|
spliceClosureId String
|
|
1302
|
-
}
|
|
1298
|
+
}
|