aboutsummaryrefslogtreecommitdiffstats
path: root/source/app/Models/AdminLog.php
blob: 906d33889001d8373585bb89a01597661c78aaae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class AdminLog extends Model
{
    
    protected $fillable = [
        'admin_id',
        'action',
        'target_type',
        'target_id',
        'timestamp',
        'severity',
    ];

    public function admin(): BelongsTo
    {
        return $this->belongsTo(Admin::class);
    }
}