Wednesday 19 June 2019

Sequelize How to properly create a join table?

Let's say I have two Model: Job and Task. A Job model can have many category and similarly, a Task model can have many category. I have named the category model of Job as JobCategory and similarly I have named the category model of Task as TaskCategory. Now since Job and JobCategory and Task and TaskCategory are in many to many relationships. what should I name the join table of Job and JobCategory and Task and TaskCategory as per naming convention? Or am I doing this all wrong?

Submitted June 20, 2019 at 07:13AM by samratluitel

No comments:

Post a Comment