@pintahub/database-schemas 3.0.8 → 3.1.0

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.0.8",
3
+ "version": "3.1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -105,6 +105,11 @@ const ProductRaw = new Schema({
105
105
  default: {},
106
106
  },
107
107
 
108
+ tags: {
109
+ type: [String],
110
+ trim: true,
111
+ },
112
+
108
113
  updated_at: {
109
114
  type: Date,
110
115
  default: Date.now,
@@ -7,6 +7,7 @@ const GoogleAnalytics = require('./types/GoogleAnalytics')
7
7
  const KlaviyoObject = require('./types/KlaviyoObject')
8
8
  const FacebookObject = require('./types/FacebookObject')
9
9
  const TopBarSettings = require('./types/TopBarSettings')
10
+ const BrandSettings = require('./types/BrandSettings')
10
11
 
11
12
 
12
13
  const StoreSetting = new Schema({
@@ -16,6 +17,10 @@ const StoreSetting = new Schema({
16
17
  required: true,
17
18
  },
18
19
 
20
+ brand: {
21
+ type: BrandSettings,
22
+ },
23
+
19
24
  logo: {
20
25
  type: ImageObject,
21
26
  },
@@ -0,0 +1,18 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const BrandSettings = new Schema({
5
+ _id: false,
6
+
7
+ primary_color: {
8
+ type: String,
9
+ trim: true,
10
+ },
11
+
12
+ secondary_color: {
13
+ type: String,
14
+ trim: true,
15
+ },
16
+ })
17
+
18
+ module.exports = BrandSettings