<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserProvider extends Model
{
    protected $table = 'users_provider';
    
    protected $fillable = [
        'id',
        'meter_price',
        'meter_quantity',
        'lease_tax',
        'sale_commission',
        'dataphone_commission',
        'sale_recovery_commission',
        'contract_date',
        'admission_date',
        'currency_id',
        'user_id',
        'retention',
    ];

    public function currencies()
    {
        return $this->belongsto('App\Currency','currency_id','id');
    }
}
