educative.io

How the DB schema will look like for storing messages for each users?

What will be the message storing DB schema look like ? Does the service has to store for both sender and receiver ?

For example when UserA sends UserB off course messaging service has to store data for userB in database based on sharedId but how about the userA is it going to store for UserA as well in that case how the DB schema will look like ?

1 Like