tango-api-schema 1.0.39 → 1.0.41
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 +3 -1
- package/package.json +1 -1
- package/schema/nobHourly.model.js +43 -0
package/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import applicationDefaultModel from "./schema/applicationDefault.model.js";
|
|
|
11
11
|
import userModel from "./schema/user.model.js";
|
|
12
12
|
import userRoleModel from "./schema/userRole.model.js";
|
|
13
13
|
import edgeappVersionModel from "./schema/edgeappVersion.model.js";
|
|
14
|
+
import nobHourlyModel from "./schema/nobHourly.model.js";
|
|
14
15
|
|
|
15
16
|
export default {
|
|
16
17
|
clientModel,
|
|
@@ -25,5 +26,6 @@ export default {
|
|
|
25
26
|
applicationDefaultModel,
|
|
26
27
|
userModel,
|
|
27
28
|
userRoleModel,
|
|
28
|
-
edgeappVersionModel
|
|
29
|
+
edgeappVersionModel,
|
|
30
|
+
nobHourlyModel
|
|
29
31
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const nobSchema=new mongoose.Schema( {
|
|
4
|
+
|
|
5
|
+
client: { // client_Id changed to clientId
|
|
6
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
7
|
+
ref: 'Brand',
|
|
8
|
+
},
|
|
9
|
+
clientId: {
|
|
10
|
+
type: String,
|
|
11
|
+
trim: true,
|
|
12
|
+
},
|
|
13
|
+
storeId: {
|
|
14
|
+
type: String,
|
|
15
|
+
trim: true,
|
|
16
|
+
},
|
|
17
|
+
nobDate: {
|
|
18
|
+
type: Date,
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
store: {
|
|
22
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
23
|
+
ref: 'Store',
|
|
24
|
+
},
|
|
25
|
+
nobCount: {
|
|
26
|
+
type: Number,
|
|
27
|
+
trim: true,
|
|
28
|
+
},
|
|
29
|
+
nobHour: {
|
|
30
|
+
type: Number,
|
|
31
|
+
trim: true,
|
|
32
|
+
},
|
|
33
|
+
nobAmount: {
|
|
34
|
+
type: mongoose.Schema.Types.Decimal128,
|
|
35
|
+
//default: '0.0',
|
|
36
|
+
},
|
|
37
|
+
}, {
|
|
38
|
+
strict: true,
|
|
39
|
+
versionKey: false,
|
|
40
|
+
timestamps: true,
|
|
41
|
+
} );
|
|
42
|
+
|
|
43
|
+
export default mongoose.model( 'nobBillingHourly', nobSchema, 'nobBillingHourly' );
|