-- 快速测试礼物系统

-- 1. 查看表结构
DESC eb_gift_record;

-- 2. 查看现有数据
SELECT COUNT(*) as total FROM eb_gift_record;

-- 3. 查看最新5条记录
SELECT * FROM eb_gift_record ORDER BY create_time DESC LIMIT 5;

-- 4. 检查用户虚拟货币
SELECT uid, nickname, virtual_balance FROM eb_user WHERE uid IN (43, 44, 45);

-- 5. 测试插入（如果需要）
-- INSERT INTO eb_gift_record (sender_id, sender_name, receiver_id, receiver_name, room_id, gift_id, gift_name, gift_price, quantity, total_price, create_time)
-- VALUES (43, '测试用户43', 44, '测试用户44', 8, 1, '测试礼物', 10, 1, 10, NOW());
