<?php

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

class CreateBandsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('bands', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();
			$table->string('name');
			$table->string('slug')->unique();
			$table->string('song');
			$table->string('video_url');
			$table->text('members')->nullable()->default(null);
			$table->text('bio')->nullable()->default(null);
			$table->text('image_filename')->nullable()->default(null);
			$table->string('email')->nullable()->default(null);
			$table->string('password')->nullable()->default(null);
			$table->string('phone')->nullable()->default(null);
			$table->boolean('approved')->default(0);
			$table->boolean('rejected')->default(0);
			$table->boolean('approved_notify')->default(0);
			$table->boolean('rejected_notify')->default(0);
			$table->boolean('shortlist')->default(0);
			$table->boolean('winner')->default(0);
			$table->text('rejection_reasons')->nullable()->default(null);
		});
	}

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

}
