-- Add autorole channels support
CREATE TABLE IF NOT EXISTS channel_autoroles (
    id INT AUTO_INCREMENT PRIMARY KEY,
    channel_id INT NOT NULL,
    icon VARCHAR(50) NOT NULL,
    title VARCHAR(255) NOT NULL,
    role_id INT NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    FOREIGN KEY (channel_id) REFERENCES channels(id) ON DELETE CASCADE,
    FOREIGN KEY (role_id) REFERENCES roles(id) ON DELETE CASCADE
);
