summaryrefslogtreecommitdiff
path: root/src/models/Log.js
blob: b048a450bbf516b61b58300a009a9ad06c6c1fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);