payservedb 8.4.7 → 8.4.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
CHANGED
|
@@ -2,24 +2,31 @@ const mongoose = require('mongoose');
|
|
|
2
2
|
|
|
3
3
|
const communityGuidelinesSchema = new mongoose.Schema({
|
|
4
4
|
title: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type: String,
|
|
6
|
+
default: "Community Guidelines",
|
|
7
7
|
},
|
|
8
8
|
content: {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type: String,
|
|
10
|
+
required: false, // Make optional since we might have PDF instead
|
|
11
|
+
},
|
|
12
|
+
contentType: {
|
|
13
|
+
type: String,
|
|
14
|
+
enum: ['text', 'pdf'],
|
|
15
|
+
default: 'text',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
pdfUrl: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: false, // URL to the stored PDF
|
|
11
21
|
},
|
|
12
22
|
facilityId: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
23
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
24
|
+
ref: 'Facility',
|
|
25
|
+
required: true,
|
|
16
26
|
},
|
|
17
|
-
|
|
18
|
-
{
|
|
27
|
+
}, {
|
|
19
28
|
timestamps: true,
|
|
20
|
-
}
|
|
21
|
-
);
|
|
29
|
+
});
|
|
22
30
|
|
|
23
31
|
const CommunityGuidelines = mongoose.model('CommunityGuidelines', communityGuidelinesSchema);
|
|
24
|
-
|
|
25
32
|
module.exports = CommunityGuidelines;
|