<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Branch extends Model
{
    protected $table = 'account_branches';

    protected $fillable = ['sector', 'branch_code', 'branch_name'];

    /**
     * Alias for branch_name for compatibility with UserRecord type.
     */
    public function getNameAttribute(): string
    {
        return $this->branch_name ?? '';
    }
}
