<?php

namespace Database\Factories;

use App\Models\Feed;
use App\Models\FeedDelivery;
use App\Models\FeedSchedule;
use Illuminate\Database\Eloquent\Factories\Factory;

class FeedDeliveryFactory extends Factory
{
    protected $model = FeedDelivery::class;

    public function definition(): array
    {
        return [
            'feed_schedule_id' => FeedSchedule::factory(),
            'feed_id' => Feed::factory(),
            'quantity' => $this->faker->numberBetween(1, 50),
            'delivered_at' => $this->faker->dateTimeBetween('-1 week', 'now'),
        ];
    }
}
