<?php

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

class CreateReportBreaksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('report_breaks', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('hostel_id')->nullable();
            $table->integer('room_id')->nullable();
            $table->integer('user_report')->nullable();
            $table->text('content')->nullable();
            $table->integer('status')->default(0);
            $table->integer('user_take_care')->nullbale();
            $table->softDeletes();
            $table->timestamps();
        });

        Schema::create('report_break_images', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('report_break_id')->nullable();
            $table->string('image')->nullable();
            $table->timestamps();
        });
    }

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