25 lines
615 B
PHP
25 lines
615 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class ActivityForm extends SigdModel
|
|
{
|
|
protected $table = 'form';
|
|
protected $fillable = [
|
|
'id', 'sector', 'form_code', 'inventory_year', 'verification_status', 'verified_at', 'verified_by',
|
|
'validation_status', 'validated_at', 'validated_by', 'lock_status',
|
|
'row_status', 'created_by', 'updated_by',
|
|
'agency_id',
|
|
];
|
|
|
|
public function form()
|
|
{
|
|
return $this->belongsTo(SettingForm::class, 'form_code', 'code');
|
|
}
|
|
|
|
public function agency()
|
|
{
|
|
return $this->belongsTo(Agency::class, 'agency_id', 'id');
|
|
}
|
|
}
|