<?php

namespace App\Http\Requests\Design\BomTemplate;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'name' => 'required|string|max:100',
            'is_primary' => 'nullable|boolean',
            'notes' => 'nullable|string',
        ];
    }
}
