feat: attachments; other cleanup

This commit is contained in:
nullishamy 2025-05-04 12:58:34 +01:00
parent f0e287c78d
commit 8cf7834cfe
Signed by: amy
SSH key fingerprint: SHA256:WmV0uk6WgAQvDJlM8Ld4mFPHZo02CLXXP5VkwQ5xtyk
10 changed files with 687 additions and 15 deletions

View file

@ -0,0 +1,13 @@
CREATE TABLE IF NOT EXISTS attachment
(
-- UUID
id TEXT PRIMARY KEY NOT NULL,
post_id TEXT NOT NULL,
url TEXT NOT NULL,
media_type TEXT NOT NULL,
marked_sensitive BOOL NOT NULL,
alt TEXT,
FOREIGN KEY(post_id) REFERENCES post(id)
);