For example, I have three tables that store different types of users with different data. But now I want to keep their contact information. The table in which their contact information is stored will be suitable for storing data for all user tables.
The problem is that I have a different or possibly duplicate ID between different user tables, so it does not allow me to create a relationship with my pivot table. One solution is to create a contact table for each type of user, but this seems wasteful since the only difference is the identifier.
In addition, I was thinking about storing the contact ID in the user table, but this seems less ideal, since we may not have user contact information until it appears.
Any other options that I am missing?
source
share