<?php

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

class CreateFeedbacksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('feedbacks', function (Blueprint $table) {
            $table->increments('id');
            $table->tinyInteger('type')->comment('意见类型(1:建议 2:意见 3:求助 4:投诉)');
            $table->string('content')->comment('内容');
            $table->string('contact')->comment('联系方式(qq、邮箱、电话信息)');
            $table->tinyInteger('audit')->comment('处理状态(1:已处理,0:未处理)');
            $table->integer('subsite_id')->comment('分站信息(0:总站)');
            $table->timestamps();
        });
    }

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