rcos / observatory-server

A project tracking dashboard for Rensselaer Center for Open Source
https://rcos.io
MIT License
14 stars 51 forks source link

UserRegistration Routes #794

Closed ratchet12340 closed 5 years ago

ratchet12340 commented 5 years ago

As we are refactoring a lot of the server side to use new models and such, we will look to split the User model into two models:

For reference, this is the preliminary model in mind:

  - user_id (ref)
  - project_id (ref)
  - semester_id (ref)
  - rin (string)
  - credits (string)
  - status (string - student, external mentor, alumnus, RPI faculty, etc.)
  - schedule_conflict (boolean)
  - has_completed_urp_form (boolean)
  - requires_wheelchair_accessible_room (boolean)
  - mentor_preferences ([ref])

For this issue, please make the rudimentary UserRegistration routes. This will entail making the index.js file like before. The following routes should be implemented

We should probably find UserRegistrations not by the ID of the registration, but by the user since it is heavily tied to one particular user (hence the routes above).

aeksco commented 5 years ago

Resolved