This commit is contained in:
NotII
2025-03-10 17:39:37 +00:00
parent c08df8919d
commit 20d5559832
69 changed files with 7676 additions and 78 deletions

View File

@@ -0,0 +1,11 @@
import mongoose from "mongoose";
const StaffSchema = new mongoose.Schema({
username: { type: String, required: true, unique: true },
passwordHash: { type: String, required: true },
role: { type: String, enum: ["admin", "moderator"], default: "moderator" },
currentToken: { type: String, default: null },
createdAt: { type: Date, default: Date.now },
});
export default mongoose.model("Staff", StaffSchema);