<?php

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

class CreateBixoOffplanUnitsTable extends Migration
{
    /*
     * Run the migrations.
     *
     * @return void
     */

    public function up()
    {

        /*
         * Table: bixo_offplan_units
         */
        Schema::create('bixo_offplan_units', function ($table) {
            $table->increments('id');
            $table->string('ref', 20)->nullable();
            $table->integer('project_id')->nullable();
            $table->enum('category_type', ['Yes', 'No'])->nullable();
            $table->string('category', 30)->nullable();
            $table->integer('floorplan_id')->nullable();
            $table->string('unit', 30)->nullable();
            $table->bigInteger('price')->nullable();
            $table->integer('beds')->nullable();
            $table->integer('baths')->nullable();
            $table->integer('bua')->nullable();
            $table->string('view', 100)->nullable();
            $table->string('status', 30)->nullable();
            $table->integer('floor')->nullable();
            $table->integer('parking')->nullable();
            $table->tinyInteger('exclusive')->nullable();
            $table->text('features')->nullable();
            $table->text('documents')->nullable();
            $table->integer('created_by')->nullable();
            $table->text('marking', 200)->nullable();
            $table->softDeletes();
            $table->nullableTimestamps();
        });
    }

    /*
    * Reverse the migrations.
    *
    * @return void
    */

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