2025-03-24 14:17:07 +01:00
|
|
|
import { Types } from "mongoose";
|
2025-03-24 12:53:09 +01:00
|
|
|
|
|
|
|
export interface ILeaderboardEntryDatabase {
|
|
|
|
leaderboard: string;
|
2025-03-24 22:19:54 +01:00
|
|
|
ownerId: Types.ObjectId;
|
2025-03-24 23:00:23 +01:00
|
|
|
displayName: string;
|
2025-03-24 12:53:09 +01:00
|
|
|
score: number;
|
2025-03-24 23:00:23 +01:00
|
|
|
guildId?: Types.ObjectId;
|
2025-03-24 12:53:09 +01:00
|
|
|
expiry: Date;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILeaderboardEntryClient {
|
2025-03-24 22:19:54 +01:00
|
|
|
_id: string; // owner id
|
2025-03-24 12:53:09 +01:00
|
|
|
s: number; // score
|
|
|
|
r: number; // rank
|
|
|
|
n: string; // displayName
|
|
|
|
}
|