payservedb 8.4.3 → 8.4.5
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/index.js +2 -1
- package/package.json +1 -1
- package/src/models/community_guidelines.js +25 -0
package/index.js
CHANGED
|
@@ -237,7 +237,8 @@ const models = {
|
|
|
237
237
|
Counter: require("./src/models/counter_schema"),
|
|
238
238
|
ZohoIntegration: require("./src/models/zohoIntegration"),
|
|
239
239
|
PrivacyPolicy: require("./src/models/privacy_policy"),
|
|
240
|
-
TermsAndConditions: require("./src/models/terms_and_conditions")
|
|
240
|
+
TermsAndConditions: require("./src/models/terms_and_conditions"),
|
|
241
|
+
CommunityGuidelines: require("./src/models/community_guidelines")
|
|
241
242
|
};
|
|
242
243
|
|
|
243
244
|
// Function to get models dynamically from a specific database connection
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const mongoose = require('mongoose');
|
|
2
|
+
|
|
3
|
+
const communityGuidelinesSchema = new mongoose.Schema({
|
|
4
|
+
title: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "Community Guidelines",
|
|
7
|
+
},
|
|
8
|
+
content: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
facilityId: {
|
|
13
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
14
|
+
ref: 'Facility',
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
timestamps: true,
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
const CommunityGuidelines = mongoose.model('CommunityGuidelines', communityGuidelinesSchema);
|
|
24
|
+
|
|
25
|
+
module.exports = CommunityGuidelines;
|