<?php

namespace App\Models\wilayah;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Wilayah\Kecamatan;

class DesaKelurahan extends Model
{
    use SoftDeletes; 

    protected $table = 'master_desa_kelurahan';

    protected $fillable = [
        'kode',
        'nama',
        'path',
        'kecamatan_id',
    ];
    public function kecamatan() {
        return $this->belongsTo(Kecamatan::class, 'kecamatan_id');
    }
}
