Claim Services

This commit is contained in:
ivan-sim
2023-10-31 09:25:33 +07:00
parent de476ad3be
commit c38167a50a
5 changed files with 568 additions and 10 deletions

View File

@@ -0,0 +1,37 @@
<?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('claim_services', function (Blueprint $table) {
$table->id();
$table->bigInteger('claim_request_id');
$table->bigInteger('service_id');
$table->bigInteger('hospital_id');
$table->dateTime('addmission_date');
$table->dateTime('discharge_date');
$table->bigInteger('created_by')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('claim_services');
}
};

View File

@@ -0,0 +1,34 @@
<?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('claim_service_benefits', function (Blueprint $table) {
$table->id();
$table->bigInteger('claim_service_id');
$table->bigInteger('benefit_id');
$table->bigInteger('created_by')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('claim_service_benefits');
}
};