<?php

namespace Database\Factories;

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

/**
 * @extends Factory<CallbackRequest>
 */
class CallbackRequestFactory extends Factory
{
    /**
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'organization_id' => Organization::factory(),
            'conversation_id' => Conversation::factory(),
            'contact_id' => Contact::factory(),
            'assigned_user_id' => null,
            'completed_by_user_id' => null,
            'phone' => fake()->phoneNumber(),
            'status' => 'requested',
            'notes' => null,
            'requested_at' => now(),
            'completed_at' => null,
        ];
    }
}
