akaunting/database/migrations/2018_10_27_000000_create_reconciliations_table.php
2019-12-16 12:04:27 +03:00

41 lines
973 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateReconciliationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('reconciliations', function (Blueprint $table) {
$table->increments('id');
$table->integer('company_id');
$table->integer('account_id');
$table->dateTime('started_at');
$table->dateTime('ended_at');
$table->double('closing_balance', 15, 4)->default('0.0000');
$table->boolean('reconciled');
$table->timestamps();
$table->softDeletes();
$table->index('company_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('reconciliations');
}
}