<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Proveedor;

class ProveedorFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Proveedor::class;

    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'nombre' => fake()->regexify('[A-Za-z0-9]{255}'),
            'nit' => fake()->regexify('[A-Za-z0-9]{20}'),
            'categoria' => fake()->randomElement(['talleres','tintoreria','proveedor']),
            'telefono' => fake()->regexify('[A-Za-z0-9]{20}'),
            'direccion' => fake()->text(),
        ];
    }
}
