@pintahub/database-schemas 4.1.9 → 4.2.1

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": "4.1.9",
3
+ "version": "4.2.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,17 +26,6 @@ const LatestEvent = new Schema({
26
26
  index: true,
27
27
  },
28
28
 
29
- url: {
30
- type: String,
31
- trim: true,
32
- },
33
-
34
- ip: {
35
- type: String,
36
- trim: true,
37
- index: true,
38
- },
39
-
40
29
  country: {
41
30
  type: String,
42
31
  trim: true,
@@ -44,23 +33,6 @@ const LatestEvent = new Schema({
44
33
  uppercase: true,
45
34
  },
46
35
 
47
- user_agent: {
48
- type: String,
49
- trim: true,
50
- },
51
-
52
- meta: {
53
- type: Schema.Types.Mixed,
54
- default: {}
55
- },
56
-
57
- viewer_type: {
58
- type: String,
59
- trim: true,
60
- index: true,
61
- default: 'human'
62
- },
63
-
64
36
  referrer_domain: {
65
37
  type: String,
66
38
  trim: true,
@@ -6,34 +6,39 @@ const MarketingCost = new Schema({
6
6
  store: {
7
7
  type: Schema.Types.ObjectId,
8
8
  index: true,
9
- required: true,
9
+ required: true
10
10
  },
11
11
 
12
12
  product: {
13
13
  type: Schema.Types.ObjectId,
14
- index: true,
14
+ index: true
15
15
  },
16
16
 
17
17
  campaign_name: {
18
+ type: String,
19
+ trim: true
20
+ },
21
+
22
+ account_name: {
18
23
  type: String,
19
24
  trim: true,
20
25
  },
21
26
 
22
27
  cost: {
23
28
  type: MoneyObject,
24
- required: true,
29
+ required: true
25
30
  },
26
31
 
27
32
  date: {
28
33
  type: Date,
29
34
  required: true,
30
- index: true,
35
+ index: true
31
36
  },
32
37
 
33
38
  date_string: {
34
39
  type: String,
35
40
  required: true,
36
- index: true,
41
+ index: true
37
42
  },
38
43
 
39
44
  updated_at: {