Are there any drawbacks to storing addition data in my join table / junction table.
For example, I am working on a database of trucking companies and I have 3 tables:
Table 1 - company,
Table 2 - trailer_type,
Table 3 - junction_table,
Each company can have more than one trailer type, but I also need a trailer count of each trailer type per company. The most logical place to put the trailer count would seem to be in the junction table with the company.id
and trailer_type.id
.
Are there any drawbacks to doing it this way, and, if so, is there a better way?