mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 00:35:56 +00:00
12 lines
389 B
JavaScript
12 lines
389 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const triviaQuestionSchema = new mongoose.Schema({
|
|
question: String,
|
|
correct_answer: String,
|
|
incorrect_answers: [String],
|
|
category: String,
|
|
last_served: Date, // Track when the question was last served
|
|
timestamp: { type: Date, default: Date.now },
|
|
});
|
|
|
|
module.exports = mongoose.model("TriviaQuestion", triviaQuestionSchema);
|