payservedb 9.9.4 → 9.9.5
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/reception.js +13 -8
package/package.json
CHANGED
package/src/models/reception.js
CHANGED
|
@@ -1,33 +1,38 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
|
|
3
|
-
// Define the schema for
|
|
3
|
+
// Define the schema for receptionists
|
|
4
4
|
const receptionSchema = new mongoose.Schema({
|
|
5
|
+
|
|
5
6
|
firstName: {
|
|
6
7
|
type: String,
|
|
7
8
|
required: true
|
|
8
9
|
},
|
|
10
|
+
|
|
9
11
|
lastName: {
|
|
10
12
|
type: String,
|
|
11
13
|
required: true
|
|
12
14
|
},
|
|
15
|
+
|
|
13
16
|
phoneNumber: {
|
|
14
17
|
type: String,
|
|
15
18
|
required: true
|
|
16
19
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
|
|
21
|
+
email: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: false
|
|
20
24
|
},
|
|
25
|
+
|
|
21
26
|
facilityId: {
|
|
22
27
|
type: mongoose.Schema.Types.ObjectId,
|
|
23
28
|
ref: 'Facility',
|
|
24
|
-
required: true
|
|
29
|
+
required: true
|
|
25
30
|
}
|
|
31
|
+
|
|
26
32
|
}, {
|
|
27
|
-
timestamps: true
|
|
33
|
+
timestamps: true
|
|
28
34
|
});
|
|
29
35
|
|
|
30
|
-
// Compile the model from the schema
|
|
31
36
|
const Reception = mongoose.model('Reception', receptionSchema);
|
|
32
37
|
|
|
33
|
-
module.exports = Reception;
|
|
38
|
+
module.exports = Reception;
|