efiber-prisma-schema 1.2.0 → 1.2.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efiber-prisma-schema",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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[]
@@ -407,7 +408,8 @@ model Project {
407
408
  ReportFormats ReportFormats[]
408
409
  platforms Platform[]
409
410
 
410
- pboFatAttributes PboFatAttributes[]
411
+ pboFatTemplates PboFatTemplate[]
412
+ pboFat PboFat[]
411
413
  cableAttributes CableAtttributes[]
412
414
  spliceClosureAttributes SpliceClosureAttributes[]
413
415
  }
@@ -1098,6 +1100,7 @@ model NetworkElement {
1098
1100
  deletedAt DateTime?
1099
1101
 
1100
1102
  PboFat PboFat[]
1103
+ pboFatTemplate PboFatTemplate[]
1101
1104
  Cable Cable[]
1102
1105
  SpliceClosure SpliceClosure[]
1103
1106
  }
@@ -1112,7 +1115,7 @@ model Cable {
1112
1115
  fibersReserved Int
1113
1116
  fibersDark Int
1114
1117
  fibersDedicated Int
1115
- length Int
1118
+ length Int?
1116
1119
  brand String?
1117
1120
  description String?
1118
1121
 
@@ -1165,11 +1168,14 @@ model Splitter {
1165
1168
  PboFatAttributes PboFatAttributes[]
1166
1169
  }
1167
1170
 
1168
- model PboFat {
1171
+ model PboFatTemplate {
1169
1172
  id String @id @unique @default(uuid())
1170
1173
  no Int @default(autoincrement())
1171
1174
 
1172
1175
  status String @default("active")
1176
+ terminalAccess Boolean @default(false)
1177
+ photos Json? //Upload files for photos
1178
+ zone String? //Color code for zone
1173
1179
 
1174
1180
  createdAt DateTime @default(now())
1175
1181
  updatedAt DateTime @updatedAt
@@ -1181,11 +1187,43 @@ model PboFat {
1181
1187
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1182
1188
  networkElementId String
1183
1189
 
1190
+
1191
+ project Project? @relation(fields: [projectId], references: [id])
1192
+ projectId String?
1193
+
1194
+
1184
1195
  pboFatAttributes PboFatAttributes[]
1185
1196
 
1186
1197
  //TODO: Add the fields for input/output cable, previous/next equipment, CO and project phase
1187
1198
  }
1188
1199
 
1200
+ model PboFat {
1201
+ id String @id @unique @default(uuid())
1202
+ no Int @default(autoincrement())
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?
1212
+
1213
+ updatedBy User? @relation(fields: [updatedById], references: [id])
1214
+ updatedById String?
1215
+
1216
+ networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1217
+ networkElementId String
1218
+
1219
+
1220
+ project Project? @relation(fields: [projectId], references: [id])
1221
+ projectId String?
1222
+
1223
+
1224
+ pboFatAttributes PboFatAttributes[]
1225
+ }
1226
+
1189
1227
  model PboFatAttributes {
1190
1228
  id String @id @unique @default(uuid())
1191
1229
  no Int @default(autoincrement())
@@ -1200,12 +1238,12 @@ model PboFatAttributes {
1200
1238
  cable Cable? @relation(fields: [cableId], references: [id])
1201
1239
  cableId String?
1202
1240
 
1203
- project Project? @relation(fields: [projectId], references: [id])
1204
- projectId String?
1205
-
1206
1241
  material Material? @relation(fields: [materialId], references: [id])
1207
1242
  materialId String?
1208
1243
 
1244
+ pboFatTemplate PboFatTemplate @relation(fields: [pboFatTemplateId], references: [id])
1245
+ pboFatTemplateId String
1246
+
1209
1247
  pboFat PboFat @relation(fields: [pboFatId], references: [id])
1210
1248
  pboFatId String
1211
1249
 
@@ -1261,4 +1299,4 @@ model SpliceClosureAttributes {
1261
1299
 
1262
1300
  spliceClosure SpliceClosure @relation(fields: [spliceClosureId], references: [id])
1263
1301
  spliceClosureId String
1264
- }
1302
+ }