picker-db 5.0.11 → 5.0.12

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## v5.0.12
6
+ ### Added
7
+ * DP-14414: Added `guideID` (ObjectId, indexed) and `guideNumericId` (number) fields to Booking schema for guide-booking relationships.
8
+
5
9
  ## v5.0.11
6
10
  ### Added
7
11
  * DP-14315: Added `searchType` field to Booking schema with enum `ON_DEMAND | EXPRESS | GROUND` (default `ON_DEMAND`, indexed). Backbone for Ground Delivery epic.
package/CLAUDE.md CHANGED
@@ -84,4 +84,4 @@ npm test
84
84
 
85
85
  ## Recent Context
86
86
 
87
- The repository is on the `feature/CT-187-index-optimizations` branch with uncommitted changes to `modules/picker/schemas/bookings.js`. This work is focused on database index optimizations.
87
+ The repository is on the `feature/DP-14414-guide-booking-support` branch. Recent work added guide-related fields (guideID and guideNumericId) to the Bookings schema to support guide-booking relationships. Version has been bumped to 5.0.12.
@@ -265,6 +265,17 @@ module.exports = (connection) => {
265
265
  },
266
266
  driverAccountingType: { type: String },
267
267
  // #endregion Driver Info
268
+ // #region Guide Info
269
+ guideID: {
270
+ type: connection.base.Schema.ObjectId,
271
+ default: null,
272
+ index: true,
273
+ sparse: true,
274
+ },
275
+ guideNumericId: {
276
+ type: Number,
277
+ },
278
+ // #endregion Guide Info
268
279
  // #region Delivery location Info
269
280
  deliveryCity: {
270
281
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.11",
3
+ "version": "5.0.12",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {