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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "9.9.4",
3
+ "version": "9.9.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,33 +1,38 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
- // Define the schema for guards
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
- email:{
18
- type:String,
19
- required:false
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 // Assuming facilityId is required
29
+ required: true
25
30
  }
31
+
26
32
  }, {
27
- timestamps: true // Automatically adds createdAt and updatedAt fields
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;