SpaceNinjaServer/src/types/leaderboardTypes.ts

18 lines
380 B
TypeScript
Raw Normal View History

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;
displayName: string;
2025-03-24 12:53:09 +01:00
score: number;
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
}