<?php

namespace App\Http\Requests\Api\V1\QrCode;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'scan_id' => ['required', 'integer', 'exists:member_access_logs,id'],
            'note'    => ['nullable', 'string', 'max:1000'],
        ];
    }
}
