I want to create a simple messaging application that stores the messages (similar to e-mails, but simply messages). How should I design the database?
Table Users
:
- Username (primary key)
- Userpassword
Table E-mails
:
- EmailID (Primary key)
- From (Foreign key to user)
- To
- Owner (Foreign key to user)
- Subject
- Time
- Email content
- Email layout (Possibly content and layout in one field? XAML)
Since an e-mail can be sent to multiple people, what would be the best way to store the to column? Should I simply put it as a string, separated by commas, then retrieve all the users with a function in my code? Or is there a better way to go about this?