summaryrefslogtreecommitdiff
path: root/src/models/Log.js
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2023-10-06 12:32:37 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2023-10-06 12:32:37 +0100
commit63cf813f4a284cfaec8114c623d13e9d650569f6 (patch)
tree655185cce75f8d6632f8761e62c64bd53be71da9 /src/models/Log.js
parent6e5e2e5fc55f5ff1c78c41d0acbdcf82221fc2cf (diff)
Add Typescript interfaces for Mongoose models
Diffstat (limited to 'src/models/Log.js')
-rwxr-xr-xsrc/models/Log.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/models/Log.js b/src/models/Log.js
deleted file mode 100755
index f165900..0000000
--- a/src/models/Log.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import mongoose from "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,
- },
-});
-
-export default mongoose.model("Log", LogSchema);