Files
sam-api/app/Models/Design/BomTemplateItem.php
hskwon cc206fdbed style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수
- 302개 파일 스타일 이슈 자동 수정
- 코드 로직 변경 없음 (포맷팅만)
2025-11-06 17:45:49 +09:00

29 lines
727 B
PHP

<?php
namespace App\Models\Design;
use Illuminate\Database\Eloquent\Model;
class BomTemplateItem extends Model
{
protected $table = 'bom_template_items';
protected $fillable = [
'tenant_id', 'bom_template_id', 'ref_type', 'ref_id', 'qty', 'waste_rate', 'uom_id', 'notes', 'sort_order',
'is_calculated', 'calculation_formula', 'depends_on', 'calculation_config',
];
protected $casts = [
'qty' => 'decimal:6',
'waste_rate' => 'decimal:6',
'is_calculated' => 'boolean',
'depends_on' => 'array',
'calculation_config' => 'array',
];
public function template()
{
return $this->belongsTo(BomTemplate::class, 'bom_template_id');
}
}