/*
 直播系统补充测试数据
 
 为19个测试用户(uid: 100-118)补充缺失的数据
 包含：缘池消息、许愿树心愿、签到记录、用户地址、用户账单等
 
 Date: 2025-12-30
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ============================================
-- 1. 缘池消息数据 (15条)
-- ============================================
INSERT INTO `eb_community_message` (`uid`, `category_id`, `content`, `images`, `status`, `audit_type`, `audit_remark`, `is_delete`, `create_time`) VALUES
-- 语音匹配板块 (category_id=1)
(100, 1, '有人一起语音聊天吗？声音好听的优先哦~', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 5 HOUR),
(102, 1, '无聊中，想找个人聊聊天，什么话题都可以', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 4 HOUR),
(109, 1, '晚上睡不着，有人陪我聊天吗？', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 2 HOUR),

-- 心动信号板块 (category_id=2)
(103, 2, '寻找有缘人，希望遇到一个温柔体贴的人', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 6 HOUR),
(112, 2, '单身中，想找个女朋友，真诚交友', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 3 HOUR),
(117, 2, '希望能在这里遇到对的人，认真交友', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 1 HOUR),

-- 在线处对象板块 (category_id=3)
(105, 3, '90后程序员，工作稳定，想找个女朋友', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 8 HOUR),
(114, 3, '喜欢旅游和美食，希望找到志同道合的另一半', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 7 HOUR),

-- 找人玩游戏板块 (category_id=4)
(108, 4, '王者荣耀开黑，需要辅助和打野，来吗？', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 10 HOUR),
(107, 4, '英雄联盟大乱斗，轻松娱乐局，欢迎加入', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 9 HOUR),
(100, 4, '原神一起探索，有没有小伙伴？', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 5 HOUR),

-- 一起KTV板块 (category_id=5)
(104, 5, '今晚想唱歌，有人一起K歌吗？', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 12 HOUR),
(115, 5, '周末约KTV，喜欢唱歌的朋友来', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 11 HOUR),

-- 和平精英板块 (category_id=7)
(108, 7, '和平精英四排，差两个人，速来！', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 6 HOUR),
(113, 7, '吃鸡大神带飞，萌新也欢迎', '', 1, 0, '自动审核通过', 0, NOW() - INTERVAL 4 HOUR);


-- ============================================
-- 2. 许愿树心愿数据 (20条)
-- ============================================
INSERT INTO `eb_wishtree_wish` (`uid`, `festival_id`, `content`, `background_id`, `status`, `audit_type`, `audit_remark`, `like_count`, `comment_count`, `is_delete`, `create_time`) VALUES
-- 元旦心愿 (festival_id=1)
(100, 1, '新的一年，希望家人身体健康，万事如意！', 0, 1, 0, '自动审核通过', 15, 3, 0, NOW() - INTERVAL 2 DAY),
(101, 1, '2026年，希望事业更上一层楼，加油！', 0, 1, 0, '自动审核通过', 12, 2, 0, NOW() - INTERVAL 2 DAY + INTERVAL 1 HOUR),
(104, 1, '新年新气象，希望直播间人气越来越旺！', 0, 1, 0, '自动审核通过', 28, 5, 0, NOW() - INTERVAL 2 DAY + INTERVAL 2 HOUR),

-- 春节心愿 (festival_id=2)
(103, 2, '春节快乐！希望全家团团圆圆，幸福美满', 0, 1, 0, '自动审核通过', 20, 4, 0, NOW() - INTERVAL 3 DAY),
(115, 2, '新春大吉！愿所有粉丝都能心想事成', 0, 1, 0, '自动审核通过', 35, 8, 0, NOW() - INTERVAL 3 DAY + INTERVAL 3 HOUR),

-- 情人节心愿 (festival_id=3)
(102, 3, '希望今年能遇到那个对的人，脱单成功！', 0, 1, 0, '自动审核通过', 18, 6, 0, NOW() - INTERVAL 4 DAY),
(112, 3, '情人节快乐，愿天下有情人终成眷属', 0, 1, 0, '自动审核通过', 10, 2, 0, NOW() - INTERVAL 4 DAY + INTERVAL 2 HOUR),
(117, 3, '希望和喜欢的人一起度过每一个情人节', 0, 1, 0, '自动审核通过', 22, 4, 0, NOW() - INTERVAL 4 DAY + INTERVAL 4 HOUR),

-- 生日祝福 (festival_id=14)
(109, 14, '祝自己生日快乐！新的一岁要更加努力', 0, 1, 0, '自动审核通过', 25, 10, 0, NOW() - INTERVAL 5 DAY),
(107, 14, '生日愿望：希望能实现自己的梦想', 0, 1, 0, '自动审核通过', 16, 5, 0, NOW() - INTERVAL 6 DAY),
(114, 14, '又长大一岁啦，感谢所有的祝福', 0, 1, 0, '自动审核通过', 19, 7, 0, NOW() - INTERVAL 7 DAY),

-- 日常祝福 (festival_id=15)
(105, 15, '希望每天都能开开心心的', 0, 1, 0, '自动审核通过', 8, 2, 0, NOW() - INTERVAL 1 DAY),
(106, 15, '愿所有美好都如期而至', 0, 1, 0, '自动审核通过', 11, 3, 0, NOW() - INTERVAL 1 DAY + INTERVAL 5 HOUR),
(110, 15, '希望工作顺利，生活美满', 0, 1, 0, '自动审核通过', 14, 4, 0, NOW() - INTERVAL 8 HOUR),
(111, 15, '愿世界和平，人人幸福', 0, 1, 0, '自动审核通过', 9, 2, 0, NOW() - INTERVAL 6 HOUR),
(113, 15, '希望能遇到更多志同道合的朋友', 0, 1, 0, '自动审核通过', 13, 3, 0, NOW() - INTERVAL 4 HOUR),
(116, 15, '新的一天，新的开始，加油！', 0, 1, 0, '自动审核通过', 7, 1, 0, NOW() - INTERVAL 3 HOUR),
(118, 15, '希望家人朋友都平安健康', 0, 1, 0, '自动审核通过', 17, 5, 0, NOW() - INTERVAL 2 HOUR),

-- 待审核的心愿
(108, 1, '新年愿望：希望游戏技术更上一层楼', 0, 0, 0, '', 0, 0, 0, NOW() - INTERVAL 30 MINUTE),
(103, 15, '希望每天都能进步一点点', 0, 0, 0, '', 0, 0, 0, NOW() - INTERVAL 15 MINUTE);

-- ============================================
-- 3. 许愿树点赞数据 (30条)
-- ============================================
INSERT INTO `eb_wishtree_like` (`uid`, `wish_id`, `create_time`) VALUES
-- 对心愿1的点赞
(101, 1, NOW() - INTERVAL 1 DAY),
(102, 1, NOW() - INTERVAL 1 DAY + INTERVAL 1 HOUR),
(103, 1, NOW() - INTERVAL 1 DAY + INTERVAL 2 HOUR),
(104, 1, NOW() - INTERVAL 23 HOUR),
(108, 1, NOW() - INTERVAL 20 HOUR),
-- 对心愿2的点赞
(100, 2, NOW() - INTERVAL 1 DAY),
(103, 2, NOW() - INTERVAL 22 HOUR),
(105, 2, NOW() - INTERVAL 18 HOUR),
-- 对心愿3的点赞
(100, 3, NOW() - INTERVAL 1 DAY + INTERVAL 3 HOUR),
(101, 3, NOW() - INTERVAL 1 DAY + INTERVAL 4 HOUR),
(102, 3, NOW() - INTERVAL 1 DAY + INTERVAL 5 HOUR),
(103, 3, NOW() - INTERVAL 20 HOUR),
(108, 3, NOW() - INTERVAL 15 HOUR),
(109, 3, NOW() - INTERVAL 10 HOUR),
-- 对心愿4的点赞
(100, 4, NOW() - INTERVAL 2 DAY),
(104, 4, NOW() - INTERVAL 2 DAY + INTERVAL 2 HOUR),
(115, 4, NOW() - INTERVAL 2 DAY + INTERVAL 4 HOUR),
-- 对心愿5的点赞
(100, 5, NOW() - INTERVAL 2 DAY + INTERVAL 5 HOUR),
(101, 5, NOW() - INTERVAL 2 DAY + INTERVAL 6 HOUR),
(102, 5, NOW() - INTERVAL 2 DAY + INTERVAL 7 HOUR),
(103, 5, NOW() - INTERVAL 2 DAY + INTERVAL 8 HOUR),
(104, 5, NOW() - INTERVAL 2 DAY + INTERVAL 9 HOUR),
-- 对心愿9的点赞（生日祝福）
(100, 9, NOW() - INTERVAL 4 DAY),
(101, 9, NOW() - INTERVAL 4 DAY + INTERVAL 1 HOUR),
(102, 9, NOW() - INTERVAL 4 DAY + INTERVAL 2 HOUR),
(103, 9, NOW() - INTERVAL 4 DAY + INTERVAL 3 HOUR),
(104, 9, NOW() - INTERVAL 4 DAY + INTERVAL 4 HOUR),
(105, 9, NOW() - INTERVAL 4 DAY + INTERVAL 5 HOUR),
(108, 9, NOW() - INTERVAL 3 DAY),
(115, 9, NOW() - INTERVAL 3 DAY + INTERVAL 2 HOUR);


-- ============================================
-- 4. 许愿树评论数据 (25条)
-- ============================================
INSERT INTO `eb_wishtree_comment` (`wish_id`, `uid`, `content`, `parent_id`, `status`, `is_delete`, `create_time`) VALUES
-- 对心愿1的评论
(1, 101, '新年快乐！祝你心想事成！', 0, 1, 0, NOW() - INTERVAL 1 DAY + INTERVAL 30 MINUTE),
(1, 104, '同祝！希望大家都能实现愿望', 0, 1, 0, NOW() - INTERVAL 1 DAY + INTERVAL 1 HOUR),
(1, 108, '加油加油！', 0, 1, 0, NOW() - INTERVAL 20 HOUR),
-- 对心愿3的评论
(3, 100, '主播加油！我们一直支持你', 0, 1, 0, NOW() - INTERVAL 1 DAY + INTERVAL 3 HOUR),
(3, 101, '直播间见！', 0, 1, 0, NOW() - INTERVAL 1 DAY + INTERVAL 4 HOUR),
(3, 109, '最喜欢看你直播了', 0, 1, 0, NOW() - INTERVAL 18 HOUR),
(3, 117, '冲冲冲！', 0, 1, 0, NOW() - INTERVAL 12 HOUR),
(3, 102, '新年第一个愿望送给你', 0, 1, 0, NOW() - INTERVAL 8 HOUR),
-- 对心愿5的评论
(5, 100, '新春快乐！', 0, 1, 0, NOW() - INTERVAL 2 DAY + INTERVAL 4 HOUR),
(5, 101, '恭喜发财！', 0, 1, 0, NOW() - INTERVAL 2 DAY + INTERVAL 5 HOUR),
(5, 102, '万事如意！', 0, 1, 0, NOW() - INTERVAL 2 DAY + INTERVAL 6 HOUR),
(5, 103, '心想事成！', 0, 1, 0, NOW() - INTERVAL 2 DAY + INTERVAL 7 HOUR),
(5, 107, '大吉大利！', 0, 1, 0, NOW() - INTERVAL 2 DAY + INTERVAL 8 HOUR),
(5, 108, '阖家幸福！', 0, 1, 0, NOW() - INTERVAL 2 DAY + INTERVAL 9 HOUR),
(5, 109, '身体健康！', 0, 1, 0, NOW() - INTERVAL 2 DAY + INTERVAL 10 HOUR),
(5, 110, '财源广进！', 0, 1, 0, NOW() - INTERVAL 1 DAY),
-- 对心愿9的评论（生日祝福）
(9, 100, '生日快乐！🎂', 0, 1, 0, NOW() - INTERVAL 4 DAY + INTERVAL 1 HOUR),
(9, 101, '祝你生日快乐，天天开心！', 0, 1, 0, NOW() - INTERVAL 4 DAY + INTERVAL 2 HOUR),
(9, 102, 'Happy Birthday!', 0, 1, 0, NOW() - INTERVAL 4 DAY + INTERVAL 3 HOUR),
(9, 103, '愿你所有愿望都能实现', 0, 1, 0, NOW() - INTERVAL 4 DAY + INTERVAL 4 HOUR),
(9, 104, '生日快乐！永远18岁', 0, 1, 0, NOW() - INTERVAL 4 DAY + INTERVAL 5 HOUR),
(9, 105, '祝福送给你', 0, 1, 0, NOW() - INTERVAL 4 DAY + INTERVAL 6 HOUR),
(9, 108, '生快！', 0, 1, 0, NOW() - INTERVAL 3 DAY + INTERVAL 1 HOUR),
(9, 115, '生日快乐呀~', 0, 1, 0, NOW() - INTERVAL 3 DAY + INTERVAL 3 HOUR),
(9, 117, '又长大一岁啦，开心！', 0, 1, 0, NOW() - INTERVAL 3 DAY + INTERVAL 5 HOUR),
(9, 118, '祝你越来越好！', 0, 1, 0, NOW() - INTERVAL 2 DAY);

-- ============================================
-- 5. 许愿树背景素材数据 (8条)
-- ============================================
INSERT INTO `eb_wishtree_background` (`name`, `image`, `festival_id`, `sort`, `status`, `create_time`) VALUES
('新年红色背景', 'https://picsum.photos/400/600?random=bg1', 1, 100, 1, NOW()),
('春节喜庆背景', 'https://picsum.photos/400/600?random=bg2', 2, 99, 1, NOW()),
('情人节粉色背景', 'https://picsum.photos/400/600?random=bg3', 3, 98, 1, NOW()),
('生日蛋糕背景', 'https://picsum.photos/400/600?random=bg4', 14, 97, 1, NOW()),
('星空梦幻背景', 'https://picsum.photos/400/600?random=bg5', 0, 50, 1, NOW()),
('简约白色背景', 'https://picsum.photos/400/600?random=bg6', 0, 49, 1, NOW()),
('温馨暖色背景', 'https://picsum.photos/400/600?random=bg7', 0, 48, 1, NOW()),
('清新绿色背景', 'https://picsum.photos/400/600?random=bg8', 0, 47, 1, NOW());


-- ============================================
-- 6. 用户签到记录数据 (30条)
-- ============================================
INSERT INTO `eb_user_sign` (`uid`, `sign_date`, `continuous_days`, `reward_type`, `reward_amount`, `create_time`) VALUES
-- 张吉惟的签到记录
(100, '2025-12-25', 1, 1, 10, '2025-12-25 08:30:00'),
(100, '2025-12-26', 2, 1, 15, '2025-12-26 09:15:00'),
(100, '2025-12-27', 3, 1, 20, '2025-12-27 08:45:00'),
(100, '2025-12-28', 4, 1, 25, '2025-12-28 10:00:00'),
(100, '2025-12-29', 5, 1, 30, '2025-12-29 08:20:00'),
(100, '2025-12-30', 6, 1, 35, '2025-12-30 09:00:00'),
-- 林国瑞的签到记录
(101, '2025-12-27', 1, 1, 10, '2025-12-27 07:30:00'),
(101, '2025-12-28', 2, 1, 15, '2025-12-28 08:00:00'),
(101, '2025-12-29', 3, 1, 20, '2025-12-29 07:45:00'),
(101, '2025-12-30', 4, 1, 25, '2025-12-30 08:15:00'),
-- 江奕云的签到记录
(104, '2025-12-20', 1, 1, 10, '2025-12-20 10:00:00'),
(104, '2025-12-21', 2, 1, 15, '2025-12-21 09:30:00'),
(104, '2025-12-22', 3, 1, 20, '2025-12-22 11:00:00'),
(104, '2025-12-23', 4, 1, 25, '2025-12-23 10:15:00'),
(104, '2025-12-24', 5, 1, 30, '2025-12-24 09:45:00'),
(104, '2025-12-25', 6, 1, 35, '2025-12-25 10:30:00'),
(104, '2025-12-26', 7, 1, 50, '2025-12-26 09:00:00'),
(104, '2025-12-27', 8, 1, 10, '2025-12-27 10:20:00'),
(104, '2025-12-28', 9, 1, 15, '2025-12-28 09:15:00'),
(104, '2025-12-29', 10, 1, 20, '2025-12-29 10:00:00'),
(104, '2025-12-30', 11, 1, 25, '2025-12-30 09:30:00'),
-- 其他用户签到
(102, '2025-12-30', 1, 1, 10, '2025-12-30 08:00:00'),
(103, '2025-12-29', 1, 1, 10, '2025-12-29 09:00:00'),
(103, '2025-12-30', 2, 1, 15, '2025-12-30 08:30:00'),
(108, '2025-12-28', 1, 1, 10, '2025-12-28 11:00:00'),
(108, '2025-12-29', 2, 1, 15, '2025-12-29 10:30:00'),
(108, '2025-12-30', 3, 1, 20, '2025-12-30 11:15:00'),
(115, '2025-12-30', 1, 1, 10, '2025-12-30 07:45:00'),
(117, '2025-12-29', 1, 1, 10, '2025-12-29 08:15:00'),
(117, '2025-12-30', 2, 1, 15, '2025-12-30 08:45:00');

-- ============================================
-- 7. 用户地址数据 (15条)
-- ============================================
INSERT INTO `eb_user_address` (`uid`, `real_name`, `phone`, `province`, `city`, `city_id`, `district`, `detail`, `post_code`, `longitude`, `latitude`, `is_default`, `is_del`, `create_time`, `update_time`) VALUES
(100, '张吉惟', '13800100001', '上海市', '上海市', 310100, '浦东新区', '张江高科技园区', '201203', '121.5908', '31.2047', 1, 0, NOW(), NOW()),
(101, '林国瑞', '13800100002', '北京市', '北京市', 110100, '朝阳区', '望京SOHO', '100102', '116.4716', '40.0017', 1, 0, NOW(), NOW()),
(102, '林玟书', '13800100003', '广东省', '深圳市', 440300, '南山区', '科技园南区', '518057', '113.9436', '22.5329', 1, 0, NOW(), NOW()),
(103, '林雅南', '13800100004', '浙江省', '杭州市', 330100, '西湖区', '西溪湿地', '310013', '120.0621', '30.2741', 1, 0, NOW(), NOW()),
(104, '江奕云', '13800100005', '上海市', '上海市', 310100, '静安区', '南京西路', '200040', '121.4484', '31.2286', 1, 0, NOW(), NOW()),
(105, '刘柏宏', '13800100006', '四川省', '成都市', 510100, '武侯区', '天府软件园', '610041', '104.0633', '30.5728', 1, 0, NOW(), NOW()),
(106, '阮建安', '13800100007', '福建省', '厦门市', 350200, '思明区', '软件园二期', '361008', '118.1175', '24.4897', 1, 0, NOW(), NOW()),
(107, '林子帆', '13800100008', '江苏省', '南京市', 320100, '鼓楼区', '新街口', '210005', '118.7778', '32.0617', 1, 0, NOW(), NOW()),
(108, '夏志豪', '13800100009', '广东省', '广州市', 440100, '天河区', '珠江新城', '510623', '113.3218', '23.1195', 1, 0, NOW(), NOW()),
(109, '吉茹定', '13800100010', '湖北省', '武汉市', 420100, '洪山区', '光谷广场', '430074', '114.3975', '30.5052', 1, 0, NOW(), NOW()),
(110, '李中冰', '13800100011', '陕西省', '西安市', 610100, '雁塔区', '高新区', '710065', '108.9402', '34.2266', 1, 0, NOW(), NOW()),
(115, '刘姿婷', '13800100016', '北京市', '北京市', 110100, '海淀区', '中关村', '100080', '116.3103', '39.9929', 1, 0, NOW(), NOW()),
(117, '吕致盈', '13800100018', '浙江省', '杭州市', 330100, '滨江区', '网易大厦', '310052', '120.2052', '30.2084', 1, 0, NOW(), NOW()),
(118, '方一强', '13800100019', '江苏省', '苏州市', 320500, '工业园区', '金鸡湖', '215021', '120.7194', '31.3116', 1, 0, NOW(), NOW()),
(113, '傅智翔', '13800100014', '湖南省', '长沙市', 430100, '岳麓区', '麓谷', '410205', '112.8891', '28.2278', 1, 0, NOW(), NOW());


-- ============================================
-- 8. 用户账单数据 (20条)
-- ============================================
INSERT INTO `eb_user_bill` (`uid`, `link_id`, `pm`, `title`, `category`, `type`, `number`, `balance`, `mark`, `status`, `create_time`, `update_time`) VALUES
-- 充值记录
(100, 'R202512280001', 1, '充值', 'now_money', 'recharge', 100.00, 5780.00, '充值100元', 1, '2025-12-28 15:00:00', '2025-12-28 15:00:00'),
(101, 'R202512280002', 1, '充值', 'now_money', 'recharge', 500.00, 13000.00, '充值500元', 1, '2025-12-28 16:30:00', '2025-12-28 16:30:00'),
(104, 'R202512270001', 1, '充值', 'now_money', 'recharge', 1000.00, 26600.00, '充值1000元', 1, '2025-12-27 20:00:00', '2025-12-27 20:00:00'),
(108, 'R202512290001', 1, '充值', 'now_money', 'recharge', 200.00, 18400.00, '充值200元', 1, '2025-12-29 10:15:00', '2025-12-29 10:15:00'),
(115, 'R202512290002', 1, '充值', 'now_money', 'recharge', 500.00, 22500.00, '充值500元', 1, '2025-12-29 11:00:00', '2025-12-29 11:00:00'),
-- 送礼消费记录
(100, 'G202512280001', 0, '送礼物', 'now_money', 'gift', 100.00, 5680.00, '送出100个小心心', 1, '2025-12-28 20:15:00', '2025-12-28 20:15:00'),
(101, 'G202512280002', 0, '送礼物', 'now_money', 'gift', 500.00, 12500.00, '送出50朵玫瑰花', 1, '2025-12-28 20:20:00', '2025-12-28 20:20:00'),
(108, 'G202512280003', 0, '送礼物', 'now_money', 'gift', 1000.00, 17200.00, '送出2个火箭', 1, '2025-12-28 20:25:00', '2025-12-28 20:25:00'),
(117, 'G202512290001', 0, '送礼物', 'now_money', 'gift', 500.00, 13000.00, '送出5个皇冠', 1, '2025-12-29 19:10:00', '2025-12-29 19:10:00'),
-- 收礼收入记录
(104, 'G202512280001', 1, '收到礼物', 'now_money', 'gift_income', 70.00, 25670.00, '收到礼物分成', 1, '2025-12-28 20:15:00', '2025-12-28 20:15:00'),
(104, 'G202512280002', 1, '收到礼物', 'now_money', 'gift_income', 350.00, 26020.00, '收到礼物分成', 1, '2025-12-28 20:20:00', '2025-12-28 20:20:00'),
(104, 'G202512280003', 1, '收到礼物', 'now_money', 'gift_income', 700.00, 26720.00, '收到礼物分成', 1, '2025-12-28 20:25:00', '2025-12-28 20:25:00'),
(115, 'G202512290001', 1, '收到礼物', 'now_money', 'gift_income', 350.00, 22350.00, '收到礼物分成', 1, '2025-12-29 19:10:00', '2025-12-29 19:10:00'),
-- 签到奖励
(100, 'S202512300001', 1, '签到奖励', 'integral', 'sign', 35.00, 2385.00, '连续签到6天奖励', 1, '2025-12-30 09:00:00', '2025-12-30 09:00:00'),
(101, 'S202512300002', 1, '签到奖励', 'integral', 'sign', 25.00, 5705.00, '连续签到4天奖励', 1, '2025-12-30 08:15:00', '2025-12-30 08:15:00'),
(104, 'S202512300003', 1, '签到奖励', 'integral', 'sign', 25.00, 8925.00, '连续签到11天奖励', 1, '2025-12-30 09:30:00', '2025-12-30 09:30:00'),
-- 抽奖消费
(100, 'L202512280001', 0, '抽奖消费', 'integral', 'lottery', 10.00, 2340.00, '新年大转盘抽奖', 1, '2025-12-28 15:30:00', '2025-12-28 15:30:00'),
(101, 'L202512270001', 0, '抽奖消费', 'integral', 'lottery', 10.00, 5670.00, '新年大转盘抽奖', 1, '2025-12-27 20:00:00', '2025-12-27 20:00:00'),
-- 抽奖奖励
(100, 'L202512280001', 1, '抽奖奖励', 'integral', 'lottery_win', 18.00, 2358.00, '获得18钻石', 1, '2025-12-28 15:30:00', '2025-12-28 15:30:00'),
(101, 'L202512270001', 1, '抽奖奖励', 'integral', 'lottery_win', 88.00, 5758.00, '获得88钻石', 1, '2025-12-27 20:00:00', '2025-12-27 20:00:00');

-- ============================================
-- 9. 直播间数据 (5个直播间)
-- ============================================
INSERT INTO `eb_live_room` (`id`, `uid`, `title`, `cover`, `category_id`, `status`, `viewer_count`, `like_count`, `gift_value`, `start_time`, `end_time`, `create_time`) VALUES
(1001, 104, '江奕云的直播间', 'https://picsum.photos/400/300?random=room1', 1, 1, 1580, 25600, 125000, '2025-12-30 19:00:00', NULL, '2025-06-08 08:30:00'),
(1002, 115, '姿婷宝贝直播间', 'https://picsum.photos/400/300?random=room2', 1, 1, 1120, 18900, 98000, '2025-12-30 20:00:00', NULL, '2025-06-25 11:30:00'),
(1003, 110, '中冰老师直播间', 'https://picsum.photos/400/300?random=room3', 2, 0, 890, 15200, 85000, '2025-12-29 19:00:00', '2025-12-29 22:00:00', '2025-05-18 09:25:00'),
(1004, 108, '志豪Gaming', 'https://picsum.photos/400/300?random=room4', 3, 0, 650, 12800, 45000, '2025-12-28 20:00:00', '2025-12-28 23:30:00', '2025-07-22 17:55:00'),
(1005, 117, '致盈小仙女', 'https://picsum.photos/400/300?random=room5', 1, 0, 420, 8500, 32000, '2025-12-27 19:30:00', '2025-12-27 22:00:00', '2025-08-02 10:45:00');

-- ============================================
-- 10. 直播间弹幕数据 (20条)
-- ============================================
INSERT INTO `eb_live_danmu` (`room_id`, `uid`, `nickname`, `content`, `type`, `color`, `create_time`) VALUES
(1001, 100, '张吉惟', '主播好棒！', 1, '#FFFFFF', NOW() - INTERVAL 30 MINUTE),
(1001, 101, '林国瑞', '来了来了', 1, '#FFFFFF', NOW() - INTERVAL 28 MINUTE),
(1001, 103, '林雅南', '支持主播！', 1, '#FFD700', NOW() - INTERVAL 25 MINUTE),
(1001, 108, '夏志豪', '666', 1, '#FFFFFF', NOW() - INTERVAL 22 MINUTE),
(1001, 109, '吉茹定', '主播唱得真好听', 1, '#FF69B4', NOW() - INTERVAL 20 MINUTE),
(1001, 107, '林子帆', '冲冲冲', 1, '#FFFFFF', NOW() - INTERVAL 18 MINUTE),
(1001, 112, '谢彦文', '太棒了', 1, '#FFFFFF', NOW() - INTERVAL 15 MINUTE),
(1002, 102, '林玟书', '姐姐好美', 1, '#FF69B4', NOW() - INTERVAL 25 MINUTE),
(1002, 114, '洪振霞', '来支持啦', 1, '#FFFFFF', NOW() - INTERVAL 22 MINUTE),
(1002, 117, '吕致盈', '互相支持', 1, '#FFD700', NOW() - INTERVAL 20 MINUTE),
(1002, 116, '荣姿康', '主播加油', 1, '#FFFFFF', NOW() - INTERVAL 18 MINUTE),
(1003, 105, '刘柏宏', '老师讲得好', 1, '#FFFFFF', NOW() - INTERVAL 1 DAY),
(1003, 113, '傅智翔', '学到了', 1, '#FFFFFF', NOW() - INTERVAL 1 DAY + INTERVAL 5 MINUTE),
(1003, 118, '方一强', '感谢分享', 1, '#FFD700', NOW() - INTERVAL 1 DAY + INTERVAL 10 MINUTE),
(1003, 111, '黄文隆', '干货满满', 1, '#FFFFFF', NOW() - INTERVAL 1 DAY + INTERVAL 15 MINUTE),
(1004, 100, '张吉惟', '带我一个', 1, '#FFFFFF', NOW() - INTERVAL 2 DAY),
(1004, 107, '林子帆', '一起开黑', 1, '#FFFFFF', NOW() - INTERVAL 2 DAY + INTERVAL 3 MINUTE),
(1004, 106, '阮建安', '大神带飞', 1, '#FFD700', NOW() - INTERVAL 2 DAY + INTERVAL 8 MINUTE),
(1005, 102, '林玟书', '小仙女来了', 1, '#FF69B4', NOW() - INTERVAL 3 DAY),
(1005, 114, '洪振霞', '好看', 1, '#FFFFFF', NOW() - INTERVAL 3 DAY + INTERVAL 5 MINUTE);


-- ============================================
-- 11. 私信消息数据 (25条)
-- ============================================
INSERT INTO `eb_private_message` (`sender_id`, `sender_name`, `receiver_id`, `receiver_name`, `content`, `type`, `is_read`, `create_time`) VALUES
-- 张吉惟和江奕云的对话
(100, '张吉惟', 104, '江奕云', '主播你好，很喜欢你的直播！', 1, 1, NOW() - INTERVAL 2 DAY),
(104, '江奕云', 100, '张吉惟', '谢谢支持！欢迎常来直播间哦~', 1, 1, NOW() - INTERVAL 2 DAY + INTERVAL 10 MINUTE),
(100, '张吉惟', 104, '江奕云', '一定会的！', 1, 1, NOW() - INTERVAL 2 DAY + INTERVAL 15 MINUTE),
-- 林国瑞和林雅南的对话
(101, '林国瑞', 103, '林雅南', '在吗？', 1, 1, NOW() - INTERVAL 1 DAY),
(103, '林雅南', 101, '林国瑞', '在的，怎么了？', 1, 1, NOW() - INTERVAL 1 DAY + INTERVAL 5 MINUTE),
(101, '林国瑞', 103, '林雅南', '明天一起吃饭吗？', 1, 1, NOW() - INTERVAL 1 DAY + INTERVAL 8 MINUTE),
(103, '林雅南', 101, '林国瑞', '好呀，几点？', 1, 1, NOW() - INTERVAL 1 DAY + INTERVAL 12 MINUTE),
(101, '林国瑞', 103, '林雅南', '中午12点怎么样？', 1, 1, NOW() - INTERVAL 1 DAY + INTERVAL 15 MINUTE),
(103, '林雅南', 101, '林国瑞', '可以，到时候见', 1, 0, NOW() - INTERVAL 1 DAY + INTERVAL 18 MINUTE),
-- 吕致盈和刘姿婷的对话
(117, '吕致盈', 115, '刘姿婷', '姐姐今晚直播吗？', 1, 1, NOW() - INTERVAL 8 HOUR),
(115, '刘姿婷', 117, '吕致盈', '直播的，8点开始', 1, 1, NOW() - INTERVAL 8 HOUR + INTERVAL 3 MINUTE),
(117, '吕致盈', 115, '刘姿婷', '好的，我准时来看', 1, 1, NOW() - INTERVAL 8 HOUR + INTERVAL 5 MINUTE),
(115, '刘姿婷', 117, '吕致盈', '好的，明天见~', 1, 0, NOW() - INTERVAL 8 HOUR + INTERVAL 8 MINUTE),
-- 傅智翔和李中冰的对话
(113, '傅智翔', 110, '李中冰', '老师，上次讲的内容我还有些不懂', 1, 1, NOW() - INTERVAL 3 DAY),
(110, '李中冰', 113, '傅智翔', '哪里不懂？可以具体说说', 1, 1, NOW() - INTERVAL 3 DAY + INTERVAL 30 MINUTE),
(113, '傅智翔', 110, '李中冰', '就是关于那个算法的部分', 1, 1, NOW() - INTERVAL 3 DAY + INTERVAL 35 MINUTE),
(110, '李中冰', 113, '傅智翔', '好的，我下次直播详细讲一下', 1, 1, NOW() - INTERVAL 3 DAY + INTERVAL 40 MINUTE),
(113, '傅智翔', 110, '李中冰', '好的老师，谢谢！', 1, 0, NOW() - INTERVAL 3 DAY + INTERVAL 45 MINUTE),
-- 林玟书和洪振霞的对话
(102, '林玟书', 114, '洪振霞', '那个链接发我一下', 1, 1, NOW() - INTERVAL 12 HOUR),
(114, '洪振霞', 102, '林玟书', 'https://example.com/xxx', 1, 1, NOW() - INTERVAL 12 HOUR + INTERVAL 2 MINUTE),
(102, '林玟书', 114, '洪振霞', '收到，谢谢', 1, 0, NOW() - INTERVAL 12 HOUR + INTERVAL 5 MINUTE),
-- 夏志豪和江奕云的对话
(108, '夏志豪', 104, '江奕云', '下次一起连麦打游戏吧', 1, 1, NOW() - INTERVAL 2 DAY + INTERVAL 2 HOUR),
(104, '江奕云', 108, '夏志豪', '好呀，什么时候？', 1, 1, NOW() - INTERVAL 2 DAY + INTERVAL 2 HOUR + INTERVAL 10 MINUTE),
(108, '夏志豪', 104, '江奕云', '周末晚上怎么样？', 1, 1, NOW() - INTERVAL 2 DAY + INTERVAL 2 HOUR + INTERVAL 15 MINUTE),
(104, '江奕云', 108, '夏志豪', '可以，到时候联系', 1, 0, NOW() - INTERVAL 2 DAY + INTERVAL 2 HOUR + INTERVAL 20 MINUTE);

-- ============================================
-- 12. 动态点赞数据 (20条)
-- ============================================
INSERT INTO `eb_dynamic_like` (`dynamic_id`, `uid`, `nickname`, `create_time`) VALUES
-- 对动态1的点赞
(1, 100, '张吉惟', NOW() - INTERVAL 1 DAY + INTERVAL 1 HOUR),
(1, 101, '林国瑞', NOW() - INTERVAL 1 DAY + INTERVAL 2 HOUR),
(1, 103, '林雅南', NOW() - INTERVAL 1 DAY + INTERVAL 3 HOUR),
(1, 108, '夏志豪', NOW() - INTERVAL 1 DAY + INTERVAL 4 HOUR),
(1, 109, '吉茹定', NOW() - INTERVAL 20 HOUR),
-- 对动态2的点赞
(2, 104, '江奕云', NOW() - INTERVAL 18 HOUR),
(2, 117, '吕致盈', NOW() - INTERVAL 17 HOUR),
(2, 102, '林玟书', NOW() - INTERVAL 16 HOUR),
-- 对动态4的点赞
(4, 115, '刘姿婷', NOW() - INTERVAL 10 HOUR),
(4, 117, '吕致盈', NOW() - INTERVAL 9 HOUR),
(4, 102, '林玟书', NOW() - INTERVAL 8 HOUR),
(4, 103, '林雅南', NOW() - INTERVAL 7 HOUR),
(4, 109, '吉茹定', NOW() - INTERVAL 6 HOUR),
-- 对动态6的点赞
(6, 110, '李中冰', NOW() - INTERVAL 2 DAY),
(6, 113, '傅智翔', NOW() - INTERVAL 2 DAY + INTERVAL 1 HOUR),
(6, 118, '方一强', NOW() - INTERVAL 2 DAY + INTERVAL 2 HOUR),
-- 对动态8的点赞
(8, 102, '林玟书', NOW() - INTERVAL 3 DAY),
(8, 114, '洪振霞', NOW() - INTERVAL 3 DAY + INTERVAL 1 HOUR),
(8, 103, '林雅南', NOW() - INTERVAL 3 DAY + INTERVAL 2 HOUR),
(8, 117, '吕致盈', NOW() - INTERVAL 3 DAY + INTERVAL 3 HOUR);


-- ============================================
-- 13. 好友关系数据 (15条)
-- ============================================
INSERT INTO `eb_friend` (`uid`, `friend_uid`, `friend_name`, `friend_avatar`, `remark`, `status`, `create_time`) VALUES
-- 张吉惟的好友
(100, 101, '林国瑞', 'https://api.dicebear.com/7.x/avataaars/svg?seed=2', '国瑞哥', 1, NOW() - INTERVAL 30 DAY),
(100, 107, '林子帆', 'https://api.dicebear.com/7.x/avataaars/svg?seed=8', '子帆', 1, NOW() - INTERVAL 25 DAY),
(100, 108, '夏志豪', 'https://api.dicebear.com/7.x/avataaars/svg?seed=9', '游戏搭子', 1, NOW() - INTERVAL 20 DAY),
-- 林国瑞的好友
(101, 100, '张吉惟', 'https://api.dicebear.com/7.x/avataaars/svg?seed=1', '吉惟', 1, NOW() - INTERVAL 30 DAY),
(101, 103, '林雅南', 'https://api.dicebear.com/7.x/avataaars/svg?seed=4', '雅南', 1, NOW() - INTERVAL 60 DAY),
(101, 104, '江奕云', 'https://api.dicebear.com/7.x/avataaars/svg?seed=5', '奕云', 1, NOW() - INTERVAL 90 DAY),
-- 江奕云的好友
(104, 101, '林国瑞', 'https://api.dicebear.com/7.x/avataaars/svg?seed=2', '', 1, NOW() - INTERVAL 90 DAY),
(104, 108, '夏志豪', 'https://api.dicebear.com/7.x/avataaars/svg?seed=9', '志豪', 1, NOW() - INTERVAL 85 DAY),
(104, 103, '林雅南', 'https://api.dicebear.com/7.x/avataaars/svg?seed=4', '', 1, NOW() - INTERVAL 80 DAY),
-- 刘姿婷的好友
(115, 102, '林玟书', 'https://api.dicebear.com/7.x/avataaars/svg?seed=3', '玟书', 1, NOW() - INTERVAL 45 DAY),
(115, 114, '洪振霞', 'https://api.dicebear.com/7.x/avataaars/svg?seed=15', '振霞', 1, NOW() - INTERVAL 40 DAY),
(115, 117, '吕致盈', 'https://api.dicebear.com/7.x/avataaars/svg?seed=18', '致盈', 1, NOW() - INTERVAL 50 DAY),
-- 李中冰的好友
(110, 113, '傅智翔', 'https://api.dicebear.com/7.x/avataaars/svg?seed=14', '智翔', 1, NOW() - INTERVAL 70 DAY),
(110, 118, '方一强', 'https://api.dicebear.com/7.x/avataaars/svg?seed=19', '一强', 1, NOW() - INTERVAL 65 DAY),
(110, 105, '刘柏宏', 'https://api.dicebear.com/7.x/avataaars/svg?seed=6', '柏宏', 1, NOW() - INTERVAL 55 DAY);

-- ============================================
-- 14. 礼物配置数据 (10种礼物)
-- ============================================
INSERT INTO `eb_gift` (`id`, `name`, `icon`, `price`, `experience`, `category`, `animation`, `sort`, `status`, `create_time`) VALUES
(1, '小心心', 'https://picsum.photos/100/100?random=gift1', 1, 1, 1, '', 100, 1, NOW()),
(2, '棒棒糖', 'https://picsum.photos/100/100?random=gift2', 5, 5, 1, '', 99, 1, NOW()),
(3, '玫瑰花', 'https://picsum.photos/100/100?random=gift3', 10, 10, 1, '', 98, 1, NOW()),
(4, '皇冠', 'https://picsum.photos/100/100?random=gift4', 100, 100, 2, 'crown.json', 97, 1, NOW()),
(5, '火箭', 'https://picsum.photos/100/100?random=gift5', 500, 500, 2, 'rocket.json', 96, 1, NOW()),
(6, '跑车', 'https://picsum.photos/100/100?random=gift6', 1000, 1000, 3, 'car.json', 95, 1, NOW()),
(7, '游艇', 'https://picsum.photos/100/100?random=gift7', 2000, 2000, 3, 'yacht.json', 94, 1, NOW()),
(8, '城堡', 'https://picsum.photos/100/100?random=gift8', 5000, 5000, 3, 'castle.json', 93, 1, NOW()),
(9, '么么哒', 'https://picsum.photos/100/100?random=gift9', 20, 20, 1, '', 92, 1, NOW()),
(10, '啤酒', 'https://picsum.photos/100/100?random=gift10', 50, 50, 1, '', 91, 1, NOW())
ON DUPLICATE KEY UPDATE `name` = VALUES(`name`);

-- ============================================
-- 15. 签到配置数据 (7天)
-- ============================================
INSERT INTO `eb_sign_config` (`day`, `reward_type`, `reward_value`, `is_double`, `status`, `create_time`) VALUES
(1, 1, 10, 0, 1, NOW()),
(2, 1, 15, 0, 1, NOW()),
(3, 1, 20, 0, 1, NOW()),
(4, 1, 25, 0, 1, NOW()),
(5, 1, 30, 0, 1, NOW()),
(6, 1, 35, 0, 1, NOW()),
(7, 1, 50, 1, 1, NOW())
ON DUPLICATE KEY UPDATE `reward_value` = VALUES(`reward_value`);


-- ============================================
-- 16. 直播分类数据 (5个分类)
-- ============================================
INSERT INTO `eb_live_category` (`id`, `name`, `icon`, `sort`, `status`, `create_time`) VALUES
(1, '娱乐', 'https://picsum.photos/100/100?random=cat1', 100, 1, NOW()),
(2, '教育', 'https://picsum.photos/100/100?random=cat2', 99, 1, NOW()),
(3, '游戏', 'https://picsum.photos/100/100?random=cat3', 98, 1, NOW()),
(4, '音乐', 'https://picsum.photos/100/100?random=cat4', 97, 1, NOW()),
(5, '户外', 'https://picsum.photos/100/100?random=cat5', 96, 1, NOW())
ON DUPLICATE KEY UPDATE `name` = VALUES(`name`);

-- ============================================
-- 17. 用户等级配置数据 (10级)
-- ============================================
INSERT INTO `eb_user_level` (`id`, `level`, `name`, `icon`, `experience`, `discount`, `privileges`, `status`, `create_time`) VALUES
(1, 1, '青铜', 'https://picsum.photos/50/50?random=lv1', 0, 100, '基础权益', 1, NOW()),
(2, 2, '白银', 'https://picsum.photos/50/50?random=lv2', 1000, 98, '专属标识', 1, NOW()),
(3, 3, '黄金', 'https://picsum.photos/50/50?random=lv3', 3000, 95, '专属标识,入场特效', 1, NOW()),
(4, 4, '铂金', 'https://picsum.photos/50/50?random=lv4', 8000, 92, '专属标识,入场特效,弹幕颜色', 1, NOW()),
(5, 5, '钻石', 'https://picsum.photos/50/50?random=lv5', 15000, 90, '专属标识,入场特效,弹幕颜色,专属客服', 1, NOW()),
(6, 6, '星耀', 'https://picsum.photos/50/50?random=lv6', 30000, 88, '专属标识,入场特效,弹幕颜色,专属客服,生日礼物', 1, NOW()),
(7, 7, '王者', 'https://picsum.photos/50/50?random=lv7', 60000, 85, '专属标识,入场特效,弹幕颜色,专属客服,生日礼物,专属座驾', 1, NOW()),
(8, 8, '至尊', 'https://picsum.photos/50/50?random=lv8', 120000, 82, '全部权益', 1, NOW()),
(9, 9, '传说', 'https://picsum.photos/50/50?random=lv9', 250000, 80, '全部权益,定制服务', 1, NOW()),
(10, 10, '神话', 'https://picsum.photos/50/50?random=lv10', 500000, 75, '全部权益,定制服务,专属活动', 1, NOW())
ON DUPLICATE KEY UPDATE `name` = VALUES(`name`);

-- ============================================
-- 18. 魅力等级配置数据 (10级)
-- ============================================
INSERT INTO `eb_charm_level` (`id`, `level`, `name`, `icon`, `charm_value`, `privileges`, `status`, `create_time`) VALUES
(1, 1, '萌新主播', 'https://picsum.photos/50/50?random=charm1', 0, '基础权益', 1, NOW()),
(2, 2, '人气主播', 'https://picsum.photos/50/50?random=charm2', 5000, '专属标识', 1, NOW()),
(3, 3, '明星主播', 'https://picsum.photos/50/50?random=charm3', 20000, '专属标识,推荐位', 1, NOW()),
(4, 4, '金牌主播', 'https://picsum.photos/50/50?random=charm4', 50000, '专属标识,推荐位,分成提升', 1, NOW()),
(5, 5, '钻石主播', 'https://picsum.photos/50/50?random=charm5', 100000, '专属标识,推荐位,分成提升,专属客服', 1, NOW()),
(6, 6, '皇冠主播', 'https://picsum.photos/50/50?random=charm6', 200000, '全部权益', 1, NOW()),
(7, 7, '女神主播', 'https://picsum.photos/50/50?random=charm7', 500000, '全部权益,专属活动', 1, NOW()),
(8, 8, '天王主播', 'https://picsum.photos/50/50?random=charm8', 1000000, '全部权益,专属活动,定制服务', 1, NOW()),
(9, 9, '传奇主播', 'https://picsum.photos/50/50?random=charm9', 2000000, '全部权益,专属活动,定制服务,专属运营', 1, NOW()),
(10, 10, '神级主播', 'https://picsum.photos/50/50?random=charm10', 5000000, '最高权益', 1, NOW())
ON DUPLICATE KEY UPDATE `name` = VALUES(`name`);

SET FOREIGN_KEY_CHECKS = 1;

-- ============================================
-- 补充测试数据统计
-- ============================================
/*
本SQL文件为19个测试用户(uid: 100-118)补充以下数据:

【缘池与许愿树】
- 15条缘池消息
- 20条许愿树心愿
- 30条心愿点赞
- 25条心愿评论
- 8个背景素材

【用户数据】
- 30条签到记录
- 15条用户地址
- 20条用户账单

【直播数据】
- 5个直播间
- 20条弹幕记录

【社交数据】
- 25条私信消息
- 20条动态点赞
- 15条好友关系

【配置数据】
- 10种礼物配置
- 7天签到配置
- 5个直播分类
- 10级用户等级
- 10级魅力等级

使用说明:
1. 确保已执行 zhibo_test_data.sql 创建基础用户数据
2. 执行本文件补充缺失的测试数据
3. 部分INSERT使用ON DUPLICATE KEY UPDATE避免重复插入
*/

