📅  最后修改于: 2022-03-11 15:03:17.209000             🧑  作者: Mango
User.hasMany(Post, {foreignKey: 'user_id'})
Post.belongsTo(User, {foreignKey: 'user_id'})
Post.find({ where: { ...}, include: [User]})