export const DaysOfWeek = [
    'Monday',
    'Tuesday',
    'Wednesday',
    'Thursday',
    'Friday',
    'Saturday',
    'Sunday',
] as const;

export type DayOfWeek = (typeof DaysOfWeek)[number];

export const DayOfWeekLabels: Record<DayOfWeek, string> = {
    Monday: 'Senin',
    Tuesday: 'Selasa',
    Wednesday: 'Rabu',
    Thursday: 'Kamis',
    Friday: 'Jumat',
    Saturday: 'Sabtu',
    Sunday: 'Minggu',
};

export type Schedule = {
    id: number;
    course_class_id: number;
    course_class: {
        id: number;
        method: string | null;
        course: {
            id: number;
            code: string;
            name: string;
            department: { id: number; name: string } | null;
        } | null;
        lecturer: {
            id: number;
            user: { profile: { full_name: string } | null } | null;
        } | null;
    } | null;
    day_of_week: string | null;
    start_time: string | null;
    end_time: string | null;
    room: string | null;
    online_link: string | null;
    created_at: string;
    updated_at: string;
};
