CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBanksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('banks', function (Blueprint $table) {
$table->id();
$table->string('bank_account_no')->index();
$table->string('bank_name')->index();
$table->string('branch_name')->index();
$table->string('bank_address')->nullable()->index();
$table->string('ifsc_code')->nullable();
$table->string('micr_code')->nullable();
$table->string('upi_no')->nullable()->index();
$table->string('contact_person_name')->nullable()->index();
$table->string('contact_person_mobile')->nullable()->index();
$table->string('ledger_head_id');
$table->tinyInteger('status')->default(1);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('banks');
}
}