db and query optimization compl
This commit is contained in:
1 parent
9d2a8ce628
commit
40d97327d4
24 files changed
+145
-126
No files matched your search
@@ -67,4 +67,59 @@ class Event extends Model
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
}
|
||||
|
||||
public function odds_2way()
|
||||
{
|
||||
return $this->hasMany(Odds2way::class);
|
||||
}
|
||||
|
||||
public function odds_2way_s1()
|
||||
{
|
||||
return $this->hasMany(Odds2wayS1::class);
|
||||
}
|
||||
|
||||
public function odds_3way()
|
||||
{
|
||||
return $this->hasMany(Odds3way::class);
|
||||
}
|
||||
|
||||
public function odds_dc()
|
||||
{
|
||||
return $this->hasMany(OddsDc::class);
|
||||
}
|
||||
|
||||
public function odds_dnb()
|
||||
{
|
||||
return $this->hasMany(OddsDnb::class);
|
||||
}
|
||||
|
||||
public function odds_ggng()
|
||||
{
|
||||
return $this->hasMany(OddsGgng::class);
|
||||
}
|
||||
|
||||
public function odds_handicap()
|
||||
{
|
||||
return $this->hasMany(OddsHandicap::class);
|
||||
}
|
||||
|
||||
public function odds_handicap_q1()
|
||||
{
|
||||
return $this->hasMany(OddsHandicapQ1::class);
|
||||
}
|
||||
|
||||
public function odds_total()
|
||||
{
|
||||
return $this->hasMany(OddsTotal::class);
|
||||
}
|
||||
|
||||
public function odds_total_q1()
|
||||
{
|
||||
return $this->hasMany(OddsTotalQ1::class);
|
||||
}
|
||||
|
||||
public function odds_tq()
|
||||
{
|
||||
return $this->hasMany(OddsTq::class);
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class OddsQualify extends Model
|
||||
class OddsTq extends Model
|
||||
{
|
||||
protected $table = 'odds_qualify';
|
||||
protected $table = 'odds_tq';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
Reference in new issue
Block a user