payservedb 8.2.8 → 8.3.0
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/bankdetails.js +4 -0
- package/src/models/counter_schema.js +22 -0
- package/src/models/tickets.js +0 -4
package/index.js
CHANGED
|
@@ -233,7 +233,8 @@ const models = {
|
|
|
233
233
|
AgentRole: require("./src/models/agent_roles"),
|
|
234
234
|
CustomerSatisfactionSurvey: require("./src/models/customer_satisfaction_survey"),
|
|
235
235
|
AgentDepartment: require("./src/models/agent_departments"),
|
|
236
|
-
DocumentType: require("./src/models/document_type")
|
|
236
|
+
DocumentType: require("./src/models/document_type"),
|
|
237
|
+
Counter: require("./src/models/counter_schema")
|
|
237
238
|
};
|
|
238
239
|
|
|
239
240
|
// Function to get models dynamically from a specific database connection
|
package/package.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const mongoose = require('mongoose');
|
|
2
|
+
|
|
3
|
+
const counterSchema = new mongoose.Schema({
|
|
4
|
+
facilityId: {
|
|
5
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
6
|
+
ref: 'Facility',
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
name: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
unique: true
|
|
13
|
+
},
|
|
14
|
+
sequence: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: 10000
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
timestamps: true,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
module.exports = mongoose.model('Counter', counterSchema);
|
package/src/models/tickets.js
CHANGED