<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\company;

class companyBranch extends Model
{
    use HasFactory;

    protected $table = 'company_branch';

    protected $fillable = [
        'company_id',
        'branchName',
        'branchShortCode',
        'wearHouse'
    ];

    public function company()
    {
        return $this->belongsTo(Company::class, 'company_id', 'id');
    }
}
