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
Add resource type selection to the upload form and store it in the database. The PRD specifies four resource types: Lecture Notes, Study Guide, Class Overview, and Link. Each type earns different credits upon approval.
Step-by-Step Instructions:
Check if database column exists:
-- Run this query in Supabase SQL editorSELECT column_name, data_type
FROMinformation_schema.columnsWHERE table_name ='resources'AND column_name ='resource_type';
Feature
Add resource type selection to the upload form and store it in the database. The PRD specifies four resource types: Lecture Notes, Study Guide, Class Overview, and Link. Each type earns different credits upon approval.
Step-by-Step Instructions:
Check if database column exists:
Add resource type dropdown to upload form:
Send resource type to API:
resource_typeto FormData when submitting uploadUpdate upload API to accept and validate resource type:
resource_typefrom FormDataTest:
Acceptance criteria
/api/uploadendpoint in FormDataresources.resource_typecolumn