export const ClassMethods = ['online', 'offline', 'hybrid'] as const;

export type ClassMethod = (typeof ClassMethods)[number];

export const ClassMethodLabels: Record<ClassMethod, string> = {
    online: 'Daring',
    offline: 'Luring',
    hybrid: 'Hybrid',
};

export type CourseClass = {
    id: number;
    course_id: number;
    course: {
        id: number;
        code: string;
        name: string;
        department_id: number;
        semester_number: number | null;
    } | null;
    lecturer_id: number;
    lecturer: {
        id: number;
        lecturer_number: string;
        department_id: number;
        user: { profile: { full_name: string } | null } | null;
    } | null;
    academic_term_id: number;
    academic_term: {
        id: number;
        academic_year: string;
        semester: string;
    } | null;
    method: ClassMethod | null;
    enrollments_count: number;
    created_at: string;
    updated_at: string;
};
