Files
pterodactyl-panel/app/Models/AuditLog.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

49 lines
922 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Models;
use Illuminate\Database\Eloquent\Attributes\Guarded;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @deprecated - this class will be dropped in a future version, use the activity log
*/
#[Guarded([
'id',
'created_at',
])]
class AuditLog extends Model
{
public const UPDATED_AT = null;
/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
'is_system' => 'bool',
'device' => 'array',
'metadata' => 'array',
];
}
/**
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
/**
* @return BelongsTo<Server, $this>
*/
public function server(): BelongsTo
{
return $this->belongsTo(Server::class);
}
}