CREATE TABLE IF NOT EXISTS media_history (
    id INT AUTO_INCREMENT PRIMARY KEY,
    type VARCHAR(10) NOT NULL,
    prompt TEXT NOT NULL,
    result_url TEXT,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
