<?php

namespace App\Http\Requests\Exams;

use App\Http\Requests\ApiFormRequest;

class ExamDraftTeacherStoreRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'class_section_id' => ['required', 'integer', 'min:1'],
            'exam_type' => ['nullable', 'string', 'max:50'],
            'description' => ['nullable', 'string'],
            'draft_file' => ['nullable', 'file', 'mimes:doc,docx', 'max:12288'],
        ];
    }
}
