<?php

namespace App\Models\Geo;

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

use App\Models\Geo\Area;

class AreaInfo extends Model
{
    use HasFactory;

    protected $table = "area_infos";

    protected $hidden = [
        'is_deleted',
        'created_at',
        'updated_at',
        'deleted_at',
    ];

    // RELASI
    public function area()
    {
        return $this->belongsTo(Area::class, 'area_id', 'id');
    }
}
