<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use ImovelZapAi\Proposals\Domain\Enums\ProposalPurpose;
use ImovelZapAi\Proposals\Infrastructure\Persistence\Eloquent\ProposalTemplateModel;
use ImovelZapAi\Tenancy\Infrastructure\Persistence\Eloquent\TenantModel;

/** @extends Factory<ProposalTemplateModel> */
class ProposalTemplateFactory extends Factory
{
    protected $model = ProposalTemplateModel::class;

    public function definition(): array
    {
        return [
            'tenant_id' => TenantModel::factory(),
            'name' => 'Template '.fake()->word(),
            'purpose' => ProposalPurpose::Sale,
            'body_html' => '<p>Olá {{client_name}} — valor {{amount}}</p>',
            'is_default' => false,
            'created_by' => User::factory(),
        ];
    }
}
