0
Good morning guys.
Assuming a business rule where I have restaurants, and each user can follow several restaurants, I create a table, table and tabela_restaurante_usuario_seguindo. Hence, when a user starts to follow a restaurant, a record in the tabela_restaurante_usuario_seguindo is created, guarding the id_restaurante and id_usuario. So far so good.
My question is the following: assuming that my user is logged in to my application, when I list the restaurants, I want to show all the restaurants, but that in the query a column is created saying whether or not the logged-in user follows that restaurant. It is possible and feasible to achieve this result through a Mysql query?
Thanks brother, I got the consult =)
– sThiago