22 lines
447 B
PHP
22 lines
447 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class ReferenceGwp extends SigdModel
|
|
{
|
|
protected $table = 'gwp';
|
|
protected $fillable = [
|
|
'id', 'ghg_code', 'ar_code', 'value', 'row_status', 'created_by', 'updated_by',
|
|
];
|
|
|
|
public function ghg()
|
|
{
|
|
return $this->belongsTo(ReferenceGhg::class, 'ghg_code', 'code');
|
|
}
|
|
|
|
public function ar()
|
|
{
|
|
return $this->belongsTo(ReferenceAr::class, 'ar_code', 'code');
|
|
}
|
|
}
|