@bluedot-innovation/models 6.2.9 → 6.2.10
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
let mongoose = require('mongoose')
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
A basic feature is one that can only be enabled or disabled. When new features are added they generally
|
|
5
|
+
start with this structure. If extra attributes need to be added later that are feature specific then a new
|
|
6
|
+
schema should be created for that feature, such as the AccountTempo feature.
|
|
7
|
+
*/
|
|
8
|
+
let BasicFeatureSchema = new mongoose.Schema({
|
|
9
|
+
enabled: {type: Boolean}
|
|
10
|
+
}, {
|
|
11
|
+
_id: false
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
module.exports = BasicFeatureSchema
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
let mongoose = require('mongoose')
|
|
2
2
|
let AccountTempoSchema = require('./AccountTempo')
|
|
3
|
-
let
|
|
3
|
+
let AccountBasicFeatureSchema = require('./AccountBasicFeature')
|
|
4
4
|
|
|
5
5
|
let AccountFeaturesSchema = new mongoose.Schema({
|
|
6
6
|
tempo: AccountTempoSchema,
|
|
7
|
-
realTimeDashboard:
|
|
7
|
+
realTimeDashboard: AccountBasicFeatureSchema,
|
|
8
|
+
screens: AccountBasicFeatureSchema
|
|
8
9
|
}, {
|
|
9
10
|
_id: false
|
|
10
11
|
})
|