payservedb 5.1.1 → 5.1.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
|
@@ -11,22 +11,25 @@ const commonAreaGeneratorReadingSchema = new mongoose.Schema({
|
|
|
11
11
|
type: Date,
|
|
12
12
|
required: true
|
|
13
13
|
},
|
|
14
|
-
|
|
15
|
-
type: Number,
|
|
14
|
+
openingReading: {
|
|
15
|
+
type: Number, // Stored in total minutes (e.g., 3hrs 40mins = 220 minutes)
|
|
16
16
|
required: true
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
type: Number,
|
|
18
|
+
closingReading: {
|
|
19
|
+
type: Number, // Stored in total minutes (e.g., 8hrs 15mins = 495 minutes)
|
|
20
20
|
required: true
|
|
21
21
|
},
|
|
22
22
|
totalHrsRun: {
|
|
23
|
-
type: Number,
|
|
23
|
+
type: Number, // Can be calculated or entered directly
|
|
24
24
|
required: true
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
totalFuelLevelFraction: {
|
|
27
27
|
type: String,
|
|
28
28
|
trim: true
|
|
29
29
|
},
|
|
30
|
+
totalFuelLevelLiters: {
|
|
31
|
+
type: Number
|
|
32
|
+
},
|
|
30
33
|
refillAmountLiters: {
|
|
31
34
|
type: Number
|
|
32
35
|
}
|
|
@@ -34,5 +37,6 @@ const commonAreaGeneratorReadingSchema = new mongoose.Schema({
|
|
|
34
37
|
timestamps: true
|
|
35
38
|
});
|
|
36
39
|
|
|
40
|
+
|
|
37
41
|
const CommonAreaGeneratorReading = mongoose.model('CommonAreaGeneratorReading', commonAreaGeneratorReadingSchema);
|
|
38
|
-
module.exports = CommonAreaGeneratorReading;
|
|
42
|
+
module.exports = CommonAreaGeneratorReading;
|