summaryrefslogtreecommitdiff
path: root/models/Log.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/Log.js')
-rwxr-xr-xmodels/Log.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/models/Log.js b/models/Log.js
new file mode 100755
index 0000000..6ed474b
--- /dev/null
+++ b/models/Log.js
@@ -0,0 +1,26 @@
+const mongoose = require('mongoose');
+
+const LogSchema = new mongoose.Schema({
+ status: {
+ type: String,
+ trim: true,
+ required: true
+ },
+ process: {
+ type: String,
+ trim: true,
+ required: true
+ },
+ message: {
+ type: String,
+ trim: true,
+ required: true
+ },
+ timestamp: {
+ type: Date,
+ trim: true,
+ required: true
+ }
+});
+
+module.exports = mongoose.model('Log', LogSchema); \ No newline at end of file