<?php

namespace App\Models;

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

class Branch extends Model
{
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     * These correspond to the fields used in your seeder.
     *
     * @var array<int, string>
     */
    protected $fillable = [
        'name',
        'code',
        'is_active',
    ];

    /**
     * Get the staff members associated with the branch (optional relationship).
     * Assuming you might have a relationship setup later.
     */
    public function users()
    {
        return $this->hasMany(User::class);
    }
}