<?php

namespace App\Models;

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

class LoanGuarantor extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = [
        'loan_id',
        'name',
        'phone',
        'email',
        'address',
        'relationship',
        'id_number',
        'id_document_path',
    ];

    // Relationships
    public function loan()
    {
        return $this->belongsTo(Loan::class, 'loan_id');
    }
}
