-- ============================================================
-- 完善19个测试用户的所有字段数据
-- 执行前请确保已运行 insert_test_users.sql
-- ============================================================

-- 更新用户完整信息
-- 字段说明：
-- pwd: 密码(加密后)，统一使用 123456
-- real_name: 真实姓名
-- card_id: 身份证号(测试数据)
-- avatar: 头像URL
-- add_ip/last_ip: IP地址
-- now_money: 余额
-- brokerage_price: 佣金
-- integral: 积分
-- experience: 经验值
-- sign_num: 连续签到天数
-- level: 等级
-- user_type: 用户类型
-- login_type: 登录类型
-- country: 国家

-- 1. 张吉惟 (uid=124)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '张吉惟',
    card_id = '440101199503150011',
    avatar = 'crmebimage/public/user/default/avatar_male_1.png',
    add_ip = '192.168.1.100',
    last_ip = '192.168.1.100',
    now_money = 1580.00,
    brokerage_price = 0.00,
    integral = 2350,
    experience = 5680,
    sign_num = 15,
    level = 3,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-28 14:30:00'
WHERE uid = 124;

-- 2. 林国瑞 (uid=125)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '林国瑞',
    card_id = '330102199307220022',
    avatar = 'crmebimage/public/user/default/avatar_male_2.png',
    add_ip = '192.168.1.101',
    last_ip = '192.168.1.101',
    now_money = 3250.50,
    brokerage_price = 120.00,
    integral = 4580,
    experience = 8920,
    sign_num = 28,
    level = 5,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-30 09:15:00'
WHERE uid = 125;

-- 3. 林玟书 (uid=126)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '林玟书',
    card_id = '310101199711080033',
    avatar = 'crmebimage/public/user/default/avatar_female_1.png',
    add_ip = '192.168.1.102',
    last_ip = '192.168.1.102',
    now_money = 2180.00,
    brokerage_price = 50.00,
    integral = 3120,
    experience = 6450,
    sign_num = 12,
    level = 4,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-29 16:45:00'
WHERE uid = 126;

-- 4. 林雅南 (uid=127)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '林雅南',
    card_id = '350102199605200044',
    avatar = 'crmebimage/public/user/default/avatar_female_2.png',
    add_ip = '192.168.1.103',
    last_ip = '192.168.1.103',
    now_money = 890.00,
    brokerage_price = 0.00,
    integral = 1560,
    experience = 3280,
    sign_num = 7,
    level = 2,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-27 11:20:00'
WHERE uid = 127;

-- 5. 江奕云 (uid=128)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '江奕云',
    card_id = '320102199809120055',
    avatar = 'crmebimage/public/user/default/avatar_female_3.png',
    add_ip = '192.168.1.104',
    last_ip = '192.168.1.104',
    now_money = 4560.00,
    brokerage_price = 280.00,
    integral = 6890,
    experience = 12500,
    sign_num = 45,
    level = 6,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-31 08:00:00'
WHERE uid = 128;

-- 6. 刘柏宏 (uid=129)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '刘柏宏',
    card_id = '110101199201280066',
    avatar = 'crmebimage/public/user/default/avatar_male_3.png',
    add_ip = '192.168.1.105',
    last_ip = '192.168.1.105',
    now_money = 12800.00,
    brokerage_price = 850.00,
    integral = 9560,
    experience = 18900,
    sign_num = 60,
    level = 7,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2026-01-01 10:30:00'
WHERE uid = 129;

-- 7. 阮建安 (uid=130)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '阮建安',
    card_id = '450102199406180077',
    avatar = 'crmebimage/public/user/default/avatar_male_4.png',
    add_ip = '192.168.1.106',
    last_ip = '192.168.1.106',
    now_money = 2350.00,
    brokerage_price = 0.00,
    integral = 2890,
    experience = 5120,
    sign_num = 18,
    level = 3,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-26 15:40:00'
WHERE uid = 130;

-- 8. 林子帆 (uid=131)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '林子帆',
    card_id = '510102199612050088',
    avatar = 'crmebimage/public/user/default/avatar_male_5.png',
    add_ip = '192.168.1.107',
    last_ip = '192.168.1.107',
    now_money = 680.00,
    brokerage_price = 0.00,
    integral = 1280,
    experience = 2560,
    sign_num = 5,
    level = 2,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-25 20:15:00'
WHERE uid = 131;

-- 9. 夏志豪 (uid=132)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '夏志豪',
    card_id = '420102199508300099',
    avatar = 'crmebimage/public/user/default/avatar_male_6.png',
    add_ip = '192.168.1.108',
    last_ip = '192.168.1.108',
    now_money = 5680.00,
    brokerage_price = 320.00,
    integral = 7450,
    experience = 14200,
    sign_num = 52,
    level = 6,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-30 18:50:00'
WHERE uid = 132;

-- 10. 吉茹定 (uid=133)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '吉茹定',
    card_id = '610102199704160110',
    avatar = 'crmebimage/public/user/default/avatar_female_4.png',
    add_ip = '192.168.1.109',
    last_ip = '192.168.1.109',
    now_money = 1890.00,
    brokerage_price = 45.00,
    integral = 2680,
    experience = 4890,
    sign_num = 14,
    level = 3,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-28 12:30:00'
