23 lines
563 B
PHP
23 lines
563 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class ReferenceFactor extends SigdModel
|
|
{
|
|
protected $table = 'factor';
|
|
protected $fillable = [
|
|
'id', 'type', 'activity_code', 'factor_source_code', 'value', 'active_status', 'description',
|
|
'row_status', 'created_by', 'updated_by',
|
|
];
|
|
|
|
public function activity()
|
|
{
|
|
return $this->belongsTo(ReferenceActivity::class, 'activity_code', 'code');
|
|
}
|
|
|
|
public function factorSource()
|
|
{
|
|
return $this->belongsTo(ReferenceFactorSource::class, 'factor_source_code', 'code');
|
|
}
|
|
}
|