feat: admin 使用固定 ID 并补全全角色权限和演示数据

This commit is contained in:
zetaloop
2026-05-03 08:09:43 +08:00
parent 776ecc479f
commit 9a32850030
6 changed files with 89 additions and 30 deletions
+4 -1
View File
@@ -1,12 +1,15 @@
INSERT INTO shops (id, owner_id, name, description, rating, total_orders, player_count, commission_type, commission_value, dispatch_mode, announcements) VALUES
(100000, 100000, '聚玩官方代练', '平台直营代练团队,专业稳定,支持多游戏,7天无理由退款', 5.00, 0, 1, 'percentage', 10.00, 'manual',
ARRAY['新用户首单 9 折','周末下单送陪玩券']),
(100001, 100004, '星辰代练工作室', '专业LOL/王者代练,7天无理由退款', 4.80, 256, 2, 'percentage', 15.00, 'manual',
ARRAY['新店开业,首单九折!','招募高端局打手,待遇从优']),
(100002, 100005, '狼群电竞俱乐部', '高端局代练团队,大师以上段位保证', 4.65, 180, 1, 'percentage', 12.00, 'auto',
ARRAY['本周特惠:钻石到大师只需199']),
(100003, 100008, '全能工作室', '多游戏代练,总有一款适合你', 4.50, 80, 1, 'fixed', 10.00, 'manual',
(100003, 100008, '全能工作室', '多游戏代练,总有一款适合你', 4.50, 80, 1, 'fixed', 10.00, 'manual',
ARRAY['支持LOL/VALORANT/原神']);
INSERT INTO shop_players (id, shop_id, player_id, is_primary) VALUES
(109000, 100000, 100000, true),
(109001, 100001, 100001, true),
(109002, 100001, 100002, false),
(109003, 100002, 100003, true),