31 lines
635 B
PHP
31 lines
635 B
PHP
<?php
|
|
|
|
namespace Modules\IndustrialEngineering\Models;
|
|
|
|
use App\User;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class LessonsLearned extends Model
|
|
{
|
|
use BelongsToBusiness;
|
|
|
|
protected $table = 'ie_lessons_learned';
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
public function researchProject()
|
|
{
|
|
return $this->belongsTo(ResearchProject::class, 'research_project_id');
|
|
}
|
|
|
|
public function installedAsset()
|
|
{
|
|
return $this->belongsTo(CustomerInstalledAsset::class, 'installed_asset_id');
|
|
}
|
|
|
|
public function documentedBy()
|
|
{
|
|
return $this->belongsTo(User::class, 'documented_by');
|
|
}
|
|
}
|