anchoring structure form

This commit is contained in:
2019-09-02 02:08:25 -05:00
parent 960435f874
commit b9f4678d70
5 changed files with 96 additions and 6 deletions

View File

@@ -152,6 +152,9 @@ class MoonsAdminController extends Controller
//Set the ticker info
$ticker = 'N/A';
//Set the type info as it's needed
$type = 'N/A';
} else {
//Get the rental data for the moon
$rental = MoonRental::where([

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Models\Logistics;
use Illuminate\Database\Eloquent\Model;
class AnchorStructure extends Model
{
//Table Name
public $table = 'alliance_anchor_structure';
//Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'corporation_id',
'corporation_name',
'system',
'structure_size',
'structure_type',
'requested_drop_time',
'assigned_fc_id',
'assigned_fc',
'requester_id',
'requester',
];
}

View File

@@ -0,0 +1,53 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAllianceAnchorStructureTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('alliance_anchor_structure')) {
Schema::create('alliance_anchor_structure', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedInteger('corporation_id');
$table->string('corporation_name');
$table->string('system');
$table->enum('structure_size', [
'M',
'L',
'XL',
]);
$table->enum('structure_type', [
'Flex',
'Citadel',
'Engineering',
'Refinery',
]);
$table->dateTime('requested_drop_time');
$table->unsignedInteger('assigned_fc_id')->nullable();
$table->string('assigned_fc')->nullable();
$table->unsignedInteger('requester_id');
$table->string('requester');
$table->timestamps();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('alliance_anchor_structure');
}
}

View File

@@ -6,8 +6,6 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'App\\AllianceLookup' => $baseDir . '/app/Models/Lookups/AllianceLookup.php',
'App\\CharacterLookup' => $baseDir . '/app/Models/Lookups/CharacterLookup.php',
'App\\Charts\\StructureFuelGauge' => $baseDir . '/app/Charts/StructureFuelGauge.php',
'App\\Console\\Commands\\CleanStaleDataCommand' => $baseDir . '/app/Console/Commands/Data/CleanStaleDataCommand.php',
'App\\Console\\Commands\\CorpFinances' => $baseDir . '/app/Console/Commands/Finances/CorpFinances.php',
@@ -23,7 +21,6 @@ return array(
'App\\Console\\Commands\\UpdateMoonRental' => $baseDir . '/app/Console/Commands/Moons/UpdateMoonRental.php',
'App\\Console\\Kernel' => $baseDir . '/app/Console/Kernel.php',
'App\\CorpMarketStructure' => $baseDir . '/app/Models/Finances/CorpMarketStructure.php',
'App\\CorporationLookup' => $baseDir . '/app/Models/Lookups/CorporationLookup.php',
'App\\Exceptions\\Handler' => $baseDir . '/app/Exceptions/Handler.php',
'App\\Http\\Controllers\\Auth\\EsiScopeController' => $baseDir . '/app/Http/Controllers/Auth/EsiScopeController.php',
'App\\Http\\Controllers\\Auth\\LoginController' => $baseDir . '/app/Http/Controllers/Auth/LoginController.php',
@@ -112,10 +109,14 @@ return array(
'App\\Models\\Jobs\\JobProcessWalletTransaction' => $baseDir . '/app/Models/Jobs/JobProcessWalletTransaction.php',
'App\\Models\\Jobs\\JobSendEveMail' => $baseDir . '/app/Models/Jobs/JobSendEveMail.php',
'App\\Models\\Jobs\\JobStatus' => $baseDir . '/app/Models/Jobs/JobStatus.php',
'App\\Models\\Logistics\\AnchorStructure' => $baseDir . '/app/Models/Logistics/AnchorStructure.php',
'App\\Models\\Logistics\\LogisticContract' => $baseDir . '/app/Models/Logistics/LogisticContract.php',
'App\\Models\\Logistics\\LogisticsInsuranceDeposit' => $baseDir . '/app/Models/Logistics/LogisticsInsuranceDeposit.php',
'App\\Models\\Logistics\\LogisticsInsurancePayout' => $baseDir . '/app/Models/Logistics/LogisticsInsurancePayout.php',
'App\\Models\\Lookups\\AllianceLookup' => $baseDir . '/app/Models/Lookups/AllianceLookup.php',
'App\\Models\\Lookups\\CharacterLookup' => $baseDir . '/app/Models/Lookups/CharacterLookup.php',
'App\\Models\\Lookups\\CharacterToCorporation' => $baseDir . '/app/Models/Lookups/CharacterToCorporation.php',
'App\\Models\\Lookups\\CorporationLookup' => $baseDir . '/app/Models/Lookups/CorporationLookup.php',
'App\\Models\\Lookups\\CorporationToAlliance' => $baseDir . '/app/Models/Lookups/CorporationToAlliance.php',
'App\\Models\\Lookups\\SolarSystem' => $baseDir . '/app/Models/Lookups/SolarSystem.php',
'App\\Models\\Lookups\\UserToCorporation' => $baseDir . '/app/Models/Lookups/UserToCorporation.php',

View File

@@ -469,8 +469,6 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
);
public static $classMap = array (
'App\\AllianceLookup' => __DIR__ . '/../..' . '/app/Models/Lookups/AllianceLookup.php',
'App\\CharacterLookup' => __DIR__ . '/../..' . '/app/Models/Lookups/CharacterLookup.php',
'App\\Charts\\StructureFuelGauge' => __DIR__ . '/../..' . '/app/Charts/StructureFuelGauge.php',
'App\\Console\\Commands\\CleanStaleDataCommand' => __DIR__ . '/../..' . '/app/Console/Commands/Data/CleanStaleDataCommand.php',
'App\\Console\\Commands\\CorpFinances' => __DIR__ . '/../..' . '/app/Console/Commands/Finances/CorpFinances.php',
@@ -486,7 +484,6 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'App\\Console\\Commands\\UpdateMoonRental' => __DIR__ . '/../..' . '/app/Console/Commands/Moons/UpdateMoonRental.php',
'App\\Console\\Kernel' => __DIR__ . '/../..' . '/app/Console/Kernel.php',
'App\\CorpMarketStructure' => __DIR__ . '/../..' . '/app/Models/Finances/CorpMarketStructure.php',
'App\\CorporationLookup' => __DIR__ . '/../..' . '/app/Models/Lookups/CorporationLookup.php',
'App\\Exceptions\\Handler' => __DIR__ . '/../..' . '/app/Exceptions/Handler.php',
'App\\Http\\Controllers\\Auth\\EsiScopeController' => __DIR__ . '/../..' . '/app/Http/Controllers/Auth/EsiScopeController.php',
'App\\Http\\Controllers\\Auth\\LoginController' => __DIR__ . '/../..' . '/app/Http/Controllers/Auth/LoginController.php',
@@ -575,10 +572,14 @@ class ComposerStaticInitc3f953f8a7291d41a76e1664339777c9
'App\\Models\\Jobs\\JobProcessWalletTransaction' => __DIR__ . '/../..' . '/app/Models/Jobs/JobProcessWalletTransaction.php',
'App\\Models\\Jobs\\JobSendEveMail' => __DIR__ . '/../..' . '/app/Models/Jobs/JobSendEveMail.php',
'App\\Models\\Jobs\\JobStatus' => __DIR__ . '/../..' . '/app/Models/Jobs/JobStatus.php',
'App\\Models\\Logistics\\AnchorStructure' => __DIR__ . '/../..' . '/app/Models/Logistics/AnchorStructure.php',
'App\\Models\\Logistics\\LogisticContract' => __DIR__ . '/../..' . '/app/Models/Logistics/LogisticContract.php',
'App\\Models\\Logistics\\LogisticsInsuranceDeposit' => __DIR__ . '/../..' . '/app/Models/Logistics/LogisticsInsuranceDeposit.php',
'App\\Models\\Logistics\\LogisticsInsurancePayout' => __DIR__ . '/../..' . '/app/Models/Logistics/LogisticsInsurancePayout.php',
'App\\Models\\Lookups\\AllianceLookup' => __DIR__ . '/../..' . '/app/Models/Lookups/AllianceLookup.php',
'App\\Models\\Lookups\\CharacterLookup' => __DIR__ . '/../..' . '/app/Models/Lookups/CharacterLookup.php',
'App\\Models\\Lookups\\CharacterToCorporation' => __DIR__ . '/../..' . '/app/Models/Lookups/CharacterToCorporation.php',
'App\\Models\\Lookups\\CorporationLookup' => __DIR__ . '/../..' . '/app/Models/Lookups/CorporationLookup.php',
'App\\Models\\Lookups\\CorporationToAlliance' => __DIR__ . '/../..' . '/app/Models/Lookups/CorporationToAlliance.php',
'App\\Models\\Lookups\\SolarSystem' => __DIR__ . '/../..' . '/app/Models/Lookups/SolarSystem.php',
'App\\Models\\Lookups\\UserToCorporation' => __DIR__ . '/../..' . '/app/Models/Lookups/UserToCorporation.php',