<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'status' => ['sometimes', 'string', 'in:trial,active,past_due,suspended,cancelled'],
            'plan_id' => ['nullable', 'uuid'],
            'trial_ends_at' => ['nullable', 'date'],
        ];
    }
}
