I'm developing a couple of media (video games, TV shows, movies) review sites and am having an issue designing the relationships between my data. Case in point:
I decided that having a base Content table would be a good idea for most of the data. My Articles, News, and Reviews tables could all point to the Content table. My current setup is:
Content:
- ContentID - int, primary key, identity
- Text - text
- DateAdded - datetime
Reviews:
- ReviewID - int, primary key, identity
- Score - smallint
- ContentID - int, foreign key that points to Content.ContentID
Games:
- GameID - int, primary key, identity
- Title - nvarchar(50)
- GenreID - int, foreign key that points to Genres.GenreID
- ReviewID - int, foreign key that points to the Reviews.ReviewID
I'm getting a bit thrown off because the Entity Model is showing a 1-to-many relationship between Content and Reviews, and between Games and Reviews, when they should really be 1-to-1. Each review should point to one content entry, each game should have a review, and there should be only one review per game.
I'm just wondering if I'm on the right track.