@pintahub/database-schemas 3.3.0 → 3.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schemas/Group.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const {Schema} = require('mongoose')
2
2
 
3
+
3
4
  const Group = new Schema({
4
5
  store: {
5
6
  type: Schema.Types.ObjectId,
@@ -14,6 +15,12 @@ const Group = new Schema({
14
15
  index: true
15
16
  },
16
17
 
18
+ external_id: {
19
+ type: String,
20
+ trim: true,
21
+ index: true
22
+ },
23
+
17
24
  title: {
18
25
  type: String,
19
26
  trim: true,
@@ -10,6 +10,7 @@ const TopBarSettings = require('./types/TopBarSettings')
10
10
  const BrandSettings = require('./types/BrandSettings')
11
11
  const DMCASetting = require('./types/DMCASetting')
12
12
  const FooterSetting = require('./types/FooterSetting')
13
+ const FreeShippingSetting = require('./types/FreeShippingSetting')
13
14
 
14
15
 
15
16
  const StoreSetting = new Schema({
@@ -83,6 +84,10 @@ const StoreSetting = new Schema({
83
84
  type: FooterSetting,
84
85
  },
85
86
 
87
+ free_shipping: {
88
+ type: FreeShippingSetting,
89
+ },
90
+
86
91
  updated_at: {
87
92
  type: Date,
88
93
  default: Date.now
@@ -0,0 +1,18 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const FreeShippingSetting = new Schema({
5
+ _id: false,
6
+
7
+ status: {
8
+ type: String,
9
+ trim: true,
10
+ default: 'disabled',
11
+ },
12
+
13
+ threshold: {
14
+ type: Number,
15
+ }
16
+ })
17
+
18
+ module.exports = FreeShippingSetting