payservedb 8.4.0 → 8.4.1
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 -0
- package/package.json +1 -1
- package/src/models/privacy_policy.js +20 -0
- package/src/models/terms_and_conditions.js +20 -0
package/index.js
CHANGED
|
@@ -236,6 +236,8 @@ const models = {
|
|
|
236
236
|
DocumentType: require("./src/models/document_type"),
|
|
237
237
|
Counter: require("./src/models/counter_schema"),
|
|
238
238
|
ZohoIntegration: require("./src/models/zohoIntegration"),
|
|
239
|
+
PrivacyPolicy: require("./src/models/privacy_policy"),
|
|
240
|
+
TermsAndConditions: require("./src/models/terms_and_conditions")
|
|
239
241
|
};
|
|
240
242
|
|
|
241
243
|
// Function to get models dynamically from a specific database connection
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const mongoose = require('mongoose');
|
|
2
|
+
|
|
3
|
+
const privacyPolicySchema = new mongoose.Schema({
|
|
4
|
+
title: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "Privacy Policy",
|
|
7
|
+
},
|
|
8
|
+
content: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
timestamps: true,
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const PrivacyPolicy = mongoose.model('PrivacyPolicy', privacyPolicySchema);
|
|
19
|
+
|
|
20
|
+
module.exports = PrivacyPolicy;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const mongoose = require('mongoose');
|
|
2
|
+
|
|
3
|
+
const termsAndConditionsSchema = new mongoose.Schema({
|
|
4
|
+
title: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "Terms & Conditions",
|
|
7
|
+
},
|
|
8
|
+
content: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
timestamps: true,
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const TermsAndConditions = mongoose.model('TermsAndConditions', termsAndConditionsSchema);
|
|
19
|
+
|
|
20
|
+
module.exports = TermsAndConditions;
|