表結構,我希望建立一個多處理交談,如Facebook是怎麼做的郵件系統。我想知道做什麼的最好方法是關於表結構。我將有一個表,如:人談話的郵件系統
id reply_id - the id of the original message that started the conversation to_id from_id subject content date_sent read_status
兩個表:
table 1 - for the start of new messages id to_id from_id subject content date_sent read_status table 2 - when someone replies to a message id message_id to_id from_id subject content date_sent read_status
我認爲這將是沿着評論表結構的線以上,但消息依然很大以及在某些情況下。 +1 –