payservedb 2.7.1 → 2.7.2

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
@@ -89,6 +89,7 @@ const models = {
89
89
  Requisition:require('./src/models/maintenancerequisition'),
90
90
  LeaseAgreement:require('./src/models/leaseagreement'),
91
91
  WorkOrder:require('./src/models/workorder'),
92
+ ServiceInvoice:require('./src/models/service_invoice')
92
93
 
93
94
  };
94
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,39 @@
1
+ const mongoose = require('mongoose');
2
+
3
+ const ServiceInvoiceSchema = new mongoose.Schema({
4
+ faciltyId: {
5
+ type: Number,
6
+ required: true
7
+ },
8
+ serviceId: {
9
+ type: Number,
10
+ required: true
11
+ },
12
+ serviceVendorId: {
13
+ type: Number,
14
+ },
15
+ customerId: {
16
+ type: Number,
17
+ required: true
18
+ },
19
+ status: {
20
+ type: String,
21
+ required: true,
22
+ },
23
+ time: {
24
+ type: String,
25
+ required: true
26
+ },
27
+ date: {
28
+ type: Date,
29
+ required: true,
30
+ },
31
+ amount: {
32
+ type: Number,
33
+ },
34
+
35
+ });
36
+
37
+ const ServiceInvoice = mongoose.model('ServiceInvoice', ServiceInvoiceSchema);
38
+
39
+ module.exports = ServiceInvoice;