So I\'ve seen several mentions of a surrogate key lately, and I\'m not really sure what it is and how it differs from a primary key.
I always assumed that ID was my prim
Using a Guid
as a primary key for your Users
table is perfect.
Unless you plan to expose your LogEntry
data to an external system or merge it with another database, I would simply use an incrementing int
rather than a Guid
as the primary key. It's easier to work with and will use slightly less space, which could be significant in a huge log stretching several years.