feat(API): 작업지시 공정 연동 개선

- WorkOrder 모델에 process_id 추가
- process 관계 추가 (Process 모델)
- 공정별 다중 작업지시 생성 지원
- WorkOrderStoreRequest/UpdateRequest 수정

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-13 19:48:48 +09:00
parent 97f22f9b98
commit fc6d88bd26
5 changed files with 91 additions and 36 deletions

View File

@@ -67,4 +67,12 @@ public function items(): BelongsToMany
->withTimestamps()
->orderByPivot('priority');
}
/**
* 작업지시들
*/
public function workOrders(): HasMany
{
return $this->hasMany(Production\WorkOrder::class);
}
}