<?php

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

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

    public function up()
    {

        /*
         * Table: eform_faq_faqs
         */
        Schema::create('eform_faq_faqs', function ($table) {
            $table->increments('id');
            $table->text('question')->nullable();
            $table->text('anser')->nullable();
            $table->string('category', 30)->nullable();
            $table->integer('user_id')->nullable();
            $table->enum('status', [Show])->nullable();
            $table->string('slug', 60)->nullable();
            $table->text('marking', 200)->nullable();
            $table->softDeletes();
            $table->nullableTimestamps();
        });
    }

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

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