29 lines
701 B
PHP
29 lines
701 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
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' => \App\Models\Tenant::factory(),
|
|
'external_id' => fake()->uuid(),
|
|
'display_name' => fake()->words(3, true),
|
|
'policy_type' => 'deviceConfiguration',
|
|
'platform' => 'windows10AndLater',
|
|
'metadata' => ['key' => 'value'],
|
|
];
|
|
}
|
|
}
|