refactor: [shipment] 배차 정보를 shipment_vehicle_dispatches로 일원화

- shipments 테이블에서 배차 관련 컬럼 8개 삭제 (vehicle_no, driver_name 등)
- shipping 전환 시 배차 정보를 vehicle_dispatches에 저장
- delivery_method ENUM → VARCHAR 변경 (common_codes 기반)
- VehicleDispatchService에 수주/작성자 관계 로딩 추가
- Swagger delivery_method enum 제약 제거

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-18 23:15:47 +09:00
parent 5e52293454
commit 6563d977ee
8 changed files with 87 additions and 73 deletions

View File

@@ -41,17 +41,6 @@ public function rules(): array
'loading_manager' => 'nullable|string|max:50',
'loading_time' => 'nullable|date',
// 물류/배차 정보
'logistics_company' => 'nullable|string|max:50',
'vehicle_tonnage' => 'nullable|string|max:20',
'shipping_cost' => 'nullable|numeric|min:0',
// 차량/운전자 정보
'vehicle_no' => 'nullable|string|max:20',
'driver_name' => 'nullable|string|max:50',
'driver_contact' => 'nullable|string|max:50',
'expected_arrival' => 'nullable|date',
// 기타
'remarks' => 'nullable|string',