upd:调整菜单

This commit is contained in:
2025-05-01 11:42:05 +08:00
parent 0304dc7494
commit 20a6248fb6
47 changed files with 112 additions and 112 deletions

View File

@@ -0,0 +1,56 @@
<?php
namespace app\admin\model\zy\game;
use think\Model;
class Participant extends Model
{
// 表名
protected $table = 'zy_participant';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
public function user()
{
return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function join()
{
return $this->belongsTo('GameJoin', 'game_join_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function game()
{
return $this->belongsTo('Game', 'game_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
}