50 lines
891 B
PHP
50 lines
891 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class OddsQualify extends Model
|
|
{
|
|
protected $table = 'odds_qualify';
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'event_id',
|
|
'sport_id',
|
|
'bookmaker_id',
|
|
'provider_id',
|
|
'offer_id',
|
|
'bmoid',
|
|
'htq',
|
|
'atq',
|
|
'margin',
|
|
'flag',
|
|
'nuh_check',
|
|
'last_check_at',
|
|
'source_updated_at',
|
|
'add_time',
|
|
'updated_at',
|
|
];
|
|
|
|
public function sport()
|
|
{
|
|
return $this->belongsTo(Sport::class);
|
|
}
|
|
|
|
public function bookmaker()
|
|
{
|
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
|
}
|
|
|
|
public function event()
|
|
{
|
|
return $this->belongsTo(Event::class);
|
|
}
|
|
|
|
public function provider()
|
|
{
|
|
return $this->belongsTo(Provider::class);
|
|
}
|
|
}
|