<?php

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

class CreateBranchesTable extends Migration {

	public function up()
	{
		Schema::create('branches', function(Blueprint $table) {
			$table->increments('id');
			$table->timestamps();
			$table->softDeletes();
			$table->string('name', 250);
			$table->text('description');
			$table->string('address', 300);
			$table->string('phone', 20);
			$table->string('lat', 100);
			$table->string('lan', 100);
			$table->text('image')->nullable();
		});
	}

	public function down()
	{
		Schema::drop('branches');
	}
}