<?php

namespace App\Http\Requests\Support;

use App\Http\Requests\ApiFormRequest;

class SupportRequestIndexRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'page' => ['nullable', 'integer', 'min:1'],
            'per_page' => ['nullable', 'integer', 'min:1', 'max:100'],
            'status' => ['nullable', 'string', 'max:25'],
            'user_id' => ['nullable', 'integer', 'min:1'],
            'sort_by' => ['nullable', 'in:created_at,status,subject'],
            'sort_dir' => ['nullable', 'in:asc,desc'],
        ];
    }
}
