efiber-prisma-schema 1.2.0 → 1.2.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 +1 -1
- package/prisma/schema.prisma +33 -3
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -357,6 +357,7 @@ model User {
|
|
|
357
357
|
workOrderEditLogs WorkOrderEditLog[]
|
|
358
358
|
Notifications Notifications[]
|
|
359
359
|
|
|
360
|
+
pboFatTemplates PboFatTemplate[]
|
|
360
361
|
pboFat PboFat[]
|
|
361
362
|
cable Cable[]
|
|
362
363
|
SpliceClosure SpliceClosure[]
|
|
@@ -1098,6 +1099,7 @@ model NetworkElement {
|
|
|
1098
1099
|
deletedAt DateTime?
|
|
1099
1100
|
|
|
1100
1101
|
PboFat PboFat[]
|
|
1102
|
+
pboFatTemplate PboFatTemplate[]
|
|
1101
1103
|
Cable Cable[]
|
|
1102
1104
|
SpliceClosure SpliceClosure[]
|
|
1103
1105
|
}
|
|
@@ -1112,7 +1114,7 @@ model Cable {
|
|
|
1112
1114
|
fibersReserved Int
|
|
1113
1115
|
fibersDark Int
|
|
1114
1116
|
fibersDedicated Int
|
|
1115
|
-
length Int
|
|
1117
|
+
length Int?
|
|
1116
1118
|
brand String?
|
|
1117
1119
|
description String?
|
|
1118
1120
|
|
|
@@ -1165,11 +1167,14 @@ model Splitter {
|
|
|
1165
1167
|
PboFatAttributes PboFatAttributes[]
|
|
1166
1168
|
}
|
|
1167
1169
|
|
|
1168
|
-
model
|
|
1170
|
+
model PboFatTemplate {
|
|
1169
1171
|
id String @id @unique @default(uuid())
|
|
1170
1172
|
no Int @default(autoincrement())
|
|
1171
1173
|
|
|
1172
1174
|
status String @default("active")
|
|
1175
|
+
terminalAccess Boolean @default(false)
|
|
1176
|
+
photos Json? //Upload files for photos
|
|
1177
|
+
zone String? //Color code for zone
|
|
1173
1178
|
|
|
1174
1179
|
createdAt DateTime @default(now())
|
|
1175
1180
|
updatedAt DateTime @updatedAt
|
|
@@ -1186,6 +1191,28 @@ model PboFat {
|
|
|
1186
1191
|
//TODO: Add the fields for input/output cable, previous/next equipment, CO and project phase
|
|
1187
1192
|
}
|
|
1188
1193
|
|
|
1194
|
+
model PboFat {
|
|
1195
|
+
id String @id @unique @default(uuid())
|
|
1196
|
+
no Int @default(autoincrement())
|
|
1197
|
+
|
|
1198
|
+
status String @default("active")
|
|
1199
|
+
terminalAccess Boolean @default(false)
|
|
1200
|
+
photos Json? //Upload files for photos
|
|
1201
|
+
zone String? //Color code for zone
|
|
1202
|
+
|
|
1203
|
+
createdAt DateTime @default(now())
|
|
1204
|
+
updatedAt DateTime @updatedAt
|
|
1205
|
+
deletedAt DateTime?
|
|
1206
|
+
|
|
1207
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1208
|
+
updatedById String?
|
|
1209
|
+
|
|
1210
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1211
|
+
networkElementId String
|
|
1212
|
+
|
|
1213
|
+
pboFatAttributes PboFatAttributes[]
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1189
1216
|
model PboFatAttributes {
|
|
1190
1217
|
id String @id @unique @default(uuid())
|
|
1191
1218
|
no Int @default(autoincrement())
|
|
@@ -1206,6 +1233,9 @@ model PboFatAttributes {
|
|
|
1206
1233
|
material Material? @relation(fields: [materialId], references: [id])
|
|
1207
1234
|
materialId String?
|
|
1208
1235
|
|
|
1236
|
+
pboFatTemplate PboFatTemplate @relation(fields: [pboFatTemplateId], references: [id])
|
|
1237
|
+
pboFatTemplateId String
|
|
1238
|
+
|
|
1209
1239
|
pboFat PboFat @relation(fields: [pboFatId], references: [id])
|
|
1210
1240
|
pboFatId String
|
|
1211
1241
|
|
|
@@ -1261,4 +1291,4 @@ model SpliceClosureAttributes {
|
|
|
1261
1291
|
|
|
1262
1292
|
spliceClosure SpliceClosure @relation(fields: [spliceClosureId], references: [id])
|
|
1263
1293
|
spliceClosureId String
|
|
1264
|
-
}
|
|
1294
|
+
}
|