Files
citrus-cms/app/Models/InspectionHistory.php
T
2026-04-28 21:14:25 +03:00

44 lines
805 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class InspectionHistory extends Model
{
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'inspection_history';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'table_name',
'record_id',
'column_name',
'comment',
'file_path',
'file_name',
'file_size',
'user_id',
'ip_address',
];
/**
* Get the user that created the inspection history.
*/
public function user()
{
return $this->belongsTo(User::class);
}
}