Well, you just use polymorphic relationships instead of saving the relation data (or the whole relation) inside a JSON. I’m not talking about performance, but rather, accessibility, without having 3 tables each with their own foreign column for the correct relationship, thus triplicating the same data across 3 tables.

Graphic Designer graduate. Full Stack Web Developer. Retired Tech & Gaming Editor.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store