Readlebee/server/sequelize/associations/BookReference.js

12 lines
186 B
JavaScript

module.exports = models => {
const {
BookReference,
Review,
} = models;
BookReference.hasMany(Review, {
foreignKey: 'bookReferenceId',
});
return BookReference;
}