export type SupportedLanguage = "python" | "javascript" | "html" | "css" | "sql" | "java" | "c";

export interface CodeQuestion {
  id: number;
  stem: string;
  language: SupportedLanguage;
  starter_code?: string;
  expected_output?: string;
  test_cases?: { input: string; expected_output: string }[];
}

export interface SQLQuestion {
  id: number;
  stem: string;
  schema_description: string;
  expected_result_columns: string[];
  sample_data?: Record<string, unknown>[];
}

export interface CodeExecutionResult {
  stdout: string;
  stderr: string;
  exit_code: number;
  execution_time_ms: number;
  passed: boolean;
}
