wip del err

This commit is contained in:
salam committed 2026-10-04 15:22:39 +02:00
1 parent 812736ca9a
commit 9bcd4432c6
1210 files changed
-220941

No files matched your search

-71
View File
@@ -1,71 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Models;
use MongoDB\Laravel\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class StatistikoEvent extends Model
{
protected $connection = 'mongodb';
protected $table = 'events';
protected $fillable = [
'sport_id',
'match_id',
'league_id',
'home_id',
'away_id',
'starttime',
'season',
'gls_h',
'gls_a',
'crn_h',
'crn_a',
'fls_h',
'fls_a',
'ofs_h',
'ofs_a',
'snt_h',
'snt_a',
'tsh_h',
'tsh_a',
'crd_h',
'crd_a',
'exp_home',
'exp_away',
'exp_handicap',
'exp_total',
'result_code',
'created_at',
'updated_at',
];
protected $casts = [
'starttime' => 'datetime',
];
public function sport(): BelongsTo
{
return $this->belongsTo(Sport::class, 'sport_id', 'id');
}
public function league()
{
return $this->belongsTo(SofaScoreTournament::class, 'league_id', 'tournament_id');
}
public function home(): BelongsTo
{
return $this->belongsTo(SofaScoreRosa::class, 'home_id', 'ss_team_id');
}
public function away(): BelongsTo
{
return $this->belongsTo(SofaScoreRosa::class, 'away_id', 'ss_team_id');
}
}