Мне нужно добавить два внешних ключа в модель с именем DataSurvey, которые указывают на другую модель с именем AppPerson
DataSurvey.associate = function(models) {
DataSurvey.belongsTo(models.AppPerson); // this should have the name idResponsible
DataSurvey.belongsTo(models.AppPerson); // this should have the name idConcerned };
Как я могу это сделать?
Спасибо за вашу помощь