Hello Guys, I have a question.. I need to create some kind of relation between 3 tables (or types) - User, Team and Role. The case is -> User could create the team, if team is created user get role “capitan”, user, could create multiple teams. Also user could be added to another team, by other User (capitan) in these case, user gonna have role “player”.
So, user can be part of multiple teams, with only one role in single one:
“UserA, TeamA, “Capitan”,
“UserA, TeamB, “Player”,
I just tried to find answer in google, but i can not find any solution for this case. Is this possible to create relation like this in Prisma?