<?php

namespace Database\Factories;

use App\Models\EggCollection;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\EggCollection>
 */
class EggCollectionFactory extends Factory
{
    protected $model = EggCollection::class;

    public function definition(): array
    {
        $dateTime = $this->faker->dateTimeBetween('-1 month', 'now');

        return [
            'production_date' => $dateTime,
            'total_eggs' => fake()->numberBetween(500, 1500),
            'total_broken_eggs' => fake()->numberBetween(0, 100),
            'notes' => $this->faker->optional(0.4)->sentence(),
        ];
    }
}
