refactor: products/materials 테이블 및 관련 코드 삭제
- products, materials, product_components 테이블 삭제 마이그레이션 - FK 제약조건 정리 (orders, order_items, material_receipts, lots) - 관련 Models 삭제: Product, Material, ProductComponent 등 - 관련 Controllers 삭제: ProductController, MaterialController, ProductBomItemController - 관련 Services 삭제: ProductService, MaterialService, ProductBomService - 관련 Requests, Swagger 파일 삭제 - 라우트 정리: /products, /materials 엔드포인트 제거 모든 품목 관리는 /items 엔드포인트로 통합됨 item_id_mappings 테이블에 ID 매핑 보존 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Product;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ProductUpdateRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
// 기본 필드
|
||||
'code' => 'sometimes|string|max:30',
|
||||
'name' => 'sometimes|string|max:100',
|
||||
'unit' => 'nullable|string|max:10',
|
||||
'category_id' => 'sometimes|integer',
|
||||
'product_type' => 'sometimes|string|max:30',
|
||||
'description' => 'nullable|string|max:255',
|
||||
|
||||
// 상태 플래그
|
||||
'is_sellable' => 'nullable|boolean',
|
||||
'is_purchasable' => 'nullable|boolean',
|
||||
'is_producible' => 'nullable|boolean',
|
||||
|
||||
// 하이브리드 구조: 고정 필드
|
||||
'safety_stock' => 'nullable|integer|min:0',
|
||||
'lead_time' => 'nullable|integer|min:0',
|
||||
'is_variable_size' => 'nullable|boolean',
|
||||
'product_category' => 'nullable|string|max:20',
|
||||
'part_type' => 'nullable|string|max:20',
|
||||
|
||||
// 하이브리드 구조: 동적 필드
|
||||
'attributes' => 'nullable|array',
|
||||
'attributes_archive' => 'nullable|array',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user