<?php

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

class CreateExplainsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('explains', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('说明页标题');
            $table->string('tit_color')->comment('标题颜色');
            $table->tinyInteger('tit_b')->comment('标题是否加粗:1:加粗,0:不加粗');
            $table->smallInteger('type_id')->comment('分类id');
            $table->text('content')->comment('说明内容');
            $table->tinyInteger('is_display')->default('1')->comment('是否显示:1显示0不显示');
            $table->string('is_url')->comment('外链')->nullable();
            $table->string('seo_keywords')->comment('Seo优化关键字')->nullable();
            $table->string('seo_description')->comment('Seo优化内容')->nullable();
            $table->integer('click')->comment('点击量');
            $table->smallInteger('list_order')->comment('显示顺序');
            $table->integer('subsite_id')->comment('分站id,0:总站');
            $table->timestamps();
            $table->softDeletes();
        });
    }

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