<?php

namespace App\Http\Requests\Grading;

use App\Http\Requests\ApiFormRequest;

class PlacementLevelRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'student_id' => ['required', 'integer', 'min:1'],
            'school_year' => ['required', 'string', 'max:50'],
            'placement_level' => ['nullable', 'integer', 'min:1', 'max:3'],
        ];
    }
}
