<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use ImovelZapAi\Sales\Infrastructure\Persistence\Eloquent\DealModel;
use ImovelZapAi\Sales\Infrastructure\Persistence\Eloquent\DealNoteModel;
use ImovelZapAi\Tenancy\Infrastructure\Persistence\Eloquent\TenantModel;

/** @extends Factory<DealNoteModel> */
class DealNoteFactory extends Factory
{
    protected $model = DealNoteModel::class;

    public function definition(): array
    {
        return [
            'tenant_id' => TenantModel::factory(),
            'deal_id' => DealModel::factory(),
            'author_user_id' => User::factory(),
            'body' => fake()->paragraph(),
        ];
    }
}
