Answer the question
In order to leave comments, you need to log in
Why are table relationships not working [FeathersJS -sequelize]?
Hello,
there is:
category.associate = function (models) {
models.category.belongsTo(models.category_translate, {
foreignKey: 'id',
constraints: false,
targetKey: 'category_id',
as: 'translate'
});
};
SELECT `id`, `icon`, `parent` FROM `category` AS `category` LIMIT 10;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question