Use `scope` in User model to get the members at the team specified by team_id.