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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "8.4.0",
3
+ "version": "8.4.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -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;