@positivegrid/pg-mongoose-schema 27.7.4-beta.0 → 27.7.4
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 +2 -1
- package/package.json +1 -1
package/models/promotion.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
module.exports =
|
|
3
|
+
module.exports = (mongoose) => {
|
|
4
4
|
const Schema = mongoose.Schema
|
|
5
5
|
const ObjectId = Schema.Types.ObjectId
|
|
6
6
|
const _ = require('lodash')
|
|
@@ -553,6 +553,7 @@ module.exports = function (mongoose) {
|
|
|
553
553
|
start_time: { type: Date, required: true },
|
|
554
554
|
end_time: { type: Date, required: true },
|
|
555
555
|
trial_days: { type: Number, default: 0 },
|
|
556
|
+
not_allow_same_product: { type: Boolean, default: false },
|
|
556
557
|
created_by: { type: String, default: null },
|
|
557
558
|
metadata: { type: Schema.Types.Mixed, default: null },
|
|
558
559
|
created_on: { type: Date, default: Date.now, required: true },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@positivegrid/pg-mongoose-schema",
|
|
3
|
-
"version": "27.7.4
|
|
3
|
+
"version": "27.7.4",
|
|
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",
|