<?php

namespace App\Models\Wilayah;

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

class Kecamatan extends Model
{
    use SoftDeletes;  

    protected $table = 'master_kecamatan';

    protected $fillable = [
        'kode',
        'nama',
        'path',
        'kabupaten_kota_id',
    ];

    public function kabupatenKota()
    {
        return $this->belongsTo(KabupatenKota::class, 'kabupaten_kota_id');
    }
}
