<?php

namespace Database\Factories;

use App\Models\Cliente;
use App\Models\DocumentacionCliente;
use App\Models\Profesional;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\DocumentacionCliente>
 */
class DocumentacionClienteFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = DocumentacionCliente::class;

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        $extension = $this->faker->randomElement(['pdf', 'jpg', 'png']);
        $nombre = $this->faker->word();

        return [
            'nombre' => $nombre,
            'mime_type' => $this->faker->mimeType(),
            'tamanio_bytes' => $this->faker->numberBetween(1024, 10_485_760),
            'extension' => $extension,
            'cliente_id' => Cliente::factory(),
            'profesional_id' => Profesional::factory(),
        ];
    }
}
