Files
jianlizaojia/app/xzgl/model/XzglProfile.php
2025-06-25 22:28:45 +08:00

19 lines
471 B
PHP

<?php
namespace app\xzgl\model;
use jerryyan\staff\model\StaffUser;
use think\admin\Model;
use think\model\relation\HasOne;
class XzglProfile extends Model
{
protected $createTime = 'create_at';
protected $updateTime = 'update_at';
protected $oplogName = '人员资料';
protected $oplogType = '人员资料管理';
public function user(): HasOne
{
return $this->hasOne(StaffUser::class, 'id', 'id')->with(['dept', 'sys_user']);
}
}