goldstars-services 1.0.49 → 1.0.51
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.
|
@@ -24,13 +24,6 @@ var reservationSchema = new _mongoose.default.Schema({
|
|
|
24
24
|
// Store the specific date of the reservation
|
|
25
25
|
required: true
|
|
26
26
|
},
|
|
27
|
-
timeSlot: {
|
|
28
|
-
type: String,
|
|
29
|
-
// e.g., "7am", "5pm", "9:15am"
|
|
30
|
-
required: true
|
|
31
|
-
// Consider adding an enum later for validation if needed
|
|
32
|
-
// enum: ['7am', '8am', '9:15am', '5pm', '7pm']
|
|
33
|
-
},
|
|
34
27
|
location: {
|
|
35
28
|
type: String,
|
|
36
29
|
// e.g., "Sambil", "Las Virtudes"
|
|
@@ -51,8 +44,7 @@ var reservationSchema = new _mongoose.default.Schema({
|
|
|
51
44
|
// Optional: Add indexes for faster querying based on common lookups
|
|
52
45
|
reservationSchema.index({
|
|
53
46
|
bikeId: 1,
|
|
54
|
-
date: 1
|
|
55
|
-
timeSlot: 1
|
|
47
|
+
date: 1
|
|
56
48
|
}, {
|
|
57
49
|
unique: true
|
|
58
50
|
}); // Prevent double booking the same bike/slot
|