export const SubmissionStatuses = ['not_submitted', 'submitted'] as const;

export type SubmissionStatus = (typeof SubmissionStatuses)[number];

export const SubmissionStatusLabels: Record<SubmissionStatus, string> = {
    not_submitted: 'Belum Mengumpulkan',
    submitted: 'Sudah Mengumpulkan',
};

export type SubmissionStudent = {
    id: number;
    student_number: string;
    department: { id: number; name: string } | null;
    user: { profile: { full_name: string } | null } | null;
};

export type Submission = {
    id: number;
    assignment_id: number;
    student_id: number;
    student: SubmissionStudent | null;
    notes: string | null;
    status: SubmissionStatus | null;
    submitted_at: string | null;
    score: string | null;
    lecturer_feedback: string | null;
    file_url: string | null;
    file_name: string | null;
    created_at: string;
    updated_at: string;
};
