I have a website. Visitors can register. Every user can send messages to another user. There are in/out boxes. I want when a user deletes a message from his box the other user to still have it.
My question is can this be made with only one field in the table?
Why?
I couldn’t think of good solution. Curiousity, friends!
Yes.
With one column, the flow would require a
nullablecolumn.NULLmeans both have them.UPDATEthat user’s id in the column.DELETEthe record.I strongly advice using a more robust architecture though, less columns doesn’t equal better.
@cwallenpoole Has a good example, try it out.