<?php

namespace App\Http\Requests\Leave;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'user_id' => 'required|integer|exists:users,id',
            'year' => 'required|integer|min:2020|max:2099',
            'total_days' => 'required|numeric|min:0|max:365',
        ];
    }
}
