<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateBixoOffplanFloorplansTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: bixo_offplan_floorplans */ Schema::create('bixo_offplan_floorplans', function ($table) { $table->increments('id'); $table->integer('project_id')->nullable(); $table->string('name', 200)->nullable(); $table->bigInteger('price')->nullable(); $table->string('category_type', 30)->nullable(); $table->string('category', 30)->nullable(); $table->integer('beds')->nullable(); $table->integer('baths')->nullable(); $table->string('floorplan_type', 30)->nullable(); $table->integer('bua')->nullable(); $table->tinyInteger('half_bath')->nullable(); $table->tinyInteger('exclusive')->nullable(); $table->text('photos')->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_floorplans'); } }