-- =====================================================
-- 检查用户"道玄"（ID: 121）的测试数据
-- =====================================================

-- 检查用户基本信息
SELECT uid, nickname, phone, now_money, integral, experience 
FROM eb_user WHERE uid = 121;

-- 检查各表数据统计
SELECT '观看历史' as 类型, COUNT(*) as 数量 FROM eb_watch_history WHERE uid = 121
UNION ALL
SELECT '直播间点赞', COUNT(*) FROM eb_live_room_like WHERE uid = 121
UNION ALL
SELECT '作品点赞', COUNT(*) FROM eb_works_relation WHERE uid = 121 AND type = 1
UNION ALL
SELECT '作品收藏', COUNT(*) FROM eb_works_relation WHERE uid = 121 AND type = 2
UNION ALL
SELECT '关注数', COUNT(*) FROM eb_follow_record WHERE uid = 121
UNION ALL
SELECT '粉丝数', COUNT(*) FROM eb_follow_record WHERE follow_uid = 121
UNION ALL
SELECT '搜索历史', COUNT(*) FROM eb_search_history WHERE uid = 121
UNION ALL
SELECT '好友数', COUNT(*) FROM eb_friend WHERE uid = 121;

-- 检查礼物记录表是否存在
SELECT COUNT(*) as 礼物打赏记录 FROM eb_gift_record WHERE uid = 121;

-- 检查私聊会话
SELECT COUNT(*) as 私聊会话数 FROM eb_conversation WHERE user1_id = 121 OR user2_id = 121;

-- 检查充值记录
SELECT COUNT(*) as 充值记录数 FROM eb_recharge_order WHERE uid = 121;
