@bluedot-innovation/models 2.0.0-beta.5 → 2.0.0-beta.6
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/models/Account.js +4 -1
- package/models/Zone.js +2 -2
- package/package.json +1 -1
package/models/Account.js
CHANGED
|
@@ -18,7 +18,10 @@ let AccountSchema = new mongoose.Schema({
|
|
|
18
18
|
// type: Schema.Types.ObjectId,
|
|
19
19
|
type: String,
|
|
20
20
|
validator: helpers.validateUUIDv4,
|
|
21
|
-
required: true
|
|
21
|
+
required: true,
|
|
22
|
+
// Adding a default to allow the lambdas to pass until we know who
|
|
23
|
+
// the createdBy will be.
|
|
24
|
+
default: uuidv4
|
|
22
25
|
},
|
|
23
26
|
state: {type: String, default: StateEnum.active},
|
|
24
27
|
poiCredits: Number,
|
package/models/Zone.js
CHANGED
|
@@ -60,8 +60,8 @@ let ZoneSchema = new Schema({
|
|
|
60
60
|
},
|
|
61
61
|
customData: [{type: Schema.Types.Mixed}],
|
|
62
62
|
description: {type: String, default: ''},
|
|
63
|
-
creationTime: {type: Date,
|
|
64
|
-
lastUpdateTime: {type: Date,
|
|
63
|
+
creationTime: {type: Date, required: [true, 'creationTime is required'], select: false},
|
|
64
|
+
lastUpdateTime: {type: Date, required: [true, 'creationTime is required'], select: false},
|
|
65
65
|
projectId: {type: String, required: [true, 'projectId is required']},
|
|
66
66
|
state: {type: String, default: StateEnum.active, select: false}
|
|
67
67
|
}, {collection: 'zone'})
|