<?php

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

class CreateEmployeesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('employees', function(Blueprint $table)
		{
			$table->increments('id');
            $table->string('cin')->unique();
            $table->string('password');
            $table->string('first_name');
            $table->string('last_name');
            $table->dateTime('date_birth');
            $table->string('email');
            $table->string('mobile');
            $table->string('image')->default('profile.png');
            $table->string('state');
            $table->dateTime('date_recrutment');
            $table->dateTime('date_resignation');
            $table->timestamps();
		});
	}

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

}
