Files
sam-manage/app/Models/Items/Item.php
권혁성 b14b991d1c feat:검사 기준서 동적 필드 + 자동 하이라이트 + 미리보기 개선
- 문서 작성 시 연결 품목 규격(두께/너비/길이) 기반 자동 하이라이트
- 미리보기에서 field_values 동적 필드 데이터 정상 표시
- DocumentTemplateController에서 field_values 직렬화 추가
- DocumentController에 linkedItemSpecs 조회 로직 추가
- Item 모델 attributes JSON cast 추가

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 09:26:13 +09:00

27 lines
445 B
PHP

<?php
namespace App\Models\Items;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Item extends Model
{
use SoftDeletes;
protected $fillable = [
'tenant_id',
'item_type',
'item_category',
'code',
'name',
'unit',
'is_active',
];
protected $casts = [
'is_active' => 'boolean',
'attributes' => 'array',
];
}