I'm trying to create the database for my application, but I cannot manage to normalize my data on a MySQL database.
I have a
Typesof map entityThe
Typesmust have one or more Models associated to it, in a particularorderThe
Modelshave aGrid,is_predictionflag and anOriginassociated to itThere can be more than one
Modelusing the sameGrid,Originandis_predictioncondition, differing only on thenameof the modelNot all
Originsprovide all theModelsThe
Typescan only haveModelsassociated to it that have the same condition of[Grid, Origin, is_prediction]
I tried to create a table types_hierarchy, using grid_id, origin_id and is_prediction as foreign key, but it seems wrong, according to the answer on my other question here.
How can I create a normalized database for my needs?
This is what I tried to do:
