flykup_model_development 3.1.40 → 3.1.41
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/models/notification.model.js +11 -7
- package/package.json +1 -1
|
@@ -105,14 +105,18 @@ const notificationSchema = new mongoose.Schema(
|
|
|
105
105
|
type: String,
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
|
+
// metadata: {
|
|
109
|
+
// status: String,
|
|
110
|
+
// reason: String,
|
|
111
|
+
// orderId: mongoose.Schema.Types.ObjectId,
|
|
112
|
+
// requestId: mongoose.Schema.Types.ObjectId,
|
|
113
|
+
// customerName: String,
|
|
114
|
+
// sellerName: String,
|
|
115
|
+
// customerProfileURL: String,
|
|
116
|
+
// },
|
|
108
117
|
metadata: {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
orderId: mongoose.Schema.Types.ObjectId,
|
|
112
|
-
requestId: mongoose.Schema.Types.ObjectId,
|
|
113
|
-
customerName: String,
|
|
114
|
-
sellerName: String,
|
|
115
|
-
customerProfileURL: String,
|
|
118
|
+
type: mongoose.Schema.Types.Mixed, // This allows any JSON object
|
|
119
|
+
default: {} // Default to empty object
|
|
116
120
|
},
|
|
117
121
|
},
|
|
118
122
|
{
|