PikaCourse / homiehomie

3 stars 0 forks source link

Create `School` model to store information about universities #10

Open William-An opened 3 years ago

William-An commented 3 years ago

Create a separate school table in the database and reference course meta instance to it via ForeignKey.

The reasons for doing so include:

  1. Support school search upon user registration/fill up the profile and we can just query the db table
  2. Provide certain meta information about the school that help course scheduling.
    1. School time zone

Todo

  1. [ ] Add school model in scheduler app
  2. [ ] Add school_short model to support abbr name of school search?
  3. [ ] Add viewset to allow for searching school, should be readonly
  4. [ ] Add campus field to support different campus of the same university