export interface ExamSession {
  id: number;
  user_id: number;
  exam_id: number;
  assignment_id?: number;
  started_at: string;
  completed_at?: string;
  status: "in_progress" | "completed" | "abandoned";
  score?: number;
}

export interface ExamStat {
  id: number;
  session_id: number;
  exercise_index: number;
  answer: string;
  correct: boolean;
  time_spent: number;
  topic_id?: number;
  subject_id?: number;
}

export interface Evaluation {
  id: number;
  session_id: number;
  module: string;
  scores: Record<string, number>;
  feedback: string;
  overall_score: number;
  ai_detection?: AiDetectionResult;
}

export interface AiDetectionResult {
  overall_probability: number;
  sentences: { text: string; probability: number }[];
}

export interface StatisticalData {
  entity_id: number;
  entity_name: string;
  date_range: { start: string; end: string };
  assignments: { total: number; completed: number; avg_score: number };
  progress: { students_active: number; avg_improvement: number };
}
