<?php

namespace Database\Factories;

use App\Models\Coupon;
use App\Models\Package;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

class OrderPackageFactory extends Factory
{
    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'is_paid' => fake()->boolean(),
            'status' => fake()->randomElement(["pending","failed","completed"]),
            'pm_type' => fake()->randomElement(["wallet","stripe"]),
            'package_id' => Package::factory(),
            'user_id' => User::factory(),
            'coupon_id' => Coupon::factory(),
        ];
    }
}
