<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateContactsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('contacts', function (Blueprint $table) { $table->id(); $table->unsignedInteger('customer_id'); $table->string('email'); $table->string('first_name')->nullable(); $table->string('last_name')->nullable(); $table->string('company')->nullable(); $table->string('address')->nullable(); $table->string('zip_code')->nullable(); $table->string('state')->nullable(); $table->string('note')->nullable(); $table->string('city')->nullable(); $table->enum('label', ['new', 'hot_lead','not_interested', 'wrong_number','retail'])->default('new'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('contacts'); } }