| Current Path : /var/www/html/LLCF-APP/app/Models/ |
| Current File : /var/www/html/LLCF-APP/app/Models/Health.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Health extends Model
{
protected $table = 'health';
public $timestamps = false;
const CREATED_AT = 'created_on';
const UPDATED_AT = 'updated_on';
protected $fillable = [
'student_id',
'family_id',
'checkup_date',
'pulse',
'body_temp',
'respiration',
'bp',
'height_cm',
'weight',
'bmi',
'bmi_percentile',
'eye_left',
'eye_right',
'pallor',
'lice',
'consciousness',
'diet',
'teeth',
'history',
'diagnosis',
'management',
'advice',
'refer',
'followup',
'session',
'created_on',
'updated_on',
];
public function student(): BelongsTo
{
return $this->belongsTo(Student::class, 'student_id');
}
public function family(): BelongsTo
{
return $this->belongsTo(Family::class, 'family_id');
}
}