<?php

namespace Database\Factories;

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

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

    public function definition(): array
    {
        return [
            'managed_environment_id' => ManagedEnvironment::factory(),
            'entra_id' => fake()->uuid(),
            'display_name' => fake()->company(),
            'group_types' => [],
            'security_enabled' => true,
            'mail_enabled' => false,
            'last_seen_at' => now('UTC'),
        ];
    }
}
