<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Anggota extends Model
{
    use HasFactory;

    protected $fillable = [
        'nama',
        'no_identitas',
        'jenis_anggota',
        'no_ktp',
        'prodi',
        'no_hp',
        'alamat',
        'nama_wali',
        'no_hp_wali',
        'hubungan_wali',
    ];

    public function peminjaman()
    {
        return $this->hasMany(Peminjaman::class);
    }
}
