-- =====================================================
-- ENUMS - Schema Education
-- =====================================================
-- Proyecto: OrbiQuant IA (Trading Platform)
-- Módulo: OQI-002 - Education
-- Especificación: ET-EDU-001-database.md
-- PostgreSQL: 15+
-- =====================================================

-- Nivel de dificultad
CREATE TYPE education.difficulty_level AS ENUM (
  'beginner',
  'intermediate',
  'advanced',
  'expert'
);

-- Estado de curso
CREATE TYPE education.course_status AS ENUM (
  'draft',
  'published',
  'archived'
);

-- Estado de enrollment
CREATE TYPE education.enrollment_status AS ENUM (
  'active',
  'completed',
  'expired',
  'cancelled'
);

-- Tipo de contenido de lección
CREATE TYPE education.lesson_content_type AS ENUM (
  'video',
  'article',
  'interactive',
  'quiz'
);

-- Tipo de pregunta de quiz
CREATE TYPE education.question_type AS ENUM (
  'multiple_choice',
  'true_false',
  'multiple_select',
  'fill_blank',
  'code_challenge'
);

-- Tipo de logro/badge
CREATE TYPE education.achievement_type AS ENUM (
  'course_completion',
  'quiz_perfect_score',
  'streak_milestone',
  'level_up',
  'special_event'
);

COMMENT ON TYPE education.difficulty_level IS 'Nivel de dificultad de cursos';
COMMENT ON TYPE education.course_status IS 'Estado del curso (draft, published, archived)';
COMMENT ON TYPE education.enrollment_status IS 'Estado de la inscripción del usuario';
COMMENT ON TYPE education.lesson_content_type IS 'Tipo de contenido de la lección';
COMMENT ON TYPE education.question_type IS 'Tipo de pregunta en quizzes';
COMMENT ON TYPE education.achievement_type IS 'Tipo de logro/badge';
