T003-T018b: Add workspace_baselines.view/manage capabilities, role mappings, baseline_capture/baseline_compare operation labels, severity summary keys, 5 migrations, 4 models, 4 factories, BaselineScope, BaselineReasonCodes, BaselineProfileStatus badge domain + mapper.
31 lines
797 B
PHP
31 lines
797 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\BaselineSnapshot;
|
|
use App\Models\BaselineSnapshotItem;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<BaselineSnapshotItem>
|
|
*/
|
|
class BaselineSnapshotItemFactory extends Factory
|
|
{
|
|
protected $model = BaselineSnapshotItem::class;
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'baseline_snapshot_id' => BaselineSnapshot::factory(),
|
|
'subject_type' => 'policy',
|
|
'subject_external_id' => fake()->uuid(),
|
|
'policy_type' => 'deviceConfiguration',
|
|
'baseline_hash' => hash('sha256', fake()->uuid()),
|
|
'meta_jsonb' => ['display_name' => fake()->words(3, true)],
|
|
];
|
|
}
|
|
}
|