For anyone finding this later on it’s now possible to explicitely define what the database field should be named:
var User = sequelize.define('user', {
isAdmin: {
type: DataTypes.BOOLEAN,
field: 'is_admin'
}
});
For anyone finding this later on it’s now possible to explicitely define what the database field should be named:
var User = sequelize.define('user', {
isAdmin: {
type: DataTypes.BOOLEAN,
field: 'is_admin'
}
});