@bluedot-innovation/models 1.0.0

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.
Files changed (63) hide show
  1. package/.npmignore +1 -0
  2. package/Models.js +12 -0
  3. package/models/AdminPortalUser.js +24 -0
  4. package/models/AdminUser.js +10 -0
  5. package/models/Application.js +38 -0
  6. package/models/ApplicationNotificationAction.js +30 -0
  7. package/models/ApplicationUsage.js +11 -0
  8. package/models/Beacon.js +36 -0
  9. package/models/BeaconFilter.js +23 -0
  10. package/models/BoundingBox.js +17 -0
  11. package/models/Circle.js +21 -0
  12. package/models/ConstrainAccuracyAction.js +11 -0
  13. package/models/Contract.js +41 -0
  14. package/models/Customer.js +28 -0
  15. package/models/CustomerSubscription.js +11 -0
  16. package/models/DBEvent.js +21 -0
  17. package/models/DateRangeFilter.js +21 -0
  18. package/models/Fence.js +22 -0
  19. package/models/FenceCollection.js +17 -0
  20. package/models/FenceFilter.js +30 -0
  21. package/models/FormattedBeacon.js +16 -0
  22. package/models/FormattedCircle.js +12 -0
  23. package/models/FormattedConditions.js +11 -0
  24. package/models/FormattedDateRange.js +11 -0
  25. package/models/FormattedPercentageCrossed.js +12 -0
  26. package/models/FormattedPoint.js +10 -0
  27. package/models/FormattedPolygon.js +11 -0
  28. package/models/FormattedPolyline.js +11 -0
  29. package/models/FormattedRectangle.js +12 -0
  30. package/models/FormattedTimeActive.js +17 -0
  31. package/models/FormattedZone.js +28 -0
  32. package/models/GeoFence.js +24 -0
  33. package/models/Geofeature.js +26 -0
  34. package/models/Location.js +31 -0
  35. package/models/MessageAction.js +29 -0
  36. package/models/MetaData.js +11 -0
  37. package/models/NotificationLogEntry.js +19 -0
  38. package/models/PartnerCustomer.js +35 -0
  39. package/models/PartnerPasswordReset.js +20 -0
  40. package/models/PartnerUser.js +30 -0
  41. package/models/Partners.js +18 -0
  42. package/models/PercentageCrossedFilter.js +20 -0
  43. package/models/Permission.js +11 -0
  44. package/models/Point.js +20 -0
  45. package/models/Polygon.js +18 -0
  46. package/models/Polyline.js +18 -0
  47. package/models/PropertyMapping.js +17 -0
  48. package/models/Reference.js +19 -0
  49. package/models/Role.js +11 -0
  50. package/models/RuleSet.js +11 -0
  51. package/models/ServerNotificationAction.js +11 -0
  52. package/models/SimpleCheckInZone.js +29 -0
  53. package/models/SingleUseToken.js +19 -0
  54. package/models/SoundAction.js +28 -0
  55. package/models/TimeOfDayRange.js +23 -0
  56. package/models/TimeOfDayRangeFilter.js +20 -0
  57. package/models/URLAction.js +31 -0
  58. package/models/UserGroup.js +11 -0
  59. package/models/VibrationAction.js +28 -0
  60. package/models/ZoneUIState.js +25 -0
  61. package/models/property.js +25 -0
  62. package/package.json +15 -0
  63. package/test.js +3 -0
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Created by Arun on 30/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+
7
+ var mongoose = require('mongoose');
8
+ Schema = mongoose.Schema;
9
+
10
+ var Location = mongoose.model('Location', mongoose.Schema(
11
+ {
12
+ "c" : {type:String, default : "au.com.bluedot.model.geo.Location"},
13
+ "d" : {
14
+ "accuracy" : {type: Number, default :0.0000000000000000},
15
+ "point" : {
16
+ "type" : {type:String, default:"Point"},
17
+ "coordinates" : [
18
+ Number
19
+ ]
20
+ },
21
+ "altitudeAccuracy" : {type:Number, default:0.0000000000000000},
22
+ "altitude" : {type:Number, default: 0.0000000000000000}
23
+ }
24
+ },
25
+ {
26
+ _id: false
27
+ }
28
+ ));
29
+
30
+ module.exports = Location;
31
+
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
8
+
9
+ var MessageActionSchema = new mongoose.Schema({
10
+ guid : {type: String},
11
+ title : {type: String},
12
+ creationTime : {type: Date, default: Date.now},
13
+ actionName : String,
14
+ type: {type: String, default: 'message'},
15
+ _class: {type: String, default: 'au.com.bluedot.application.spring.action.MessageAction'},
16
+ description : {type: String, default: ''},
17
+ message : String,
18
+ dataSource: {type:String, select: false, default : 'openApi'},
19
+ lastUpdateTime : {type: Date, default: Date.now},
20
+ state: {type: String, default : StateEnum.active, select: false},
21
+ filters: []
22
+ },
23
+ {
24
+ _id: false
25
+ }
26
+ );
27
+ var MessageAction = mongoose.model('MessageAction', MessageActionSchema);
28
+
29
+ module.exports = MessageAction;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var MetaData = mongoose.model('MetaData', new mongoose.Schema({},
9
+ { collection : 'au.com.bluedot.application.model.ui.MetaData' }
10
+ ));
11
+ module.exports = MetaData;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+
9
+ var NotificationLogEntry = mongoose.model('NotificationLogEntry', new mongoose.Schema(
10
+ {
11
+ _id: String,
12
+ "notification.zoneId": String,
13
+ creationTime: {type: Date }
14
+ },
15
+ {
16
+ collection : 'notificationLogEntry'
17
+ }
18
+ ));
19
+ module.exports = NotificationLogEntry;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright : Bluedot Innovations.
3
+ */
4
+ var mongoose = require('mongoose');
5
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
6
+
7
+ var PartnerCustomer = mongoose.model('PartnerCustomer', new mongoose.Schema(
8
+ {
9
+ emailAddress: { type : String , unique : true },
10
+ password: String,
11
+ firstName: String,
12
+ lastName: String,
13
+ companyName: String,
14
+ website: String,
15
+ jobTitle: String,
16
+ phoneNumber: String,
17
+ country: String,
18
+ city: String,
19
+ isAppPublished: Boolean,
20
+ hasDemonstrated: Boolean,
21
+ isUsingGeofencing: Boolean,
22
+ additionalComments: String,
23
+ referredBy:mongoose.Schema.Types.ObjectId,
24
+ state: {type:String, default: StateEnum.active},
25
+ "creationTime" : {type: Date, default: Date.now},
26
+ "dataSource" : {type:String, select: false, default : 'PartnerPortal'},
27
+ partnerId: String
28
+ },
29
+ {
30
+ collection : 'partnerCustomer'
31
+ }
32
+ )
33
+ );
34
+
35
+ module.exports = PartnerCustomer;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright : Bluedot Innovations.
3
+ */
4
+ var mongoose = require('mongoose');
5
+
6
+ var PartnerPasswordReset = mongoose.model('PartnerPasswordReset', new mongoose.Schema(
7
+ {
8
+ emailAddress: String,
9
+ partnerUserId: String,
10
+ token: String,
11
+ "creationTime" : {type: Date, default: Date.now},
12
+ "dataSource" : {type:String, select: false, default : 'PartnerPortal'}
13
+ },
14
+ {
15
+ collection : 'partnerPasswordReset'
16
+ }
17
+ )
18
+ );
19
+
20
+ module.exports = PartnerPasswordReset;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright : Bluedot Innovations.
3
+ */
4
+ var mongoose = require('mongoose');
5
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
6
+
7
+ var PartnerUser = mongoose.model('PartnerUser', new mongoose.Schema(
8
+ {
9
+ emailAddress: String,
10
+ password: String,
11
+ firstName: String,
12
+ lastName: String,
13
+ companyName: String,
14
+ jobTitle: String,
15
+ activationToken: String,
16
+ approvalToken: String,
17
+ phoneNumber: String,
18
+ partnerCompany: String,
19
+ state: {type:String, default: StateEnum.active},
20
+ "creationTime" : {type: Date, default: Date.now},
21
+ "dataSource" : {type:String, select: false, default : 'PartnerPortal'},
22
+ partnerId: String
23
+ },
24
+ {
25
+ collection : 'partnerUser'
26
+ }
27
+ )
28
+ );
29
+
30
+ module.exports = PartnerUser;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Created by Ram on 8/12/2016.
3
+ */
4
+
5
+ var mongoose = require('mongoose');
6
+
7
+ var Partners = mongoose.model('Partners', new mongoose.Schema(
8
+ {
9
+ name: String,
10
+ notificationEmail: String
11
+ },
12
+ {
13
+ collection : 'partners'
14
+ }
15
+ )
16
+ );
17
+
18
+ module.exports = Partners;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Created by Arun on 30/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ require('mongoose-long')(mongoose);
8
+
9
+ var PercentageCrossedFilter = mongoose.model('PercentageCrossedFilter', mongoose.Schema({
10
+ guid: {type: String},
11
+ _class : {type: String, default:"au.com.bluedot.application.spring.filter.action.PercentageCrossedFilter"},
12
+ percentage : Number,
13
+ timeOutSeconds : Number,
14
+ type : {type: String, default:"percentageCrossedFilter"},
15
+ },
16
+ {
17
+ _id: false
18
+ }
19
+ ));
20
+ module.exports = PercentageCrossedFilter;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var Permission = mongoose.model('Permission', new mongoose.Schema({},
9
+ { collection : 'au.com.bluedot.application.model.security.Permission' }
10
+ ));
11
+ module.exports = Permission;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Created by Arun on 30/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+
7
+ var mongoose = require('mongoose');
8
+ Schema = mongoose.Schema;
9
+
10
+ var Point = mongoose.model('Point', mongoose.Schema(
11
+ {
12
+ "type" : {type:String, default : "Point"},
13
+ "coordinates" : Array,
14
+ },
15
+ {
16
+ _id: false
17
+ }
18
+ ));
19
+
20
+ module.exports = Point;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Created by Arun on 30/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ Schema = mongoose.Schema;
9
+ var Polygon = mongoose.model('Polygon', mongoose.Schema(
10
+ {
11
+ type: {type: String, default: "MultiLineString"},
12
+ "coordinates" : Array,
13
+ },
14
+ {
15
+ _id: false
16
+ }));
17
+
18
+ module.exports = Polygon;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Created by Arun on 30/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ Schema = mongoose.Schema;
9
+ var Polyline = mongoose.model('Polyline', mongoose.Schema(
10
+ {
11
+ type: {type: String, default: "LineString"},
12
+ "coordinates" : Array,
13
+ },
14
+ {
15
+ _id: false
16
+ }));
17
+
18
+ module.exports = Polyline;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var PropertyMapping = new mongoose.Schema({
8
+ _id : String,
9
+ first_property : String,
10
+ second_property : String,
11
+ frequency : Number,
12
+ dateUpdated : Date
13
+ }, { collection : 'PropertyMapping' });
14
+
15
+ var PropertyMapping = mongoose.model('PropertyMapping', PropertyMapping);
16
+
17
+ module.exports = PropertyMapping;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Created by Arun on 30/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ Schema = mongoose.Schema;
8
+
9
+ var Reference = mongoose.model('Reference', mongoose.Schema(
10
+ {
11
+ r: String
12
+ },
13
+ {
14
+ _id: false
15
+ }
16
+ ));
17
+
18
+ module.exports = Reference;
19
+
package/models/Role.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var Role = mongoose.model('Role', new mongoose.Schema({},
9
+ { collection : 'au.com.bluedot.application.model.security.Role' }
10
+ ));
11
+ module.exports = Role;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var RuleSet = mongoose.model('RuleSet', new mongoose.Schema({},
9
+ { collection : 'au.com.bluedot.ruleEngine.model.rule.RuleSet' }
10
+ ));
11
+ module.exports = RuleSet;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var ServerNotificationAction = mongoose.model('ServerNotificationAction', new mongoose.Schema({},
9
+ { collection : 'au.com.bluedot.application.model.action.ServerNotificationAction' }
10
+ ));
11
+ module.exports = ServerNotificationAction;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose'),
7
+ Schema = mongoose.Schema;
8
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
9
+
10
+ var SimpleCheckInZoneSchema = new Schema({
11
+ _id: {type:String},
12
+ name: String,
13
+ description : {type: String, default: ''},
14
+ minimumRetriggerTime : {type: Number},
15
+ checkout: {type: Boolean, default : false},
16
+ dataSource: {type: String, select: false, default : 'openApi'},
17
+ conditionalActions: [],
18
+ spatialFilters: [],
19
+ creationTime : {type: Date, default: Date.now},
20
+ lastUpdateTime : {type: Date, default: Date.now},
21
+ activeTimeRange: Schema.Types.Mixed,
22
+ applicationId: String,
23
+ state: {type: String, default : StateEnum.active, select: false}
24
+ },
25
+ { collection : 'zone' });
26
+
27
+ var SimpleCheckInZone = mongoose.model('SimpleCheckInZone', SimpleCheckInZoneSchema);
28
+
29
+ module.exports = SimpleCheckInZone;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright : Bluedot Innovations.
3
+ */
4
+ var mongoose = require('mongoose');
5
+
6
+ var SingleUseToken = mongoose.model('SingleUseToken', new mongoose.Schema(
7
+ {
8
+ tokenString: String,
9
+ customerId: String,
10
+ integration: {type:String, default : 'admin'},
11
+ expiration: Date
12
+ },
13
+ {
14
+ collection : 'singleUseToken'
15
+ }
16
+ )
17
+ );
18
+
19
+ module.exports = SingleUseToken;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
8
+
9
+ var SoundActionSchema = new mongoose.Schema({
10
+ guid : {type: String},
11
+ creationTime : {type: Date, default: Date.now},
12
+ dataSource: {type:String, select: false, default : 'openApi'},
13
+ actionName : String,
14
+ type: {type: String, default: 'sound'},
15
+ _class: {type: String, default: 'au.com.bluedot.application.spring.action.SoundAction'},
16
+ description : String,
17
+ lastUpdateTime : Date,
18
+ state: {type: String, default : StateEnum.active, select: false},
19
+ filters: []
20
+ },
21
+ {
22
+ _id: false
23
+ }
24
+ );
25
+
26
+ var SoundAction = mongoose.model('SoundAction', SoundActionSchema);
27
+
28
+ module.exports = SoundAction;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Created by Arun on 30/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ require('mongoose-long')(mongoose);
8
+ var SchemaTypes = mongoose.Schema.Types;
9
+
10
+ var TimeOfDayRange = mongoose.model('TimeOfDayRange', mongoose.Schema({
11
+ start: {
12
+ "_class": { type: String, default: "au.com.bluedot.schedule.model.value.TimeOfDay"},
13
+ hour: Number,
14
+ seconds: Number,
15
+ minute: Number
16
+ },
17
+ interval: Number
18
+ },
19
+ {
20
+ _id: false
21
+ }
22
+ ));
23
+ module.exports = TimeOfDayRange;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Created by Arun on 30/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ require('mongoose-long')(mongoose);
8
+ var SchemaTypes = mongoose.Schema.Types;
9
+
10
+ var TimeOfDayRangeFilter = mongoose.model('TimeOfDayRangeFilter', mongoose.Schema({
11
+ guid: {type: String},
12
+ _class : {type: String, default:"au.com.bluedot.application.spring.filter.action.TimeOfDayRangeFilter"},
13
+ type : {type:String, default:"timeOfDayRangeFilter"},
14
+ timeOfDayRange : Schema.Types.Mixed,
15
+ },
16
+ {
17
+ _id: false
18
+ }
19
+ ));
20
+ module.exports = TimeOfDayRangeFilter;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
8
+
9
+ var URLActionSchema = new mongoose.Schema({
10
+ guid : {type: String},
11
+ creationTime : {type: Date, default: Date.now},
12
+ dataSource: {type:String, select: false, default : 'openApi'},
13
+ actionName : String,
14
+ type: {type: String, default: 'url'},
15
+ _class: {type: String, default: 'au.com.bluedot.application.spring.action.URLAction'},
16
+ url: String,
17
+ description : String,
18
+ lastUpdateTime : Date,
19
+ filters: [],
20
+ state: {type: String, default : StateEnum.active, select: false}
21
+ },
22
+ {
23
+ _id: false
24
+ }
25
+ );
26
+
27
+ var URLAction = mongoose.model('URLAction', URLActionSchema);
28
+
29
+
30
+
31
+ module.exports = URLAction;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var UserGroup = mongoose.model('UserGroup', new mongoose.Schema({},
9
+ { collection : 'au.com.bluedot.application.model.security.UserGroup' }
10
+ ));
11
+ module.exports = UserGroup;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
8
+
9
+ var VibrationActionSchema = new mongoose.Schema({
10
+ guid : {type: String},
11
+ creationTime : {type: Date, default: Date.now},
12
+ dataSource: {type:String, select: false, default : 'openApi'},
13
+ actionName : String,
14
+ type: {type: String, default: 'vibration'},
15
+ _class: {type: String, default: 'au.com.bluedot.application.spring.action.VibrationAction'},
16
+ description : String,
17
+ lastUpdateTime : Date,
18
+ filters: [],
19
+ state: {type: String, default : StateEnum.active, select: false}
20
+ },
21
+ {
22
+ _id: false
23
+ }
24
+ );
25
+
26
+ var VibrationAction = mongoose.model('VibrationAction', VibrationActionSchema);
27
+
28
+ module.exports = VibrationAction;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose'),
7
+ Schema = mongoose.Schema;
8
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
9
+
10
+ var ZoneUIStateSchema = new mongoose.Schema({
11
+ _id : {type: String},
12
+ signature : {type: String},
13
+ center : Schema.Types.Mixed,
14
+ dataSource: {type:String, select: false, default : 'openApi'},
15
+ zoom : {type: Number, default : 4},
16
+ lastUpdateTime : {type: Date, default: Date.now},
17
+ creationTime : {type: Date, default: Date.now},
18
+ state: {type: String, default : StateEnum.active, select: false},
19
+ zoneId: String
20
+ },
21
+ { collection : 'zoneUIState' }
22
+ );
23
+
24
+ var ZoneUIState = mongoose.model('ZoneUIState', ZoneUIStateSchema);
25
+ module.exports = ZoneUIState;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Created by Arun on 10/09/2014.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var property = new mongoose.Schema({
8
+ _id : String,
9
+ Agent : String,
10
+ StreetNumber : Number,
11
+ Address : String,
12
+ Suburb : String,
13
+ NumberOfBedrooms: Number,
14
+ GarageCount: Number,
15
+ CarportCount: Number,
16
+ NumberBathrooms: Number,
17
+ OpenForInspection: String,
18
+ Latitude: Number,
19
+ Longitude: Number,
20
+ filename: String
21
+ }, { collection : 'property' });
22
+
23
+ var property = mongoose.model('property', property);
24
+
25
+ module.exports = property;
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@bluedot-innovation/models",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "Models.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "UNLICENSED",
11
+ "dependencies": {
12
+ "mongoose": "4.6.0",
13
+ "@bluedot-innovation/enums": "1.0.0"
14
+ }
15
+ }
package/test.js ADDED
@@ -0,0 +1,3 @@
1
+ /**
2
+ * Created by andrewstirling on 22/12/16.
3
+ */