<?php

namespace Database\Factories;

use App\Models\Contact;
use App\Models\Conversation;
use App\Models\Organization;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Conversation>
 */
class ConversationFactory extends Factory
{
    /**
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'organization_id' => Organization::factory(),
            'contact_id' => Contact::factory(),
            'assigned_user_id' => null,
            'channel' => 'messenger',
            'status' => 'open',
            'human_takeover_at' => null,
            'last_message_at' => now(),
        ];
    }
}
