grapper betsapi

This commit is contained in:
salam committed 2025-12-22 08:15:59 +01:00
1 parent 406fd26864
commit a3c9f16550
127 files changed
+158128 -650

No files matched your search

+1 -1
View File
@@ -7,8 +7,8 @@ use Illuminate\Database\Eloquent\Model;
class CompetitionGroup extends Model
{
protected $fillable = [
'id',
'name',
'tx_id',
'sport_id',
'country_id',
];
+1 -1
View File
@@ -7,8 +7,8 @@ use Illuminate\Database\Eloquent\Model;
class Element extends Model
{
protected $fillable = [
'id',
'name',
'tx_id',
'sport_id',
];
+11 -8
View File
@@ -7,6 +7,13 @@ use Illuminate\Database\Eloquent\Model;
class Event extends Model
{
protected $fillable = [
'id',
'provider_id',
'betsapi_id',
'betradar_id',
'bet365_id',
'_1xbet_id',
'bwin_id',
'starttime',
'sport_id',
'country_id',
@@ -14,10 +21,6 @@ class Event extends Model
'competition_group_id',
'home_id',
'away_id',
'tx_id',
'provider_id',
'betaid_id',
'betradar_id',
];
public function sport()
@@ -32,22 +35,22 @@ class Event extends Model
public function group()
{
return $this->hasOne(Group::class, 'tx_id', 'group_id');
return $this->hasOne(Group::class, 'id', 'group_id');
}
public function competition_group()
{
return $this->hasOne(CompetitionGroup::class, 'tx_id', 'competition_group_id');
return $this->hasOne(CompetitionGroup::class, 'id', 'competition_group_id');
}
public function home()
{
return $this->hasOne(Element::class, 'tx_id', 'home_id');
return $this->hasOne(Element::class, 'id', 'home_id');
}
public function away()
{
return $this->hasOne(Element::class, 'tx_id', 'away_id');
return $this->hasOne(Element::class, 'id', 'away_id');
}
public function multiline_client()
+1 -1
View File
@@ -7,8 +7,8 @@ use Illuminate\Database\Eloquent\Model;
class Group extends Model
{
protected $fillable = [
'id',
'name',
'tx_id',
'competition_group_id',
'sport_id',
'country_id',
+2 -7
View File
@@ -7,15 +7,10 @@ use Illuminate\Database\Eloquent\Model;
class Mapper extends Model
{
protected $fillable = [
'sport_id',
'event_id',
'provider_id',
'sport_id',
'tx_id',
'betradar_id',
'betradar_id',
'betsapi_id',
'bet365_id',
'_1xbet_id',
'betfairsb_id',
'starttime',
'group',
'group_id',