many many many many changes

This commit is contained in:
Lee
2023-10-19 14:17:55 +01:00
parent 6acf6e8635
commit a031451fa3
36 changed files with 2743 additions and 174 deletions

View File

@ -0,0 +1,38 @@
import mongoose from "mongoose";
const { Schema } = mongoose;
const scoresaberLeaderboardDifficulty = new Schema({
leaderboardId: Number,
difficulty: Number,
gameMode: String,
difficultyRaw: String,
});
const scoresaberLeaderboard = new Schema({
_id: String,
songHash: String,
songName: String,
songSubName: String,
songAuthorName: String,
levelAuthorName: String,
difficulty: scoresaberLeaderboardDifficulty,
maxScore: Number,
createdDate: String,
rankedDate: [String],
qualifiedDate: [String],
lovedDate: [String],
ranked: Boolean,
qualified: Boolean,
loved: Boolean,
maxPP: Number,
stars: Number,
positiveModifiers: Boolean,
plays: Number,
dailyPlays: Number,
coverImage: String,
difficulties: [scoresaberLeaderboardDifficulty],
});
export const ScoreSaberLeaderboard =
mongoose.models.ScoreSaberLeaderboard ||
mongoose.model("ScoreSaberLeaderboard", scoresaberLeaderboard);