UNPKG

334 BJavaScriptView Raw
1var mongoose = require('mongoose'),
2 Schema = mongoose.Schema;
3
4
5var nodesSchema = new Schema({
6 regionId: { type: String },
7 name: { type: String },
8 location: { type: String},
9 country: { type: String },
10 hosts: [ Schema.Types.ObjectId ]
11
12});
13
14
15module.exports = mongoose.model('nodes', nodesSchema);
\No newline at end of file