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

31 lines
674 B
PHP

<?php
namespace App\Models\Commons;
use App\Traits\BelongsToTenant;
use App\Traits\ModelTrait;
use Illuminate\Database\Eloquent\Model;
class CategoryTemplate extends Model
{
use BelongsToTenant, ModelTrait;
protected $table = 'category_templates';
protected $fillable = [
'tenant_id', 'category_id', 'version_no', 'template_json', 'applied_at',
'created_by', 'updated_by', 'deleted_by', 'remarks',
];
protected $casts = [
'version_no' => 'integer',
'template_json' => 'array',
'applied_at' => 'datetime',
];
public function category()
{
return $this->belongsTo(Category::class);
}
}