28 lines
490 B
PHP
28 lines
490 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ReportNurse extends Model
|
|
{
|
|
protected $fillable = [
|
|
'date_report',
|
|
'sent_at',
|
|
'period_type',
|
|
'period_start',
|
|
'period_end',
|
|
'status_id'
|
|
];
|
|
|
|
public function patients()
|
|
{
|
|
return $this->hasMany(ReportNursePatient::class, 'report_nurse_id');
|
|
}
|
|
|
|
public function status()
|
|
{
|
|
return $this->belongsTo(ReportStatus::class);
|
|
}
|
|
}
|