I haven't used Bullet Train, but I've found their "Teams should be an MVP feature" blog post [1] a really great overview of how to model team structures in relational databases before. Worth a read!
[1]: https://blog.bullettrain.co/teams-should-be-an-mvp-feature/