|
@@ -50,6 +50,11 @@ class Pro extends Model
|
|
return $this->hasMany(Bill::class, 'hcp_pro_id');
|
|
return $this->hasMany(Bill::class, 'hcp_pro_id');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function teamsWhereMcp()
|
|
|
|
+ {
|
|
|
|
+ return $this->hasMany(ProTeam::class, 'mcp_pro_id', 'id');
|
|
|
|
+ }
|
|
|
|
+
|
|
public function teamsWhereAssistant()
|
|
public function teamsWhereAssistant()
|
|
{
|
|
{
|
|
return $this->hasMany(ProTeam::class, 'assistant_pro_id', 'id');
|
|
return $this->hasMany(ProTeam::class, 'assistant_pro_id', 'id');
|