30 lines
597 B
TypeScript
30 lines
597 B
TypeScript
/**
|
|
* models.ts
|
|
* Database models
|
|
*/
|
|
|
|
interface ScoreboardMessageRow {
|
|
id: string;
|
|
guild: string;
|
|
channel: string;
|
|
author: string;
|
|
content: string;
|
|
reaction_1_count: number;
|
|
reaction_2_count: number;
|
|
reaction_3_count: number;
|
|
reaction_4_count: number;
|
|
reaction_5_count: number;
|
|
}
|
|
|
|
interface ScoreboardUserRow {
|
|
id: string;
|
|
username: string;
|
|
reaction_1_total: number;
|
|
reaction_2_total: number;
|
|
reaction_3_total: number;
|
|
reaction_4_total: number;
|
|
reaction_5_total: number;
|
|
}
|
|
|
|
export { ScoreboardMessageRow, ScoreboardUserRow };
|