mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-24 02:24:11 -05:00
30 lines
655 B
PHP
30 lines
655 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',
|
|
'actor_type' => 'user',
|
|
'description' => 'Application updated',
|
|
'metadata' => [],
|
|
'created_at' => now(),
|
|
];
|
|
}
|
|
}
|