payservedb 4.4.9 → 4.5.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 +19 -3
package/package.json
CHANGED
package/src/models/customer.js
CHANGED
|
@@ -150,9 +150,9 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
150
150
|
type: String,
|
|
151
151
|
required: false
|
|
152
152
|
},
|
|
153
|
-
color:{
|
|
154
|
-
type:String,
|
|
155
|
-
required:false
|
|
153
|
+
color: {
|
|
154
|
+
type: String,
|
|
155
|
+
required: false
|
|
156
156
|
},
|
|
157
157
|
plateNumber: {
|
|
158
158
|
type: String,
|
|
@@ -171,6 +171,22 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
],
|
|
174
|
+
customerDocuments: [
|
|
175
|
+
{
|
|
176
|
+
documentName: {
|
|
177
|
+
type: String,
|
|
178
|
+
required: true
|
|
179
|
+
},
|
|
180
|
+
documentType: {
|
|
181
|
+
type: String,
|
|
182
|
+
required: true
|
|
183
|
+
},
|
|
184
|
+
document: {
|
|
185
|
+
type: String,
|
|
186
|
+
required: true
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
174
190
|
});
|
|
175
191
|
|
|
176
192
|
const Customer = mongoose.model('Customer', CustomerSchema);
|