<?php namespace app\admin\model; use app\common\model\ScoreLog; use app\common\model\User; use think\Model; class UserScoreLog extends ScoreLog { public function user(){ return $this->belongsTo(User::class)->setEagerlyType(0); } }