removed precalculation

This commit is contained in:
salam committed 2026-10-12 23:43:23 +02:00
1 parent f6f5dd0c7c
commit 838d6419f4
11 files changed
+214 -680

No files matched your search

-36
View File
@@ -1,36 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class SofaScorePlayerPerSeason extends Model
{
protected $table = 'ss_player_seasons';
protected $fillable = [
'ss_player_id',
'ss_team_id',
'season',
'total_events',
'total_min',
'average_min',
'events_played_home',
'events_played_away',
'minutes_played_home',
'minutes_played_away',
'goals',
'fouls',
'cards',
'offsides',
'shots_on_target',
'shots_off_target',
'shots_blocked',
'total_shots',
];
public function details()
{
return $this->belongsTo(StatistikoDetail::class, 'ss_player_id', 'ss_player_id');
}
}
-5
View File
@@ -32,11 +32,6 @@ class StatistikoDetail extends Model
'last_update' => 'datetime',
];
// public function season()
// {
// return $this->hasMany(SofaScorePlayerPerSeason::class, 'ss_player_id', 'ss_player_id');
// }
public function team(): BelongsTo
{
return $this->belongsTo(SofaScoreRosa::class, 'ss_team_id', 'ss_team_id');