33 lines
835 B
PHP
33 lines
835 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class PhysicianCommission extends BaseModel
|
|
{
|
|
public $timestamps = false;
|
|
use HasFactory;
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'physician_commisssion';
|
|
|
|
protected $primaryKey = 'id';
|
|
|
|
protected $fillable = ['physician_id', 'test_sample_id','commission_rate','partner_price','commission_type', 'lab_id', 'created_at', 'created_by', 'updated_at', 'updated_by','record_status_id'];
|
|
|
|
protected $hidden = ['created_at', 'created_by', 'updated_at', 'updated_by','record_status_id'];
|
|
|
|
public static function boot()
|
|
{
|
|
parent::boot();
|
|
}
|
|
|
|
public function lab(){
|
|
return $this->belongsTo('App\Models\Laboratory', 'lab_id','id');
|
|
}
|
|
|
|
}
|