I am currently trying to create an email style web app to allow users of my site to contact one another. I have created an SQL table for this, which has the following headings:
- id
- senderID
- recipientID
- timestamp
- message
- read (Boolean to record whether message has been read by recipient)
- starred (Boolean to record whether message has been starred by recipient)
- archived (Boolean to record whether message has been archived by recipient)
- deleted (Boolean to record whether message has been deleted by recipient)
- convoID
I have started to now realise that this table is insufficient. For example, if the conversation has been starred by a user, this does not tell me which of the 2 users has starred the convo, etc.
Can anyone suggest a way to avoid the above issue, and maybe suggest a better database structure?