payservedb 8.3.6 → 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/faq.js +1 -5
- package/src/models/tickets.js +13 -0
package/package.json
CHANGED
package/src/models/faq.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
// models/apiLog.js
|
|
2
1
|
const mongoose = require('mongoose');
|
|
3
|
-
const { Schema } = mongoose;
|
|
4
2
|
|
|
5
|
-
const faqSchema = new Schema({
|
|
3
|
+
const faqSchema = new mongoose.Schema({
|
|
6
4
|
question:{type:String,required:true},
|
|
7
5
|
answer:{type:String,required:true},
|
|
8
6
|
facilityId: {
|
|
@@ -11,8 +9,6 @@ const faqSchema = new Schema({
|
|
|
11
9
|
},
|
|
12
10
|
});
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
12
|
const FAQ = mongoose.model('FAQ', faqSchema);
|
|
17
13
|
|
|
18
14
|
module.exports = FAQ;
|
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
|
});
|