<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ConsultUsNumber extends Model
{
    protected $table = 'consult_us_number';
    protected $primaryKey = 'id';
    protected $fillable = [
        'brand_id',
        'number',
        'active_status',
    ];
    protected $hidden = [
        'created_at',
        'updated_at'
    ];

    public function branch() {
        return $this->hasMany('App\Models\ConsultUs', 'id', 'brand_id')->select('id', 'branch');
    }
}
