Published
Updated
Data Structures
For our simple IMDB database, these are the 4 things we need to track;
- Movies, e.g. Thor, Love & Thunder
- People, e.g. Chris Hemsworth
- Roles, e.g. Cast
- Credits, which combines these into a useful aggregate, e.g. Chris Hemsworth, Cast as Thor in Thor, Love & Thunder
Views
- List of movies
- List of people
- Movie page
- > Must show a list of all people in that movie, and the Role they are credited for
- > Should be sorted by specific roles first, e.g. Producer, then Director, then Cast, etc.
- Person page
- > Must show a list of all Movies they care credited in
- > Show be sorted by Movie date, descending
UI Plan
- Home page will have;
- > List of all Movies
- > List of all People
- Movie Collection page will have;
- > Movie details
- > List of all people credited in that Movie
- > > Sorted by Role
- Person page will have;
- > Person details
- > List of all movies that person is credited in
- > > Sorted by movie date desc