123456789101112131415161718192021222324 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- class MedicalOption extends Model
- {
- protected $table = 'medical_options';
- public $timestamps = false;
- protected $fillable = [
- 'medical_question_id', 'content', 'score'
- ];
- public function medicalQuestion()
- {
- return $this->belongsTo(MedicalQuestion::class, 'medical_question_id');
- }
- public function question()
- {
- return $this->belongsTo(MedicalQuestion::class);
- }
- }
|