2019+
In Sequelize v5 you can now use the underscored: true attribute
const User = sequelize.define('User', {
username: DataTypes.STRING,
password: DataTypes.STRING
}, {underscored: true});
https://sequelize.org/master/class/lib/model.js~Model.html#static-method-init