add:比赛对阵

This commit is contained in:
2025-05-01 10:23:11 +08:00
parent 5765cb21d5
commit 9622062509
10 changed files with 499 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
<?php
namespace app\admin\model\zy;
use think\Model;
class GameMatch extends Model
{
// 表名
protected $table = 'zy_game_match';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
public function stadium()
{
return $this->belongsTo('Stadium', 'gym_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function club()
{
return $this->belongsTo('Club', 'club_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function activity()
{
return $this->belongsTo('Activity', 'act_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function game()
{
return $this->belongsTo('Game', 'game_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
}