feat: add AnggotaKeluarga, RiwayatBantuan, PermohonanTransfer models and migrations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
GuavaPopper
2026-06-05 04:52:23 +07:00
parent 9bd5506f4f
commit e907100175
11 changed files with 210 additions and 2 deletions
+11 -1
View File
@@ -14,5 +14,15 @@ class RumahMiskin extends Model
protected $primaryKey = 'id_rumah';
public $incrementing = false;
protected $keyType = 'string';
protected $fillable = ['id_rumah', 'alamat', 'jumlah_kk', 'jumlah_orang', 'latitude', 'longitude'];
protected $fillable = ['id_rumah', 'nama_kk', 'alamat', 'jumlah_kk', 'jumlah_orang', 'latitude', 'longitude', 'pekerjaan', 'pendapatan', 'kondisi_rumah', 'keterangan'];
public function anggota()
{
return $this->hasMany(AnggotaKeluarga::class, 'id_rumah', 'id_rumah');
}
public function bantuan()
{
return $this->hasMany(RiwayatBantuan::class, 'id_rumah', 'id_rumah');
}
}