<?php

namespace Database\Factories;

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

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

    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'producto_id' => Producto::factory(),
            'stock_actual' => fake()->numberBetween(-10000, 10000),
            'stock_minimo' => fake()->numberBetween(-10000, 10000),
            'ubicacion' => fake()->regexify('[A-Za-z0-9]{255}'),
        ];
    }
}
