wmgeolab / GEOWebsite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Separate School model

tecnd opened this issue · comments

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 internally
  • school_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