32 lines
752 B
PHP
32 lines
752 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\EntraRoleDefinition;
|
|
use App\Models\Tenant;
|
|
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 [
|
|
'tenant_id' => Tenant::factory(),
|
|
'entra_id' => fake()->uuid(),
|
|
'display_name' => fake()->jobTitle(),
|
|
'is_built_in' => false,
|
|
'last_seen_at' => now('UTC'),
|
|
];
|
|
}
|
|
}
|