style: Laravel Pint 코드 포맷팅 적용

- PSR-12 스타일 가이드 준수
- 302개 파일 스타일 이슈 자동 수정
- 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
2025-11-06 17:45:49 +09:00
parent 48e76432ee
commit cc206fdbed
294 changed files with 4476 additions and 2561 deletions

View File

@@ -8,6 +8,7 @@
class GenerateSimpleRelationships extends Command
{
protected $signature = 'db:generate-simple-relationships';
protected $description = '기본 논리적 관계 문서 생성';
public function handle()
@@ -29,7 +30,7 @@ private function getKnownRelationships(): array
'user_tenants (hasMany)' => 'user_tenants.user_id → users.id',
'user_roles (hasMany)' => 'user_roles.user_id → users.id',
'audit_logs (hasMany)' => 'audit_logs.actor_id → users.id (생성자)',
]
],
],
'tenants' => [
'description' => '테넌트 (회사/조직)',
@@ -39,7 +40,7 @@ private function getKnownRelationships(): array
'departments (hasMany)' => 'departments.tenant_id → tenants.id',
'products (hasMany)' => 'products.tenant_id → tenants.id',
'orders (hasMany)' => 'orders.tenant_id → tenants.id',
]
],
],
'categories' => [
'description' => '제품 카테고리 (계층구조)',
@@ -48,7 +49,7 @@ private function getKnownRelationships(): array
'children (hasMany)' => 'categories.parent_id → categories.id',
'products (hasMany)' => 'products.category_id → categories.id',
'estimates (hasMany)' => 'estimates.model_set_id → categories.id (논리적)',
]
],
],
'products' => [
'description' => '제품 마스터',
@@ -57,7 +58,7 @@ private function getKnownRelationships(): array
'tenant (belongsTo)' => 'products.tenant_id → tenants.id',
'product_components (hasMany)' => 'product_components.parent_product_id → products.id (논리적)',
'order_items (hasMany)' => 'order_items.product_id → products.id',
]
],
],
'departments' => [
'description' => '부서 관리 (계층구조)',
@@ -65,7 +66,7 @@ private function getKnownRelationships(): array
'parent (belongsTo)' => 'departments.parent_id → departments.id (논리적)',
'children (hasMany)' => 'departments.parent_id → departments.id (논리적)',
'tenant (belongsTo)' => 'departments.tenant_id → tenants.id',
]
],
],
'estimates' => [
'description' => '견적서 (스냅샷 데이터)',
@@ -73,14 +74,14 @@ private function getKnownRelationships(): array
'category (belongsTo)' => 'estimates.model_set_id → categories.id (논리적)',
'tenant (belongsTo)' => 'estimates.tenant_id → tenants.id',
'estimate_items (hasMany)' => 'estimate_items.estimate_id → estimates.id (논리적)',
]
],
],
'estimate_items' => [
'description' => '견적 아이템',
'relationships' => [
'estimate (belongsTo)' => 'estimate_items.estimate_id → estimates.id (논리적)',
'tenant (belongsTo)' => 'estimate_items.tenant_id → tenants.id',
]
],
],
'product_components' => [
'description' => 'BOM 구성요소 (통합 참조구조)',
@@ -88,13 +89,13 @@ private function getKnownRelationships(): array
'parent_product (belongsTo)' => 'product_components.parent_product_id → products.id (논리적)',
'material_or_product (polymorphic)' => 'product_components.ref_id → materials.id OR products.id (ref_type 기반)',
'tenant (belongsTo)' => 'product_components.tenant_id → tenants.id',
]
],
],
'classifications' => [
'description' => '분류 코드',
'relationships' => [
'tenant (belongsTo)' => 'classifications.tenant_id → tenants.id (논리적)',
]
],
],
];
}
@@ -145,4 +146,4 @@ private function generateDocument(array $relationships): void
File::put(base_path('LOGICAL_RELATIONSHIPS_SIMPLE.md'), $content);
$this->info('📄 문서 생성: LOGICAL_RELATIONSHIPS_SIMPLE.md');
}
}
}