2025-07-28 18:47:00 +09:00
|
|
|
<?php
|
|
|
|
|
|
2025-07-29 13:00:25 +09:00
|
|
|
namespace App\Models\Materials;
|
2025-07-28 18:47:00 +09:00
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
2025-08-21 09:50:15 +09:00
|
|
|
/**
|
|
|
|
|
* @mixin IdeHelperMaterialInspection
|
|
|
|
|
*/
|
2025-07-28 18:47:00 +09:00
|
|
|
class MaterialInspection extends Model
|
|
|
|
|
{
|
|
|
|
|
use SoftDeletes;
|
|
|
|
|
|
|
|
|
|
// 입고 내역
|
|
|
|
|
public function receipt()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(MaterialReceipt::class, 'receipt_id');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 검사 항목
|
|
|
|
|
public function items()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasMany(MaterialInspectionItem::class, 'inspection_id');
|
|
|
|
|
}
|
|
|
|
|
}
|