www_fpvone_cn/application/admin/model/MatchContestant.php

42 lines
834 B
PHP

<?php
/**
* @Created by PhpStorm.
* @Author:Soar
* @Time:2023/7/19 15:03
*/
/**
* Created by PhpStorm.
* Author:Soar
* Time:2023/7/12 10:30
*/
namespace app\admin\model;
use think\Model;
class MatchContestant extends Model
{
// 表名
protected $name = 'match_contestant';
public function player()
{
return $this->belongsTo('Players','player_id', 'id', [], 'LEFT')->setEagerlyType(1);
}
public function players()
{
return $this->belongsTo('Players','player_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function club()
{
return $this->belongsTo('Club','club_id', 'id', [], 'LEFT')->setEagerlyType(1);
}
public function clubs()
{
return $this->belongsTo('Club','club_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
}