sequelize foreign key returning as “Null”
问题 I have added foreign keys to my project using sequelize. User is the parent table and profile_personals is the child table. When I post something the foreign key comes out as NULL. I'm trying to create it so when I post something through postman it can grab the User id Automatically. db.js file const db = {}; db.sequelize = sequelize; db.Sequelize = Sequelize; // Models db.Users = require('../model/User.js')(sequelize, Sequelize); db.Personal = require('../model/profile_personal.js')