<?php

namespace Database\Factories;

use App\Models\Action;
use App\Models\Decision;
use App\Models\Segment;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\FieldJobSetting>
 */
class FieldJobSettingFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        $action = Action::factory()->create();
        $decision = Decision::factory()->create();
        $segment = Segment::factory()->create();

        return [
            'segment_id' => $segment->id,
            'initial_decision_id' => $decision->id,
            'assign_decision_id' => $decision->id,
            'complete_decision_id' => $decision->id,
            'cancel_decision_id' => $decision->id,
            'return_segment_id' => $segment->id,
            'queue_segment_id' => $segment->id,
            'action_id' => $action->id,
        ];
    }
}
