Quote:
Originally Posted by tlshaheen
Any insight on what would be the best schema for it?
|
you've pretty much got the gist of it already in the tables you've suggested
for the fans table, the PK should be the composite (User_ID,Fan_Of), since you want uniqueness (a user cannot be a fan of the same thing more than once)
for the comments table, the PK would need to include a datetime, as you probably would want a user to be able to comment more than once