From 527e7a2b37e074e919ca07c28e44a8fffab01401 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 28 Aug 2021 22:53:34 -0600 Subject: [PATCH] Update the database schema to have a better quote structure --- src/types/database.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/types/database.d.ts b/src/types/database.d.ts index 10828a3..735ad9f 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,8 +1,14 @@ +interface quote { + text: string; + votes: number; + win_streak: number; +} + + interface bracket_data { msg: string; channel: string; - quotes: string[]; - votes: { [index: number]: number }; + quotes: quote[]; users: { [index: string]: number }; }