17 lines
353 B
TypeScript
17 lines
353 B
TypeScript
import { Types } from "mongoose";
|
|
|
|
export interface ILeaderboardEntryDatabase {
|
|
leaderboard: string;
|
|
accountId: Types.ObjectId;
|
|
displayName: string;
|
|
score: number;
|
|
expiry: Date;
|
|
}
|
|
|
|
export interface ILeaderboardEntryClient {
|
|
_id: string; // player id
|
|
s: number; // score
|
|
r: number; // rank
|
|
n: string; // displayName
|
|
}
|