<?php

namespace Database\Factories;

use App\Enums\PriceType;
use App\Models\ProductPrice;
use App\Models\ProductVariant;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<ProductPrice>
 */
class ProductPriceFactory extends Factory
{
    public function definition(): array
    {
        return [
            'variant_id' => ProductVariant::factory(),
            'type' => fake()->randomElement(PriceType::cases()),
            'price' => fake()->numberBetween(50000, 500000),
        ];
    }
}
