Hi, I'm trying to implement an internal chat system for our admins to use, but I'm not too sure on the database design. I have this (below) so far, but would appreciate a verification and/or recommendation for improvement.
Employees {
EmployeeId (smallint)
// ...
}
Chat {
ChatId (int)
Stamp (datetime) // Obsolete, ignore...
}
ChatEmployees {
ChatEmployeeId (int) // Or bigint?
ChatId (int) -> Chat.ChatId
EmployeeId (smallint) -> Employees.EmployeeId
}
Messages {
MessageId (int) // Or bigint?
AuthorId (smallint) -> Employees.EmployeeId
ChatId (int) -> Chat.ChatId
Text (varchar(512))
Stamp (datetime)
}
So, that's what I have so far, but I'm not sure if it's "sufficient". The application that will be interacting with the database is built with ASP.NET MVC 2 and Linq to SQL.
Thanks in advance for any suggestions!