monev sampai target
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Program;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
use App\Models\Program\Aktivitas;
|
||||
|
||||
class Target extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'program_target';
|
||||
|
||||
protected $fillable = [
|
||||
"variabel",
|
||||
"tipe",
|
||||
"target_integer",
|
||||
"target_float",
|
||||
"target_boolean",
|
||||
"baseline_integer",
|
||||
"baseline_float",
|
||||
"baseline_boolean",
|
||||
"realisasi_integer",
|
||||
"realisasi_float",
|
||||
"realisasi_boolean",
|
||||
"aktivitas_id",
|
||||
];
|
||||
|
||||
public function aktivitas(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Aktivitas::class, 'aktivitas_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user