|
@@ -25,6 +25,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联信息
|
|
|
*/
|
|
|
public function info()
|
|
@@ -50,6 +51,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师所属会员
|
|
|
*/
|
|
|
public function member()
|
|
@@ -59,6 +61,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 基本信息认证记录
|
|
|
*/
|
|
|
public function infoRecords()
|
|
@@ -68,6 +71,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联资质信息
|
|
|
*/
|
|
|
public function qual()
|
|
@@ -77,6 +81,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联评分
|
|
|
*/
|
|
|
public function score()
|
|
@@ -86,6 +91,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联定位
|
|
|
*/
|
|
|
public function locations()
|
|
@@ -95,6 +101,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联订单
|
|
|
*/
|
|
|
public function orders()
|
|
@@ -104,6 +111,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联抢单记录
|
|
|
*/
|
|
|
public function grabRecords()
|
|
@@ -113,6 +121,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联评论
|
|
|
*/
|
|
|
public function comments()
|
|
@@ -122,6 +131,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联钱包
|
|
|
*/
|
|
|
public function wallet()
|
|
@@ -131,6 +141,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师所属店铺
|
|
|
*/
|
|
|
public function shop()
|
|
@@ -140,6 +151,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联店铺开通服务
|
|
|
*/
|
|
|
public function shopOpenService()
|
|
@@ -149,15 +161,17 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联实名信息
|
|
|
*/
|
|
|
public function real()
|
|
|
{
|
|
|
- return $this->hasOne(CoachRealAuthRecord::class, 'id', 'real_auth_record_id');
|
|
|
+ return $this->hasOne(CoachRealRecord::class, 'id', 'real_auth_record_id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师开通项目
|
|
|
*/
|
|
|
public function projects()
|
|
@@ -167,6 +181,7 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联资质记录
|
|
|
*/
|
|
|
public function qualRecords()
|
|
@@ -176,10 +191,11 @@ class CoachUser extends Model
|
|
|
|
|
|
/**
|
|
|
* @Author FelixYin
|
|
|
+ *
|
|
|
* @description 技师关联实名认证记录
|
|
|
*/
|
|
|
public function realAuthRecords()
|
|
|
{
|
|
|
- return $this->hasMany(CoachRealAuthRecord::class, 'coach_id', 'id');
|
|
|
+ return $this->hasMany(CoachRealRecord::class, 'coach_id', 'id');
|
|
|
}
|
|
|
}
|