rsabhk-blade/database/migrations/2025_04_27_015126_create_insurances_table.php

30 lines
645 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('insurances', function (Blueprint $table) {
$table->id();
$table->string('name', 100); // (BPJS, Asuransi Swasta, dll)
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('insurances');
}
};