mirror of
https://github.com/nullishamy/ferri.git
synced 2025-06-28 00:54:17 +00:00
feat: attachments; other cleanup
This commit is contained in:
parent
f0e287c78d
commit
8cf7834cfe
10 changed files with 687 additions and 15 deletions
13
migrations/20250504102047_add_attachment.sql
Normal file
13
migrations/20250504102047_add_attachment.sql
Normal 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)
|
||||
);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue