<?php

namespace App\Models\bmmodels;

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

class Rate extends Model
{
    use SoftDeletes;
    protected $connection = 'mysql_bmp';
    //
    protected $table = 'rates';
    protected $fillable = [
        'rate_id',
        'rate_min',
        'rate_max',
        'rate_charge',
        'rate_saf_charges',
        'customer_cust_id'
    ];
    //Rate customer relationship
    public function RateCustomer()
    {
        return $this->belongsTo(Customer::class, 'customer_cust_id','cust_id');
    }
}
