mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-25 02:05:56 +00:00
9 lines
365 B
JavaScript
9 lines
365 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const triviaSessionSchema = new mongoose.Schema({
|
|
token: { type: String, required: true },
|
|
last_updated: { type: Date, default: Date.now },
|
|
status: { type: String, enum: ["active", "inactive"], default: "active" }, // Add status field
|
|
});
|
|
|
|
module.exports = mongoose.model("TriviaSession", triviaSessionSchema);
|