fix : 모델 및 자재관리 수정

This commit is contained in:
2025-08-27 18:13:49 +09:00
parent 58016ea662
commit 028af8fbfa
4 changed files with 28 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ class Product extends Model
protected $fillable = [
'tenant_id','code','name','category_id',
'product_type', // 라벨/분류용
'product_type', // 라벨/분류용
'attributes','description','is_active',
'is_sellable','is_purchasable','is_producible',
'created_by','updated_by'
@@ -30,6 +30,10 @@ class Product extends Model
'is_producible' => 'boolean',
];
protected $hidden = [
'deleted_at',
];
// 분류
public function category() { return $this->belongsTo(Category::class, 'category_id'); }