<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Models\Plan;
use App\Models\PlanPrice;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<PlanPrice>
 */
class PlanPriceFactory extends Factory
{
    protected $model = PlanPrice::class;

    public function definition(): array
    {
        return [
            'plan_id' => Plan::factory(),
            'billing_cycle' => fake()->randomElement(['monthly', 'quarterly', 'semi_annual', 'annual']),
            'price' => fake()->randomFloat(2, 3, 500),
            'stripe_price_id' => null,
        ];
    }
}
