Files
sam-api/app/Models/Commons/CategoryLog.php
hskwon cc206fdbed style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수
- 302개 파일 스타일 이슈 자동 수정
- 코드 로직 변경 없음 (포맷팅만)
2025-11-06 17:45:49 +09:00

33 lines
708 B
PHP

<?php
namespace App\Models\Commons;
use App\Traits\BelongsToTenant;
use App\Traits\ModelTrait;
use Illuminate\Database\Eloquent\Model;
class CategoryLog extends Model
{
use BelongsToTenant, ModelTrait;
protected $table = 'category_logs';
public $timestamps = false; // changed_at 컬럼 단일 사용
protected $fillable = [
'category_id', 'tenant_id', 'action', 'changed_by', 'changed_at',
'before_json', 'after_json', 'remarks',
];
protected $casts = [
'changed_at' => 'datetime',
'before_json' => 'array',
'after_json' => 'array',
];
public function category()
{
return $this->belongsTo(Category::class);
}
}