Open arwhyte opened 5 years ago
I changed my model in accordance to this (i think) however before I load the CSV into the database, I wanted to make sure everything was right
https://github.com/hopetambala/django-sustainable_development_goals/tree/master/static/reference
Consolidation
You should be able to refactor the following four table relationships:
country_area
country_area_has_country
country
country_goal
down to:
country_area
country_goal
(country_area_id, target_id, . . .)There should be no countries in the MDG tables that are not in the UNSD
country_area
table.Table names
Change the following:
target_within_country_goal
totarget
indicator_within_target
totarget_indicator
Property names
value_type_id
an FK for theindicator_id
? If yes, then changevalue_type_id
toindicator_id
or is there a table missing? Thecountry_goal.raw_value
needs araw_value_type
defined somewhere.