diff options
author | Raphael <raphaelkabo@hey.com> | 2023-05-12 17:03:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 17:03:13 +0100 |
commit | 67cf89fd0cfdf56c7e6d6d9bdf93d95d679ce2a1 (patch) | |
tree | c66bdf874a210997cd1d84942101773ba0175b20 /src/models/Log.js | |
parent | a75aad783c117aaef2ec19b6b434be0f0d7e57de (diff) | |
parent | 50688f573054f60aa7594672615f11713173c147 (diff) |
Merge pull request #95 from lowercasename/typescript
Migrate to TypeScript and PNPM
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..b048a45 --- /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); |