<?php

namespace Modules\Lpj\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\DenahFactory;

class Denah extends Base
{
    use HasFactory;

    protected $table = 'denah';
    /**
     * The attributes that are mass assignable.
     */
    protected $fillable = ['permohonan_id', 'foto_denah', 'luas', 'jenis_jaminan_id'];

    public function jenisJaminan(){
        return $this->belongsTo(JenisJaminan::class, 'jenis_jaminan_id');
    }

    protected static function newFactory(): DenahFactory
    {
        //return DenahFactory::new();
    }
}
