feat : 자재관리, 수입관리, 로트관리 모델링 추가
This commit is contained in:
23
app/Models/MaterialInspection.php
Normal file
23
app/Models/MaterialInspection.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user