feat: BP-MES Phase 1 - products/product_components 테이블 확장
- products 테이블에 33개 필드 추가
- 공통: is_active, margin_rate, costs, safety_stock, lead_time, is_variable_size
- FG 전용: product_category, lot_abbreviation, note
- PT 전용: part_type, part_usage, installation_type, assembly_type,
side_spec_width, side_spec_height, assembly_length,
guide_rail_model_type, guide_rail_model
- 절곡품: bending_diagram, bending_details, material, length, bending_length
- 인증: certification_number, start/end_date, specification/certification files
- 동적 확장: options (JSON)
- product_components 테이블에 5개 필드 추가
- 수식 계산: quantity_formula
- 조건부 BOM: condition
- 절곡품: is_bending, bending_diagram, bending_details
- Product/ProductComponent 모델 fillable/casts 업데이트
- 인덱스 추가: is_active, product_category, part_type, part_usage, is_bending
This commit is contained in:
@@ -23,6 +23,13 @@ class ProductComponent extends Model
|
||||
'ref_id',
|
||||
'quantity',
|
||||
'sort_order',
|
||||
// BP-MES: 수식 계산 및 조건부 BOM
|
||||
'quantity_formula',
|
||||
'condition',
|
||||
// BP-MES: 절곡품
|
||||
'is_bending',
|
||||
'bending_diagram',
|
||||
'bending_details',
|
||||
'created_by',
|
||||
'updated_by',
|
||||
];
|
||||
@@ -32,6 +39,9 @@ class ProductComponent extends Model
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'deleted_at' => 'datetime',
|
||||
// BP-MES: 추가 타입 캐스팅
|
||||
'is_bending' => 'boolean',
|
||||
'bending_details' => 'array',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
|
||||
Reference in New Issue
Block a user