<?php

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

class CreateCardUserHonorTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('card_user_honor', function (Blueprint $table) {
            $table->increments('id');
            $table->string('user_id')->comment('用户');
            $table->string('time')->default('')->comment('时间');
            $table->string('honor')->default('')->comment('荣誉');
            $table->timestamps();

            $table->index('user_id');
        });
    }

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