chore: implement reaction store

This commit is contained in:
Steven
2024-02-07 23:40:23 +08:00
parent 99568236a3
commit 559e427c50
11 changed files with 687 additions and 2 deletions

View File

@@ -144,3 +144,11 @@ CREATE TABLE webhook (
);
CREATE INDEX idx_webhook_creator_id ON webhook (creator_id);
CREATE TABLE reaction (
id INTEGER PRIMARY KEY AUTOINCREMENT,
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
creator_id INTEGER NOT NULL,
content_id TEXT NOT NULL,
reaction_type TEXT NOT NULL
);