add:俱乐部成员

This commit is contained in:
2025-05-02 10:38:29 +08:00
parent 20a6248fb6
commit 6b3c4782a1
11 changed files with 404 additions and 14 deletions

View File

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