<?php

namespace Database\Factories\LeadSource;

use App\Models\LeadSource\LeadSource;
use App\Models\Solicitor\Solicitor;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\LeadSource\LeadSource>
 */
class LeadSourceFactory extends Factory
{
    protected $model = LeadSource::class;

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'slug' => $this->faker->uuid(),
            'display_name' => $this->faker->company(),
            'solicitor_id' => Solicitor::inRandomOrder()->first()->id,
            'status' => 'active'
        ];
    }
}
