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

View File

@@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('livechats', function (Blueprint $table) {
$table->id();
$table->foreignId('doctor_id');
$table->foreignId('patient_id');
$table->foreignId('organization_id');
$table->string('timezone')->nullable()->default(null);
$table->text('descriptions');
$table->string('payment_method');
$table->dateTime('request_date')->nullable();
$table->dateTime('accept_date')->nullable();
$table->dateTime('start_date')->nullable();
$table->dateTime('end_date')->nullable();
$table->timestamps();
$table->softDeletes();
$table->foreignId('created_by')->nullable();
$table->foreignId('updated_by')->nullable();
$table->foreignId('deleted_by')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('livechats');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('livechats', function (Blueprint $table) {
$table->string('uuid')->after('id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('livechats', function (Blueprint $table) {
$table->dropColumn('uuid');
});
}
};