I want to know how can build db structure for chat system - one to one and group. I'm using MySQL.
I'm using Laravel, redis, socket.io
I just create simple chat to understand stack
How I'm working
Client 1 msg -> Laravel save in db and push in redis -> Node redis client listen -> socket.io send to -> Client 2
How it work for group chat not live chat?