@bslau/hmm_prisma_schema 1.2.0 → 1.3.0

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": "@bslau/hmm_prisma_schema",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "main": "index.js",
5
5
  "author": "CIPA Development Team",
6
6
  "license": "ISC",
@@ -283,6 +283,36 @@ model Location {
283
283
  torpedoLocations TorpedoLocation[]
284
284
  }
285
285
 
286
+ /// **OPERATIONAL STATE**
287
+ ///
288
+ /// A reference object that contains data about the Operational State of HMM.
289
+ ///
290
+ /// As certain Fleet/Operational Calculations are performed, the results will be
291
+ /// stored in the database, so that those values can be read/displayed without
292
+ /// having to always re-run the calculations.
293
+ model OperationalState {
294
+ id Int @id @default(autoincrement())
295
+ hotMetalPotTonnes Float @default(0)
296
+ hotMetalTorpedoTonnes Float @default(0)
297
+ hotMetalTotalTonnes Float @default(0)
298
+ torpedoesActiveTally Int @default(0)
299
+ torpedoesAvailableTally Int @default(0)
300
+ torpedoesCarryingTally Int @default(0)
301
+ torpedoesStandbyTally Int @default(0)
302
+ updatedAt DateTime @updatedAt
303
+ }
304
+
305
+ /// **POT**
306
+ ///
307
+ /// Physical equipment at the BOS for the transfer of Hot Metal from Torpedoes.
308
+ ///
309
+ /// Normal operations will "empty" a Torpedo's Hot Metal into a specific Pot.
310
+ model Pot {
311
+ id Int @id @default(autoincrement())
312
+ name String @unique
313
+ HotMetal HotMetal[]
314
+ }
315
+
286
316
  /// **STATION**
287
317
  ///
288
318
  /// A logical location where different _Torpedo_ operations may occur.
@@ -325,8 +355,8 @@ model Torpedo {
325
355
  sixPitRestrictionEndTime DateTime? @db.DateTimeOffset
326
356
  status Int @default(2)
327
357
  // sixPitStart DateTime?
328
- capacityAverage Float?
329
- capacityNominal Float @default(200)
358
+ capacityAverage Float?
359
+ capacityNominal Float @default(200)
330
360
  // comments String?
331
361
  // emptyWeight Float?
332
362
  // gasStart DateTime?
@@ -429,12 +459,3 @@ model TorpedoTrip {
429
459
  startTime DateTime @default(now()) @db.DateTimeOffset
430
460
  endTime DateTime? @db.DateTimeOffset
431
461
  }
432
-
433
- /// **POT**
434
- ///
435
- /// Pot Number is a property in Hot Metal Model.
436
- model Pot {
437
- id Int @id @default(autoincrement())
438
- name String @unique
439
- HotMetal HotMetal[]
440
- }