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:
@@ -24,6 +24,7 @@ class Material extends Model
|
||||
'item_name',
|
||||
'specification',
|
||||
'material_code',
|
||||
'material_type',
|
||||
'unit',
|
||||
'is_inspection',
|
||||
'search_tag',
|
||||
@@ -32,11 +33,13 @@ class Material extends Model
|
||||
'options',
|
||||
'created_by',
|
||||
'updated_by',
|
||||
'is_active',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'attributes' => 'array',
|
||||
'options' => 'array',
|
||||
'is_active' => 'boolean',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
|
||||
Reference in New Issue
Block a user