wip
This commit is contained in:
1 parent
4f9125ef12
commit
61418c8cee
47 files changed
+726
-221
No files matched your search
@@ -98,14 +98,14 @@ class Event extends Model
|
||||
return $this->hasMany(OddsGgng::class);
|
||||
}
|
||||
|
||||
public function odds_handicap()
|
||||
public function odds_point()
|
||||
{
|
||||
return $this->hasMany(OddsHandicap::class);
|
||||
return $this->hasMany(OddsPoint::class);
|
||||
}
|
||||
|
||||
public function odds_handicap_q1()
|
||||
public function odds_point_q1()
|
||||
{
|
||||
return $this->hasMany(OddsHandicapQ1::class);
|
||||
return $this->hasMany(OddsPointQ1::class);
|
||||
}
|
||||
|
||||
public function odds_total()
|
||||
|
||||
@@ -23,6 +23,7 @@ class Odds2way extends Model
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
'starttime',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
|
||||
@@ -22,6 +22,7 @@ class Odds3way extends Model
|
||||
'margin',
|
||||
'flag',
|
||||
'nuh_check',
|
||||
'starttime',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Odds3wayHt extends Model
|
||||
{
|
||||
protected $table = 'odds_3ways';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'event_id',
|
||||
'sport_id',
|
||||
'bookmaker_id',
|
||||
'provider_id',
|
||||
'offer_id',
|
||||
'bmoid',
|
||||
'h3w',
|
||||
'd3w',
|
||||
'a3w',
|
||||
'margin',
|
||||
'flag',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function event()
|
||||
{
|
||||
return $this->belongsTo(Event::class);
|
||||
}
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class);
|
||||
}
|
||||
|
||||
public function provider()
|
||||
{
|
||||
return $this->belongsTo(Provider::class);
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class OddsHandicapQ1 extends Model
|
||||
class OddsPointQ1 extends Model
|
||||
{
|
||||
protected $table = 'odds_handicaps_q1';
|
||||
protected $table = 'odds_points_q1';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class OddsPoint extends Model
|
||||
{
|
||||
protected $table = 'odds_points';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'event_id',
|
||||
'sport_id',
|
||||
'bookmaker_id',
|
||||
'provider_id',
|
||||
'offer_id',
|
||||
'bmoid',
|
||||
'home',
|
||||
'away',
|
||||
'handicap',
|
||||
'margin',
|
||||
'flag',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
'starttime',
|
||||
];
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class OddsHandicap extends Model
|
||||
class OddsPointHt extends Model
|
||||
{
|
||||
protected $table = 'odds_handicaps';
|
||||
protected $table = 'odds_points';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class OddsTotalHt extends Model
|
||||
{
|
||||
protected $table = 'odds_totals';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'event_id',
|
||||
'sport_id',
|
||||
'bookmaker_id',
|
||||
'provider_id',
|
||||
'offer_id',
|
||||
'bmoid',
|
||||
'over',
|
||||
'under',
|
||||
'total',
|
||||
'margin',
|
||||
'flag',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_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);
|
||||
}
|
||||
}
|
||||
@@ -21,13 +21,9 @@ class Supervisor extends Model
|
||||
'days_to',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'grap_days_pattern' => 'json',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
return $this->belongsTo(Sport::class)->where('is_active', 1);
|
||||
}
|
||||
|
||||
public function provider()
|
||||
|
||||
Reference in new issue
Block a user