如何使用Sequelize获取最后插入的ID和原始查询?

sequelize.js中尝试以下原始MySQL插入时:

mysql_sequelize.query( 'INSERT IGNORE INTO steamer(steamer_id, prov_id, name, avatar) VALUES(UNHEX(REPLACE(UUID(),\'-\',\'\')), \'' + prov_id + '\', \'' + steamer_name + '\', \'' + steamer_avatar + '\')') .then(function (data) { console.log('inserted STEAMER data---> ',data); // no useful info }); ); 

生成的控制台日志如下所示:

 inserted STEAMER data---> [ OkPacket { fieldCount: 0, affectedRows: 1, insertId: 0, serverStatus: 2, warningCount: 1, message: '', protocol41: true, changedRows: 0 }, OkPacket { fieldCount: 0, affectedRows: 1, insertId: 0, serverStatus: 2, warningCount: 1, message: '', protocol41: true, changedRows: 0 } ] 

我需要做些什么来获得数据的ID? 甚至是最后插入的ID?

       

网上收集的解决方案 "如何使用Sequelize获取最后插入的ID和原始查询?"