<?php

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

class CreateDepositsTable extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create( 'deposits', function ( Blueprint $table ) {
			$table->increments( 'id' );
			$table->bigInteger( 'amount' )->nullable();
			$table->integer( 'room_id' )->nullable();
			$table->integer( 'hostel_id' )->nullable();
			$table->dateTime( 'date_action' )->nullable();
			$table->integer('reserve_id')->nullable();
			$table->integer('contract_id')->nullable();
			$table->timestamps();
		} );
	}

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