finances and fleets
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMarketOrders extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('MarketOrders', function(Blueprint $table) {
|
||||
$table->integer('duration');
|
||||
$table->boolean('is_buy_order');
|
||||
$table->date('issued');
|
||||
$table->integer('location_id');
|
||||
$table->integer('min_volume');
|
||||
$table->integer('order_id')->unique();
|
||||
$table->decimal('price', 20, 2);
|
||||
$table->string('range');
|
||||
$table->integer('system_id');
|
||||
$table->integer('volume_remain');
|
||||
$table->integer('volume_total');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('MarketOrders');
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHoldingCorpFinancesJournal extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('HoldingCorpFinancesJournal', function(Blueprint $table) {
|
||||
$table->integer('id')->unique();
|
||||
$table->decimal('amount', 20, 2);
|
||||
$table->decimal('balance', 20, 2);
|
||||
$table->integer('context_id');
|
||||
$table->string('context_id_type');
|
||||
$table->date('date');
|
||||
$table->string('description');
|
||||
$table->integer('first_party_id')->nullable();
|
||||
$table->string('reason')->nullabe();
|
||||
$table->string('ref_type');
|
||||
$table->integer('second_party_id')->nullable();
|
||||
$table->decimal('tax', 20, 2)->default(0.00);
|
||||
$table->integer('tax_receiver_id')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('HoldingcorpFinancesJournal');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateEsiTokens extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('EsiTokens', function(Blueprint $table) {
|
||||
$table->integer('id')->increments();
|
||||
$table->integer('character_id');
|
||||
$table->string('access_token');
|
||||
$table->string('refresh_token');
|
||||
$table->integer('expires_in');
|
||||
$table->string('scopes');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('EsiTokens');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user