<?php

namespace App\Models;

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

class SalesComm extends Model
{
    use SoftDeletes;

    protected $fillable = ['sales_id',
            'agent_pcg_rate',
            'agent_com_rate',
            'um_pcg_rate',
            'um_com_rate',
            'broker_pcg_rate',
            'broker_com_rate',
            'ref_pcg_rate',
            'ref_com_rate',
        ];

    protected $table = 'sales_comm';

    public static function boot()
    {
        //parent::boot();
        //Developer::observe(new \App\Observers\UserActionsObserver);
    }

    /*public function sales()
    {
        return $this->belongsTo(Sales::class, 'sales_id');
    }
    public function client()
    {
        return $this->belongsTo(Client::class, 'client_id');
    }*/

}
