station lookup tables

This commit is contained in:
2019-10-12 22:10:15 -05:00
parent 645ed2d6f7
commit 18ef68979c
8 changed files with 183 additions and 10 deletions

View File

@@ -0,0 +1,47 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateStationLookupTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('station_lookup')) {
Schema::create('station_lookup', function (Blueprint $table) {
$table->bigIncrements('id');
$table->float('max_dockable_ship_volume');
$table->string('name');
$table->float('office_rental_cost');
$table->bigInteger('owner')->nullable();
$table->double('position_x');
$table->double('position_y');
$table->double('position_z');
$table->bigInteger('race_id')->nullable();
$table->float('reprocessing_efficiency');
$table->float('reprocessing_stations_take');
$table->string('services');
$table->bigInteger('station_id');
$table->bigInteger('system_id');
$table->bigInteger('type_id');
$table->timestamps();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('station_lookup');
}
}