finances and fleets

This commit is contained in:
2018-10-28 20:44:15 -05:00
parent 5029cabb43
commit f6db74624a
16 changed files with 351 additions and 3 deletions
@@ -0,0 +1,46 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateStructures extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Structures', function(Blueprint $table) {
$table->integer('corporation_id');
$table->date('fuel_expires');
$table->date('next_reinforce_apply');
$table->integer('next_reinforce_hour');
$table->integer('next_reinforce_weekday');
$table->integer('profile_id');
$table->integer('reinforce_hour');
$table->integer('reinforce_weekday');
$table->data('services');
$table->string('state');
$table->date('state_timer_end');
$table->date('state_timer_start');
$table->integer('structure_id')->unique();
$table->integer('system_id');
$table->integer('type_id');
$table->date('unanchors_at');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('Structures');
}
}