www_fpvone_cn/application/common/model/MatchRanking.php

29 lines
515 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\common\model;
use think\Model;
class MatchRanking extends Model
{
//
public function players()
{
return $this->belongsTo('Players','player_id', 'id', [], 'LEFT')->setEagerlyType(1);
}
public function users()
{
return $this->belongsTo('User','player_id', 'member_number', [], 'LEFT')->setEagerlyType(1);
}
}