picker-db 4.3.8 → 4.3.9

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.
@@ -23,6 +23,7 @@ const ReviewSchema = require("../schemas/review");
23
23
  const BookingRequestSchema = require("../schemas/bookingRequest");
24
24
  const BookingLiteSchema = require("../schemas/bookingsLite");
25
25
  const MiniBookingSchema = require("../schemas/miniBooking");
26
+ const DriverDetailsSchema = require("../schemas/driverDetails");
26
27
 
27
28
  /** @param {import("mongoose")} connection */
28
29
  module.exports = (connection) => {
@@ -52,5 +53,6 @@ module.exports = (connection) => {
52
53
  ReferralUsage: connection.model("ReferralUsage", ReferralUsageSchema(connection)),
53
54
  Review: connection.model("Review", ReviewSchema(connection)),
54
55
  MiniBooking: connection.model("MiniBooking", MiniBookingSchema(connection)),
56
+ DriverDetails: connection.model("DriverDetails", DriverDetailsSchema(connection)),
55
57
  };
56
58
  };
@@ -0,0 +1,11 @@
1
+ /** @param {import("mongoose")} connection */
2
+ module.exports = (connection) => {
3
+ const DriverDetailsSchema = new connection.base.Schema({
4
+ bookingID: { type: connection.base.Schema.ObjectId, required: true },
5
+ pinCode: { type: String },
6
+ publicPhone: { type: String },
7
+ createdAt: { type: Date },
8
+ });
9
+
10
+ return DriverDetailsSchema;
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "4.3.8",
3
+ "version": "4.3.9",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {