payservedb 8.3.7 → 8.3.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 +1 -1
- package/src/models/tickets.js +13 -0
package/package.json
CHANGED
package/src/models/tickets.js
CHANGED
|
@@ -167,6 +167,19 @@ const ticketSchema = new mongoose.Schema({
|
|
|
167
167
|
type: Number,
|
|
168
168
|
default: 0,
|
|
169
169
|
},
|
|
170
|
+
approvedBy: {
|
|
171
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
172
|
+
ref: 'User',
|
|
173
|
+
required: false,
|
|
174
|
+
},
|
|
175
|
+
approvedAt: {
|
|
176
|
+
type: Date,
|
|
177
|
+
required: false,
|
|
178
|
+
},
|
|
179
|
+
approved: {
|
|
180
|
+
type: Boolean,
|
|
181
|
+
default: false,
|
|
182
|
+
},
|
|
170
183
|
}, {
|
|
171
184
|
timestamps: true,
|
|
172
185
|
});
|