feat: split worker login device limits by type

This commit is contained in:
yml2213
2026-08-30 21:58:13 +08:00
parent ffb71f2276
commit b832279c1f
15 changed files with 537 additions and 14 deletions
@@ -0,0 +1,8 @@
-- 将历史平板会话归入手机设备桶,确保新旧数据使用同一套 PC/手机上限。
UPDATE worker_sessions
SET device_type = 'mobile', updated_at = NOW()
WHERE device_type = 'tablet';
UPDATE worker_sessions
SET device_type = 'pc', updated_at = NOW()
WHERE device_type IS NULL OR device_type NOT IN ('pc', 'mobile');