<?php

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

class CreateLitecmsLegalLegalsTable extends Migration
{
    /*
     * Run the migrations.
     *
     * @return void
     */

    public function up()
    {

        /*
         * Table: litecms_legal_legals
         */
        Schema::create('litecms_legal_legals', function ($table) {
            $table->increments('id');
            $table->string('name', 200)->nullable();
            $table->string('contact_person', 100)->nullable();
            $table->string('email', 50)->nullable();
            $table->string('phone', 50)->nullable();
            $table->string('fax', 50)->nullable();
            $table->string('tax_registration', 255)->nullable();
            $table->string('website', 50)->nullable();
            $table->text('address')->nullable();
            $table->enum('status', ['Yes', 'No'])->nullable();
            $table->text('services')->nullable();
            $table->text('contacts')->nullable();
            $table->text('notes')->nullable();
            $table->string('slug', 200)->nullable();
            $table->integer('user_id')->nullable();
            $table->string('user_type', 50)->nullable();
            $table->text('marking', 200)->nullable();
            $table->softDeletes();
            $table->nullableTimestamps();
        });
    }

    /*
    * Reverse the migrations.
    *
    * @return void
    */

    public function down()
    {
        Schema::drop('litecms_legal_legals');
    }
}