Answer the question
In order to leave comments, you need to log in
How to store messages in the database?
You need to create a database schema for a social network. I can't figure out how to organize messaging between two users.
At the moment I made a table - "coversations" and a table "messages",
but it turns out in "conversations" I don't know where to put the user id (because there are two id, not one).
Answer the question
In order to leave comments, you need to log in
The task is extremely voluminous and requires first working out IA, UX, UI and only then programming ... That's why such questions arise, take VKontakte as a basis and decompose the information structure, then user interaction and then interface features, the database structure will be created by itself .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question