@pintahub/database-schemas 2.5.6 → 2.5.8

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": "2.5.6",
3
+ "version": "2.5.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -47,6 +47,16 @@ const ShopifyObject = new Schema({
47
47
  default: {},
48
48
  },
49
49
 
50
+ sync_id: {
51
+ type: String,
52
+ trim: true,
53
+ index: true,
54
+ },
55
+
56
+ synced_at: {
57
+ type: Date,
58
+ },
59
+
50
60
  updated_at: {
51
61
  type: Date,
52
62
  default: Date.now
@@ -58,5 +68,11 @@ const ShopifyObject = new Schema({
58
68
  }
59
69
  })
60
70
 
71
+ ShopifyObject.index({
72
+ store: 1,
73
+ type: 1,
74
+ sub_type: 1,
75
+ })
76
+
61
77
  module.exports = ShopifyObject
62
78
 
@@ -2,6 +2,64 @@ const {Schema} = require('mongoose')
2
2
  const ImageObject = require('./ImageObject')
3
3
 
4
4
 
5
+ const TrustpilotObject = new Schema({
6
+ _id: false,
7
+
8
+ business_unit_id: {
9
+ type: String,
10
+ trim: true,
11
+ },
12
+
13
+ template_id: {
14
+ type: String,
15
+ trim: true,
16
+ },
17
+
18
+ url: {
19
+ type: String,
20
+ trim: true,
21
+ },
22
+ })
23
+
24
+ const SocialsObject = new Schema({
25
+ _id: false,
26
+
27
+ facebook: {
28
+ type: String,
29
+ trim: true,
30
+ },
31
+
32
+ twitter: {
33
+ type: String,
34
+ trim: true,
35
+ },
36
+
37
+ instagram: {
38
+ type: String,
39
+ trim: true,
40
+ },
41
+
42
+ pinterest: {
43
+ type: String,
44
+ trim: true,
45
+ },
46
+
47
+ youtube: {
48
+ type: String,
49
+ trim: true,
50
+ },
51
+
52
+ linkedin: {
53
+ type: String,
54
+ trim: true,
55
+ },
56
+
57
+ tiktok: {
58
+ type: String,
59
+ trim: true,
60
+ },
61
+ })
62
+
5
63
  const StoreSetting = new Schema({
6
64
  store: {
7
65
  type: Schema.Types.ObjectId,
@@ -18,6 +76,14 @@ const StoreSetting = new Schema({
18
76
  trim: true,
19
77
  },
20
78
 
79
+ trustpilot: {
80
+ type: TrustpilotObject,
81
+ },
82
+
83
+ socials: {
84
+ type: SocialsObject,
85
+ },
86
+
21
87
  updated_at: {
22
88
  type: Date,
23
89
  default: Date.now