<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateBixoAccountTransactionsDetailsTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: bixo_account_transactions_details */ Schema::create('bixo_account_transactions_details', function ($table) { $table->increments('id'); $table->integer('transaction_id')->nullable(); $table->integer('invoice_id')->nullable(); $table->decimal('debit', 12,3)->nullable(); $table->decimal('debit_tax', 12,3)->nullable(); $table->decimal('credit', 12,3)->nullable(); $table->decimal('credit_tax', 12,3)->nullable(); $table->integer('tax_percentage')->nullable(); $table->text('remarks')->nullable(); $table->text('marking', 200)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('bixo_account_transactions_details'); } }