tango-api-schema 1.0.17 → 1.0.18
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/edgeappVersion.model.js +23 -0
package/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import nobClientModel from './schema/nobClient.model.js';
|
|
|
10
10
|
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
|
+
import edgeappVersionModel from "./schema/edgeappVersion.model.js";
|
|
13
14
|
|
|
14
15
|
export default {
|
|
15
16
|
clientModel,
|
|
@@ -23,5 +24,6 @@ export default {
|
|
|
23
24
|
nobClientModel,
|
|
24
25
|
applicationDefaultModel,
|
|
25
26
|
userModel,
|
|
26
|
-
userRoleModel
|
|
27
|
+
userRoleModel,
|
|
28
|
+
edgeappVersionModel
|
|
27
29
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const edgeappVersionSchema=new mongoose.Schema( {
|
|
4
|
+
app_version: {
|
|
5
|
+
type: String,
|
|
6
|
+
trim: true,
|
|
7
|
+
required: true,
|
|
8
|
+
unique: true,
|
|
9
|
+
},
|
|
10
|
+
is_active:{
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: true,
|
|
13
|
+
},
|
|
14
|
+
defaultType:{
|
|
15
|
+
type: Boolean,
|
|
16
|
+
}
|
|
17
|
+
}, {
|
|
18
|
+
strict: true,
|
|
19
|
+
versionKey: false,
|
|
20
|
+
timestamps: true,
|
|
21
|
+
} );
|
|
22
|
+
|
|
23
|
+
export default mongoose.model( 'edgeapp_version', edgeappVersionSchema, 'edgeapp_version' );
|