feat(API): 작업지시 공정 연동 개선
- WorkOrder 모델에 process_id 추가 - process 관계 추가 (Process 모델) - 공정별 다중 작업지시 생성 지원 - WorkOrderStoreRequest/UpdateRequest 수정 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -67,4 +67,12 @@ public function items(): BelongsToMany
|
||||
->withTimestamps()
|
||||
->orderByPivot('priority');
|
||||
}
|
||||
|
||||
/**
|
||||
* 작업지시들
|
||||
*/
|
||||
public function workOrders(): HasMany
|
||||
{
|
||||
return $this->hasMany(Production\WorkOrder::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user