WHERE uid = 133;

-- 11. 李中冰 (uid=134)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '李中冰',
    card_id = '370102199310250121',
    avatar = 'crmebimage/public/user/default/avatar_male_7.png',
    add_ip = '192.168.1.110',
    last_ip = '192.168.1.110',
    now_money = 3450.00,
    brokerage_price = 180.00,
    integral = 5120,
    experience = 9680,
    sign_num = 35,
    level = 5,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-29 09:45:00'
WHERE uid = 134;

-- 12. 黄文隆 (uid=135)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '黄文隆',
    card_id = '440102199402140132',
    avatar = 'crmebimage/public/user/default/avatar_male_8.png',
    add_ip = '192.168.1.111',
    last_ip = '192.168.1.111',
    now_money = 8920.00,
    brokerage_price = 560.00,
    integral = 8560,
    experience = 16800,
    sign_num = 58,
    level = 7,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2026-01-02 07:20:00'
WHERE uid = 135;

-- 13. 谢彦文 (uid=136)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '谢彦文',
    card_id = '500102199607070143',
    avatar = 'crmebimage/public/user/default/avatar_male_9.png',
    add_ip = '192.168.1.112',
    last_ip = '192.168.1.112',
    now_money = 1560.00,
    brokerage_price = 0.00,
    integral = 2150,
    experience = 4120,
    sign_num = 10,
    level = 3,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-27 14:10:00'
WHERE uid = 136;

-- 14. 傅智翔 (uid=137)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '傅智翔',
    card_id = '330102199511190154',
    avatar = 'crmebimage/public/user/default/avatar_male_10.png',
    add_ip = '192.168.1.113',
    last_ip = '192.168.1.113',
    now_money = 4280.00,
    brokerage_price = 220.00,
    integral = 5890,
    experience = 11200,
    sign_num = 42,
    level = 5,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-31 16:30:00'
WHERE uid = 137;

-- 15. 洪振霞 (uid=138)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '洪振霞',
    card_id = '350102199803080165',
    avatar = 'crmebimage/public/user/default/avatar_female_5.png',
    add_ip = '192.168.1.114',
    last_ip = '192.168.1.114',
    now_money = 2680.00,
    brokerage_price = 85.00,
    integral = 3560,
    experience = 6890,
    sign_num = 22,
    level = 4,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-30 11:25:00'
WHERE uid = 138;

-- 16. 刘姿婷 (uid=139)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '刘姿婷',
    card_id = '430102199706210176',
    avatar = 'crmebimage/public/user/default/avatar_female_6.png',
    add_ip = '192.168.1.115',
    last_ip = '192.168.1.115',
    now_money = 1280.00,
    brokerage_price = 0.00,
    integral = 1890,
    experience = 3560,
    sign_num = 8,
    level = 2,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-26 19:40:00'
WHERE uid = 139;

-- 17. 荣姿康 (uid=140)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '荣姿康',
    card_id = '360102199609030187',
    avatar = 'crmebimage/public/user/default/avatar_female_7.png',
    add_ip = '192.168.1.116',
    last_ip = '192.168.1.116',
    now_money = 3890.00,
    brokerage_price = 150.00,
    integral = 4680,
    experience = 8560,
    sign_num = 30,
    level = 4,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2025-12-29 21:15:00'
WHERE uid = 140;

-- 18. 吕致盈 (uid=141)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '吕致盈',
    card_id = '340102199812120198',
    avatar = 'crmebimage/public/user/default/avatar_female_8.png',
    add_ip = '192.168.1.117',
    last_ip = '192.168.1.117',
    now_money = 5120.00,
    brokerage_price = 380.00,
    integral = 6250,
    experience = 12800,
    sign_num = 48,
    level = 6,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2026-01-01 13:50:00'
WHERE uid = 141;

-- 19. 方一强 (uid=142)
UPDATE eb_user SET 
    pwd = 'c7Nwx1WsDdewbab2TlkpUg==',
    real_name = '方一强',
    card_id = '410102199404010209',
    avatar = 'crmebimage/public/user/default/avatar_male_11.png',
    add_ip = '192.168.1.118',
    last_ip = '192.168.1.118',
    now_money = 7560.00,
    brokerage_price = 480.00,
    integral = 7890,
    experience = 15600,
    sign_num = 55,
    level = 7,
    user_type = 'h5',
    login_type = 'h5',
    country = 'CN',
    last_login_time = '2026-01-02 09:00:00'
WHERE uid = 142;

-- ============================================================
-- 验证更新结果 - 查看所有测试用户的完整信息
-- ============================================================
SELECT 
    uid,
    account,
    nickname,
    real_name,
    sex,
    birthday,
    addres,
    phone,
    avatar,
    now_money,
    integral,
    experience,
    sign_num,
    level,
    mark,
    status,
    last_login_time
FROM eb_user 
WHERE uid >= 124 AND uid <= 142
ORDER BY uid;
