<?php

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

class CreatePost extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('post', function (Blueprint $table) {

            $table->increments('id');
            $table->timestamps();

            $table->string('position', 20)->comment('')->nullable();
            $table->integer('sort')->comment('')->nullable();

            $table->string('title', 200)->nullable()->comment('标题');
            $table->string('summary', 400)->nullable()->comment('摘要');
            $table->text('content')->nullable()->comment('内容');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
}
