2023-10-07 22:46:02 -07:00
|
|
|
/**
|
|
|
|
* models.ts
|
|
|
|
* Database models
|
|
|
|
*/
|
|
|
|
|
|
|
|
interface ScoreboardMessageRow {
|
|
|
|
id: number,
|
|
|
|
guild: number,
|
|
|
|
channel: number,
|
2023-10-08 13:48:41 -07:00
|
|
|
author: string,
|
2023-10-07 22:46:02 -07:00
|
|
|
content: string,
|
|
|
|
reaction_1_count: number,
|
|
|
|
reaction_2_count: number,
|
|
|
|
reaction_3_count: number
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ScoreboardUserRow {
|
2023-10-08 13:48:41 -07:00
|
|
|
id: string,
|
2023-10-07 22:46:02 -07:00
|
|
|
username: string,
|
|
|
|
reaction_1_total: number,
|
|
|
|
reaction_2_total: number,
|
|
|
|
reaction_3_total: number
|
|
|
|
}
|
|
|
|
|
|
|
|
export { ScoreboardMessageRow, ScoreboardUserRow };
|