42 lines
737 B
PHP
42 lines
737 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Supervisor extends Model
|
|
{
|
|
protected $fillable = [
|
|
'code',
|
|
'command',
|
|
'process',
|
|
'description',
|
|
'sport_id',
|
|
'client_id',
|
|
'bookmaker_id',
|
|
'is_active',
|
|
'has_log',
|
|
'sleep',
|
|
'limit',
|
|
'multi',
|
|
'command',
|
|
'runtime',
|
|
'events',
|
|
];
|
|
|
|
public function sport()
|
|
{
|
|
return $this->belongsTo(Sport::class);
|
|
}
|
|
|
|
public function bookmaker()
|
|
{
|
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id');
|
|
}
|
|
|
|
public function customer()
|
|
{
|
|
return $this->belongsTo(Customer::class, 'client_id');
|
|
}
|
|
}
|