使用hasOne关联将大容量插入。

我正在使用sequelize将数据批量插入两个彼此具有一对一关联的表中。 但是我有一个bulkInsert的问题,因为批量插入不返回任何东西。 如文件所述:

User.bulkCreate([ { username: 'barfooz', isAdmin: true }, { username: 'foo', isAdmin: true }, { username: 'bar', isAdmin: false } ]).then(function() { // Notice: There are no arguments here, as of right now you'll have to... return User.findAll(); }).then(function(users) { console.log(users) // ... in order to get the array of user objects }) 

我有一个UserDetail表,我怎样才能添加User.hasOne(UserDetail)映射?