26 lines
499 B
PHP
26 lines
499 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
|
|
|
class ActivityForm extends SigdModel
|
|
{
|
|
use HasUuids;
|
|
protected $table = 'form';
|
|
|
|
public $incrementing = false;
|
|
protected $keyType = 'string';
|
|
|
|
protected $guarded = [];
|
|
|
|
public function form()
|
|
{
|
|
return $this->belongsTo(SettingForm::class, 'form_code', 'code');
|
|
}
|
|
|
|
public function agency()
|
|
{
|
|
return $this->belongsTo(Agency::class, 'agency_id', 'id');
|
|
}
|
|
}
|