Files
nuhodds_fi4/app/Models/Odds2way.php
T
2026-10-04 15:25:03 +02:00

51 lines
852 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Odds2way extends Model
{
protected $table = 'odds_2ways';
protected $casts = [
'h2w' => 'float',
'a2w' => 'float',
];
protected $fillable = [
'id',
'event_id',
'sport_id',
'bookmaker_id',
'provider_id',
'offer_id',
'bmoid',
'h2w',
'a2w',
'margin',
'flags',
'nuh_check',
];
public function sport()
{
return $this->belongsTo(Sport::class);
}
public function bookmaker()
{
return $this->belongsTo(Bookmaker::class);
}
public function event()
{
return $this->belongsTo(Event::class);
}
public function provider()
{
return $this->belongsTo(Provider::class);
}
}