76 lines
1.1 KiB
PHP
76 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
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
|
|
*/
|