Something like this:
```user_ids.map {|u| [u, :user] } + team_ids.map {|t| [t, :team] }```