I looked through the Skype main.db database a couple of times, and this is something that I still do not understand. Naturally, this question will be very specific to the Skype structure main.db. (Denial of responsibility)
It seems that I need all the necessary information in the Conversations , Messages , Participants tables.
Table
Message contains the actual log that was specified, the recipient (s), timestamp and foreign key convo_id (although not forced) to connect to the Conversation to which the message belongs.
Conversation exists to store Message aggregates and the contacts in which they participate.
Table
Participants works with many connector tables between the Conversations table and Contacts .
What gets me are the Chats and Chatmembers . Chatmembers works with Chats , that the Participants table works with the Conversations table; connecting contacts and conversations or “chats”.
Which in Chats similar to Conversations , except that it does not have any aggregate in the Message table. It is not possible to map the Messages table to the Chats table to which the message log belongs ( Messages table line).
Chats and Conversations share a foreign key; the Conversations table has a column called chat_dbid that joins the Chats table. But in the Conversations table there are rows with chat_dbid zero, and not all rows in Chats have an id field that corresponds to the chat_dbid field in the Chats table.
The Chats table is still being updated, and I will find out some of the chats or conversations that I recently used based on the timestamp and members in it.
Does anyone know what the Chats table does? Rather, what is the difference and rationale for the Chats table and the Conversations table?
When I was desperately looking for this, I could only find one that talked about the structure of main.db , and that was not very useful.
According to the Chats link
Provides chats in which the user participated.
and Conversations
Provides a list of conversations in which the user participated.
What is their terminology about Chats and Conversations? How do they differ?
It drove me crazy.