diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-22 22:39:58 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-22 22:39:58 +0500 |
| commit | 999bfa6cad76900d4550e00e8e29f0252fb006b5 (patch) | |
| tree | 3c13a1fb18f95fceff320ae1086318ab9c53d913 /database.sql | |
| parent | 0e261a67be8f770d7a3d4ca8d9bc12c02dd2b93a (diff) | |
feat: inbox system
Diffstat (limited to 'database.sql')
| -rw-r--r-- | database.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/database.sql b/database.sql index ec59cf8..15c73e8 100644 --- a/database.sql +++ b/database.sql @@ -55,4 +55,14 @@ CREATE TABLE IF NOT EXISTS ratings ( emote_id INTEGER NOT NULL REFERENCES emotes(id), rate INTEGER NOT NULL, rated_at TIMESTAMP NOT NULL DEFAULT UTC_TIMESTAMP +); + +CREATE TABLE IF NOT EXISTS inbox_messages ( + id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, + recipient_id INTEGER NOT NULL REFERENCES users(id), + message_type INTEGER NOT NULL, + contents TEXT NOT NULL, + link TEXT, + sent_at TIMESTAMP NOT NULL DEFAULT UTC_TIMESTAMP, + has_read BOOLEAN NOT NULL DEFAULT false );
\ No newline at end of file |
