<?php

declare(strict_types=1);

namespace Database\Factories;

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

/** @extends Factory<ImportLog> */
class ImportLogFactory extends Factory
{
    protected $model = ImportLog::class;

    public function definition(): array
    {
        return [
            'tenant_id' => Tenant::factory(),
            'user_id' => User::factory(),
            'filename' => 'leads-export.csv',
            'file_path' => 'imports/1/'.$this->faker->uuid().'.csv',
            'status' => 'pending',
            'entity_type' => 'leads',
            'source_system' => 'crm.bp-gr.ru',
            'dry_run' => false,
        ];
    }
}
