@positivegrid/pg-mongoose-schema 27.4.1 → 27.4.3

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.
@@ -519,6 +519,16 @@ module.exports = function (mongoose) {
519
519
  points_balance: { type: Number, default: 0, required: true },
520
520
  points_earned: { type: Number, default: 0, required: true },
521
521
  }],
522
+ history: [{
523
+ created_on: { type: String, required: true },
524
+ date: { type: String, required: true },
525
+ completed_on: { type: String, default: null },
526
+ action: { type: String, default: null },
527
+ points: { type: Number, default: 0 },
528
+ status: { type: String, default: null },
529
+ action_name: { type: String, default: null },
530
+ order_ids: [{ type: String }]
531
+ }],
522
532
  created_on: { type: Date, default: Date.now, required: true },
523
533
  updated_on: { type: Date, default: Date.now, required: true }
524
534
  }, { collection: 'auth_yotpo_loyalty' })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positivegrid/pg-mongoose-schema",
3
- "version": "27.4.1",
3
+ "version": "27.4.3",
4
4
  "description": "Positive Grid mongoose schema",
5
5
  "author": "Ferrari Lee <shiyung@positivegrid.com>",
6
6
  "homepage": "https://git.positivegrid.com:8443/backend/pg-mongoose-schema",