title: How to store messages between users in database?
body: <p>I am building a small e-mail like messaging app for a project, where a user would send out a message to another with information like meeting times and such, and I'm wondering about how to store all the messages exchanged.
  My issues are:</p>
  
  <ul>
  <li>Should I store all messages between all users in one database table (where it would be expensive to get the messages of each user when they log in)? Or should each user have a personal table for his/her messages(would have too many tables)? </li>
  <li>I also need to store the events that the user accepts. Again, should these be in one table for all users or a separate table for each (I need to retrieve these quite often)?</li>
  </ul>
  
  <p>I've searched on the site for other similar questions but most seem to focus on real-time messaging or on specific implementation technologies.</p>
  
  <p>Thanks for the help!</p>