summaryrefslogtreecommitdiff
path: root/models/Log.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/Log.js')
-rwxr-xr-xmodels/Log.js16
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);