<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateRepresentativesTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: representatives */ Schema::create('representatives', function ($table) { $table->increments('id'); $table->decimal('level_1', 50)->nullable(); $table->decimal('level_2', 50)->nullable(); $table->decimal('level_3', 50)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('representatives'); } }