summaryrefslogtreecommitdiff
path: root/database.sql
diff options
context:
space:
mode:
Diffstat (limited to 'database.sql')
-rw-r--r--database.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/database.sql b/database.sql
index 5585a93..ec59cf8 100644
--- a/database.sql
+++ b/database.sql
@@ -47,4 +47,12 @@ CREATE TABLE IF NOT EXISTS acquired_emote_sets (
user_id INTEGER NOT NULL,
emote_set_id INTEGER NOT NULL,
is_default BOOLEAN NOT NULL DEFAULT false
+);
+
+CREATE TABLE IF NOT EXISTS ratings (
+ id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
+ user_id INTEGER NOT NULL REFERENCES users(id),
+ emote_id INTEGER NOT NULL REFERENCES emotes(id),
+ rate INTEGER NOT NULL,
+ rated_at TIMESTAMP NOT NULL DEFAULT UTC_TIMESTAMP
); \ No newline at end of file