fix player marcatori names
This commit is contained in:
1 parent
3149fa6c12
commit
d5563154e0
27 files changed
+508
-339
No files matched your search
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use MongoDB\Laravel\Eloquent\Model;
|
||||
|
||||
class StatistikoDetail extends Model
|
||||
{
|
||||
protected $connection = 'mongodb';
|
||||
|
||||
protected $table = 'details';
|
||||
|
||||
protected $fillable = [
|
||||
'player_id',
|
||||
'name',
|
||||
'full_name',
|
||||
'birthdate',
|
||||
'height',
|
||||
'nationality',
|
||||
'position',
|
||||
'sport_radar_id',
|
||||
'id_squadra_tm',
|
||||
'rigorist',
|
||||
'national_team_id',
|
||||
'last_update',
|
||||
'league_code',
|
||||
'team_code',
|
||||
'team_name',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'birthdate' => 'date',
|
||||
'last_update' => 'date',
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use MongoDB\Laravel\Eloquent\Model;
|
||||
|
||||
class StatistikoMarcatori extends Model
|
||||
{
|
||||
protected $connection = 'mongodb';
|
||||
|
||||
protected $table = 'marcatori';
|
||||
|
||||
protected $fillable = [
|
||||
'match_id',
|
||||
'player_id',
|
||||
];
|
||||
}
|
||||
|
||||
// match_id
|
||||
// player_id
|
||||
// playersubstitute_id
|
||||
// goals
|
||||
// assists
|
||||
// own_goals
|
||||
// shots_on_target
|
||||
// shots_off_target
|
||||
// shots_blocked
|
||||
// fouls
|
||||
// was_fouled
|
||||
// offsides
|
||||
// possessions_lost
|
||||
// total_tackles
|
||||
// touches
|
||||
// total_cross
|
||||
// cross_done
|
||||
// total_dribbles
|
||||
// dribbles_won
|
||||
// total_ground_duels
|
||||
// total_ground_duels_won
|
||||
// total_aerial_duels
|
||||
// total_duels_aerial_won
|
||||
// total_pass
|
||||
// pass
|
||||
// total_long_balls
|
||||
// long_balls
|
||||
// blocked_shots
|
||||
// clearances
|
||||
// dribbled_past
|
||||
// hit_woodwork
|
||||
// interceptions
|
||||
// key_pass
|
||||
// last_man_tackle
|
||||
// dispossessed
|
||||
// clearance_off_line
|
||||
// bcc
|
||||
// bcm
|
||||
// errors_lead_to_a_goal
|
||||
// errors_lead_to_a_shot
|
||||
// penalty_committed
|
||||
// penalty_miss
|
||||
// penalty_save
|
||||
// penalty_won
|
||||
// saves
|
||||
// saves_from_in_box
|
||||
// total_runs_out
|
||||
// runs_out
|
||||
// punches
|
||||
// good_high_claim
|
||||
// minutes_played
|
||||
// lineup
|
||||
// minute_event_during_the_match
|
||||
// type_event_during_the_match
|
||||
// description_event_during_the_match
|
||||
// subtype_event_during_the_match
|
||||
// player_position
|
||||
// playerrating_value
|
||||
// tm_player_id
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use MongoDB\Laravel\Eloquent\Model;
|
||||
@@ -10,33 +8,77 @@ class StatistikoPlayer extends Model
|
||||
{
|
||||
protected $connection = 'mongodb';
|
||||
|
||||
protected $table = 'player';
|
||||
protected $table = 'players';
|
||||
|
||||
protected $fillable = [
|
||||
'match_id',
|
||||
'player_id',
|
||||
'name',
|
||||
'full_name',
|
||||
'birthdate',
|
||||
'height',
|
||||
'nationality',
|
||||
'position',
|
||||
'sport_radar_id',
|
||||
'id_squadra_tm',
|
||||
'rigorist',
|
||||
'national_team_id',
|
||||
'last_update',
|
||||
'league_code',
|
||||
'team_code',
|
||||
'team_name',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
'playersubstitute_id',
|
||||
'goals',
|
||||
'assists',
|
||||
'own_goals',
|
||||
'shots_on_target',
|
||||
'shots_off_target',
|
||||
'shots_blocked',
|
||||
'fouls',
|
||||
'was_fouled',
|
||||
'offsides',
|
||||
'possessions_lost',
|
||||
'total_tackles',
|
||||
'touches',
|
||||
'total_cross',
|
||||
'cross_done',
|
||||
'total_dribbles',
|
||||
'dribbles_won',
|
||||
'total_ground_duels',
|
||||
'total_ground_duels_won',
|
||||
'total_aerial_duels',
|
||||
'total_duels_aerial_won',
|
||||
'total_pass',
|
||||
'pass',
|
||||
'total_long_balls',
|
||||
'long_balls',
|
||||
'blocked_shots',
|
||||
'clearances',
|
||||
'dribbled_past',
|
||||
'hit_woodwork',
|
||||
'interceptions',
|
||||
'key_pass',
|
||||
'last_man_tackle',
|
||||
'dispossessed',
|
||||
'clearance_off_line',
|
||||
'bcc',
|
||||
'bcm',
|
||||
'errors_lead_to_a_goal',
|
||||
'errors_lead_to_a_shot',
|
||||
'penalty_committed',
|
||||
'penalty_miss',
|
||||
'penalty_save',
|
||||
'penalty_won',
|
||||
'saves',
|
||||
'saves_from_in_box',
|
||||
'total_runs_out',
|
||||
'runs_out',
|
||||
'punches',
|
||||
'good_high_claim',
|
||||
'minutes_played',
|
||||
'lineup',
|
||||
'minute_event_during_the_match',
|
||||
'type_event_during_the_match',
|
||||
'description_event_during_the_match',
|
||||
'subtype_event_during_the_match',
|
||||
'player_position',
|
||||
'playerrating_value',
|
||||
'tm_player_id',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
public function event()
|
||||
{
|
||||
return [
|
||||
'birthdate' => 'date',
|
||||
'last_update' => 'date',
|
||||
];
|
||||
return $this->belongsTo(StatistikoEvent::class, 'match_id', 'match_id');
|
||||
}
|
||||
|
||||
public function details()
|
||||
{
|
||||
return $this->belongsTo(StatistikoDetail::class, 'player_id', 'player_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user