feat(API): 견적-주문 연동 필드 및 마이그레이션 추가

- Order, OrderItem 모델에 견적 연동 필드 추가
- Quote 모델에 order_id 관계 추가
- QuoteService 개선
- 관련 마이그레이션 파일 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-05 15:56:46 +09:00
parent 02e268e49a
commit 1410cf725a
9 changed files with 566 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
# 논리적 데이터베이스 관계 문서
> **자동 생성**: 2026-01-02 11:42:39
> **자동 생성**: 2026-01-05 14:14:22
> **소스**: Eloquent 모델 관계 분석
## 📊 모델별 관계 현황
@@ -297,6 +297,7 @@ ### client_groups
### orders
**모델**: `App\Models\Orders\Order`
- **quote()**: belongsTo → `quotes`
- **item()**: belongsTo → `items`
- **items()**: hasMany → `order_items`
- **histories()**: hasMany → `order_histories`
@@ -312,6 +313,8 @@ ### order_items
- **order()**: belongsTo → `orders`
- **item()**: belongsTo → `items`
- **quote()**: belongsTo → `quotes`
- **quoteItem()**: belongsTo → `quote_items`
- **components()**: hasMany → `order_item_components`
### order_item_components