<?php

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

class CreateAdminUserResetsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_user_resets', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('admin_user_id')->nullable();
            $table->string('mobile', 200)->nullable();
            $table->string('name', 200)->nullable();
            $table->tinyInteger('status')->default(1)->comment('1待审核，2重置，3驳回');
            $table->timestamps();
        });
    }

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