What: Add an endpoint that returns the prerequisites for a course (required prior courses or knowledge).
Why: Users need to know what they should learn before taking a course. Prerequisites help users follow a logical learning progression.
Scope: Add prerequisites JSONB column to courses table (array of course IDs). Add endpoint that returns prerequisite courses with their completion status for the current user.
Acceptance criteria:
- Returns list of prerequisite courses
- Includes completion status per prerequisite
- Warns if prerequisites are not met
- Prerequisites are configurable by admins
Technical context: src/database/schema.ts:40-59 — courses table. src/modules/courses/course.service.ts — course operations.
What: Add an endpoint that returns the prerequisites for a course (required prior courses or knowledge).
Why: Users need to know what they should learn before taking a course. Prerequisites help users follow a logical learning progression.
Scope: Add
prerequisitesJSONB column to courses table (array of course IDs). Add endpoint that returns prerequisite courses with their completion status for the current user.Acceptance criteria:
Technical context:
src/database/schema.ts:40-59— courses table.src/modules/courses/course.service.ts— course operations.