1 | var mongoose = require('mongoose'),
|
2 | Schema = mongoose.Schema;
|
3 |
|
4 |
|
5 | var 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 |
|
15 | module.exports = mongoose.model('nodes', nodesSchema); |
\ | No newline at end of file |