From df60d37f3aff6839d63274d2aa8159a55183756b Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 22 Mar 2026 06:22:34 +0100 Subject: [PATCH] mongo wip --- app/Models/UbEvent.php | 65 +++++++++++++++++++++++++++++++++++++++++ app/Models/ubevents.txt | 48 ++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 app/Models/ubevents.txt diff --git a/app/Models/UbEvent.php b/app/Models/UbEvent.php index 5aee70fd..3a115502 100644 --- a/app/Models/UbEvent.php +++ b/app/Models/UbEvent.php @@ -7,4 +7,69 @@ use MongoDB\Laravel\Eloquent\Model; class UbEvent extends Model { protected $connection = 'mongodb'; + + protected $fillable = [ + 'name', + 'gravitational_force', + 'diameter', + 'moons', + ]; + + protected function casts(): array + { + return [ + 'date_time_ss' => 'datetime', + ]; + } } + +/*** + country_ss + league_ss + home + away + home_ft + away_ft + home_ht + away_ht + date_time_ss + team + player_ss + goals + assists + tackles + total_passes + passes_done + total_duels + duels_won + total_ground_duels + ground_duels_won + total_aerial_duels + aerial_duels_won + minutes_played + shots_on_target + shots_off_target + shots_blocked + total_dribble + dribble_done + position + rating + bcm + hw + pw + pm + possession_ + lost + fouls + was_fouled + offsides + id_player_tm + h_a + date_player_id + date_home_away + id_league + data_di_acquisizione + txleague_id + txhome_id + txaway_id + */ diff --git a/app/Models/ubevents.txt b/app/Models/ubevents.txt new file mode 100644 index 00000000..40340498 --- /dev/null +++ b/app/Models/ubevents.txt @@ -0,0 +1,48 @@ +country_ss +league_ss +home +away +home_ft +away_ft +home_ht +away_ht +date_time_ss +team +player_ss +goals +assists +tackles +total_passes +passes_done +total_duels +duels_won +total_ground_duels +ground_duels_won +total_aerial_duels +aerial_duels_won +minutes_played +shots_on_target +shots_off_target +shots_blocked +total_dribble +dribble_done +position +rating +bcm +hw +pw +pm +possession_ +lost +fouls +was_fouled +offsides +id_player_tm +h_a +date_player_id +date_home_away +id_league +data_di_acquisizione +txleague_id +txhome_id +txaway_id \ No newline at end of file