create appointment model
This commit is contained in:
25
app/Models/Appointment.php
Normal file
25
app/Models/Appointment.php
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Appointment extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'status',
|
||||||
|
'cancelation_reason',
|
||||||
|
'appointmnet_type',
|
||||||
|
'speciality_id',
|
||||||
|
'description',
|
||||||
|
'duration_minutes',
|
||||||
|
'start_time',
|
||||||
|
'end_time',
|
||||||
|
'organization_id',
|
||||||
|
'comment',
|
||||||
|
'patient_instruction'
|
||||||
|
];
|
||||||
|
}
|
||||||
18
app/Models/AppointmentParticipant.php
Normal file
18
app/Models/AppointmentParticipant.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class AppointmentParticipant extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'appointment_id',
|
||||||
|
'type',
|
||||||
|
'participantable_type',
|
||||||
|
'participantable_id',
|
||||||
|
];
|
||||||
|
}
|
||||||
11
app/Models/AppointmentType.php
Normal file
11
app/Models/AppointmentType.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class AppointmentType extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user