D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
medicapro.online
/
database
/
migrations
/
Filename :
2023_12_12_161849_create_insurers_table.php
back
Copy
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateInsurersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('insurers', function (Blueprint $table) { $table->id(); $table->string('name', 100)->unique()->nullable(false)->comment('Name of the insurer'); $table->boolean('status')->default(1)->comment('Status of the insurer'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('insurers'); } }