1 | var mongoose = require('mongoose'),
|
2 | Schema = mongoose.Schema;
|
3 |
|
4 | var testshowSchema = new Schema({
|
5 | idTest: { type: String },
|
6 | region: { type: String },
|
7 | type: { type: String, enum:
|
8 | ['bdw', 'owd', 'pl']
|
9 | },
|
10 | timestamp: { type: String },
|
11 | hostSource: { type: String },
|
12 | ipSource: { type: String },
|
13 | hostDestination: { type: String },
|
14 | ipDestination: { type: String },
|
15 | error: { type: Boolean },
|
16 | result: { type: String }
|
17 | });
|
18 |
|
19 | module.exports = mongoose.model('testshow', testshowSchema); |
\ | No newline at end of file |