vhp-mongo-models 1.2.5 → 1.2.6
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/Company/schemas/sim.js
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
/** Sim
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
|
|
4
|
+
*
|
|
5
|
+
* @todo - Change name to something that makes sense
|
|
6
|
+
*
|
|
7
|
+
* @todo - change the unique to number
|
|
8
|
+
*
|
|
9
|
+
* iccid - {unique:true,name:"iccid"}
|
|
10
|
+
* number - { unique: true, sparse:true, name:"number" }
|
|
11
|
+
*/
|
|
7
12
|
|
|
8
13
|
module.exports=[
|
|
9
14
|
{
|
|
10
15
|
iccid: { type: String, default: '' },
|
|
11
|
-
|
|
16
|
+
type: {type:String,default:''}, //Phone OR Data
|
|
17
|
+
empid: {type:String,default:''}, //sync with device
|
|
18
|
+
esim:{type:Boolean,default:false},
|
|
12
19
|
number: {type:String,default:undefined},//is undefined to keep unique even if it is not filled in yet
|
|
13
20
|
group: {type:String,default:''},
|
|
21
|
+
plan:{type:Number,default:''}, //the amount a month
|
|
14
22
|
active: {type:Boolean,default:true}
|
|
15
23
|
}
|
|
16
24
|
]
|