Currently I've got a couple of pivot
tables with this structure in mysql
:
user_id | organisation_id | type
4 3 external
4 3 internal
6 4 internal
7 4 external
6 5 external
7 5 external
7 6 internal
As you can see, in my type
column I only use external
and internal
. Currently the type
column is a enum
and is indexed.
Is this a good database structure or should I make a separate table for the column type
?
I've got this "problem" with a couple of tables so it's an important decision. The table could become quite big.
What would you do in this situation?