<?php

namespace Database\Factories;

use App\Models\OrderItem;
use App\Models\VolumeItem;
use Illuminate\Database\Eloquent\Factories\Factory;

class VolumeItemFactory extends Factory
{
    protected $model = VolumeItem::class;

    public function definition(): array
    {
        return [
            'order_item_id' => OrderItem::factory(),
            'quality' => $this->faker->randomElement(['GOOD', 'OK', 'BAD']),
            'volume' => $this->faker->numberBetween(5, 200),
        ];
    }
}
