add:俱乐部

This commit is contained in:
2025-04-29 18:28:12 +08:00
parent 0bd7421371
commit abfbb8d1ee
17 changed files with 614 additions and 89 deletions

View File

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