This question is locked. New answers and comments are not allowed.
Hi, There
I am developing chat program using the Backend service.
I have created "Room" content type.
Now, one user can be in many rooms and one room can have multiple users as well.
This is a just many-to-many relationship for database.
I am not sure how to accomplish this using Backend service.
Currently, I have done following:
1. create field 'JoinedBy' which is a multiple relation type to 'User'
2. create field 'RoomId' which is also a multiple relation type to 'Room'
Is this proper design?
Also, to query this I should use PowerField, right?
Thank you very much,
Teerawat
I am developing chat program using the Backend service.
I have created "Room" content type.
Now, one user can be in many rooms and one room can have multiple users as well.
This is a just many-to-many relationship for database.
I am not sure how to accomplish this using Backend service.
Currently, I have done following:
1. create field 'JoinedBy' which is a multiple relation type to 'User'
2. create field 'RoomId' which is also a multiple relation type to 'Room'
Is this proper design?
Also, to query this I should use PowerField, right?
Thank you very much,
Teerawat