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:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user