feat(WEB): 작업지시/출근부 기능 개선 및 마이그레이션 추가
- 작업지시 우선순위 필드 추가 (priority 마이그레이션) - 수주-작업지시 품목 연동 source_order_item_id 컬럼 추가 - 수주 테이블에 account_code 필드 추가 - 작업지시 StoreRequest/UpdateRequest 우선순위 검증 추가 - WorkOrder 모델 priority fillable 추가 - 출근부 StoreRequest/UpdateRequest 검증 규칙 개선 - Employee Request 검증 규칙 수정 - SaleService/ItemService 수정 - WorkResultService 결과 처리 개선 - BankTransactionService 수정 - routes/api.php 엔드포인트 업데이트 - error.php 에러 메시지 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 논리적 데이터베이스 관계 문서
|
||||
|
||||
> **자동 생성**: 2026-01-14 19:19:09
|
||||
> **자동 생성**: 2026-01-16 14:58:07
|
||||
> **소스**: Eloquent 모델 관계 분석
|
||||
|
||||
## 📊 모델별 관계 현황
|
||||
@@ -254,6 +254,7 @@ ### item_receipts
|
||||
**모델**: `App\Models\Items\ItemReceipt`
|
||||
|
||||
- **item()**: belongsTo → `items`
|
||||
- **creator()**: belongsTo → `users`
|
||||
|
||||
### login_tokens
|
||||
**모델**: `App\Models\LoginToken`
|
||||
@@ -342,6 +343,7 @@ ### orders
|
||||
- **items()**: hasMany → `order_items`
|
||||
- **histories()**: hasMany → `order_histories`
|
||||
- **versions()**: hasMany → `order_versions`
|
||||
- **workOrders()**: hasMany → `work_orders`
|
||||
|
||||
### order_historys
|
||||
**모델**: `App\Models\Orders\OrderHistory`
|
||||
@@ -487,6 +489,8 @@ ### inspections
|
||||
**모델**: `App\Models\Qualitys\Inspection`
|
||||
|
||||
- **item()**: belongsTo → `items`
|
||||
- **inspector()**: belongsTo → `users`
|
||||
- **creator()**: belongsTo → `users`
|
||||
|
||||
### lots
|
||||
**모델**: `App\Models\Qualitys\Lot`
|
||||
@@ -511,6 +515,7 @@ ### quotes
|
||||
- **updater()**: belongsTo → `users`
|
||||
- **items()**: hasMany → `quote_items`
|
||||
- **revisions()**: hasMany → `quote_revisions`
|
||||
- **orders()**: hasMany → `orders`
|
||||
|
||||
### quote_formulas
|
||||
**모델**: `App\Models\Quote\QuoteFormula`
|
||||
|
||||
Reference in New Issue
Block a user