<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'registration_number' => ['required', 'string', 'max:50'],
            'fishing_license_number' => ['required', 'string', 'max:50'],
            'license_expiry_date' => ['required', 'date'],
            'professional_category' => ['nullable', 'string', 'max:100'],
            'fishing_zone' => ['nullable', 'string', 'max:100'],
            'vessel_owner' => ['nullable', 'string', 'max:100'],
            'dependent_fishermen' => ['nullable', 'integer', 'min:0'],
        ];
    }
}
