efiber-prisma-schema 1.2.3 → 1.2.4
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 +59 -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,64 @@ 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
|
|
1215
1206
|
|
|
1216
|
-
|
|
1217
|
-
|
|
1207
|
+
createdAt DateTime @default(now())
|
|
1208
|
+
updatedAt DateTime @updatedAt
|
|
1209
|
+
deletedAt DateTime?
|
|
1218
1210
|
|
|
1211
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1212
|
+
updatedById String?
|
|
1219
1213
|
|
|
1220
|
-
|
|
1221
|
-
|
|
1214
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1215
|
+
networkElementId String
|
|
1222
1216
|
|
|
1217
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1218
|
+
projectId String?
|
|
1223
1219
|
|
|
1224
|
-
|
|
1220
|
+
pboFatAttributes PboFatAttributes[]
|
|
1225
1221
|
}
|
|
1226
1222
|
|
|
1227
1223
|
model PboFatAttributes {
|
|
1228
|
-
id
|
|
1229
|
-
no
|
|
1230
|
-
name
|
|
1224
|
+
id String @id @unique @default(uuid())
|
|
1225
|
+
no Int @default(autoincrement())
|
|
1226
|
+
name String
|
|
1231
1227
|
description String?
|
|
1232
|
-
value
|
|
1228
|
+
value String?
|
|
1233
1229
|
|
|
1234
1230
|
createdAt DateTime @default(now())
|
|
1235
1231
|
updatedAt DateTime @updatedAt
|
|
1236
1232
|
deletedAt DateTime?
|
|
1237
1233
|
|
|
1238
|
-
cable
|
|
1239
|
-
cableId
|
|
1234
|
+
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1235
|
+
cableId String?
|
|
1240
1236
|
|
|
1241
1237
|
material Material? @relation(fields: [materialId], references: [id])
|
|
1242
1238
|
materialId String?
|
|
1243
1239
|
|
|
1244
|
-
pboFatTemplate
|
|
1240
|
+
pboFatTemplate PboFatTemplate? @relation(fields: [pboFatTemplateId], references: [id])
|
|
1245
1241
|
pboFatTemplateId String?
|
|
1246
|
-
|
|
1247
|
-
pboFat
|
|
1242
|
+
|
|
1243
|
+
pboFat PboFat? @relation(fields: [pboFatId], references: [id])
|
|
1248
1244
|
pboFatId String?
|
|
1249
1245
|
|
|
1250
|
-
splitter
|
|
1246
|
+
splitter Splitter[]
|
|
1251
1247
|
workOrder WorkOrder[]
|
|
1252
|
-
|
|
1253
1248
|
}
|
|
1254
1249
|
|
|
1255
1250
|
model SpliceClosure {
|
|
@@ -1278,18 +1273,18 @@ model SpliceClosure {
|
|
|
1278
1273
|
}
|
|
1279
1274
|
|
|
1280
1275
|
model SpliceClosureAttributes {
|
|
1281
|
-
id
|
|
1282
|
-
no
|
|
1283
|
-
name
|
|
1276
|
+
id String @id @unique @default(uuid())
|
|
1277
|
+
no Int @default(autoincrement())
|
|
1278
|
+
name String
|
|
1284
1279
|
description String?
|
|
1285
|
-
value
|
|
1280
|
+
value String?
|
|
1286
1281
|
|
|
1287
1282
|
createdAt DateTime @default(now())
|
|
1288
1283
|
updatedAt DateTime @updatedAt
|
|
1289
1284
|
deletedAt DateTime?
|
|
1290
1285
|
|
|
1291
|
-
cable
|
|
1292
|
-
cableId
|
|
1286
|
+
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1287
|
+
cableId String?
|
|
1293
1288
|
|
|
1294
1289
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1295
1290
|
projectId String?
|
|
@@ -1297,6 +1292,6 @@ model SpliceClosureAttributes {
|
|
|
1297
1292
|
material Material? @relation(fields: [materialId], references: [id])
|
|
1298
1293
|
materialId String?
|
|
1299
1294
|
|
|
1300
|
-
spliceClosure
|
|
1295
|
+
spliceClosure SpliceClosure @relation(fields: [spliceClosureId], references: [id])
|
|
1301
1296
|
spliceClosureId String
|
|
1302
|
-
}
|
|
1297
|
+
}
|