diff --git a/apps/challenges/src/model/ranking.ts b/apps/challenges/src/model/ranking.ts deleted file mode 100644 index 02168cc8..00000000 --- a/apps/challenges/src/model/ranking.ts +++ /dev/null @@ -1,34 +0,0 @@ -import mongoose, {Schema} from 'mongoose'; - -export interface RankingModel { - _id: mongoose.Types.ObjectId; - userID: mongoose.Types.ObjectId; - seasonID: mongoose.Types.ObjectId; - points: number; - createdAt: Date; - updatedAt: Date; -} - -const seasonSchema: Schema = new Schema({ - userID: { - type: mongoose.Schema.Types.ObjectId, - required: true, - ref: 'User' - }, - seasonID: { - type: mongoose.Schema.Types.ObjectId, - required: true, - ref: 'Season' - }, - points: { - type: Number, - required: [true, 'Please add a points value'] - } -}, { - timestamps: true -}); - - -const Ranking = mongoose.model('Ranking', seasonSchema); - -export { Ranking as default } diff --git a/apps/challenges/src/model/rankingScore.ts b/apps/challenges/src/model/rankingScore.ts index 88cec8a6..dbd0b4e5 100644 --- a/apps/challenges/src/model/rankingScore.ts +++ b/apps/challenges/src/model/rankingScore.ts @@ -1,5 +1,3 @@ -import mongoose, {Schema} from 'mongoose'; - export interface UserRanking { user: { userID: string;