<?php

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

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

    public function up()
    {

        /*
         * Table: crm_advertisement_advertisements
         */
        Schema::create('crm_advertisement_advertisements', function ($table) {
            $table->increments('id');
            $table->string('slug', 255)->nullable();
            $table->string('name', 255)->nullable();
            $table->string('link', 255)->nullable();
            $table->string('description', 255)->nullable();
            $table->text('image')->nullable();
            $table->enum('status', ['Yes', 'No'])->nullable();
            $table->tinyInteger('home')->nullable();
            $table->tinyInteger('inner')->nullable();
            $table->tinyInteger('top')->nullable();
            $table->tinyInteger('bottom')->nullable();
            $table->tinyInteger('left')->nullable();
            $table->tinyInteger('right')->nullable();
            $table->integer('user_id')->nullable();
            $table->string('user_type', 30)->nullable();
            $table->text('marking', 200)->nullable();
            $table->softDeletes();
            $table->nullableTimestamps();
        });
    }

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

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