Files
nuhodds_fi4/app/Models/Supervisor.php
T
2025-08-21 17:59:39 +02:00

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');
}
}