<?php

namespace App\Models\bmmodels;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class B2BRate extends Model
{
    use SoftDeletes;
    protected $connection = 'mysql_bmp';
    //
    protected $table = 'b2b_rate';
    protected $primaryKey = 'rate_id';
    protected $fillable = [
        'rate_id',
        'rate_min',
        'rate_max',
        'rate_charge',
        'rate_level',
        'rate_saf_charges',
        'tariff_id'
    ];
    //b2btariff<> b2brate relationshiop
    public function B2BTariff()
    {
        return $this->belongsTo(B2BTariff::class,'tariff_id','tariff_id');
    }
}