35 lines
646 B
PHP
35 lines
646 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class AuthAuditLog extends Model
|
|
{
|
|
protected $table = 'auth_audit_logs';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'event_type',
|
|
'identifier',
|
|
'user_id',
|
|
'ip',
|
|
'user_agent',
|
|
'status',
|
|
'reason',
|
|
'metadata',
|
|
'created_at',
|
|
];
|
|
|
|
protected $casts = [
|
|
'metadata' => 'array',
|
|
'created_at' => 'datetime',
|
|
];
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
} |