fix import player, new columns remove telescope, consider emty vars in PlayerDataMerge

This commit is contained in:
salam committed 2026-11-01 12:24:25 +01:00
1 parent 43013d3eec
commit bef576616f
14 files changed
+553 -1437

No files matched your search

+9 -13
View File
@@ -10,10 +10,18 @@ class StatistikoPlayer extends Model
protected $table = 'players';
protected function casts(): array
{
return [
'starttime' => 'datetime',
];
}
protected $fillable = [
'sport_id',
'match_id',
'ss_player_id',
'starttime',
'activeteam_id',
'playersubstitute_id',
'goals',
@@ -78,21 +86,9 @@ class StatistikoPlayer extends Model
'player_position',
'playerrating_value',
'tm_player_id',
'season',
];
// IDENTIFICAZIONE
// match_id
// ss_player_id
// AGGIORNAMENTO
// tm_player_id
// penaltyshoutout_missed
// penaltyshoutout_scored
// ingamepenalty_missed,
// card_yellow
// card_yellowred
// card_red
public function event()
{
return $this->belongsTo(StatistikoEvent::class, 'match_id', 'match_id');