<?php

namespace App\Http\Requests\Promotions;

use App\Http\Requests\ApiFormRequest;

class UpsertLevelProgressionRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'current_level_id' => ['nullable', 'integer', 'min:1'],
            'current_level_name' => ['required', 'string', 'max:100'],
            'next_level_id' => ['nullable', 'integer', 'min:1'],
            'next_level_name' => ['nullable', 'string', 'max:100'],
            'order_index' => ['nullable', 'integer', 'min:0', 'max:65535'],
            'is_terminal' => ['nullable', 'boolean'],
            'is_active' => ['nullable', 'boolean'],
            'notes' => ['nullable', 'string', 'max:500'],
        ];
    }
}
