Setting up better auth for a swim saas
Hi, I am in the process of piecing together a competitive swimming saas that is similar to TeamUnify, SwimTopia, Hy-Tek's Team manager, etc that will allow coaches to manage their teams, swimmers to see their stats, parents to sign their kids up for swim meets etc. I want to primarily focus on the coaches right now but set things up so that parents and swimmers can be added in the future.
This will basically be a multi-tenant app where the URL will look something like 
/team/[teamId]/*. Coaches, swimmers, and parents can technically belong to multiple teams at once. For example, lets say a coach is the head coach for the High School swim team and head coach for the Club team in town. Along with that, a swimmer could be associated to those two swim teams along with their parents.
I know there's the organization plugin, but I wasn't sure if the organization would be the name of the SaaS or if it would be the same of the swim team. The reason I was unsure is it looks like organizations have teamId, and thought maybe that's what I should use for individual teams? However, I wasn't sure if a user could belong to multiple teamId within an organization or not. The ability to be associated with multiple teams at once is a huge need for this app to work.SwimTopia
The Ultimate Swim Management Software | SwimTopia
Streamline swim team management & meets effortlessly with SwimTopia's intuitive and easy-to-use software. Dive into easy organization today!
6 Replies
Yeah we support having multiple members in separate teams
Ok so what would be the proper setup? Lets say I am a coach for High School Swim Team and Arizona Swim Academy. Would each be an Organization? Or would the Organization be "My SaaS" and then both the high school team and swim academy would be teams?
Yeah orgs would be the school, then swimmers can have their own teams. Coaches would just be an 
admin user with normal swimmers being member roleOoo ok. Why would swimmers have their own teams?
Oh sorry I thought you wanted that
I don’t know honestly 😅 when I saw teams I thought you meant like teamId within the organization. I guess I don’t know the full difference between organization and teamId. What I had in my head was organization would be like “Zendesk” and then teamId would be “Admin Experience” or the “Wallaby Team”… something like that where a big company has employees split into their own teams.
However, I don’t know if that would be the case for swimming. Unless I could utilize team for like program groups. For example, the club swim team I’m associated with has 4 different training/program groups; rising, white, red, blue. Each of them has a different monthly payment associated with them and you can only be part of one at a time. 
So the swim club would be the organization and the “teams” or groups would be the teamId. However, swimmers in the swim club organization could potentially be in another organization as well (high school swim).