YZ
Size: a a a
YZ
VP
base.associate = function (models) {
models.bases.belongsTo(models.countries, {
onDelete: "CASCADE",
foreignKey: {
allowNull: true
},
as: 'countryId'
});
};Unknown column 'bases.countryIdId' in 'field list'
countries is associated to bases using an alias. You've included an alias (countryIdId), but it does not match the alias(es) defined in your association (countryId).
findAll({include: [{
model: models.countries,
as: 'countryIdId'
}]});YZ
VP
PA
VP
PA
PA
PA
VP
VP
PA
PA
PA
PA