UNPKG

477 BJavaScriptView Raw
1var mongoose = require('mongoose'),
2 Schema = mongoose.Schema;
3
4
5var endpointSchema = new Schema({
6 idendpoint: { type: String },
7 node: { type: String },
8 type: { type: String, enum:
9 ['phy', 'vm']
10 },
11 ipAddress: { type: String },
12 port_API_NAM: { type: String },
13 ping_status: { type: Boolean },
14 bdw_status: { type: Boolean },
15 owd_status: { type: Boolean },
16});
17
18module.exports = mongoose.model('hosts', hostsSchema);
\No newline at end of file