<?php

namespace App\Models\OrderManagement;

use App\Models\LocalizationManagement\Country;
use App\Models\Traits\Activable;
use Axn\EloquentAuthorable\AuthorableTrait;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Nicolaslopezj\Searchable\SearchableTrait;

class ShippingCompanyHasCountry extends Model {
    use HasFactory,Activable;

    protected $table = "order_mgt__shipping_company_has_countries";
    protected $guarded = [];

    /**
     * @return BelongsTo
     */
    public function country(){
        return $this->belongsTo(Country::class, 'country_id');
    }
    /**
     * @return BelongsTo
     */
    public function shippingCompany(){
        return $this->belongsTo(ShippingCompany::class, 'shipping_company_id');
    }


}
