-- Migration: create media_queue table
CREATE TABLE IF NOT EXISTS media_queue (
    id INT AUTO_INCREMENT PRIMARY KEY,
    media_id VARCHAR(255) NOT NULL,
    subdir VARCHAR(255) DEFAULT NULL,
    status ENUM('pending','done','failed') DEFAULT 'pending',
    result TEXT DEFAULT NULL,
    created_at DATETIME DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;