CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVendorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('vendors', function (Blueprint $table) {
$table->id();
$table->string('vendor_type')->nullable()->index();
$table->string('vendor_code')->nullable()->index();
$table->string('vendor_name')->nullable()->index();
$table->string('vendor_logo')->nullable()->index();
$table->string('vendor_address')->nullable()->index();
$table->string('vendor_tele_phone')->nullable()->index();
$table->string('vendor_fax')->nullable()->index();
$table->string('vendor_gst')->nullable()->index();
$table->string('vendor_mail')->nullable()->index();
$table->string('vendor_contact_person')->nullable()->index();
$table->string('vendor_contact_person_telephone')->nullable()->index();
$table->string('vendor_contact_person_mobile')->nullable()->index();
$table->string('vendor_contact_person_mail')->nullable();
$table->string('inter_state')->nullable();
$table->tinyInteger('status')->default(1);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('vendors');
}
}