-- 查询任务384的详细信息

-- 1. 查看任务详情
SELECT 
    id,
    user_id,
    lover_id,
    status,
    error_msg,
    created_at,
    updated_at
FROM nf_generation_tasks
WHERE id = 384\G

-- 2. 查看完整的payload
SELECT JSON_PRETTY(payload) as payload_detail
FROM nf_generation_tasks
WHERE id = 384\G

-- 3. 提取关键URL
SELECT 
    id,
    JSON_EXTRACT(payload, '$.image_url') as image_url,
    JSON_EXTRACT(payload, '$.audio_url') as audio_url,
    JSON_EXTRACT(payload, '$.song_title') as song_title,
    error_msg
FROM nf_generation_tasks
WHERE id = 384\G
