payservedb 3.4.1 → 3.4.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": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -18,16 +18,23 @@ const dutyRosterSchema = new mongoose.Schema({
18
18
  type: String,
19
19
  required: true,
20
20
  },
21
- day: {
22
- type: String, // e.g., 'Monday', 'Tuesday'
23
- required: true,
24
- },
25
21
  time: {
26
22
  type: String, // e.g., '08:00 AM - 05:00 PM'
27
- required: true,
23
+ required: true
28
24
  },
25
+ schedule: [{
26
+ date: {
27
+ type: Date,
28
+ required: true
29
+ },
30
+ status: {
31
+ type: String,
32
+ enum: ['pending', 'completed', 'missed', 'rescheduled'],
33
+ default: 'pending'
34
+ }
35
+ }]
29
36
  }, {
30
- timestamps: true, // Adds createdAt and updatedAt fields
37
+ timestamps: true
31
38
  });
32
39
 
33
- module.exports = mongoose.model('DutyRoster', dutyRosterSchema);
40
+ module.exports = mongoose.model('DutyRoster', dutyRosterSchema);