Manager has 3 teams . how a employee relationship to more than one team

how to design a model in spring boot.
the manager belongs to multiple departments and one department has multiple teams, now, one employee belongs to more than one team.

how to design this scenario in @NodeEntity, so that I can get value by relationship.
the query looks like - get all employees from a manager of team a?

If I'm understanding correctly, I would create a team's node that then employees could have either member of or manages relationship to.