<?php

namespace Database\Factories;

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

class OrderProductFactory extends Factory
{
    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'pm_type' => fake()->randomElement(["wallet","stripe"]),
            'quantity' => fake()->numberBetween(-10000, 10000),
            'total_price' => fake()->randomFloat(0, 0, 9999999999.),
            'is_paid' => fake()->boolean(),
            'status' => fake()->randomElement(["pending","failed","completed"]),
            'product_id' => Product::factory(),
            'user_id' => User::factory(),
            'coupon_id' => Coupon::factory(),
        ];
    }
}
