diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-22 14:16:52 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-22 14:18:19 +0500 |
| commit | f3bc9fd394e9efc8cc9c6408c6e94d539f05c452 (patch) | |
| tree | c1e6ca85ef14007944b2d06c968139963157a2a2 /database.sql | |
| parent | aad9ffc2c02ccce9098558503e130e4cc9fc35b3 (diff) | |
feat: ratings
Diffstat (limited to 'database.sql')
| -rw-r--r-- | database.sql | 8 |
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 |
