设备
device_track
如何在两个表之间添加依赖关系?
//include models
Device_track.hasOne(Device,{ foreignKey: 'device_id'})
Device_track.findAll({limit:1}).success(function(projects) {
for (var k in projects)
{
console.log(projects[k].dataValues);
console.log(projects.getDevice()); //or .getDevices returns error (method not found)
console.log("\n");
}
})