initial commit

This commit is contained in:
Inshal
2024-10-25 01:02:11 +05:00
commit 6e65bc3a62
1710 changed files with 273609 additions and 0 deletions

28
app/Models/Question.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;
class Question extends Model
{
use SoftDeletes;
protected $table = 'questions';
protected $fillable = [
'question',
'type',
'options'
];
protected $dates = ['deleted_at'];
public function getAnswer(): BelongsTo
{
return $this->belongsTo(PatientAnswer::class, 'appointment_id');
}
}