feat(API): 공정 options JSON 컬럼 마이그레이션

- needs_work_log 개별 컬럼 → options JSON 구조로 전환
- StoreProcessRequest, UpdateProcessRequest 유효성 규칙 갱신
- Process 모델 $fillable, $casts 갱신

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

View File

@@ -28,8 +28,8 @@ class Process extends Model
'department',
'work_log_template',
'document_template_id',
'needs_work_log',
'work_log_template_id',
'options',
'required_workers',
'equipment_info',
'work_steps',
@@ -43,7 +43,7 @@ class Process extends Model
protected $casts = [
'work_steps' => 'array',
'is_active' => 'boolean',
'needs_work_log' => 'boolean',
'options' => 'array',
'required_workers' => 'integer',
];