0

Hi I have a doubt about firebase relational entities, In my case, I want to make a database for users and users can create a team. In the team entity, team creators can add more users to join. Also can remove users from the team.

Can you share your experience or something to read about this? Thanks

2 Answers2

1

This is an incredibly broad topic, so it'll be hard to succinctly help. The best I can do without more details, is give you some resources where to learn more:

And I'd also recommend some of these questions on Stack Overflow:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
0

I would suggest the relational like this:

-user
   -userUid
       -allStuff
       -type
-team
   -teamUid
      -teamName
      -teamLeader
-teamMember
   -teamUid
      -userUid
      -userUid2

As you can see here, when team leader refer to type = leader . So this user can create other user. I hope you can understand this relation.

Ticherhaz FreePalestine
  • 2,738
  • 4
  • 20
  • 46