<?php

namespace App\Models\Claim;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

/**
 * An area/suburb within a council. Selecting an area on a care setting fixes its
 * local authority to the area's council (the "Area → Council MUST be X" rule).
 */
class Area extends Model
{
    protected $fillable = ['council_id', 'name'];

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