payservedb 2.0.8 → 2.1.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.
- package/package.json +1 -1
- package/src/models/customer.js +13 -1
- package/src/models/visitor.js +4 -0
package/package.json
CHANGED
package/src/models/customer.js
CHANGED
|
@@ -51,7 +51,7 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
51
51
|
},
|
|
52
52
|
status: {
|
|
53
53
|
type: String,
|
|
54
|
-
required:
|
|
54
|
+
required: false,
|
|
55
55
|
enum: ['Active', 'Inactive']
|
|
56
56
|
},
|
|
57
57
|
|
|
@@ -89,6 +89,10 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
89
89
|
type:Boolean,
|
|
90
90
|
required:false
|
|
91
91
|
},
|
|
92
|
+
unit:{
|
|
93
|
+
type: String,
|
|
94
|
+
required: true
|
|
95
|
+
},
|
|
92
96
|
qrUniqueCode:
|
|
93
97
|
{
|
|
94
98
|
type: String,
|
|
@@ -118,6 +122,10 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
118
122
|
type: String,
|
|
119
123
|
required: false,
|
|
120
124
|
},
|
|
125
|
+
unit:{
|
|
126
|
+
type: String,
|
|
127
|
+
required: true
|
|
128
|
+
},
|
|
121
129
|
qrCode: {
|
|
122
130
|
type: Boolean,
|
|
123
131
|
required: false
|
|
@@ -154,6 +162,10 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
154
162
|
type: String,
|
|
155
163
|
required: false
|
|
156
164
|
},
|
|
165
|
+
unit:{
|
|
166
|
+
type: String,
|
|
167
|
+
required: true
|
|
168
|
+
},
|
|
157
169
|
qrCode: {
|
|
158
170
|
type: Boolean,
|
|
159
171
|
required: false
|