How to create message conversation schema in MySQL both personal group messaging. Is there a possibility to create with following scenario.
How about this:
MessageGroup (
ID,
GroupName
)
Message (
ID,
Text,
MessageGroupId (FK TO MessageGroup(ID))
)
User (
ID,
UserName
)
UserMessage (
ID,
MessageID (FK to Message(ID)),
UserID (FK to User(ID),
Cleared (true/false)
)
This way, each user can clear the message but only for him, while others can still have their messages unaffected.