N
N
narem2021-12-12 22:41:34
Node.js
narem, 2021-12-12 22:41:34

How to link 3 belongsTo table?

I'm trying to link 3 tables
news.belongsTo(user);
user.belongsTo(people);
In news , the userId column is normally created and referenced in the right place. But here in the user, not peopleId is created, but personId, and it is not attached to anything at all, just an int column, why is that?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question