Sequelize Unknown column '*.createdAt' in 'field list'
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm getting a Unknown column 'userDetails.createdAt' in 'field list' When trying to fetch with association. Using findAll without association works fine. My code is as follows: var userDetails = sequelize . define ( 'userDetails' , { userId : Sequelize . INTEGER , firstName : Sequelize . STRING , lastName : Sequelize . STRING , birthday : Sequelize . DATE }); var user = sequelize . define ( 'user' , { email : Sequelize . STRING , password : Sequelize . STRING }); user . hasOne ( userDetails , { foreignKey : 'userId' }); user .