<?php

use Illuminate\Database\Migrations\Migration;

class CreatePartnersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('partners', function($table) {
			$table->increments('id');
			$table->integer('project_id');
			$table->integer('user_id');
			$table->string('name');
			$table->string('phone')->nullable();
			$table->string('email')->nullable();
			$table->string('comment')->nullable();
			$table->softDeletes();
			$table->timestamps();
			$table->engine = 'InnoDB';
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('partners');
	}

}
