31 lines
781 B
PHP
31 lines
781 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Tenant;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Policy>
|
|
*/
|
|
class PolicyFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'tenant_id' => Tenant::factory(),
|
|
'external_id' => fake()->uuid(),
|
|
'display_name' => fake()->words(3, true),
|
|
'policy_type' => 'settingsCatalogPolicy',
|
|
'platform' => fake()->randomElement(['android', 'iOS', 'macOS', 'windows10']),
|
|
'last_synced_at' => now(),
|
|
'metadata' => [],
|
|
];
|
|
}
|
|
}
|