feat: products 및 materials 테이블에 is_active 컬럼 추가

- is_active 컬럼 추가 마이그레이션 (default 1)
- Product 모델 fillable 및 casts 업데이트
- Material 모델 fillable 및 casts 업데이트
- Material 모델에 material_type fillable 추가
- ModelTrait의 scopeActive() 메서드 지원
This commit is contained in:
2025-11-17 14:55:31 +09:00
parent 7b8f8791c9
commit 517d5940e9
3 changed files with 51 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ class Product extends Model
'specification_file', 'specification_file_name',
'certification_file', 'certification_file_name',
'certification_number', 'certification_start_date', 'certification_end_date',
'created_by', 'updated_by',
'created_by', 'updated_by', 'is_active',
];
protected $casts = [
@@ -41,6 +41,7 @@ class Product extends Model
'is_purchasable' => 'boolean',
'is_producible' => 'boolean',
'is_variable_size' => 'boolean',
'is_active' => 'boolean',
];
protected $hidden = [