payment api

This commit is contained in:
2024-04-22 11:26:00 +07:00
parent fe486b1593
commit a424721d89
9 changed files with 506 additions and 24 deletions

37
app/Models/Livechat.php Normal file
View File

@@ -0,0 +1,37 @@
<?php
namespace App\Models;
use App\Traits\Blameable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Livechat extends Model
{
use HasFactory, SoftDeletes, Blameable;
protected $fillable = [
'uuid',
'doctor_id',
'patient_id',
'organization_id',
'timezone',
'descriptions',
'payment_method',
'request_date',
'accept_date',
'start_date',
'end_date',
];
public function doctor() {
return $this->belongsTo(Person::class, 'doctor_id', 'id');
}
public function practitioner() {
return $this->belongsTo(Practitioner::class, 'doctor_id', 'id');
}
}