feat: 견적 참조 데이터 API, 수주 전환 로직 개선, 검사기준서 필드 통합
- 견적 참조 데이터(현장명, 부호) 조회 API 추가 (GET /quotes/reference-data) - 수주 전환 시 floor_code/symbol_code를 quoteItem.note에서 파싱하도록 변경 - 수주 전환 시 note에 formula_category 저장 - 검사기준서 프리셋: standard + standard_criteria → text_with_criteria로 통합 - tolerance 컬럼 width 조정 (120px → 85px) - LOGICAL_RELATIONSHIPS.md 문서 갱신 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 논리적 데이터베이스 관계 문서
|
||||
|
||||
> **자동 생성**: 2026-02-03 17:09:34
|
||||
> **자동 생성**: 2026-02-03 17:39:58
|
||||
> **소스**: Eloquent 모델 관계 분석
|
||||
|
||||
## 📊 모델별 관계 현황
|
||||
@@ -224,6 +224,12 @@ ### document_datas
|
||||
|
||||
- **document()**: belongsTo → `documents`
|
||||
|
||||
### document_links
|
||||
**모델**: `App\Models\Documents\DocumentLink`
|
||||
|
||||
- **document()**: belongsTo → `documents`
|
||||
- **linkDefinition()**: belongsTo → `document_template_links`
|
||||
|
||||
### document_templates
|
||||
**모델**: `App\Models\Documents\DocumentTemplate`
|
||||
|
||||
@@ -231,6 +237,8 @@ ### document_templates
|
||||
- **basicFields()**: hasMany → `document_template_basic_fields`
|
||||
- **sections()**: hasMany → `document_template_sections`
|
||||
- **columns()**: hasMany → `document_template_columns`
|
||||
- **sectionFields()**: hasMany → `document_template_section_fields`
|
||||
- **links()**: hasMany → `document_template_links`
|
||||
|
||||
### document_template_approval_lines
|
||||
**모델**: `App\Models\Documents\DocumentTemplateApprovalLine`
|
||||
@@ -247,12 +255,29 @@ ### document_template_columns
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
|
||||
### document_template_links
|
||||
**모델**: `App\Models\Documents\DocumentTemplateLink`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
- **linkValues()**: hasMany → `document_template_link_values`
|
||||
|
||||
### document_template_link_values
|
||||
**모델**: `App\Models\Documents\DocumentTemplateLinkValue`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
- **link()**: belongsTo → `document_template_links`
|
||||
|
||||
### document_template_sections
|
||||
**모델**: `App\Models\Documents\DocumentTemplateSection`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
- **items()**: hasMany → `document_template_section_items`
|
||||
|
||||
### document_template_section_fields
|
||||
**모델**: `App\Models\Documents\DocumentTemplateSectionField`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
|
||||
### document_template_section_items
|
||||
**모델**: `App\Models\Documents\DocumentTemplateSectionItem`
|
||||
|
||||
@@ -511,6 +536,7 @@ ### process
|
||||
|
||||
- **classificationRules()**: hasMany → `process_classification_rules`
|
||||
- **processItems()**: hasMany → `process_items`
|
||||
- **steps()**: hasMany → `process_steps`
|
||||
|
||||
### process_classification_rules
|
||||
**모델**: `App\Models\ProcessClassificationRule`
|
||||
@@ -523,6 +549,11 @@ ### process_items
|
||||
- **process()**: belongsTo → `processes`
|
||||
- **item()**: belongsTo → `items`
|
||||
|
||||
### process_steps
|
||||
**모델**: `App\Models\ProcessStep`
|
||||
|
||||
- **process()**: belongsTo → `processes`
|
||||
|
||||
### work_orders
|
||||
**모델**: `App\Models\Production\WorkOrder`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user