<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateExpensesTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: expenses */ Schema::create('expenses', function ($table) { $table->increments('id'); $table->integer('owner_id')->nullable(); $table->integer('house_id')->nullable(); $table->string('expense_reason', 255)->nullable(); $table->integer('expense_amount')->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('expenses'); } }