upd
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user