I have a marketplace of listings that allows other users to message the user who created the listing. For example, if you list a product, another user can message you about that product.
I’m also creating an inbox/dashboard where users can see all the messages they’ve sent and received. But I don’t know how to restrict the search to only those messages. If I just run a normal search for listings, it will display all of the listings in the marketplace, won’t it?
Any advice about how to structure my database and design to do this?