-- 短信验证码注册已完成手机号校验，历史遗留的待审核账号统一自动启用。
UPDATE worker_users
SET status = 'active',
    review_note = CASE
      WHEN BTRIM(review_note) = '' THEN '短信验证码注册自动启用'
      ELSE review_note
    END,
    reviewed_at = COALESCE(reviewed_at, updated_at, NOW()),
    updated_at = NOW()
WHERE status = 'pending_review';

COMMENT ON TABLE worker_users IS '打手账号，手机号验证码注册后自动启用；后台可冻结或调整状态';
