33 lines
724 B
PHP
33 lines
724 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PocSpirometry extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'name_of_doctor',
|
|
'mobile_number',
|
|
'password',
|
|
'city_town',
|
|
'qualification',
|
|
'specialization',
|
|
'type_of_practice',
|
|
'years_of_practice',
|
|
'no_of_patients_seen_in_opd',
|
|
'respiratory_symptoms_percentage',
|
|
'diagnosis_basis',
|
|
'spirometry_done_from_where',
|
|
'what_prevented_you_to_buy_spirometer',
|
|
];
|
|
|
|
public function patient(){
|
|
return $this->hasMany(PatientPocSpirometry::class, 'user_id');
|
|
}
|
|
|
|
}
|