Работа над журналом для ст. мед сестер
This commit is contained in:
27
app/Models/ReportNurse.php
Normal file
27
app/Models/ReportNurse.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user