<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use ImovelZapAi\Owners\Infrastructure\Persistence\Eloquent\ListingOpportunityModel;
use ImovelZapAi\Owners\Infrastructure\Persistence\Eloquent\ListingPipelineModel;
use ImovelZapAi\Owners\Infrastructure\Persistence\Eloquent\ListingStageModel;
use ImovelZapAi\Owners\Infrastructure\Persistence\Eloquent\OwnerModel;
use ImovelZapAi\Tenancy\Infrastructure\Persistence\Eloquent\TenantModel;

/** @extends Factory<ListingOpportunityModel> */
class ListingOpportunityFactory extends Factory
{
    protected $model = ListingOpportunityModel::class;

    public function definition(): array
    {
        return [
            'tenant_id' => TenantModel::factory(),
            'pipeline_id' => ListingPipelineModel::factory(),
            'stage_id' => ListingStageModel::factory(),
            'owner_id' => OwnerModel::factory(),
            'responsible_user_id' => User::factory(),
            'created_by' => User::factory(),
            'title' => 'Captação '.fake()->firstName(),
            'stage_entered_at' => now(),
            'last_activity_at' => now(),
        ];
    }
}
