<?php

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

class CreateExtrasTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('extras', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('amount')->nullable();

            $table->string('name')->nullable();
            $table->date('date_action')->nullable();
            $table->integer('hostel_id')->nullable();
            $table->integer('room_id')->nullable();
            $table->integer('user_id')->nullable();
            $table->text('note')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

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