feat:홈택스 세금계산서 로컬 저장 테이블 추가
- hometax_invoices 테이블 생성 마이그레이션 - 국세청승인번호 기준 중복 방지 인덱스 - 매출/매입 구분, 금액정보, 거래처정보 저장 - 메모/분류/확인여부 등 자체 관리 필드 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 논리적 데이터베이스 관계 문서
|
||||
|
||||
> **자동 생성**: 2026-01-30 19:54:12
|
||||
> **자동 생성**: 2026-02-03 17:09:34
|
||||
> **소스**: Eloquent 모델 관계 분석
|
||||
|
||||
## 📊 모델별 관계 현황
|
||||
@@ -197,6 +197,7 @@ ### model_versions
|
||||
### documents
|
||||
**모델**: `App\Models\Documents\Document`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
- **creator()**: belongsTo → `users`
|
||||
- **updater()**: belongsTo → `users`
|
||||
- **approvals()**: hasMany → `document_approvals`
|
||||
@@ -223,6 +224,40 @@ ### document_datas
|
||||
|
||||
- **document()**: belongsTo → `documents`
|
||||
|
||||
### document_templates
|
||||
**모델**: `App\Models\Documents\DocumentTemplate`
|
||||
|
||||
- **approvalLines()**: hasMany → `document_template_approval_lines`
|
||||
- **basicFields()**: hasMany → `document_template_basic_fields`
|
||||
- **sections()**: hasMany → `document_template_sections`
|
||||
- **columns()**: hasMany → `document_template_columns`
|
||||
|
||||
### document_template_approval_lines
|
||||
**모델**: `App\Models\Documents\DocumentTemplateApprovalLine`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
|
||||
### document_template_basic_fields
|
||||
**모델**: `App\Models\Documents\DocumentTemplateBasicField`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
|
||||
### document_template_columns
|
||||
**모델**: `App\Models\Documents\DocumentTemplateColumn`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
|
||||
### document_template_sections
|
||||
**모델**: `App\Models\Documents\DocumentTemplateSection`
|
||||
|
||||
- **template()**: belongsTo → `document_templates`
|
||||
- **items()**: hasMany → `document_template_section_items`
|
||||
|
||||
### document_template_section_items
|
||||
**모델**: `App\Models\Documents\DocumentTemplateSectionItem`
|
||||
|
||||
- **section()**: belongsTo → `document_template_sections`
|
||||
|
||||
### estimates
|
||||
**모델**: `App\Models\Estimate\Estimate`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user