<?php

namespace App\Models;

use App\Models\Concerns\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class LoanGuarantor extends Model
{
    use BelongsToTenant;

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

    public function loan(): BelongsTo
    {
        return $this->belongsTo(Loan::class);
    }
}
