I wonder how can I accomplish structure for my database. I am creating simply matchmaking app, I want to create relation one-to-many.
matches
8aWcF6GQmpezfJkVnW5uYoJ2wtI3 //id for user
8oqmrMVZ57XXlunIAUEeBgKFZ0h2 //id of matched users
NzDaJNamKNVsWuP0FVaJI7b6Cuk1
XzGWMuXrFYQ6m0MMVSwvpjSV4JF2
users
8aWcF6GQmpezfJkVnW5uYoJ2wtI3
email: "test@mail.com"
uid: "8aWcF6GQmpezfJkVnW5uYoJ2wtI3"
username: "john"
NzDaJNamKNVsWuP0FVaJI7b6Cuk1
email: "test2@mail.com"
uid: "NzDaJNamKNVsWuP0FVaJI7b6Cuk1"
username: "john2"
XzGWMuXrFYQ6m0MMVSwvpjSV4JF2
email: "aaaaa@mail.ru"
uid: "8oqmrMVZ57XXlunIAUEeBgKFZ0h2"
username: "aaaaa"
However, I cannot implement child to node, without value. So structure like above is not possible in Firebase Console to create.
Can you give me any suggestions?