[DDL] feat: Sprint 2 - Add education schema with 11 tables
## Schema: education (Complete Learning Management System)
### Course Structure (3 tables):
- categories: Hierarchical course categories with materialized paths
- courses: Full course catalog with pricing, access models, gamification
- modules: Course sections/modules with sequencing
### Content (3 tables):
- lessons: Individual lessons (video, article, interactive)
- quizzes: Assessments with configurable rules
- quiz_questions: Question bank with multiple types
### Progress Tracking (3 tables):
- enrollments: User enrollments with progress tracking
- lesson_progress: Detailed per-lesson progress
- quiz_attempts: Quiz attempt history with grading
### Completion (2 tables):
- course_reviews: Student reviews with moderation
- certificates: Verifiable completion certificates
## Features:
- 8 custom ENUMs for education domain
- Multi-tenancy with RLS policies
- Automatic progress calculation triggers
- Quiz grading and statistics
- Certificate generation with verification codes
- Rating aggregation for courses
- Gamification support (XP, badges)
Total: 11 tables, ~95KB of DDL
Roadmap: orchestration/planes/ROADMAP-IMPLEMENTACION-DDL-2026-Q1.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>