'how to replace string in sequelize model for join table

static associate(models) {
      models.tb_transfer_list.belongsTo(models.tb_displayed_safety, {
        as: 'transfer_list_belongs_to_tb_displayed_safety',
        foreignKey: 'equipmentId', // <--- I want to replace string this column
        targetKey: 'stuffId',
      });
    }
  };


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source