summaryrefslogtreecommitdiff
path: root/models/Log.js
diff options
context:
space:
mode:
authorlowercasename <raphaelkabo@gmail.com>2019-07-25 16:16:04 +0100
committerlowercasename <raphaelkabo@gmail.com>2019-07-25 16:16:04 +0100
commit930542049e40a1a99c9a0c2c349519ccddf52140 (patch)
treeace22d1e09c409bc47743a44b8f8ca41bb8b2dd6 /models/Log.js
First commit
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