payservedb 2.1.1 → 2.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -69,9 +69,9 @@ const CustomerSchema = new mongoose.Schema({
69
69
  type: String,
70
70
  required: false,
71
71
  },
72
- email:{
73
- type:String,
74
- required:false
72
+ email: {
73
+ type: String,
74
+ required: false
75
75
  },
76
76
  relation: {
77
77
  type: String,
@@ -81,21 +81,22 @@ const CustomerSchema = new mongoose.Schema({
81
81
  type: Boolean,
82
82
  required: false
83
83
  },
84
- addVisitor:{
85
- type:Boolean,
86
- required:false
84
+ addVisitor: {
85
+ type: Boolean,
86
+ required: false
87
87
  },
88
- receiveMessage:{
89
- type:Boolean,
90
- required:false
88
+ receiveMessage: {
89
+ type: Boolean,
90
+ required: false
91
91
  },
92
- unit:{
93
- type: String,
92
+ unit: {
93
+ type: mongoose.Schema.Types.ObjectId,
94
+ ref: 'Unit',
94
95
  required: false
95
96
  },
96
- qrUniqueCode:
97
- {
98
- type: String,
97
+ qrUniqueCode:
98
+ {
99
+ type: String,
99
100
  unique: false
100
101
  },
101
102
  disabled: {
@@ -122,8 +123,9 @@ const CustomerSchema = new mongoose.Schema({
122
123
  type: String,
123
124
  required: false,
124
125
  },
125
- unit:{
126
- type: String,
126
+ unit: {
127
+ type: mongoose.Schema.Types.ObjectId,
128
+ ref: 'Unit',
127
129
  required: false
128
130
  },
129
131
  qrCode: {
@@ -162,8 +164,9 @@ const CustomerSchema = new mongoose.Schema({
162
164
  type: String,
163
165
  required: false
164
166
  },
165
- unit:{
166
- type: String,
167
+ unit: {
168
+ type: mongoose.Schema.Types.ObjectId,
169
+ ref: 'Unit',
167
170
  required: false
168
171
  },
169
172
  qrCode: {