wip
This commit is contained in:
1 parent
419148cd18
commit
7abcc5c56c
75 files changed
+32250
-127794
No files matched your search
@@ -4,15 +4,20 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Liga extends Model
|
||||
class CompetitionGroup extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'txodds_id',
|
||||
'sport_id',
|
||||
'country_id',
|
||||
'txodds_id',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CompetitionGroupFilter extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'competition_group_id',
|
||||
'bkm_competition_group_id',
|
||||
'bookmaker_id',
|
||||
'name',
|
||||
];
|
||||
|
||||
public function competition_group()
|
||||
{
|
||||
return $this->belongsTo(CompetitionGroup::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class);
|
||||
}
|
||||
}
|
||||
@@ -8,10 +8,12 @@ class Element extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'sport_id',
|
||||
'txodds_id',
|
||||
'betsapi_id',
|
||||
'mag_id',
|
||||
'log_id',
|
||||
'sport_id',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ElementFilter extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'element_id',
|
||||
'bkm_element_id',
|
||||
'bookmaker_id',
|
||||
];
|
||||
|
||||
public function element()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class);
|
||||
}
|
||||
}
|
||||
+14
-12
@@ -10,41 +10,43 @@ class Event extends Model
|
||||
'starttime',
|
||||
'sport_id',
|
||||
'country_id',
|
||||
'liga_id',
|
||||
'group_id',
|
||||
'competition_group_id',
|
||||
'home_id',
|
||||
'away_id',
|
||||
'provider_id',
|
||||
'txodds_id',
|
||||
'provider_id',
|
||||
'betaid_id',
|
||||
'betradar_id',
|
||||
'magnig_id',
|
||||
'magken_id',
|
||||
'lognig_id',
|
||||
'logcol_id',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class, 'sport_id', 'id');
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
return $this->belongsTo(Country::class, 'country_id', 'txodds_id');
|
||||
}
|
||||
|
||||
public function liga()
|
||||
public function group()
|
||||
{
|
||||
return $this->belongsTo(Liga::class);
|
||||
return $this->hasOne(Group::class, 'txodds_id', 'group_id');
|
||||
}
|
||||
|
||||
public function competition_group()
|
||||
{
|
||||
return $this->hasOne(CompetitionGroup::class, 'txodds_id', 'competition_group_id');
|
||||
}
|
||||
|
||||
public function home()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
return $this->hasOne(Element::class, 'txodds_id', 'home_id');
|
||||
}
|
||||
|
||||
public function away()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
return $this->hasOne(Element::class, 'txodds_id', 'away_id');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EventBookmaker extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'event_id',
|
||||
'bookmaker_id',
|
||||
'bmoid',
|
||||
'send_status',
|
||||
'last_check_at',
|
||||
];
|
||||
|
||||
public function event()
|
||||
{
|
||||
return $this->belongsTo(Event::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Group extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'txodds_id',
|
||||
'competition_group_id',
|
||||
'sport_id',
|
||||
'country_id',
|
||||
];
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class GroupFilter extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'group_id',
|
||||
'bkm_group_id',
|
||||
'bookmaker_id',
|
||||
];
|
||||
|
||||
public function group()
|
||||
{
|
||||
return $this->belongsTo(Group::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class);
|
||||
}
|
||||
}
|
||||
@@ -14,11 +14,11 @@ class Odds2way extends Model
|
||||
'sport_id',
|
||||
'bookmaker_id',
|
||||
'provider_id',
|
||||
'home',
|
||||
'away',
|
||||
'h2w',
|
||||
'a2w',
|
||||
'margin',
|
||||
'flag',
|
||||
'check',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
@@ -14,12 +14,12 @@ class Odds3way extends Model
|
||||
'sport_id',
|
||||
'bookmaker_id',
|
||||
'provider_id',
|
||||
'home',
|
||||
'draw',
|
||||
'away',
|
||||
'h3w',
|
||||
'd3w',
|
||||
'a3w',
|
||||
'margin',
|
||||
'flag',
|
||||
'check',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
@@ -14,11 +14,12 @@ class OddsDc extends Model
|
||||
'sport_id',
|
||||
'bookmaker_id',
|
||||
'provider_id',
|
||||
'dnb1',
|
||||
'dnb2',
|
||||
'dc1x',
|
||||
'dc12',
|
||||
'dc2x',
|
||||
'margin',
|
||||
'flag',
|
||||
'check',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
@@ -18,7 +18,7 @@ class OddsDnb extends Model
|
||||
'dnb2',
|
||||
'margin',
|
||||
'flag',
|
||||
'check',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
@@ -18,7 +18,7 @@ class OddsGgng extends Model
|
||||
'ng',
|
||||
'margin',
|
||||
'flag',
|
||||
'check',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
@@ -19,7 +19,7 @@ class OddsHandicap extends Model
|
||||
'handicap',
|
||||
'margin',
|
||||
'flag',
|
||||
'check',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
@@ -16,7 +16,7 @@ class OddsQualify extends Model
|
||||
'atq',
|
||||
'margin',
|
||||
'flag',
|
||||
'check',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
@@ -19,7 +19,7 @@ class OddsTotal extends Model
|
||||
'spread',
|
||||
'margin',
|
||||
'flag',
|
||||
'check',
|
||||
'nuh_check',
|
||||
'add_time',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user