@pintahub/database-schemas 4.6.1 → 4.6.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 +1 -1
- package/schemas/ProductReport.js +15 -2
package/package.json
CHANGED
package/schemas/ProductReport.js
CHANGED
|
@@ -38,6 +38,7 @@ const ProductReport = new Schema({
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Report status:
|
|
41
|
+
* - draft: report saved but not yet submitted
|
|
41
42
|
* - pending: awaiting review
|
|
42
43
|
* - resolved: action taken (product removed/modified)
|
|
43
44
|
* - dismissed: report rejected as invalid
|
|
@@ -45,9 +46,9 @@ const ProductReport = new Schema({
|
|
|
45
46
|
status: {
|
|
46
47
|
type: String,
|
|
47
48
|
trim: true,
|
|
48
|
-
default: '
|
|
49
|
+
default: 'draft',
|
|
49
50
|
index: true,
|
|
50
|
-
enum: ['pending', 'resolved', 'dismissed'],
|
|
51
|
+
enum: ['draft', 'pending', 'resolved', 'dismissed'],
|
|
51
52
|
},
|
|
52
53
|
|
|
53
54
|
/** Detailed description of the violation */
|
|
@@ -75,6 +76,18 @@ const ProductReport = new Schema({
|
|
|
75
76
|
trim: true,
|
|
76
77
|
},
|
|
77
78
|
|
|
79
|
+
/** Reporter's IP address */
|
|
80
|
+
ip: {
|
|
81
|
+
type: String,
|
|
82
|
+
trim: true,
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
/** Reporter's browser user agent string */
|
|
86
|
+
user_agent: {
|
|
87
|
+
type: String,
|
|
88
|
+
trim: true,
|
|
89
|
+
},
|
|
90
|
+
|
|
78
91
|
/** Admin notes on how the report was resolved */
|
|
79
92
|
resolution_note: {
|
|
80
93
|
type: String,
|