Chat participants . Chats are also in one to many relationship with ChatParticipants. So chatparticipants will have a chat_id and use_id . How to access chats of particular user ?
By inner joining the three tables and adding a where condition with either, user name or user id. Does it solve your homework?
Обсуждают сегодня