<?php

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

class CreateFindUserRoomTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
	    Schema::create('room_need_mores', function(Blueprint $table) {
	    	$table->increments('id');
	    	$table->string('gender')->nullable();
	    	$table->integer('age')->default(0);
	    	$table->integer('number_peoples')->default(1);
	    	$table->string('province')->nullable();
	    	$table->string('district')->nullable();
	    	$table->string('ward')->nullable();
	    	$table->string('address')->nullable();
	    	$table->integer('price')->default(0);
	    	$table->integer('deposit')->default(0);
	    	$table->date('date_available')->nullable();
	    	$table->string('amenities')->nullable();
	    	$table->string('policies')->nullable();
	    	$table->text('images')->nullable();
	    	$table->text('desc')->nullable();
	    	$table->string('lat')->nullable();
	    	$table->string('lng')->nullable();
	    	$table->timestamps();
	    	$table->softDeletes();
	    });
    }

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