Files
1818web-hoduan/debug_points_config.sql
2025-11-14 17:41:15 +08:00

39 lines
1.1 KiB
SQL

-- 检查 points_config 表中的数据
-- 执行以下SQL来排查问题
-- 1. 查看所有数据
SELECT id, model_name, points_cost, description, is_enabled, provider_type, task_type
FROM points_config
WHERE is_deleted = 0
ORDER BY id;
-- 2. 查看 RunningHub 的模型
SELECT id, model_name, points_cost, description, is_enabled, provider_type, task_type
FROM points_config
WHERE provider_type = 'runninghub'
AND is_deleted = 0
ORDER BY id;
-- 3. 查看文生图类型的模型
SELECT id, model_name, points_cost, description, is_enabled, provider_type, task_type
FROM points_config
WHERE task_type = 'text_to_image'
AND is_deleted = 0
ORDER BY id;
-- 4. 查看 RunningHub + 文生图的组合
SELECT id, model_name, points_cost, description, is_enabled, provider_type, task_type
FROM points_config
WHERE provider_type = 'runninghub'
AND task_type = 'text_to_image'
AND is_deleted = 0
ORDER BY id;
-- 5. 查看已启用的 RunningHub 模型
SELECT id, model_name, points_cost, description, is_enabled, provider_type, task_type
FROM points_config
WHERE provider_type = 'runninghub'
AND is_enabled = 1
AND is_deleted = 0
ORDER BY id;