<?php

namespace Database\Factories;

use App\Models\RawMaterial;
use App\Models\RawMaterialPrice;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<RawMaterialPrice>
 */
class RawMaterialPriceFactory extends Factory
{
    public function definition(): array
    {
        return [
            'raw_material_id' => RawMaterial::factory(),
            'variant' => fake()->colorName(),
            'price' => fake()->numberBetween(10_000, 200_000),
            'stock' => fake()->randomFloat(4, 1, 250),
        ];
    }
}
