Database Design: Intersection of three fields
- teams, which takes a competition ID
- competition
- participants, which takes a team ID and a user ID
I designed it this way to adhere to database normalization, but I am trying to use Convex indexes to
- quickly get the user's team for a particular competition
- quickly get all the teams for a particular competition
But I can't index teams with a user field, so I am stumped. Any ideas?

