diff options
author | Raphael <raphaelkabo@gmail.com> | 2020-02-06 11:13:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 11:13:10 +0000 |
commit | b0de8dc1d798965b8d6789b66ede19084ba84f35 (patch) | |
tree | 8b4db2859177c86bcaf569f703346663ffa3bae8 /models/Log.js | |
parent | 43a6bf362105e96eeb7ed8641096cd1f5064d3f2 (diff) | |
parent | a594946b13c15fda6d49f0651ffdf2332a3793cd (diff) |
Merge branch 'master' into newmaster
Diffstat (limited to 'models/Log.js')
-rwxr-xr-x | models/Log.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/models/Log.js b/models/Log.js index 6ed474b..95a3ab3 100755 --- a/models/Log.js +++ b/models/Log.js @@ -1,26 +1,26 @@ const mongoose = require('mongoose'); const LogSchema = new mongoose.Schema({ - status: { + status: { type: String, trim: true, - required: true + required: true }, - process: { + process: { type: String, trim: true, - required: true + required: true }, message: { type: String, trim: true, - required: true + required: true }, - timestamp: { + timestamp: { type: Date, trim: true, - required: true + required: true } }); -module.exports = mongoose.model('Log', LogSchema);
\ No newline at end of file +module.exports = mongoose.model('Log', LogSchema); |