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

35 lines
615 B
PHP

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