<?php

declare(strict_types=1);

namespace Database\Factories;

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

/** @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\AccountCredit> */
class AccountCreditFactory extends Factory
{
    /** @return array<string, mixed> */
    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'amount' => fake()->randomFloat(2, 5, 200),
            'currency' => 'USD',
            'type' => fake()->randomElement(['credit_note', 'admin_adjustment', 'refund', 'referral']),
            'description' => fake()->sentence(),
        ];
    }
}
