30 lines
599 B
PHP
30 lines
599 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use MongoDB\Laravel\Eloquent\HybridRelations;
|
|
|
|
class SofaScoreRosaTournament extends Model
|
|
{
|
|
use HybridRelations;
|
|
|
|
protected $fillable = [
|
|
'ss_team_id',
|
|
'ss_tournament_id',
|
|
'major',
|
|
'grapped',
|
|
'disabled',
|
|
];
|
|
|
|
public function tournament()
|
|
{
|
|
return $this->belongsTo(SofaScoreTournament::class, 'ss_tournament_id', 'tournament_id');
|
|
}
|
|
|
|
public function team()
|
|
{
|
|
return $this->belongsTo(SofaScoreRosa::class, 'ss_team_id', 'ss_team_id');
|
|
}
|
|
}
|