Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Refine Sequelize Associations

We've defined our first data relationship using Sequelize associations. Great! Unfortunately, our current approach has the following issues:

  • The Movie table PersonId foreign key column name doesn't match the column naming convention of the other table columns (i.e., id, title, releaseYear) nor does it convey anything about the relationship of a person to a movie.
  • The PersonId ...