tango-api-schema 2.5.76 → 2.5.78
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/audioStaticValue.model.js +22 -0
- package/schema/dailyPricing.model.js +4 -1
package/index.js
CHANGED
|
@@ -124,6 +124,7 @@ import RFIDdataModel from "./schema/RFIDdata.model.js";
|
|
|
124
124
|
import customZonetagsModel from "./schema/customZonetags.model.js";
|
|
125
125
|
import zonegroupsModel from "./schema/zonegroups.model.js";
|
|
126
126
|
import pidAllocationEngine from "./schema/pidAllocationEngine.model.js";
|
|
127
|
+
import audioStaticValueModel from "./schema/audioStaticValue.model.js";
|
|
127
128
|
|
|
128
129
|
|
|
129
130
|
export default {
|
|
@@ -249,5 +250,6 @@ export default {
|
|
|
249
250
|
RFIDdataModel,
|
|
250
251
|
customZonetagsModel,
|
|
251
252
|
zonegroupsModel,
|
|
252
|
-
pidAllocationEngine
|
|
253
|
+
pidAllocationEngine,
|
|
254
|
+
audioStaticValueModel
|
|
253
255
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
// schema
|
|
4
|
+
const collection = new mongoose.Schema({
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true
|
|
8
|
+
},
|
|
9
|
+
userList: {
|
|
10
|
+
type: Array,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
timestamps: true,
|
|
15
|
+
strict: true,
|
|
16
|
+
versionKey: false,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
collection.index({ type:1, });
|
|
21
|
+
|
|
22
|
+
export default mongoose.model('audioStaticValue', collection, 'audioStaticValue');
|