Player mongodb
This commit is contained in:
1 parent
b362fdc15f
commit
8370836efd
11 files changed
+409
-2
No files matched your search
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use MongoDB\Laravel\Eloquent\Model;
|
||||
|
||||
class UbPlayer extends Model
|
||||
{
|
||||
protected $connection = 'mongodb';
|
||||
|
||||
protected $table = 'player';
|
||||
|
||||
protected $fillable = [
|
||||
'id_giocatore',
|
||||
'giocatore',
|
||||
'data_di_nascita',
|
||||
'altezza',
|
||||
'nazionalita',
|
||||
'posizione',
|
||||
'sport_radar_id',
|
||||
'id_squadra_tm',
|
||||
'nome_completo',
|
||||
'rigorista',
|
||||
'national_team_id',
|
||||
'data_aggiornamento',
|
||||
'league_code',
|
||||
'team_code',
|
||||
'team_name',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'id_giocatore' => 'string',
|
||||
'national_team_id' => 'string',
|
||||
'altezza' => 'integer',
|
||||
'sport_radar_id' => 'string',
|
||||
'id_squadra_tm' => 'string',
|
||||
'data_di_nascita' => 'date',
|
||||
'giocatore' => 'string',
|
||||
'nazionalita' => 'string',
|
||||
'posizione' => 'string',
|
||||
'nome_completo' => 'string',
|
||||
'rigorista' => 'string',
|
||||
'data_aggiornamento' => 'string',
|
||||
'league_code' => 'string',
|
||||
'team_code' => 'string',
|
||||
'team_name' => 'string',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user