You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PUT /mentor/:id, POST /mentors receives mentor.tags = [string]
tags are processed separately and stored into tags_assigned table; if tag didn't exist in tags table yet, create tag in tags table, then assign via assigned_to
GET mentor returns mentor.tags = [string] (agggregated from tags_assigned table)
To get tags for mentor (backend): select * from tags_assigned where assigned_id=:id (mentor_id) and assigned_to="mentor" (enum: mentor, study_buddy, project); (+join tags table)
PUT /mentor/:id, POST /mentors receives mentor.tags = [string]
tags are processed separately and stored into tags_assigned table; if tag didn't exist in tags table yet, create tag in tags table, then assign via assigned_to
GET mentor returns mentor.tags = [string] (agggregated from tags_assigned table)
To get tags for mentor (backend): select * from tags_assigned where assigned_id=:id (mentor_id) and assigned_to="mentor" (enum: mentor, study_buddy, project); (+join tags table)