<?php

namespace Database\Factories;

use App\Models\EntraRoleDefinition;
use App\Models\ManagedEnvironment;
use Illuminate\Database\Eloquent\Factories\Factory;

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

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'managed_environment_id' => ManagedEnvironment::factory(),
            'entra_id' => fake()->uuid(),
            'display_name' => fake()->jobTitle(),
            'is_built_in' => false,
            'last_seen_at' => now('UTC'),
        ];
    }
}
