forked from OpenWF/SpaceNinjaServer
18 lines
380 B
TypeScript
18 lines
380 B
TypeScript
|
import { Types } from "mongoose";
|
||
|
|
||
|
export interface ILeaderboardEntryDatabase {
|
||
|
leaderboard: string;
|
||
|
ownerId: Types.ObjectId;
|
||
|
displayName: string;
|
||
|
score: number;
|
||
|
guildId?: Types.ObjectId;
|
||
|
expiry: Date;
|
||
|
}
|
||
|
|
||
|
export interface ILeaderboardEntryClient {
|
||
|
_id: string; // owner id
|
||
|
s: number; // score
|
||
|
r: number; // rank
|
||
|
n: string; // displayName
|
||
|
}
|