53 lines
893 B
PHP
53 lines
893 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class OddsTq extends Model
|
|
{
|
|
protected $table = 'odds_tq';
|
|
|
|
protected $casts = [
|
|
'htq' => 'float',
|
|
'atq' => 'float',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'event_id',
|
|
'sport_id',
|
|
'bookmaker_id',
|
|
'provider_id',
|
|
'offer_id',
|
|
'bmoid',
|
|
'htq',
|
|
'atq',
|
|
'margin',
|
|
'flags',
|
|
'nuh_check',
|
|
'checked_at',
|
|
'oddchange_at',
|
|
];
|
|
|
|
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);
|
|
}
|
|
}
|