FemScoreboard/models.ts

26 lines
475 B
TypeScript
Raw Permalink Normal View History

2023-10-07 22:46:02 -07:00
/**
* models.ts
* Database models
*/
interface ScoreboardMessageRow {
id: number,
guild: number,
channel: number,
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 {
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 };