import type dayjs from 'dayjs';

export interface ExamItem {
  id: number;
  examType: string;
  examName: string;
  subject: string;
  examDate: string;
  classId: number;
  className: string;
  status: 'active' | 'archived';
  totalStudents: number;
  enteredScores: number;
}

export interface ExamFormValues {
  examType: string;
  examName: string;
  subject: string;
  examDate: dayjs.Dayjs;
  classId: number;
}

export interface ClassOption {
  id: number;
  name: string;
  isArchived: boolean;
}

export const EXAM_TYPE_OPTIONS = [
  { value: '月考', label: '月考' },
  { value: '周测', label: '周测' },
  { value: '期中考试', label: '期中考试' },
  { value: '期末考试', label: '期末考试' },
  { value: '模拟考试', label: '模拟考试' },
  { value: '入学测试', label: '入学测试' },
];
