ALTER TABLE attachments
    ADD FOREIGN KEY (uploader_id) REFERENCES users(id) ON DELETE CASCADE,
    ADD FOREIGN KEY (channel_id) REFERENCES channels(id) ON DELETE CASCADE