-- V3__seed_data.sql
-- 种子数据（测试用）

-- 插入测试明星
INSERT INTO public.stars (star_id, name, tag, identity_id, is_active, created_at, updated_at) VALUES
(87, '测试明星', '测试', 'test_star_001', true, 1704067200000, 1704067200000)
ON CONFLICT DO NOTHING;

-- 插入测试用户
INSERT INTO public.users (id, mobile, password_hash, is_active, created_at, updated_at) VALUES
(1, '13800138000', '$2a$10$N9qo8uLOickgx2ZMRZoMye6e7q5R5pR6Vx9qPCr5dLq5R5pR6Vx9q', true, 1704067200000, 1704067200000)
ON CONFLICT DO NOTHING;

-- 插入测试粉丝档案
INSERT INTO public.fan_profiles (id, user_id, star_id, nickname, level, times, social, experience, coin_balance, crystal_balance, starbook_limit, slot_limit, assets_count, is_active, created_at, updated_at, avatar_url) VALUES
(1, 1, 87, '测试用户', 5, 3, 10, 1000, 500, 100, 3, 3, 5, true, 1704067200000, 1704067200000, 'https://top-fans-test.oss-cn-shanghai.aliyuncs.com/avatar/1/87/avatar.png')
ON CONFLICT DO NOTHING;