module.exports = (sequelize, DataTypes) => {
  const User = sequelize.define('User', {
    username: DataTypes.STRING,
    password: DataTypes.STRING,
    email: DataTypes.STRING
  }, {
    classMethods: {
      associate(models) {
        User.hasMany(models.Messages, {
          foreignKey: 'userId',
          as: 'userMessages',
        });
      },
    },
  });
  return User;
};

@@ -260,17 +260,16 @@
 .Message
-s
 , %7B%0A    

edit syntax models.Message