@bluedot-innovation/models 1.0.8 → 1.0.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.
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Created by andrewstirling on 20/6/17.
3
+ */
4
+
5
+ var mongoose = require('mongoose');
6
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
7
+
8
+ var CustomerLogin = mongoose.model('CustomerLogin', new mongoose.Schema(
9
+ {
10
+ _id: String,
11
+ customerId: String,
12
+ userName: String,
13
+ password: String,
14
+ resetToken: String,
15
+ lastLoginTime: Date,
16
+ state: {type:String, default: StateEnum.active},
17
+ creationTime : {type: Date, default: Date.now},
18
+ lastUpdateTime : {type: Date, default: Date.now},
19
+ createdBy: String,
20
+ lastUpdatedBy: String
21
+ },
22
+ {
23
+ collection : 'customerLogin'
24
+ }
25
+ )
26
+ );
27
+
28
+ module.exports = CustomerLogin;
@@ -10,6 +10,7 @@ var TestScenario = mongoose.model('TestScenario', new mongoose.Schema(
10
10
  {
11
11
  name: String,
12
12
  apiKey: String,
13
+ customerApiKey: String,
13
14
  email: String,
14
15
  package: String,
15
16
  "creationTime" : {type: Date, default: Date.now},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {