CREATE TABLE attachments (
    id BYTEA NOT NULL CHECK(length(id) = 26),
    uploader_id BYTEA NOT NULL CHECK(length(uploader_id) = 26),
    channel_id BYTEA CHECK(length(channel_id) = 26),
    file_size INT NOT NULL,
    cdn_url TEXT NOT NULL,

    PRIMARY KEY(id)
)