Separate School model
tecnd opened this issue · comments
Kerry Wang commented
Records represent an individual observation of a school, and a school can have multiple observations (e.g. different year data, different sessions). The School model should be split into two models: a School model and a SchoolSession model. Model details below.
School:
id
Primary key, used by database internallyschool_id
School ID as assigned by country. There is a chance two schools from two different countries will be assigned the same ID by their respective countries, hence not unique and not used as the primary key.country
school_name
sector
school_level
municipality
zone
address
lon
lat
SchoolSession:
id
Primary key.school
Foreign key, points to the School this session belongs to.session
data_year
total_enrollment
test_score
gender_ratio