Many of the answers to this question advise not to use ordinals, but just to have a single column with the value of the enum when mapping it to a table in DB.
Is this still a safe approach if I'm going to use this enum-mapped table in a many-to-many relationship?
More detailed, I have a table Car
and a table Extras
, that I'm modelling as an enum. Then I have a table cars_extras
, that holds the nxn relationship and has three columns: id
, car_id
and extra_id
, but I'm not sure if this is a good idea.