@positivegrid/pg-mongoose-schema 27.4.0 → 27.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/models/promotion.js +11 -1
- package/package.json +1 -1
package/models/promotion.js
CHANGED
|
@@ -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, required: true },
|
|
526
|
+
action: { type: String, required: true },
|
|
527
|
+
points: { type: Number, required: true },
|
|
528
|
+
status: { type: String, required: true },
|
|
529
|
+
action_name: { type: String, required: true },
|
|
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' })
|
|
@@ -530,7 +540,7 @@ module.exports = function (mongoose) {
|
|
|
530
540
|
store_code: { type: String, required: true },
|
|
531
541
|
status: { type: Number, default: 1, required: true }, // 1:wait for apply/2:applied/3:deleted
|
|
532
542
|
created_on: { type: Date, default: Date.now, required: true },
|
|
533
|
-
})
|
|
543
|
+
}, { collection: 'yotpo_loyalty_backup' })
|
|
534
544
|
YotpoLoyaltyBackupSchema.index({ email: 1, store_code: 1 }, { unique: true })
|
|
535
545
|
|
|
536
546
|
mongoose.model('LicenseCampaignMeta', LicenseCampaignMetaSchema)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@positivegrid/pg-mongoose-schema",
|
|
3
|
-
"version": "27.4.
|
|
3
|
+
"version": "27.4.2",
|
|
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",
|