@dhyasama/totem-models 8.58.2 → 8.59.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/lib/Financials.js +7 -6
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -28,7 +28,7 @@ module.exports = function(mongoose, config) {
|
|
|
28
28
|
|
|
29
29
|
uuid: { type: String },
|
|
30
30
|
|
|
31
|
-
managedServices: { type: Boolean, default: false
|
|
31
|
+
managedServices: { type: Boolean, default: false },
|
|
32
32
|
|
|
33
33
|
status: { type: String },
|
|
34
34
|
action: { type: String },
|
|
@@ -36,6 +36,12 @@ module.exports = function(mongoose, config) {
|
|
|
36
36
|
year: { type: Number, default: 0 },
|
|
37
37
|
period: { type: String, enum: ['Annual', 'Q1', 'Q2', 'Q3', 'Q4', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] },
|
|
38
38
|
|
|
39
|
+
form: [{
|
|
40
|
+
_id: false,
|
|
41
|
+
name: { type: String, trim: true },
|
|
42
|
+
type: { type: String, enum: [null, 'block', 'document', 'metric', 'question']}
|
|
43
|
+
}],
|
|
44
|
+
|
|
39
45
|
cash: {
|
|
40
46
|
amount: { type: Number, default: 0 },
|
|
41
47
|
},
|
|
@@ -110,11 +116,6 @@ module.exports = function(mongoose, config) {
|
|
|
110
116
|
metrics: { type: Schema.Types.Mixed },
|
|
111
117
|
questions: { type: Schema.Types.Mixed },
|
|
112
118
|
|
|
113
|
-
form: [{
|
|
114
|
-
name: { type: String, trim: true },
|
|
115
|
-
type: { type: String, enum: [null, 'block', 'document', 'metric', 'question']}
|
|
116
|
-
}],
|
|
117
|
-
|
|
118
119
|
comment: { type: String, trim: true },
|
|
119
120
|
|
|
120
121
|
submittedOn: { type: Date, index: false },
|