@pintahub/database-schemas 3.2.7 → 3.2.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.
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const {Schema} = require('mongoose')
|
|
2
|
+
const VideoObject = require('./products/VideoObject')
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
const SizeGuide = new Schema({
|
|
@@ -93,6 +94,10 @@ const ProductFeature = new Schema({
|
|
|
93
94
|
type: Number,
|
|
94
95
|
},
|
|
95
96
|
|
|
97
|
+
video: {
|
|
98
|
+
type: VideoObject,
|
|
99
|
+
},
|
|
100
|
+
|
|
96
101
|
reviews_count: {
|
|
97
102
|
type: Number,
|
|
98
103
|
default: 0,
|
package/schemas/StoreSetting.js
CHANGED
|
@@ -9,6 +9,7 @@ const FacebookObject = require('./types/FacebookObject')
|
|
|
9
9
|
const TopBarSettings = require('./types/TopBarSettings')
|
|
10
10
|
const BrandSettings = require('./types/BrandSettings')
|
|
11
11
|
const DMCASetting = require('./types/DMCASetting')
|
|
12
|
+
const FooterSetting = require('./types/FooterSetting')
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
const StoreSetting = new Schema({
|
|
@@ -78,6 +79,10 @@ const StoreSetting = new Schema({
|
|
|
78
79
|
type: DMCASetting,
|
|
79
80
|
},
|
|
80
81
|
|
|
82
|
+
footer: {
|
|
83
|
+
type: FooterSetting,
|
|
84
|
+
},
|
|
85
|
+
|
|
81
86
|
updated_at: {
|
|
82
87
|
type: Date,
|
|
83
88
|
default: Date.now
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const {Schema} = require('mongoose')
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const VideoObject = new Schema({
|
|
5
|
+
_id: false,
|
|
6
|
+
|
|
7
|
+
id: {
|
|
8
|
+
type: String,
|
|
9
|
+
trim: true,
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
url: {
|
|
13
|
+
type: String,
|
|
14
|
+
trim: true,
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
width: {
|
|
18
|
+
type: Number,
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
height: {
|
|
22
|
+
type: Number,
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
mime_type: {
|
|
26
|
+
type: String,
|
|
27
|
+
trim: true,
|
|
28
|
+
},
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
module.exports = VideoObject
|