message: Updated the definition of class methods
diff: module.exports = (sequelize, DataTypes) => {
  const Basket = sequelize.define('Basket', {
  coupon: DataTypes.STRING
  - },
  - {
  - classMethods: {
  - associate: function (models) {
  + })
  +
  + Basket.associate = function (models) {
  + console.log('associating stuff')
  Basket.belongsTo(models.User, { constraints: true, foreignKeyConstraint: true })
  - Basket.hasMany(models.Product, {through: models.BasketItem})
  - }}}
  - )
  + Basket.belongsToMany(models.Product, { through: models.BasketItem })
  + }
  +
  return Basket
  }
  