<?php

namespace Database\Factories;

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

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

    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'monto_inicial' => fake()->randomFloat(2, 0, 99999999.99),
            'monto_final' => fake()->randomFloat(2, 0, 99999999.99),
            'fecha_apertura' => fake()->dateTime(),
            'fecha_cierre' => fake()->dateTime(),
            'estado' => fake()->randomElement(["Abierta","Cerrada"]),
        ];
    }
}
