|
@@ -18,6 +18,18 @@ class CareMonth extends Model
|
|
return $this->hasOne(Pro::class, 'id', 'mcp_pro_id');
|
|
return $this->hasOne(Pro::class, 'id', 'mcp_pro_id');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function cmPro(){
|
|
|
|
+ return $this->hasOne(Pro::class, 'id', 'cm_pro_id');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function rmmPro(){
|
|
|
|
+ return $this->hasOne(Pro::class, 'id', 'rmm_pro_id');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function rmePro(){
|
|
|
|
+ return $this->hasOne(Pro::class, 'id', 'rme_pro_id');
|
|
|
|
+ }
|
|
|
|
+
|
|
public function entries() {
|
|
public function entries() {
|
|
return $this->hasMany(CareMonthEntry::class, 'care_month_id', 'id');
|
|
return $this->hasMany(CareMonthEntry::class, 'care_month_id', 'id');
|
|
}
|
|
}
|