<?php

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

class CreateProfessionalsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('professionals', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->unsigned();
            $table->integer('profession_id')->unsigned();
            $table->string('specialty');
            $table->text('skill_description')->nullable();
            $table->text('bio')->nullable();
            $table->string('hmo')->nullable();
            $table->integer('years_of_experience')->default(0);
            $table->text('associated_with')->nullable();
            $table->boolean('show_professional_fee')->default(1);
            $table->timestamps();
        });
    }

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