<?php

namespace Database\Factories;

use App\Models\ApprovalWorkflow;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ApprovalStep>
 */
class ApprovalStepFactory extends Factory
{
    public function definition(): array
    {
        return [
            'workflow_id' => ApprovalWorkflow::factory(),
            'order' => fake()->numberBetween(1, 5),
            'name' => fake()->words(2, true),
            'role' => fake()->randomElement(['travel_approver', 'administrator']),
        ];
    }
}
