<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Models\BalanceTransaction;
use App\Models\Tenant;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<BalanceTransaction>
 */
class BalanceTransactionFactory extends Factory
{
    protected $model = BalanceTransaction::class;

    /**
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'tenant_id' => Tenant::factory(),
            'type' => BalanceTransaction::TYPE_TOPUP,
            'amount_rub' => '100.00',
            'amount_leads' => 0,
            'balance_rub_after' => '100.00',
            'balance_leads_after' => null,
            'description' => 'Тестовая транзакция',
            'created_at' => now(),
        ];
    }
}
