@bluedot-innovation/models 2.0.0-alpha.7 → 2.0.0-alpha.9
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/Beacon.js +2 -0
- package/models/Geofeature.js +0 -2
- package/models/Zone.js +1 -1
- package/package.json +1 -1
package/models/Beacon.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
let mongoose = require('mongoose')
|
|
2
2
|
let StateEnum = require('@bluedot-innovation/enums').StateEnum
|
|
3
3
|
let Point = require('../schemas/Point')
|
|
4
|
+
let uuidv4 = require('uuid/v4')
|
|
4
5
|
|
|
5
6
|
let schema = {
|
|
7
|
+
guid: {type: String, default: uuidv4},
|
|
6
8
|
name: {type: String, required: [true, 'name is required. ']},
|
|
7
9
|
longitude: {
|
|
8
10
|
type: Number,
|
package/models/Geofeature.js
CHANGED
|
@@ -7,8 +7,6 @@ let mongoose = require('mongoose')
|
|
|
7
7
|
let Schema = mongoose.Schema
|
|
8
8
|
|
|
9
9
|
let GeofeatureSchema = new Schema({
|
|
10
|
-
_id: Schema.Types.ObjectId,
|
|
11
|
-
_class: {type: String, default: 'au.com.bluedot.application.spring.GeoFeature'},
|
|
12
10
|
geometry: Schema.Types.Mixed,
|
|
13
11
|
referenceId: String,
|
|
14
12
|
apiKey: String,
|
package/models/Zone.js
CHANGED