How to come up with students and teacher relation in Firebase?
问题 I am trying to create just basic data structure for students -> teacher relation. Students -> Teacher (many to many) Each students can have many teachers Users uid1: type: student name: Alex Smith teachers: [uid5: true, uid4: true ] //is it better to do it like this? uid2: type: student name: Michael A teachers: [ uid5: true] uid3: type: student name: Michael A teachers: [uid5: true] uid4: type: teacher name: Alex Smith teacher: [uid3: true] //is it better to use their uid? uid5: type: