@bluedot-innovation/models 1.0.17 → 1.0.20

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.
@@ -26,8 +26,10 @@ var Contract = mongoose.model('Contract', new mongoose.Schema(
26
26
  frequency : mongoose.Schema.Types.Number,
27
27
  monthEntries: [],
28
28
  currency: {type: String, default: "USD"},
29
+ currencyRate: Number,
29
30
  template: String,
30
31
  addedBy: String,
32
+ lastEditedBy: String,
31
33
  xeroContactId: String,
32
34
  state: String,
33
35
  creationTime : {type: Date, default: Date.now},
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Created by Daniel on 23/11/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+
7
+ const mongoose = require('mongoose'),
8
+ Schema = mongoose.Schema;
9
+
10
+ const DailyStats = mongoose.model(
11
+ 'DailyStats',
12
+ new Schema(
13
+ {
14
+ _id: { type : String },
15
+ totalEndUsers: Number,
16
+ totalIos: Number,
17
+ totalAndroid: Number,
18
+ dateOfCount: { type: Date },
19
+ creationTime: { type: Date, default: Date.now }
20
+ },
21
+ {
22
+ collection: 'dailyStats',
23
+ versionKey: false
24
+ }
25
+ )
26
+ );
27
+
28
+ module.exports = DailyStats;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Created by Daniel on 08/02/2018.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+
7
+ const mongoose = require('mongoose'),
8
+ Schema = mongoose.Schema;
9
+
10
+ const MonthlyStats = mongoose.model(
11
+ 'MonthlyStats',
12
+ new Schema(
13
+ {
14
+ _id: { type: String },
15
+ customerId: String,
16
+ totalMonthlyUsers: Number,
17
+ applications: [],
18
+ countMonth: { type: Date },
19
+ creationDate: { type: Date, default: Date.now }
20
+ },
21
+ {
22
+ collection: 'monthlyStats',
23
+ versionKey: false
24
+ }
25
+ )
26
+ )
27
+
28
+ module.exports = MonthlyStats;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {