<?php

namespace Database\Factories;

use App\Models\JobCard;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Diagnosis>
 */
class DiagnosisFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'job_card_id' => JobCard::factory(),
            'service_coordinator_id' => User::factory(),
            'diagnostic_findings' => fake()->paragraph(),
            'diagnosis_status' => fake()->randomElement(['in_progress', 'completed', 'pending_approval', 'approved']),
        ];
    }
}
