<?php

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

class CreateHrtoolsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('hrtools', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('type_id')->comment('所属分类');
            $table->string('title')->comment('名称');
            $table->string('tit_color')->default('#000000')->comment('标题颜色');
            $table->tinyInteger('tit_b')->comment('标题加粗(1:是,0:否)');
            $table->string('file_url')->comment('上传文件或者文件路径');
            $table->integer('list_order')->comment('排序');
            $table->timestamps();
            $table->softDeletes();
        });
    }

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