Update the database schema to have a better quote structure
This commit is contained in:
parent
3fc360054d
commit
527e7a2b37
1 changed files with 8 additions and 2 deletions
10
src/types/database.d.ts
vendored
10
src/types/database.d.ts
vendored
|
|
@ -1,8 +1,14 @@
|
||||||
|
interface quote {
|
||||||
|
text: string;
|
||||||
|
votes: number;
|
||||||
|
win_streak: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
interface bracket_data {
|
interface bracket_data {
|
||||||
msg: string;
|
msg: string;
|
||||||
channel: string;
|
channel: string;
|
||||||
quotes: string[];
|
quotes: quote[];
|
||||||
votes: { [index: number]: number };
|
|
||||||
users: { [index: string]: number };
|
users: { [index: string]: number };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue