Hi guys, I'm building a small messaging system like you have in facebook. Only thing is that I want to know whats the best way to get on about it. The database design to be precise in this case.
Like all users would have an inbox and sent items folder. Logically something in one persons sent folder would actually be in someone elses inbox. However I don't think using one table to hold the messages would work as lets say someone deletes a message form his sent box it would be gone since both reciever and sender would be referring to the same table. How do I implement this...