ferri/migrations/20250504102047_add_attachment.sql

14 lines
264 B
MySQL
Raw Permalink Normal View History

2025-05-04 12:58:34 +01:00
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)
);