chore: commit current workspace changes
This commit is contained in:
35
app/Models/AuthAuditLog.php
Normal file
35
app/Models/AuthAuditLog.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user