UNPKG

764 BJavaScriptView Raw
1var mongoose = require('mongoose'),
2 Schema = mongoose.Schema;
3
4var scheduledMeasuresSchema = new Schema({
5 idSchedule: { type: String },
6 domain: { type: String },
7 host: { type: String },
8 type: { type: String, enum:
9 ['bdw', 'owd', 'ploss']
10 },
11 startDate: { type: String },
12 endDate: { type: String },
13 frequency: { type: String },
14 regionIdSource: { type: String },
15 hostSource: { type: String },
16 regionIdDestination: { type: String },
17 hostDestination: { type: String },
18 countMeasures: { type: Number },
19 measures: [ Schema.Types.ObjectId ],
20 processId: { type: Number },
21 active: {type: Boolean}
22
23});
24
25module.exports = mongoose.model('scheduledMeasures', scheduledMeasuresSchema);
\No newline at end of file