Files
Global-Jain/database/migrations/2024_06_24_111516_create_hospitals_table.php
2025-11-05 10:37:10 +05:30

43 lines
1.2 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHospitalsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('hospitals', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('contact_name');
$table->string('email')->nullable();
$table->string('alternative_email')->nullable();
$table->string('address')->nullable();
$table->string('city')->nullable();
$table->string('state')->nullable();
$table->string('photo')->nullable();
$table->string('number')->nullable();
$table->text('benefits')->nullable();
$table->tinyInteger('status')->comment('1=>Active, 2=>In Active')->default(1)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('health_insurance_hospitals');
}
}