diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2023-05-12 16:54:06 +0100 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-05-12 16:54:06 +0100 |
commit | bfe708d48f603998a1f2c4cad4a6f9f8683dc18f (patch) | |
tree | bc0402abb6fd999f00e2b180144a34c851e36abf /src/models/Log.js | |
parent | 69b4c854b399554ed413cc7ff9d625aee5053927 (diff) |
Migrate to Typescript
Diffstat (limited to 'src/models/Log.js')
-rwxr-xr-x | src/models/Log.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/models/Log.js b/src/models/Log.js new file mode 100755 index 0000000..95a3ab3 --- /dev/null +++ b/src/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); |