<?php

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

class CreatePackageChangeHistoryTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
	    Schema::create('package_changes', function(Blueprint $table) {
	    	$table->increments('id');
	    	$table->integer('user_id')->nullable();
	    	$table->integer('package_id')->nullable();
	    	$table->integer('number_hostels')->nullable();
	    	$table->integer('number_rooms')->nullable();
	    	$table->integer('number_staffs')->nullable();

	    	$table->integer('price_per_month')->nullable();
	    	$table->date('start_date')->nullable();
	    	$table->date('end_date')->nullable();

	    	$table->timestamps();
	    });
    }

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