Player mongodb

This commit is contained in:
salam committed 2026-03-25 18:29:01 +01:00
1 parent b362fdc15f
commit 8370836efd
11 files changed
+409 -2

No files matched your search

+53
View File
@@ -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',
];
}
}