<?php

namespace App\Models;

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

class CompanyDealer extends Model
{
    use HasFactory;

    protected $fillable = [
        'company_id',
        'master_dealer_id',
        'sub_dealer_id',
    ];


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