|
@@ -26,20 +26,15 @@ class CoachUser extends Model
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师所属会员
|
|
|
*/
|
|
|
public function member()
|
|
|
{
|
|
|
- return $this->belongsTo('App\Models\MemberUser', 'user_id', 'undefined');
|
|
|
+ return $this->belongsTo('App\Models\MemberUser', 'user_id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联信息
|
|
@@ -49,9 +44,6 @@ class CoachUser extends Model
|
|
|
return $this->hasOne('App\Models\CoachInfoRecord', 'id', 'info_record_id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联资质信息
|
|
@@ -61,8 +53,6 @@ class CoachUser extends Model
|
|
|
return $this->hasOne('App\Models\CoachQualRecord', 'id', 'qualification_record_id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联评分
|
|
@@ -72,8 +62,6 @@ class CoachUser extends Model
|
|
|
return $this->hasOne('App\Models\CoachScore', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联定位
|
|
@@ -83,8 +71,6 @@ class CoachUser extends Model
|
|
|
return $this->hasMany('App\Models\CoachLocation', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联订单
|
|
@@ -94,8 +80,6 @@ class CoachUser extends Model
|
|
|
return $this->hasMany('App\Models\OrderInfo', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联抢单记录
|
|
@@ -105,8 +89,6 @@ class CoachUser extends Model
|
|
|
return $this->hasMany('App\Models\OrderGrabRecord', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联评论
|
|
@@ -116,19 +98,15 @@ class CoachUser extends Model
|
|
|
return $this->hasMany('App\Models\OrderComment', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联钱包
|
|
|
*/
|
|
|
public function wallet()
|
|
|
{
|
|
|
- return $this->MORPH_ONE('App\Models\Wallet', 'undefined', 'undefined');
|
|
|
+ return $this->MORPH_ONE('App\Models\Wallet', 'undefined');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师所属店铺
|
|
@@ -138,8 +116,6 @@ class CoachUser extends Model
|
|
|
return $this->belongsTo('App\Models\ShopInfo', 'shop_id', 'shop_id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联店铺开通服务
|
|
@@ -149,9 +125,6 @@ class CoachUser extends Model
|
|
|
return $this->hasMany('App\Models\ShopCoachService', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联实名信息
|
|
@@ -161,8 +134,6 @@ class CoachUser extends Model
|
|
|
return $this->hasOne('App\Models\CoachRealAuthRecord', 'id', 'real_auth_record_id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师开通项目
|
|
@@ -172,7 +143,6 @@ class CoachUser extends Model
|
|
|
return $this->hasMany('App\Models\CoachProject', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 基本信息认证记录
|
|
@@ -182,7 +152,6 @@ class CoachUser extends Model
|
|
|
return $this->hasMany('App\Models\CoachInfoRecord', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联资质记录
|
|
@@ -192,7 +161,6 @@ class CoachUser extends Model
|
|
|
return $this->hasMany('App\Models\CoachQualRecord', 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
* @description 技师关联实名认证记录
|