|
|
@@ -17,7 +17,10 @@ class VideoContributionRecord extends Model
|
|
|
protected $createTime = 'createtime';
|
|
|
// 追加属性
|
|
|
protected $append = [];
|
|
|
-
|
|
|
+ public function user()
|
|
|
+ {
|
|
|
+ return $this->belongsTo('User', 'uid', 'id', [], 'LEFT')->setEagerlyType(0);
|
|
|
+ }
|
|
|
public function videolist()
|
|
|
{
|
|
|
return $this->belongsTo('Videolist', 'vid', 'id', [], 'LEFT')->setEagerlyType(0);
|