paul-bokelman / cc

ClubCompass client and server monorepo
0 stars 0 forks source link

task: school specific subdomains #23

Closed paul-bokelman closed 5 months ago

paul-bokelman commented 6 months ago

Description

Each school in the ClubCompass system should have their own identifying sub-domain in order for the application to know which data to show. The dynamic subdomain should be parsed as a string and sent as an identifier in every request made to the server. The server should read this identifier and update the database specific records accordingly. Invalid subdomains will display an error message to the user and strip all functionality.

*Will require full restructure of database

Parent: #20

paul-bokelman commented 6 months ago

Challenges:

paul-bokelman commented 6 months ago

Will require changes to db models. What changes allow the information to be indexed well?

paul-bokelman commented 6 months ago
paul-bokelman commented 6 months ago

valid subdomains should be fetched from DB instead of constants in the future.

paul-bokelman commented 6 months ago

Will require changes to db models. What changes allow the information to be indexed well?

  • add school field to all models (except tags)
  • add school model that houses all information for that school
  • add school field to parents of models (club model)

added school model and attached school to each model except tags