<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTenantTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tenant', function (Blueprint $table) {
            $table->increments('id');
            $table->string('tenant_name', 200)->nullable();
            $table->string('nationality')->nullable();
            $table->string('mob')->nullable();
            $table->string('merital_status')->nullable();
            $table->string('email', 150)->nullable();
            $table->string('passport', 150)->nullable();
            $table->string('no_occupant', 150)->nullable();
            $table->string('visa', 150)->nullable();
            $table->string('emirates_id', 150)->nullable();
            $table->string('passport_no', 150)->nullable();
            $table->string('tel')->nullable();
            $table->string('po_box')->nullable();
            $table->string('date')->nullable();
            $table->string('emergency_name')->nullable();
            $table->string('emergency_relationship')->nullable();
            $table->string('emergency_mob')->nullable();
            $table->string('occupation')->nullable();
            $table->string('property_usage')->nullable();
            $table->string('building_name')->nullable();
            $table->string('unit_no')->nullable();
            $table->tinyInteger('is_deleted')->default('1');
            $table->string('created_by', 50)->nullable();
            $table->timestamps();
        });
    }

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