UserScoreLog.php 251 B

123456789101112131415
  1. <?php
  2. namespace app\admin\model;
  3. use app\common\model\ScoreLog;
  4. use app\common\model\User;
  5. use think\Model;
  6. class UserScoreLog extends ScoreLog
  7. {
  8. public function user(){
  9. return $this->belongsTo(User::class)->setEagerlyType(0);
  10. }
  11. }