<?php

namespace App\Models;
use App\Models\SportGameplay;

class SportGame extends BaseModel
{
    protected $table = 'sport_game';
    protected $fillable = [ 'name', 'name_en', 'end_time','is_locked'];
    
    public function children()
    {
        return $this->hasMany(SportGameplay::class, 'game_id', 'id')->select(['id','game_id','name','name_en','is_locked', 'odds','mininum', 'maxinum']);
    }
}
