<?php

namespace App\Http\Requests\Admin\Services;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class AcademicAdvisingLogRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'student_id' => ['required', 'integer', Rule::exists('students', 'id')],
            'lecturer_id' => ['required', 'integer', Rule::exists('lecturers', 'id')],
            'topic' => ['nullable', 'string', 'max:150'],
            'notes' => ['nullable', 'string'],
            'session_date' => ['nullable', 'date'],
        ];
    }
}
