<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

#[Fillable(['user_id', 'name', 'slug', 'address', 'phone', 'active'])]
class Branch extends Model
{
    use SoftDeletes;

    public function client(): BelongsTo
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}
