mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 08:45:55 +00:00
13 lines
388 B
JavaScript
13 lines
388 B
JavaScript
|
const mongoose = require("mongoose");
|
||
|
|
||
|
const leaderboardSchema = new mongoose.Schema({
|
||
|
userId: { type: String, required: true },
|
||
|
username: { type: String, required: true },
|
||
|
gamesPlayed: { type: Number, default: 0 },
|
||
|
correctAnswers: { type: Number, default: 0 },
|
||
|
});
|
||
|
|
||
|
const Leaderboard = mongoose.model("Leaderboard", leaderboardSchema);
|
||
|
|
||
|
module.exports = Leaderboard;
|