While playing around with the concepts if it's "A then it's B as well by default, I have two versions of the team to represent members of the team. From the performance perspective, which version is better (team_version1 or team_version2) and idiomatic as well as performant to represent members? Both permissions can_do should yield the same result but I am assuming their evaluation is wholly different.
Also is there an in-depth guide on writing idiomatic SpiceDB schemas ?
definition user {
}
definition team_version1 {
relation admin: user
relation member: user | team_version1#admin
permission can_do = member
}
definition team_version2 {
relation admin: user
relation non_admin: user
permission member = non_admin + admin
permission can_do = member
}