-- 步骤1：检查生产环境数据库播课字段
-- 日期: 2025-10-14

USE kaopeilian;

-- 查看当前字段结构
SELECT '=== 当前播课相关字段 ===' AS info;
SELECT COLUMN_NAME, COLUMN_TYPE, IS_NULLABLE, COLUMN_COMMENT 
FROM INFORMATION_SCHEMA.COLUMNS 
WHERE TABLE_SCHEMA = 'kaopeilian' 
AND TABLE_NAME = 'courses' 
AND COLUMN_NAME LIKE 'broadcast%'
ORDER BY COLUMN_NAME;

-- 检查是否有播课数据
SELECT '=== 已生成的播课数据 ===' AS info;
SELECT COUNT(*) as broadcast_count
FROM courses 
WHERE broadcast_audio_url IS NOT NULL;

SELECT id, name, broadcast_audio_url, broadcast_generated_at
FROM courses 
WHERE broadcast_audio_url IS NOT NULL 
LIMIT 5;

