Hi I am having problems with relation and database design.
There are three tables called 'articles' , 'users' , and 'companies' with one attribute each called id:
"articles" -id
"users" -id
"companies" -id
The article table contain many publishers that are user model or company model.
My pivot table must be something similar to 'authors' -id, -model_id, -model_name, -article_id
Is there any way to get article's publisher ids and data from models in one collection with a single query? Maybe I misunderstood the problem and there is a simpler solution for that case.
thx in advance
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)