sosial ekonomi

This commit is contained in:
2026-07-02 13:08:54 +07:00
parent 8886629e02
commit 5c1fe22fa0
7 changed files with 722 additions and 4 deletions
@@ -0,0 +1,30 @@
<?php
namespace App\Models\Pertanian;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class PendapatanLuarPertanian extends Model
{
protected $table = 'pendapatan_luar_pertanian';
protected $fillable = [
'uid',
'sosial_ekonomi_id',
'jenis_pekerjaan',
'estimasi_per_bulan',
'created_by',
'updated_by',
'deleted_by',
];
protected $casts = [
'estimasi_per_bulan' => 'integer',
];
public function sosialEkonomi(): BelongsTo
{
return $this->belongsTo(SosialEkonomi::class, 'sosial_ekonomi_id');
}
}