<?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->integer("type")->nullable();
			$table->string("name");
			$table->string("company")->nullable();
			$table->string("email")->nullable();
			$table->string("phone_number")->nullable();
			$table->string("zip_code_1")->nullable();
			$table->string("zip_code_2")->nullable();
			$table->string("prefectures")->nullable();
			$table->string("address")->nullable();
			$table->string("building_name")->nullable();
			$table->text("content")->nullable();
			$table->boolean("is_read")->default(false);
			$table->boolean("is_deleted")->default(false);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('contacts');
    }
}
