edf2ef8f7e
The resolveStaffMiddleware auto-links on first API call when staff.user_id IS NULL. Setting userId at seed time blocks this path since Better-Auth's user.id is opaque and unknown pre-auth. Remove userId from all staff inserts so the middleware can populate it on first authenticated call. Co-authored-by: Test User <test@example.com> Co-authored-by: Paperclip <noreply@paperclip.ing>