This commit is contained in:
2024-11-12 14:34:17 +05:00
parent 312082d94c
commit 1cf520814e
8 changed files with 205 additions and 20 deletions
+23
View File
@@ -0,0 +1,23 @@
import { model, Schema } from "mongoose";
const serverStatusLogSchema = new Schema(
{
hostname: {
type: String,
required: true,
},
action: {
type: String,
required: true,
},
},
{
timestamps: true,
toJSON: { virtuals: true },
toObject: { virtuals: true },
}
);
const ServerStatusLog = model("ServerStatusLog", serverStatusLogSchema);
export default ServerStatusLog;