feat(API): 문서 템플릿 기본필드 field_key $fillable 추가

- DocumentTemplateBasicField 모델에 field_key 필드 추가
- Mass Assignment 보호로 field_key 저장 누락 방지

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-11 15:58:37 +09:00
parent 8b78d62068
commit a3a4e18e8a
2 changed files with 73 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
* @property int $template_id
* @property string $label 필드 라벨
* @property string $field_type 필드 타입 (text/date/select 등)
* @property string|null $field_key common_codes(doc_template_basic_field) 참조 키
* @property string|null $default_value 기본값
* @property int $sort_order 정렬 순서
*/
@@ -22,6 +23,7 @@ class DocumentTemplateBasicField extends Model
protected $fillable = [
'template_id',
'label',
'field_key',
'field_type',
'default_value',
'sort_order',