Files
coolify/database/factories/AuditEventFactory.php
T
Andras Bacsai 1c408fb408 feat(audit): expand event tracking and remove scheduled job monitoring
Add audit levels and record user, OAuth, DNS, notification, and settings changes while removing the obsolete scheduled job monitoring UI and services.
2026-09-21 12:23:42 +02:00

31 lines
686 B
PHP

<?php
namespace Database\Factories;
use App\Models\AuditEvent;
use App\Models\Team;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<AuditEvent>
*/
class AuditEventFactory extends Factory
{
protected $model = AuditEvent::class;
public function definition(): array
{
return [
'team_id' => Team::factory(),
'event' => 'ui.application.updated',
'source' => 'ui',
'action' => 'updated',
'level' => 'info',
'actor_type' => 'user',
'description' => 'Application updated',
'metadata' => [],
'created_at' => now(),
];
}
}